Lines Matching refs:qc_ar8031_write
92 static int qc_ar8031_write(const struct device *dev, uint16_t reg_addr, uint32_t data) in qc_ar8031_write() function
110 if (qc_ar8031_write(dev, MII_MMD_ACR, reg_value) < 0) { in qc_ar8031_mmd_set_device()
113 if (qc_ar8031_write(dev, MII_MMD_AADR, addr) < 0) { in qc_ar8031_mmd_set_device()
117 if (qc_ar8031_write(dev, MII_MMD_ACR, (device & MII_MMD_ACR_DEVAD_MASK) | mode) < 0) { in qc_ar8031_mmd_set_device()
151 ret = qc_ar8031_write(dev, MII_MMD_AADR, data); in qc_ar8031_mmd_write()
310 if (qc_ar8031_write(dev, MII_1KTCR, c1kt_reg) < 0) { in qc_ar8031_cfg_link()
316 if (qc_ar8031_write(dev, MII_ANAR, anar_reg) < 0) { in qc_ar8031_cfg_link()
320 if (qc_ar8031_write(dev, MII_BMCR, bmcr_reg) < 0) { in qc_ar8031_cfg_link()
384 ret = qc_ar8031_write(dev, MII_BMCR, MII_BMCR_RESET); in qc_ar8031_init()
399 ret = qc_ar8031_write(dev, MII_MMD_AADR, reg_value & ~(MDIO_PCS_SMARTEEE_CTRL3_LPI_EN)); in qc_ar8031_init()
405 ret = qc_ar8031_write(dev, PHY_DEBUGPORT_ADDR_REG, PHY_DEBUGPORT_SD_SM_CTRL); in qc_ar8031_init()
413 ret = qc_ar8031_write(dev, PHY_DEBUGPORT_DATA_REG, in qc_ar8031_init()
420 ret = qc_ar8031_write(dev, PHY_DEBUGPORT_ADDR_REG, PHY_DEBUGPORT_ANALOG_CTRL); in qc_ar8031_init()
428 ret = qc_ar8031_write(dev, PHY_DEBUGPORT_DATA_REG, in qc_ar8031_init()
460 ret = qc_ar8031_write(dev, MII_BMCR, reg_value); in qc_ar8031_init()
491 .write = qc_ar8031_write,