H A D | r8152.c | 33 #define MODULENAME "r8152" 560 struct r8152; 565 struct r8152 *context; 573 struct r8152 *context; 580 struct r8152 { struct 597 void (*init)(struct r8152 *); 598 int (*enable)(struct r8152 *); 599 void (*disable)(struct r8152 *); 600 void (*up)(struct r8152 *); 601 void (*down)(struct r8152 *); 602 void (*unload)(struct r8152 *); 603 int (*eee_get)(struct r8152 *, struct ethtool_eee *); 604 int (*eee_set)(struct r8152 *, struct ethtool_eee *); 643 int get_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) get_registers() 663 int set_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) set_registers() 681 static int generic_ocp_read(struct r8152 *tp, u16 index, u16 size, generic_ocp_read() 724 static int generic_ocp_write(struct r8152 *tp, u16 index, u16 byteen, generic_ocp_write() 795 int pla_ocp_read(struct r8152 *tp, u16 index, u16 size, void *data) pla_ocp_read() 801 int pla_ocp_write(struct r8152 *tp, u16 index, u16 byteen, u16 size, void *data) pla_ocp_write() 807 int usb_ocp_read(struct r8152 *tp, u16 index, u16 size, void *data) usb_ocp_read() 813 int usb_ocp_write(struct r8152 *tp, u16 index, u16 byteen, u16 size, void *data) usb_ocp_write() 818 static u32 ocp_read_dword(struct r8152 *tp, u16 type, u16 index) ocp_read_dword() 827 static void ocp_write_dword(struct r8152 *tp, u16 type, u16 index, u32 data) ocp_write_dword() 834 static u16 ocp_read_word(struct r8152 *tp, u16 type, u16 index) ocp_read_word() 851 static void ocp_write_word(struct r8152 *tp, u16 type, u16 index, u32 data) ocp_write_word() 872 static u8 ocp_read_byte(struct r8152 *tp, u16 type, u16 index) ocp_read_byte() 889 static void ocp_write_byte(struct r8152 *tp, u16 type, u16 index, u32 data) ocp_write_byte() 910 static u16 ocp_reg_read(struct r8152 *tp, u16 addr) ocp_reg_read() 924 static void ocp_reg_write(struct r8152 *tp, u16 addr, u16 data) ocp_reg_write() 938 static inline void r8152_mdio_write(struct r8152 *tp, u32 reg_addr, u32 value) r8152_mdio_write() 943 static inline int r8152_mdio_read(struct r8152 *tp, u32 reg_addr) r8152_mdio_read() 948 static void sram_write(struct r8152 *tp, u16 addr, u16 data) sram_write() 956 struct r8152 *tp = netdev_priv(netdev); read_mii_word() 973 struct r8152 *tp = netdev_priv(netdev); write_mii_word() 985 r8152_submit_rx(struct r8152 *tp, struct rx_agg *agg, gfp_t mem_flags); 989 struct r8152 *tp = netdev_priv(netdev); rtl8152_set_mac_address() 1015 static int set_ethernet_addr(struct r8152 *tp) set_ethernet_addr() 1051 struct r8152 *tp; read_bulk_callback() 1110 struct r8152 *tp; write_bulk_callback() 1153 struct r8152 *tp; intr_callback() 1222 static void free_all_mem(struct r8152 *tp) free_all_mem() 1251 static int alloc_all_mem(struct r8152 *tp) alloc_all_mem() 1343 static struct tx_agg *r8152_get_tx_agg(struct r8152 *tp) r8152_get_tx_agg() 1368 static void r8152_csum_workaround(struct r8152 *tp, struct sk_buff *skb, r8152_csum_workaround() 1449 static int r8152_tx_csum(struct r8152 *tp, struct tx_desc *desc, r8152_tx_csum() 1533 static int r8152_tx_agg_fill(struct r8152 *tp, struct tx_agg *agg) r8152_tx_agg_fill() 1629 static u8 r8152_rx_csum(struct r8152 *tp, struct rx_desc *rx_desc) r8152_rx_csum() 1660 static int rx_bottom(struct r8152 *tp, int budget) rx_bottom() 1773 static void tx_bottom(struct r8152 *tp) tx_bottom() 1810 static void bottom_half(struct r8152 *tp) bottom_half() 1830 struct r8152 *tp = container_of(napi, struct r8152, napi); r8152_poll() 1846 int r8152_submit_rx(struct r8152 *tp, struct rx_agg *agg, gfp_t mem_flags) r8152_submit_rx() 1881 static void rtl_drop_queued_tx(struct r8152 *tp) rtl_drop_queued_tx() 1903 struct r8152 *tp = netdev_priv(netdev); rtl8152_tx_timeout() 1913 struct r8152 *tp = netdev_priv(netdev); rtl8152_set_rx_mode() 1923 struct r8152 *tp = netdev_priv(netdev); _rtl8152_set_rx_mode() 1986 struct r8152 *tp = netdev_priv(netdev); rtl8152_start_xmit() 2007 static void r8152b_reset_packet_filter(struct r8152 *tp) r8152b_reset_packet_filter() 2018 static void rtl8152_nic_reset(struct r8152 *tp) rtl8152_nic_reset() 2031 static void set_tx_qlen(struct r8152 *tp) set_tx_qlen() 2039 static inline u8 rtl8152_get_speed(struct r8152 *tp) rtl8152_get_speed() 2044 static void rtl_set_eee_plus(struct r8152 *tp) rtl_set_eee_plus() 2061 static void rxdy_gated_en(struct r8152 *tp, bool enable) rxdy_gated_en() 2073 static int rtl_start_rx(struct r8152 *tp) rtl_start_rx() 2109 static int rtl_stop_rx(struct r8152 *tp) rtl_stop_rx() 2122 static int rtl_enable(struct r8152 *tp) rtl_enable() 2137 static int rtl8152_enable(struct r8152 *tp) rtl8152_enable() 2148 static void r8153_set_rx_early_timeout(struct r8152 *tp) r8153_set_rx_early_timeout() 2155 static void r8153_set_rx_early_size(struct r8152 *tp) r8153_set_rx_early_size() 2163 static int rtl8153_enable(struct r8152 *tp) rtl8153_enable() 2176 static void rtl_disable(struct r8152 *tp) rtl_disable() 2215 static void r8152_power_cut_en(struct r8152 *tp, bool enable) r8152_power_cut_en() 2231 static void rtl_rx_vlan_en(struct r8152 *tp, bool enable) rtl_rx_vlan_en() 2247 struct r8152 *tp = netdev_priv(dev); rtl8152_set_features() 2273 static u32 __rtl_get_wol(struct r8152 *tp) __rtl_get_wol() 2301 static void __rtl_set_wol(struct r8152 *tp, u32 wolopts) __rtl_set_wol() 2339 static void rtl_runtime_suspend_enable(struct r8152 *tp, bool enable) rtl_runtime_suspend_enable() 2358 static void rtl_phy_reset(struct r8152 *tp) rtl_phy_reset() 2381 static void r8153_teredo_off(struct r8152 *tp) r8153_teredo_off() 2394 static void r8152b_disable_aldps(struct r8152 *tp) r8152b_disable_aldps() 2400 static inline void r8152b_enable_aldps(struct r8152 *tp) r8152b_enable_aldps() 2406 static void rtl8152_disable(struct r8152 *tp) rtl8152_disable() 2413 static void r8152b_hw_phy_cfg(struct r8152 *tp) r8152b_hw_phy_cfg() 2426 static void r8152b_exit_oob(struct r8152 *tp) r8152b_exit_oob() 2505 static void r8152b_enter_oob(struct r8152 *tp) r8152b_enter_oob() 2557 static void r8153_hw_phy_cfg(struct r8152 *tp) r8153_hw_phy_cfg() 2601 static void r8153_u1u2en(struct r8152 *tp, bool enable) r8153_u1u2en() 2613 static void r8153_u2p3en(struct r8152 *tp, bool enable) r8153_u2p3en() 2625 static void r8153_power_cut_en(struct r8152 *tp, bool enable) r8153_power_cut_en() 2641 static void r8153_first_init(struct r8152 *tp) r8153_first_init() 2707 static void r8153_enter_oob(struct r8152 *tp) r8153_enter_oob() 2759 static void r8153_disable_aldps(struct r8152 *tp) r8153_disable_aldps() 2769 static void r8153_enable_aldps(struct r8152 *tp) r8153_enable_aldps() 2778 static void rtl8153_disable(struct r8152 *tp) rtl8153_disable() 2785 static int rtl8152_set_speed(struct r8152 *tp, u8 autoneg, u16 speed, u8 duplex) rtl8152_set_speed() 2875 static void rtl8152_up(struct r8152 *tp) rtl8152_up() 2885 static void rtl8152_down(struct r8152 *tp) rtl8152_down() 2898 static void rtl8153_up(struct r8152 *tp) rtl8153_up() 2908 static void rtl8153_down(struct r8152 *tp) rtl8153_down() 2922 static void set_carrier(struct r8152 *tp) set_carrier() 2949 struct r8152 *tp = container_of(work, struct r8152, schedule.work); rtl_work_func_t() 2992 struct r8152 *tp = netdev_priv(netdev); rtl8152_open() 3039 struct r8152 *tp = netdev_priv(netdev); rtl8152_close() 3067 static inline void r8152_mmd_indirect(struct r8152 *tp, u16 dev, u16 reg) r8152_mmd_indirect() 3074 static u16 r8152_mmd_read(struct r8152 *tp, u16 dev, u16 reg) r8152_mmd_read() 3085 static void r8152_mmd_write(struct r8152 *tp, u16 dev, u16 reg, u16 data) r8152_mmd_write() 3092 static void r8152_eee_en(struct r8152 *tp, bool enable) r8152_eee_en() 3123 static void r8152b_enable_eee(struct r8152 *tp) r8152b_enable_eee() 3129 static void r8153_eee_en(struct r8152 *tp, bool enable) r8153_eee_en() 3149 static void r8153_enable_eee(struct r8152 *tp) r8153_enable_eee() 3155 static void r8152b_enable_fc(struct r8152 *tp) r8152b_enable_fc() 3164 static void rtl_tally_reset(struct r8152 *tp) rtl_tally_reset() 3173 static void r8152b_init(struct r8152 *tp) r8152b_init() 3212 static void r8153_init(struct r8152 *tp) r8153_init() 3308 struct r8152 *tp = usb_get_intfdata(intf); rtl8152_suspend() 3346 struct r8152 *tp = usb_get_intfdata(intf); rtl8152_resume() 3385 struct r8152 *tp = netdev_priv(dev); rtl8152_get_wol() 3402 struct r8152 *tp = netdev_priv(dev); rtl8152_set_wol() 3424 struct r8152 *tp = netdev_priv(dev); rtl8152_get_msglevel() 3431 struct r8152 *tp = netdev_priv(dev); rtl8152_set_msglevel() 3439 struct r8152 *tp = netdev_priv(netdev); rtl8152_get_drvinfo() 3449 struct r8152 *tp = netdev_priv(netdev); rtl8152_get_settings() 3473 struct r8152 *tp = netdev_priv(dev); rtl8152_set_settings() 3521 struct r8152 *tp = netdev_priv(dev); rtl8152_get_ethtool_stats() 3555 static int r8152_get_eee(struct r8152 *tp, struct ethtool_eee *eee) r8152_get_eee() 3581 static int r8152_set_eee(struct r8152 *tp, struct ethtool_eee *eee) r8152_set_eee() 3595 static int r8153_get_eee(struct r8152 *tp, struct ethtool_eee *eee) r8153_get_eee() 3621 static int r8153_set_eee(struct r8152 *tp, struct ethtool_eee *eee) r8153_set_eee() 3638 struct r8152 *tp = netdev_priv(net); rtl_ethtool_get_eee() 3660 struct r8152 *tp = netdev_priv(net); rtl_ethtool_set_eee() 3683 struct r8152 *tp = netdev_priv(dev); rtl8152_nway_reset() 3705 struct r8152 *tp = netdev_priv(netdev); rtl8152_get_coalesce() 3723 struct r8152 *tp = netdev_priv(netdev); rtl8152_set_coalesce() 3778 struct r8152 *tp = netdev_priv(netdev); rtl8152_ioctl() 3822 struct r8152 *tp = netdev_priv(dev); rtl8152_change_mtu() 3868 static void r8152b_get_version(struct r8152 *tp) r8152b_get_version() 3902 static void rtl8152_unload(struct r8152 *tp) rtl8152_unload() 3911 static void rtl8153_unload(struct r8152 *tp) rtl8153_unload() 3919 static int rtl_ops_init(struct r8152 *tp) rtl_ops_init() 3963 struct r8152 *tp; rtl8152_probe() 3973 netdev = alloc_etherdev(sizeof(struct r8152)); rtl8152_probe() 4066 struct r8152 *tp = usb_get_intfdata(intf); rtl8152_disconnect()
|