Searched refs:ocp_base (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/net/ethernet/realtek/ |
H A D | r8169_main.c | 681 u32 ocp_base; member 1110 tp->ocp_base = value ? value << 4 : OCP_STD_PHY_BASE; in r8168g_mdio_write() 1114 if (tp->ocp_base != OCP_STD_PHY_BASE) in r8168g_mdio_write() 1117 if (tp->ocp_base == OCP_STD_PHY_BASE && reg == MII_BMCR) in r8168g_mdio_write() 1120 r8168_phy_ocp_write(tp, tp->ocp_base + reg * 2, value); in r8168g_mdio_write() 1126 return tp->ocp_base == OCP_STD_PHY_BASE ? 0 : tp->ocp_base >> 4; in r8168g_mdio_read() 1128 if (tp->ocp_base != OCP_STD_PHY_BASE) in r8168g_mdio_read() 1131 return r8168_phy_ocp_read(tp, tp->ocp_base + reg * 2); in r8168g_mdio_read() 1137 tp->ocp_base = value << 4; in mac_mcu_write() 1141 r8168_mac_ocp_write(tp, tp->ocp_base + reg, value); in mac_mcu_write() [all …]
|
/linux/drivers/net/usb/ |
H A D | r8152.c | 953 u16 ocp_base; member 1582 u16 ocp_base, ocp_index; in ocp_reg_read() local 1584 ocp_base = addr & 0xf000; in ocp_reg_read() 1585 if (ocp_base != tp->ocp_base) { in ocp_reg_read() 1586 ocp_write_word(tp, MCU_TYPE_PLA, PLA_OCP_GPHY_BASE, ocp_base); in ocp_reg_read() 1587 tp->ocp_base = ocp_base; in ocp_reg_read() 1596 u16 ocp_base, ocp_index; in ocp_reg_write() local 1598 ocp_base = addr & 0xf000; in ocp_reg_write() 1599 if (ocp_base != tp->ocp_base) { in ocp_reg_write() 1600 ocp_write_word(tp, MCU_TYPE_PLA, PLA_OCP_GPHY_BASE, ocp_base); in ocp_reg_write() [all …]
|