Lines Matching refs:mdic
2812 u32 mdic = 0; in e1000_read_phy_reg_ex() local
2826 mdic = ((reg_addr << E1000_MDIC_REG_SHIFT) | in e1000_read_phy_reg_ex()
2831 writel(mdic, E1000_MDIO_CMD); in e1000_read_phy_reg_ex()
2838 mdic = readl(E1000_MDIO_CMD); in e1000_read_phy_reg_ex()
2839 if (!(mdic & INTEL_CE_GBE_MDIC_GO)) in e1000_read_phy_reg_ex()
2843 if (mdic & INTEL_CE_GBE_MDIC_GO) { in e1000_read_phy_reg_ex()
2848 mdic = readl(E1000_MDIO_STS); in e1000_read_phy_reg_ex()
2849 if (mdic & INTEL_CE_GBE_MDIC_READ_ERROR) { in e1000_read_phy_reg_ex()
2853 *phy_data = (u16)mdic; in e1000_read_phy_reg_ex()
2855 mdic = ((reg_addr << E1000_MDIC_REG_SHIFT) | in e1000_read_phy_reg_ex()
2859 ew32(MDIC, mdic); in e1000_read_phy_reg_ex()
2866 mdic = er32(MDIC); in e1000_read_phy_reg_ex()
2867 if (mdic & E1000_MDIC_READY) in e1000_read_phy_reg_ex()
2870 if (!(mdic & E1000_MDIC_READY)) { in e1000_read_phy_reg_ex()
2874 if (mdic & E1000_MDIC_ERROR) { in e1000_read_phy_reg_ex()
2878 *phy_data = (u16)mdic; in e1000_read_phy_reg_ex()
2899 mdic = ((reg_addr) | (phy_addr << 5) | in e1000_read_phy_reg_ex()
2902 e1000_shift_out_mdi_bits(hw, mdic, 14); in e1000_read_phy_reg_ex()
2950 u32 mdic = 0; in e1000_write_phy_reg_ex() local
2965 mdic = (((u32)phy_data) | in e1000_write_phy_reg_ex()
2971 writel(mdic, E1000_MDIO_CMD); in e1000_write_phy_reg_ex()
2978 mdic = readl(E1000_MDIO_CMD); in e1000_write_phy_reg_ex()
2979 if (!(mdic & INTEL_CE_GBE_MDIC_GO)) in e1000_write_phy_reg_ex()
2982 if (mdic & INTEL_CE_GBE_MDIC_GO) { in e1000_write_phy_reg_ex()
2987 mdic = (((u32)phy_data) | in e1000_write_phy_reg_ex()
2992 ew32(MDIC, mdic); in e1000_write_phy_reg_ex()
2999 mdic = er32(MDIC); in e1000_write_phy_reg_ex()
3000 if (mdic & E1000_MDIC_READY) in e1000_write_phy_reg_ex()
3003 if (!(mdic & E1000_MDIC_READY)) { in e1000_write_phy_reg_ex()
3022 mdic = ((PHY_TURNAROUND) | (reg_addr << 2) | (phy_addr << 7) | in e1000_write_phy_reg_ex()
3024 mdic <<= 16; in e1000_write_phy_reg_ex()
3025 mdic |= (u32)phy_data; in e1000_write_phy_reg_ex()
3027 e1000_shift_out_mdi_bits(hw, mdic, 32); in e1000_write_phy_reg_ex()