Lines Matching refs:mdic

2811 	u32 mdic = 0;  in e1000_read_phy_reg_ex()  local
2825 mdic = ((reg_addr << E1000_MDIC_REG_SHIFT) | in e1000_read_phy_reg_ex()
2830 writel(mdic, E1000_MDIO_CMD); in e1000_read_phy_reg_ex()
2837 mdic = readl(E1000_MDIO_CMD); in e1000_read_phy_reg_ex()
2838 if (!(mdic & INTEL_CE_GBE_MDIC_GO)) in e1000_read_phy_reg_ex()
2842 if (mdic & INTEL_CE_GBE_MDIC_GO) { in e1000_read_phy_reg_ex()
2847 mdic = readl(E1000_MDIO_STS); in e1000_read_phy_reg_ex()
2848 if (mdic & INTEL_CE_GBE_MDIC_READ_ERROR) { in e1000_read_phy_reg_ex()
2852 *phy_data = (u16)mdic; in e1000_read_phy_reg_ex()
2854 mdic = ((reg_addr << E1000_MDIC_REG_SHIFT) | in e1000_read_phy_reg_ex()
2858 ew32(MDIC, mdic); in e1000_read_phy_reg_ex()
2865 mdic = er32(MDIC); in e1000_read_phy_reg_ex()
2866 if (mdic & E1000_MDIC_READY) in e1000_read_phy_reg_ex()
2869 if (!(mdic & E1000_MDIC_READY)) { in e1000_read_phy_reg_ex()
2873 if (mdic & E1000_MDIC_ERROR) { in e1000_read_phy_reg_ex()
2877 *phy_data = (u16)mdic; in e1000_read_phy_reg_ex()
2898 mdic = ((reg_addr) | (phy_addr << 5) | in e1000_read_phy_reg_ex()
2901 e1000_shift_out_mdi_bits(hw, mdic, 14); in e1000_read_phy_reg_ex()
2949 u32 mdic = 0; in e1000_write_phy_reg_ex() local
2964 mdic = (((u32)phy_data) | in e1000_write_phy_reg_ex()
2970 writel(mdic, E1000_MDIO_CMD); in e1000_write_phy_reg_ex()
2977 mdic = readl(E1000_MDIO_CMD); in e1000_write_phy_reg_ex()
2978 if (!(mdic & INTEL_CE_GBE_MDIC_GO)) in e1000_write_phy_reg_ex()
2981 if (mdic & INTEL_CE_GBE_MDIC_GO) { in e1000_write_phy_reg_ex()
2986 mdic = (((u32)phy_data) | in e1000_write_phy_reg_ex()
2991 ew32(MDIC, mdic); in e1000_write_phy_reg_ex()
2998 mdic = er32(MDIC); in e1000_write_phy_reg_ex()
2999 if (mdic & E1000_MDIC_READY) in e1000_write_phy_reg_ex()
3002 if (!(mdic & E1000_MDIC_READY)) { in e1000_write_phy_reg_ex()
3021 mdic = ((PHY_TURNAROUND) | (reg_addr << 2) | (phy_addr << 7) | in e1000_write_phy_reg_ex()
3023 mdic <<= 16; in e1000_write_phy_reg_ex()
3024 mdic |= (u32)phy_data; in e1000_write_phy_reg_ex()
3026 e1000_shift_out_mdi_bits(hw, mdic, 32); in e1000_write_phy_reg_ex()