Searched refs:ocp_base (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/realtek/ |
D | r8169_main.c | 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() [all …]
|
/linux-6.1.9/drivers/net/usb/ |
D | r8152.c | 944 u16 ocp_base; member 1475 u16 ocp_base, ocp_index; in ocp_reg_read() local 1477 ocp_base = addr & 0xf000; in ocp_reg_read() 1478 if (ocp_base != tp->ocp_base) { in ocp_reg_read() 1479 ocp_write_word(tp, MCU_TYPE_PLA, PLA_OCP_GPHY_BASE, ocp_base); in ocp_reg_read() 1480 tp->ocp_base = ocp_base; in ocp_reg_read() 1489 u16 ocp_base, ocp_index; in ocp_reg_write() local 1491 ocp_base = addr & 0xf000; in ocp_reg_write() 1492 if (ocp_base != tp->ocp_base) { in ocp_reg_write() 1493 ocp_write_word(tp, MCU_TYPE_PLA, PLA_OCP_GPHY_BASE, ocp_base); in ocp_reg_write() [all …]
|