Lines Matching refs:r8152

76 int get_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data)  in get_registers()
89 int set_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) in set_registers()
99 int generic_ocp_read(struct r8152 *tp, u16 index, u16 size, in generic_ocp_read()
127 int generic_ocp_write(struct r8152 *tp, u16 index, u16 byteen, in generic_ocp_write()
180 int pla_ocp_read(struct r8152 *tp, u16 index, u16 size, void *data) in pla_ocp_read()
185 int pla_ocp_write(struct r8152 *tp, u16 index, u16 byteen, u16 size, void *data) in pla_ocp_write()
190 int usb_ocp_read(struct r8152 *tp, u16 index, u16 size, void *data) in usb_ocp_read()
195 int usb_ocp_write(struct r8152 *tp, u16 index, u16 byteen, u16 size, void *data) in usb_ocp_write()
200 u32 ocp_read_dword(struct r8152 *tp, u16 type, u16 index) in ocp_read_dword()
209 void ocp_write_dword(struct r8152 *tp, u16 type, u16 index, u32 data) in ocp_write_dword()
216 u16 ocp_read_word(struct r8152 *tp, u16 type, u16 index) in ocp_read_word()
233 void ocp_write_word(struct r8152 *tp, u16 type, u16 index, u32 data) in ocp_write_word()
254 u8 ocp_read_byte(struct r8152 *tp, u16 type, u16 index) in ocp_read_byte()
271 void ocp_write_byte(struct r8152 *tp, u16 type, u16 index, u32 data) in ocp_write_byte()
292 u16 ocp_reg_read(struct r8152 *tp, u16 addr) in ocp_reg_read()
306 void ocp_reg_write(struct r8152 *tp, u16 addr, u16 data) in ocp_reg_write()
320 static void r8152_mdio_write(struct r8152 *tp, u32 reg_addr, u32 value) in r8152_mdio_write()
325 static int r8152_mdio_read(struct r8152 *tp, u32 reg_addr) in r8152_mdio_read()
330 void sram_write(struct r8152 *tp, u16 addr, u16 data) in sram_write()
336 static u16 sram_read(struct r8152 *tp, u16 addr) in sram_read()
342 int r8152_wait_for_bit(struct r8152 *tp, bool ocp_reg, u16 type, u16 index, in r8152_wait_for_bit()
368 static void r8152b_reset_packet_filter(struct r8152 *tp) in r8152b_reset_packet_filter()
379 static void rtl8152_wait_fifo_empty(struct r8152 *tp) in rtl8152_wait_fifo_empty()
394 static void rtl8152_nic_reset(struct r8152 *tp) in rtl8152_nic_reset()
409 static u8 rtl8152_get_speed(struct r8152 *tp) in rtl8152_get_speed()
414 static void rtl_set_eee_plus(struct r8152 *tp) in rtl_set_eee_plus()
423 static void rxdy_gated_en(struct r8152 *tp, bool enable) in rxdy_gated_en()
435 static void rtl8152_set_rx_mode(struct r8152 *tp) in rtl8152_set_rx_mode()
450 static inline void r8153b_rx_agg_chg_indicate(struct r8152 *tp) in r8153b_rx_agg_chg_indicate()
456 static int rtl_enable(struct r8152 *tp) in rtl_enable()
482 static int rtl8152_enable(struct r8152 *tp) in rtl8152_enable()
489 static void r8153_set_rx_early_timeout(struct r8152 *tp) in r8153_set_rx_early_timeout()
519 static void r8153_set_rx_early_size(struct r8152 *tp) in r8153_set_rx_early_size()
545 static int rtl8153_enable(struct r8152 *tp) in rtl8153_enable()
554 static void rtl_disable(struct r8152 *tp) in rtl_disable()
568 static void r8152_power_cut_en(struct r8152 *tp, bool enable) in r8152_power_cut_en()
584 static void rtl_rx_vlan_en(struct r8152 *tp, bool enable) in rtl_rx_vlan_en()
596 static void r8153_u1u2en(struct r8152 *tp, bool enable) in r8153_u1u2en()
608 static void r8153b_u1u2en(struct r8152 *tp, bool enable) in r8153b_u1u2en()
621 static void r8153_u2p3en(struct r8152 *tp, bool enable) in r8153_u2p3en()
633 static void r8153_power_cut_en(struct r8152 *tp, bool enable) in r8153_power_cut_en()
649 static void rtl_reset_bmu(struct r8152 *tp) in rtl_reset_bmu()
660 static int r8152_read_mac(struct r8152 *tp, unsigned char *macaddr) in r8152_read_mac()
673 static void r8152b_disable_aldps(struct r8152 *tp) in r8152b_disable_aldps()
679 static void r8152b_enable_aldps(struct r8152 *tp) in r8152b_enable_aldps()
685 static void rtl8152_disable(struct r8152 *tp) in rtl8152_disable()
692 static void r8152b_hw_phy_cfg(struct r8152 *tp) in r8152b_hw_phy_cfg()
705 static void rtl8152_reinit_ll(struct r8152 *tp) in rtl8152_reinit_ll()
725 static void r8152b_exit_oob(struct r8152 *tp) in r8152b_exit_oob()
783 static void r8152b_enter_oob(struct r8152 *tp) in r8152b_enter_oob()
818 static void r8153_hw_phy_cfg(struct r8152 *tp) in r8153_hw_phy_cfg()
865 static u32 r8152_efuse_read(struct r8152 *tp, u8 addr) in r8152_efuse_read()
877 static void r8153b_hw_phy_cfg(struct r8152 *tp) in r8153b_hw_phy_cfg()
930 static void r8153_first_init(struct r8152 *tp) in r8153_first_init()
981 static void r8153_enter_oob(struct r8152 *tp) in r8153_enter_oob()
1018 static void r8153_disable_aldps(struct r8152 *tp) in r8153_disable_aldps()
1028 static void rtl8153_disable(struct r8152 *tp) in rtl8153_disable()
1035 static int rtl8152_set_speed(struct r8152 *tp, u8 autoneg, u16 speed, u8 duplex) in rtl8152_set_speed()
1105 static void rtl8152_up(struct r8152 *tp) in rtl8152_up()
1112 static void rtl8152_down(struct r8152 *tp) in rtl8152_down()
1120 static void rtl8153_up(struct r8152 *tp) in rtl8153_up()
1128 static void rtl8153_down(struct r8152 *tp) in rtl8153_down()
1137 static void rtl8153b_up(struct r8152 *tp) in rtl8153b_up()
1142 static void rtl8153b_down(struct r8152 *tp) in rtl8153b_down()
1147 static void r8152b_get_version(struct r8152 *tp) in r8152b_get_version()
1169 static void r8152b_enable_fc(struct r8152 *tp) in r8152b_enable_fc()
1177 static void rtl_tally_reset(struct r8152 *tp) in rtl_tally_reset()
1186 static void r8152b_init(struct r8152 *tp) in r8152b_init()
1228 static void r8153_init(struct r8152 *tp) in r8153_init()
1310 static void r8153b_init(struct r8152 *tp) in r8153b_init()
1364 static void rtl8152_unload(struct r8152 *tp) in rtl8152_unload()
1370 static void rtl8153_unload(struct r8152 *tp) in rtl8153_unload()
1375 static int rtl_ops_init(struct r8152 *tp) in rtl_ops_init()
1422 static int r8152_init_common(struct r8152 *tp) in r8152_init_common()
1485 struct r8152 *tp = (struct r8152 *)dev->dev_priv; in r8152_init()
1551 struct r8152 *tp = (struct r8152 *)dev->dev_priv; in r8152_halt()
1561 struct r8152 *tp = (struct r8152 *)dev->dev_priv; in r8152_write_hwaddr()
1587 struct r8152 *tp; in r8152_eth_probe()
1617 ss->dev_priv = calloc(1, sizeof(struct r8152)); in r8152_eth_probe()
1720 struct r8152 *tp = dev_get_priv(dev); in r8152_eth_start()
1729 struct r8152 *tp = dev_get_priv(dev); in r8152_eth_stop()
1738 struct r8152 *tp = dev_get_priv(dev); in r8152_eth_send()
1745 struct r8152 *tp = dev_get_priv(dev); in r8152_eth_recv()
1784 struct r8152 *tp = dev_get_priv(dev); in r8152_free_pkt()
1796 struct r8152 *tp = dev_get_priv(dev); in r8152_write_hwaddr()
1814 struct r8152 *tp = dev_get_priv(dev); in r8152_read_rom_hwaddr()
1825 struct r8152 *tp = dev_get_priv(dev); in r8152_eth_probe()
1863 .priv_auto = sizeof(struct r8152),