Searched refs:ocp_base (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/drivers/net/ethernet/realtek/ |
D | r8169_main.c | 636 u32 ocp_base; member 962 tp->ocp_base = value ? value << 4 : OCP_STD_PHY_BASE; in r8168g_mdio_write() 966 if (tp->ocp_base != OCP_STD_PHY_BASE) in r8168g_mdio_write() 969 if (tp->ocp_base == OCP_STD_PHY_BASE && reg == MII_BMCR) in r8168g_mdio_write() 972 r8168_phy_ocp_write(tp, tp->ocp_base + reg * 2, value); in r8168g_mdio_write() 978 return tp->ocp_base == OCP_STD_PHY_BASE ? 0 : tp->ocp_base >> 4; in r8168g_mdio_read() 980 if (tp->ocp_base != OCP_STD_PHY_BASE) in r8168g_mdio_read() 983 return r8168_phy_ocp_read(tp, tp->ocp_base + reg * 2); in r8168g_mdio_read() 989 tp->ocp_base = value << 4; in mac_mcu_write() 993 r8168_mac_ocp_write(tp, tp->ocp_base + reg, value); in mac_mcu_write() [all …]
|
/Linux-v6.6/drivers/net/usb/ |
D | r8152.c | 952 u16 ocp_base; member 1581 u16 ocp_base, ocp_index; in ocp_reg_read() local 1583 ocp_base = addr & 0xf000; in ocp_reg_read() 1584 if (ocp_base != tp->ocp_base) { in ocp_reg_read() 1585 ocp_write_word(tp, MCU_TYPE_PLA, PLA_OCP_GPHY_BASE, ocp_base); in ocp_reg_read() 1586 tp->ocp_base = ocp_base; in ocp_reg_read() 1595 u16 ocp_base, ocp_index; in ocp_reg_write() local 1597 ocp_base = addr & 0xf000; in ocp_reg_write() 1598 if (ocp_base != tp->ocp_base) { in ocp_reg_write() 1599 ocp_write_word(tp, MCU_TYPE_PLA, PLA_OCP_GPHY_BASE, ocp_base); in ocp_reg_write() [all …]
|