Lines Matching defs:r8152
29 #include <linux/usb/r8152.h>
41 #define MODULENAME "r8152"
847 struct r8152;
852 struct r8152 *context;
860 struct r8152 *context;
867 struct r8152 {
888 void (*init)(struct r8152 *tp);
889 int (*enable)(struct r8152 *tp);
890 void (*disable)(struct r8152 *tp);
891 void (*up)(struct r8152 *tp);
892 void (*down)(struct r8152 *tp);
893 void (*unload)(struct r8152 *tp);
894 int (*eee_get)(struct r8152 *tp, struct ethtool_eee *eee);
895 int (*eee_set)(struct r8152 *tp, struct ethtool_eee *eee);
896 bool (*in_nway)(struct r8152 *tp);
897 void (*hw_phy_cfg)(struct r8152 *tp);
898 void (*autosuspend_en)(struct r8152 *tp, bool enable);
899 void (*change_mtu)(struct r8152 *tp);
927 int (*pre_fw)(struct r8152 *tp);
928 int (*post_fw)(struct r8152 *tp);
1214 static void rtl_set_inaccessible(struct r8152 *tp)
1220 static void rtl_set_accessible(struct r8152 *tp)
1227 int r8152_control_msg(struct r8152 *tp, unsigned int pipe, __u8 request,
1299 int get_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data)
1323 int set_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data)
1341 static void rtl_set_unplug(struct r8152 *tp)
1347 static int generic_ocp_read(struct r8152 *tp, u16 index, u16 size,
1390 static int generic_ocp_write(struct r8152 *tp, u16 index, u16 byteen,
1468 int pla_ocp_read(struct r8152 *tp, u16 index, u16 size, void *data)
1474 int pla_ocp_write(struct r8152 *tp, u16 index, u16 byteen, u16 size, void *data)
1480 int usb_ocp_write(struct r8152 *tp, u16 index, u16 byteen, u16 size, void *data)
1485 static u32 ocp_read_dword(struct r8152 *tp, u16 type, u16 index)
1494 static void ocp_write_dword(struct r8152 *tp, u16 type, u16 index, u32 data)
1501 static u16 ocp_read_word(struct r8152 *tp, u16 type, u16 index)
1520 static void ocp_write_word(struct r8152 *tp, u16 type, u16 index, u32 data)
1541 static u8 ocp_read_byte(struct r8152 *tp, u16 type, u16 index)
1558 static void ocp_write_byte(struct r8152 *tp, u16 type, u16 index, u32 data)
1579 static u16 ocp_reg_read(struct r8152 *tp, u16 addr)
1593 static void ocp_reg_write(struct r8152 *tp, u16 addr, u16 data)
1607 static inline void r8152_mdio_write(struct r8152 *tp, u32 reg_addr, u32 value)
1612 static inline int r8152_mdio_read(struct r8152 *tp, u32 reg_addr)
1617 static void sram_write(struct r8152 *tp, u16 addr, u16 data)
1623 static u16 sram_read(struct r8152 *tp, u16 addr)
1631 struct r8152 *tp = netdev_priv(netdev);
1648 struct r8152 *tp = netdev_priv(netdev);
1660 r8152_submit_rx(struct r8152 *tp, struct rx_agg *agg, gfp_t mem_flags);
1663 rtl8152_set_speed(struct r8152 *tp, u8 autoneg, u32 speed, u8 duplex,
1669 struct r8152 *tp = netdev_priv(netdev);
1707 static int vendor_mac_passthru_addr_read(struct r8152 *tp, struct sockaddr *sa)
1784 static int determine_ethernet_addr(struct r8152 *tp, struct sockaddr *sa)
1821 static int set_ethernet_addr(struct r8152 *tp, bool in_resume)
1844 struct r8152 *tp;
1912 struct r8152 *tp;
1956 struct r8152 *tp;
2029 static void free_rx_agg(struct r8152 *tp, struct rx_agg *agg)
2040 static struct rx_agg *alloc_rx_agg(struct r8152 *tp, gfp_t mflags)
2081 static void free_all_mem(struct r8152 *tp)
2112 static int alloc_all_mem(struct r8152 *tp)
2187 static struct tx_agg *r8152_get_tx_agg(struct r8152 *tp)
2212 static void r8152_csum_workaround(struct r8152 *tp, struct sk_buff *skb,
2268 static int r8152_tx_csum(struct r8152 *tp, struct tx_desc *desc,
2356 static int r8152_tx_agg_fill(struct r8152 *tp, struct tx_agg *agg)
2452 static u8 r8152_rx_csum(struct r8152 *tp, struct rx_desc *rx_desc)
2481 static inline bool rx_count_exceed(struct r8152 *tp)
2491 static struct rx_agg *rtl_get_free_rx(struct r8152 *tp, gfp_t mflags)
2521 static int rx_bottom(struct r8152 *tp, int budget)
2679 static void tx_bottom(struct r8152 *tp)
2718 struct r8152 *tp = from_tasklet(tp, t, tx_tl);
2738 struct r8152 *tp = container_of(napi, struct r8152, napi);
2758 int r8152_submit_rx(struct r8152 *tp, struct rx_agg *agg, gfp_t mem_flags)
2793 static void rtl_drop_queued_tx(struct r8152 *tp)
2815 struct r8152 *tp = netdev_priv(netdev);
2824 struct r8152 *tp = netdev_priv(netdev);
2834 struct r8152 *tp = netdev_priv(netdev);
2900 struct r8152 *tp = netdev_priv(netdev);
2921 static void r8152b_reset_packet_filter(struct r8152 *tp)
2932 static void rtl8152_nic_reset(struct r8152 *tp)
2980 static void set_tx_qlen(struct r8152 *tp)
2985 static inline u16 rtl8152_get_speed(struct r8152 *tp)
2990 static void rtl_eee_plus_en(struct r8152 *tp, bool enable)
3002 static void rtl_set_eee_plus(struct r8152 *tp)
3010 static void rxdy_gated_en(struct r8152 *tp, bool enable)
3022 static int rtl_start_rx(struct r8152 *tp)
3065 static int rtl_stop_rx(struct r8152 *tp)
3105 static void rtl_set_ifg(struct r8152 *tp, u16 speed)
3128 static inline void r8153b_rx_agg_chg_indicate(struct r8152 *tp)
3134 static int rtl_enable(struct r8152 *tp)
3163 static int rtl8152_enable(struct r8152 *tp)
3174 static void r8153_set_rx_early_timeout(struct r8152 *tp)
3215 static void r8153_set_rx_early_size(struct r8152 *tp)
3248 static int rtl8153_enable(struct r8152 *tp)
3279 static void rtl_disable(struct r8152 *tp)
3322 static void r8152_power_cut_en(struct r8152 *tp, bool enable)
3338 static void rtl_rx_vlan_en(struct r8152 *tp, bool enable)
3382 struct r8152 *tp = netdev_priv(dev);
3408 static u32 __rtl_get_wol(struct r8152 *tp)
3432 static void __rtl_set_wol(struct r8152 *tp, u32 wolopts)
3468 static void r8153_mac_clk_speed_down(struct r8152 *tp, bool enable)
3481 static void r8156_mac_clk_spd(struct r8152 *tp, bool enable)
3502 static void r8153_u1u2en(struct r8152 *tp, bool enable)
3514 static void r8153b_u1u2en(struct r8152 *tp, bool enable)
3527 static void r8153_u2p3en(struct r8152 *tp, bool enable)
3539 static void r8153b_ups_flags(struct r8152 *tp)
3614 static void r8156_ups_flags(struct r8152 *tp)
3696 static void rtl_green_en(struct r8152 *tp, bool enable)
3710 static void r8153b_green_en(struct r8152 *tp, bool enable)
3725 static u16 r8153_phy_status(struct r8152 *tp, u16 desired)
3749 static void r8153b_ups_en(struct r8152 *tp, bool enable)
3790 static void r8153c_ups_en(struct r8152 *tp, bool enable)
3840 static void r8156_ups_en(struct r8152 *tp, bool enable)
3881 static void r8153_power_cut_en(struct r8152 *tp, bool enable)
3897 static void r8153b_power_cut_en(struct r8152 *tp, bool enable)
3913 static void r8153_queue_wake(struct r8152 *tp, bool enable)
3933 static bool rtl_can_wakeup(struct r8152 *tp)
3940 static void rtl_runtime_suspend_enable(struct r8152 *tp, bool enable)
3969 static void rtl8153_runtime_enable(struct r8152 *tp, bool enable)
3993 static void rtl8153b_runtime_enable(struct r8152 *tp, bool enable)
4010 static void rtl8153c_runtime_enable(struct r8152 *tp, bool enable)
4026 static void rtl8156_runtime_enable(struct r8152 *tp, bool enable)
4042 static void r8153_teredo_off(struct r8152 *tp)
4082 static void rtl_reset_bmu(struct r8152 *tp)
4094 static void rtl_clear_bp(struct r8152 *tp, u16 type)
4138 static inline void rtl_reset_ocp_base(struct r8152 *tp)
4143 static int rtl_phy_patch_request(struct r8152 *tp, bool request, bool wait)
4180 static void rtl_patch_key_set(struct r8152 *tp, u16 key_addr, u16 patch_key)
4201 rtl_pre_ram_code(struct r8152 *tp, u16 key_addr, u16 patch_key, bool wait)
4211 static int rtl_post_ram_code(struct r8152 *tp, u16 key_addr, bool wait)
4220 static bool rtl8152_is_fw_phy_speed_up_ok(struct r8152 *tp, struct fw_phy_speed_up *phy)
4270 static bool rtl8152_is_fw_phy_ver_ok(struct r8152 *tp, struct fw_phy_ver *ver)
4300 static bool rtl8152_is_fw_phy_fixup_ok(struct r8152 *tp, struct fw_phy_fixup *fix)
4331 static bool rtl8152_is_fw_phy_union_ok(struct r8152 *tp, struct fw_phy_union *phy)
4376 static bool rtl8152_is_fw_phy_nc_ok(struct r8152 *tp, struct fw_phy_nc *phy)
4452 static bool rtl8152_is_fw_mac_ok(struct r8152 *tp, struct fw_mac *mac)
4592 static long rtl8152_fw_verify_checksum(struct r8152 *tp,
4639 static long rtl8152_check_firmware(struct r8152 *tp, struct rtl_fw *rtl_fw)
4923 static void rtl_ram_code_speed_up(struct r8152 *tp, struct fw_phy_speed_up *phy, bool wait)
4985 static int rtl8152_fw_phy_ver(struct r8152 *tp, struct fw_phy_ver *phy_ver)
5006 static void rtl8152_fw_phy_fixup(struct r8152 *tp, struct fw_phy_fixup *fix)
5037 static void rtl8152_fw_phy_union_apply(struct r8152 *tp, struct fw_phy_union *phy)
5069 static void rtl8152_fw_phy_nc_apply(struct r8152 *tp, struct fw_phy_nc *phy)
5106 static void rtl8152_fw_mac_apply(struct r8152 *tp, struct fw_mac *mac)
5167 static void rtl8152_apply_firmware(struct r8152 *tp, bool power_cut)
5246 static void rtl8152_release_firmware(struct r8152 *tp)
5256 static int rtl8152_request_firmware(struct r8152 *tp)
5287 static void r8152_aldps_en(struct r8152 *tp, bool enable)
5299 static inline void r8152_mmd_indirect(struct r8152 *tp, u16 dev, u16 reg)
5306 static u16 r8152_mmd_read(struct r8152 *tp, u16 dev, u16 reg)
5317 static void r8152_mmd_write(struct r8152 *tp, u16 dev, u16 reg, u16 data)
5324 static void r8152_eee_en(struct r8152 *tp, bool enable)
5355 static void r8153_eee_en(struct r8152 *tp, bool enable)
5377 static void r8156_eee_en(struct r8152 *tp, bool enable)
5393 static void rtl_eee_enable(struct r8152 *tp, bool enable)
5441 static void r8152b_enable_fc(struct r8152 *tp)
5452 static void rtl8152_disable(struct r8152 *tp)
5459 static void r8152b_hw_phy_cfg(struct r8152 *tp)
5469 static void wait_oob_link_list_ready(struct r8152 *tp)
5484 static void r8156b_wait_loading_flash(struct r8152 *tp)
5500 static void r8152b_exit_oob(struct r8152 *tp)
5566 static void r8152b_enter_oob(struct r8152 *tp)
5607 static int r8153_pre_firmware_1(struct r8152 *tp)
5625 static int r8153_post_firmware_1(struct r8152 *tp)
5637 static int r8153_pre_firmware_2(struct r8152 *tp)
5650 static int r8153_post_firmware_2(struct r8152 *tp)
5678 static int r8153_post_firmware_3(struct r8152 *tp)
5693 static int r8153b_pre_firmware_1(struct r8152 *tp)
5702 static int r8153b_post_firmware_1(struct r8152 *tp)
5729 static int r8153c_post_firmware_1(struct r8152 *tp)
5744 static int r8156a_post_firmware_1(struct r8152 *tp)
5759 static void r8153_aldps_en(struct r8152 *tp, bool enable)
5784 static void r8153_hw_phy_cfg(struct r8152 *tp)
5846 static u32 r8152_efuse_read(struct r8152 *tp, u8 addr)
5858 static void r8153b_hw_phy_cfg(struct r8152 *tp)
5963 static void r8153c_hw_phy_cfg(struct r8152 *tp)
5970 static void rtl8153_change_mtu(struct r8152 *tp)
5976 static void r8153_first_init(struct r8152 *tp)
6024 static void r8153_enter_oob(struct r8152 *tp)
6096 static void rtl8153_disable(struct r8152 *tp)
6104 static u32 fc_pause_on_auto(struct r8152 *tp)
6109 static u32 fc_pause_off_auto(struct r8152 *tp)
6114 static void r8156_fc_parameter(struct r8152 *tp)
6123 static int rtl8156_enable(struct r8152 *tp)
6173 static void rtl8156_disable(struct r8152 *tp)
6181 static int rtl8156b_enable(struct r8152 *tp)
6229 static int rtl8152_set_speed(struct r8152 *tp, u8 autoneg, u32 speed, u8 duplex,
6370 static void rtl8152_up(struct r8152 *tp)
6380 static void rtl8152_down(struct r8152 *tp)
6393 static void rtl8153_up(struct r8152 *tp)
6433 static void rtl8153_down(struct r8152 *tp)
6454 static void rtl8153b_up(struct r8152 *tp)
6478 static void rtl8153b_down(struct r8152 *tp)
6499 static void rtl8153c_change_mtu(struct r8152 *tp)
6515 static void rtl8153c_up(struct r8152 *tp)
6582 static void rtl8156_change_mtu(struct r8152 *tp)
6596 static void rtl8156_up(struct r8152 *tp)
6669 static void rtl8156_down(struct r8152 *tp)
6726 static bool rtl8152_in_nway(struct r8152 *tp)
6742 static bool rtl8153_in_nway(struct r8152 *tp)
6752 static void r8156_mdio_force_mode(struct r8152 *tp)
6767 static void set_carrier(struct r8152 *tp)
6806 struct r8152 *tp = container_of(work, struct r8152, schedule.work);
6848 struct r8152 *tp = container_of(work, struct r8152, hw_phy_work.work);
6883 struct r8152 *tp = container_of(nb, struct r8152, pm_notifier);
6908 struct r8152 *tp = netdev_priv(netdev);
6963 struct r8152 *tp = netdev_priv(netdev);
6996 static void rtl_tally_reset(struct r8152 *tp)
7005 static void r8152b_init(struct r8152 *tp)
7048 static void r8153_init(struct r8152 *tp)
7188 static void r8153b_init(struct r8152 *tp)
7270 static void r8153c_init(struct r8152 *tp)
7352 static void r8156_hw_phy_cfg(struct r8152 *tp)
7702 static void r8156b_hw_phy_cfg(struct r8152 *tp)
8119 static void r8156_init(struct r8152 *tp)
8215 static void r8156b_init(struct r8152 *tp)
8378 struct r8152 *tp = usb_get_intfdata(intf);
8409 struct r8152 *tp = usb_get_intfdata(intf);
8448 static bool delay_autosuspend(struct r8152 *tp)
8471 static int rtl8152_runtime_resume(struct r8152 *tp)
8510 static int rtl8152_system_resume(struct r8152 *tp)
8526 static int rtl8152_runtime_suspend(struct r8152 *tp)
8584 static int rtl8152_system_suspend(struct r8152 *tp)
8608 struct r8152 *tp = usb_get_intfdata(intf);
8625 struct r8152 *tp = usb_get_intfdata(intf);
8644 struct r8152 *tp = usb_get_intfdata(intf);
8656 struct r8152 *tp = netdev_priv(dev);
8676 struct r8152 *tp = netdev_priv(dev);
8704 struct r8152 *tp = netdev_priv(dev);
8711 struct r8152 *tp = netdev_priv(dev);
8719 struct r8152 *tp = netdev_priv(netdev);
8733 struct r8152 *tp = netdev_priv(netdev);
8774 struct r8152 *tp = netdev_priv(dev);
8858 struct r8152 *tp = netdev_priv(dev);
8892 static int r8152_get_eee(struct r8152 *tp, struct ethtool_eee *eee)
8915 static int r8152_set_eee(struct r8152 *tp, struct ethtool_eee *eee)
8927 static int r8153_get_eee(struct r8152 *tp, struct ethtool_eee *eee)
8953 struct r8152 *tp = netdev_priv(net);
8980 struct r8152 *tp = netdev_priv(net);
9008 struct r8152 *tp = netdev_priv(dev);
9032 struct r8152 *tp = netdev_priv(netdev);
9053 struct r8152 *tp = netdev_priv(netdev);
9100 struct r8152 *tp = netdev_priv(netdev);
9117 struct r8152 *tp = netdev_priv(netdev);
9153 struct r8152 *tp = netdev_priv(netdev);
9164 struct r8152 *tp = netdev_priv(netdev);
9186 struct r8152 *tp = netdev_priv(netdev);
9223 struct r8152 *tp = netdev_priv(netdev);
9285 struct r8152 *tp = netdev_priv(netdev);
9329 struct r8152 *tp = netdev_priv(dev);
9389 static void rtl8152_unload(struct r8152 *tp)
9398 static void rtl8153_unload(struct r8152 *tp)
9406 static void rtl8153b_unload(struct r8152 *tp)
9414 static int rtl_ops_init(struct r8152 *tp)
9568 static int rtl_fw_init(struct r8152 *tp)
9743 struct r8152 *tp;
9748 netdev = alloc_etherdev(sizeof(struct r8152));
9964 "r8152 failed probe after %d tries; giving up\n", i);
9973 struct r8152 *tp = usb_get_intfdata(intf);