Lines Matching refs:c1kt_reg
152 uint16_t c1kt_reg = 0; in update_link_state() local
230 if (phy_mii_reg_read(dev, MII_1KTCR, &c1kt_reg) < 0) { in update_link_state()
240 ((c1kt_reg & s1kt_reg) & MII_ADVERTISE_1000_FULL)) { in update_link_state()
243 ((c1kt_reg & s1kt_reg) & MII_ADVERTISE_1000_HALF)) { in update_link_state()
320 uint16_t c1kt_reg; in phy_mii_cfg_link() local
331 if (phy_mii_reg_read(dev, MII_1KTCR, &c1kt_reg) < 0) { in phy_mii_cfg_link()
362 c1kt_reg |= MII_ADVERTISE_1000_FULL; in phy_mii_cfg_link()
364 c1kt_reg &= ~MII_ADVERTISE_1000_FULL; in phy_mii_cfg_link()
368 c1kt_reg |= MII_ADVERTISE_1000_HALF; in phy_mii_cfg_link()
370 c1kt_reg &= ~MII_ADVERTISE_1000_HALF; in phy_mii_cfg_link()
373 if (phy_mii_reg_write(dev, MII_1KTCR, c1kt_reg) < 0) { in phy_mii_cfg_link()