Lines Matching refs:ocp_base
626 u32 ocp_base; member
895 tp->ocp_base = value ? value << 4 : OCP_STD_PHY_BASE; in r8168g_mdio_write()
899 if (tp->ocp_base != OCP_STD_PHY_BASE) in r8168g_mdio_write()
902 if (tp->ocp_base == OCP_STD_PHY_BASE && reg == MII_BMCR) in r8168g_mdio_write()
905 r8168_phy_ocp_write(tp, tp->ocp_base + reg * 2, value); in r8168g_mdio_write()
911 return tp->ocp_base == OCP_STD_PHY_BASE ? 0 : tp->ocp_base >> 4; in r8168g_mdio_read()
913 if (tp->ocp_base != OCP_STD_PHY_BASE) in r8168g_mdio_read()
916 return r8168_phy_ocp_read(tp, tp->ocp_base + reg * 2); in r8168g_mdio_read()
922 tp->ocp_base = value << 4; in mac_mcu_write()
926 r8168_mac_ocp_write(tp, tp->ocp_base + reg, value); in mac_mcu_write()
931 return r8168_mac_ocp_read(tp, tp->ocp_base + reg); in mac_mcu_read()
2090 tp->ocp_base = OCP_STD_PHY_BASE; in r8169_apply_firmware()
5154 tp->ocp_base = OCP_STD_PHY_BASE; in rtl_init_one()