Lines Matching refs:mdic
2843 u32 mdic = 0; in e1000_read_phy_reg_ex() local
2857 mdic = ((reg_addr << E1000_MDIC_REG_SHIFT) | in e1000_read_phy_reg_ex()
2862 writel(mdic, E1000_MDIO_CMD); in e1000_read_phy_reg_ex()
2869 mdic = readl(E1000_MDIO_CMD); in e1000_read_phy_reg_ex()
2870 if (!(mdic & INTEL_CE_GBE_MDIC_GO)) in e1000_read_phy_reg_ex()
2874 if (mdic & INTEL_CE_GBE_MDIC_GO) { in e1000_read_phy_reg_ex()
2879 mdic = readl(E1000_MDIO_STS); in e1000_read_phy_reg_ex()
2880 if (mdic & INTEL_CE_GBE_MDIC_READ_ERROR) { in e1000_read_phy_reg_ex()
2884 *phy_data = (u16) mdic; in e1000_read_phy_reg_ex()
2886 mdic = ((reg_addr << E1000_MDIC_REG_SHIFT) | in e1000_read_phy_reg_ex()
2890 ew32(MDIC, mdic); in e1000_read_phy_reg_ex()
2897 mdic = er32(MDIC); in e1000_read_phy_reg_ex()
2898 if (mdic & E1000_MDIC_READY) in e1000_read_phy_reg_ex()
2901 if (!(mdic & E1000_MDIC_READY)) { in e1000_read_phy_reg_ex()
2905 if (mdic & E1000_MDIC_ERROR) { in e1000_read_phy_reg_ex()
2909 *phy_data = (u16) mdic; in e1000_read_phy_reg_ex()
2930 mdic = ((reg_addr) | (phy_addr << 5) | in e1000_read_phy_reg_ex()
2933 e1000_shift_out_mdi_bits(hw, mdic, 14); in e1000_read_phy_reg_ex()
2981 u32 mdic = 0; in e1000_write_phy_reg_ex() local
2996 mdic = (((u32) phy_data) | in e1000_write_phy_reg_ex()
3002 writel(mdic, E1000_MDIO_CMD); in e1000_write_phy_reg_ex()
3009 mdic = readl(E1000_MDIO_CMD); in e1000_write_phy_reg_ex()
3010 if (!(mdic & INTEL_CE_GBE_MDIC_GO)) in e1000_write_phy_reg_ex()
3013 if (mdic & INTEL_CE_GBE_MDIC_GO) { in e1000_write_phy_reg_ex()
3018 mdic = (((u32) phy_data) | in e1000_write_phy_reg_ex()
3023 ew32(MDIC, mdic); in e1000_write_phy_reg_ex()
3030 mdic = er32(MDIC); in e1000_write_phy_reg_ex()
3031 if (mdic & E1000_MDIC_READY) in e1000_write_phy_reg_ex()
3034 if (!(mdic & E1000_MDIC_READY)) { in e1000_write_phy_reg_ex()
3053 mdic = ((PHY_TURNAROUND) | (reg_addr << 2) | (phy_addr << 7) | in e1000_write_phy_reg_ex()
3055 mdic <<= 16; in e1000_write_phy_reg_ex()
3056 mdic |= (u32) phy_data; in e1000_write_phy_reg_ex()
3058 e1000_shift_out_mdi_bits(hw, mdic, 32); in e1000_write_phy_reg_ex()