Lines Matching defs:r8152

39 #define MODULENAME "r8152"
766 struct r8152;
771 struct r8152 *context;
779 struct r8152 *context;
786 struct r8152 {
807 void (*init)(struct r8152 *tp);
808 int (*enable)(struct r8152 *tp);
809 void (*disable)(struct r8152 *tp);
810 void (*up)(struct r8152 *tp);
811 void (*down)(struct r8152 *tp);
812 void (*unload)(struct r8152 *tp);
813 int (*eee_get)(struct r8152 *tp, struct ethtool_eee *eee);
814 int (*eee_set)(struct r8152 *tp, struct ethtool_eee *eee);
815 bool (*in_nway)(struct r8152 *tp);
816 void (*hw_phy_cfg)(struct r8152 *tp);
817 void (*autosuspend_en)(struct r8152 *tp, bool enable);
844 int (*pre_fw)(struct r8152 *tp);
845 int (*post_fw)(struct r8152 *tp);
1034 int get_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data)
1057 int set_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data)
1075 static void rtl_set_unplug(struct r8152 *tp)
1083 static int generic_ocp_read(struct r8152 *tp, u16 index, u16 size,
1126 static int generic_ocp_write(struct r8152 *tp, u16 index, u16 byteen,
1197 int pla_ocp_read(struct r8152 *tp, u16 index, u16 size, void *data)
1203 int pla_ocp_write(struct r8152 *tp, u16 index, u16 byteen, u16 size, void *data)
1209 int usb_ocp_write(struct r8152 *tp, u16 index, u16 byteen, u16 size, void *data)
1214 static u32 ocp_read_dword(struct r8152 *tp, u16 type, u16 index)
1223 static void ocp_write_dword(struct r8152 *tp, u16 type, u16 index, u32 data)
1230 static u16 ocp_read_word(struct r8152 *tp, u16 type, u16 index)
1249 static void ocp_write_word(struct r8152 *tp, u16 type, u16 index, u32 data)
1270 static u8 ocp_read_byte(struct r8152 *tp, u16 type, u16 index)
1287 static void ocp_write_byte(struct r8152 *tp, u16 type, u16 index, u32 data)
1308 static u16 ocp_reg_read(struct r8152 *tp, u16 addr)
1322 static void ocp_reg_write(struct r8152 *tp, u16 addr, u16 data)
1336 static inline void r8152_mdio_write(struct r8152 *tp, u32 reg_addr, u32 value)
1341 static inline int r8152_mdio_read(struct r8152 *tp, u32 reg_addr)
1346 static void sram_write(struct r8152 *tp, u16 addr, u16 data)
1352 static u16 sram_read(struct r8152 *tp, u16 addr)
1360 struct r8152 *tp = netdev_priv(netdev);
1377 struct r8152 *tp = netdev_priv(netdev);
1389 r8152_submit_rx(struct r8152 *tp, struct rx_agg *agg, gfp_t mem_flags);
1393 struct r8152 *tp = netdev_priv(netdev);
1423 static int vendor_mac_passthru_addr_read(struct r8152 *tp, struct sockaddr *sa)
1500 static int determine_ethernet_addr(struct r8152 *tp, struct sockaddr *sa)
1537 static int set_ethernet_addr(struct r8152 *tp)
1560 struct r8152 *tp;
1620 struct r8152 *tp;
1664 struct r8152 *tp;
1737 static void free_rx_agg(struct r8152 *tp, struct rx_agg *agg)
1748 static struct rx_agg *alloc_rx_agg(struct r8152 *tp, gfp_t mflags)
1789 static void free_all_mem(struct r8152 *tp)
1820 static int alloc_all_mem(struct r8152 *tp)
1895 static struct tx_agg *r8152_get_tx_agg(struct r8152 *tp)
1920 static void r8152_csum_workaround(struct r8152 *tp, struct sk_buff *skb,
1976 static int r8152_tx_csum(struct r8152 *tp, struct tx_desc *desc,
2061 static int r8152_tx_agg_fill(struct r8152 *tp, struct tx_agg *agg)
2160 static u8 r8152_rx_csum(struct r8152 *tp, struct rx_desc *rx_desc)
2189 static inline bool rx_count_exceed(struct r8152 *tp)
2199 static struct rx_agg *rtl_get_free_rx(struct r8152 *tp, gfp_t mflags)
2229 static int rx_bottom(struct r8152 *tp, int budget)
2378 static void tx_bottom(struct r8152 *tp)
2417 struct r8152 *tp;
2419 tp = (struct r8152 *)data;
2439 struct r8152 *tp = container_of(napi, struct r8152, napi);
2459 int r8152_submit_rx(struct r8152 *tp, struct rx_agg *agg, gfp_t mem_flags)
2494 static void rtl_drop_queued_tx(struct r8152 *tp)
2516 struct r8152 *tp = netdev_priv(netdev);
2525 struct r8152 *tp = netdev_priv(netdev);
2535 struct r8152 *tp = netdev_priv(netdev);
2597 struct r8152 *tp = netdev_priv(netdev);
2618 static void r8152b_reset_packet_filter(struct r8152 *tp)
2629 static void rtl8152_nic_reset(struct r8152 *tp)
2642 static void set_tx_qlen(struct r8152 *tp)
2650 static inline u8 rtl8152_get_speed(struct r8152 *tp)
2655 static void rtl_set_eee_plus(struct r8152 *tp)
2672 static void rxdy_gated_en(struct r8152 *tp, bool enable)
2684 static int rtl_start_rx(struct r8152 *tp)
2727 static int rtl_stop_rx(struct r8152 *tp)
2767 static inline void r8153b_rx_agg_chg_indicate(struct r8152 *tp)
2773 static int rtl_enable(struct r8152 *tp)
2797 static int rtl8152_enable(struct r8152 *tp)
2808 static void r8153_set_rx_early_timeout(struct r8152 *tp)
2837 static void r8153_set_rx_early_size(struct r8152 *tp)
2860 static int rtl8153_enable(struct r8152 *tp)
2884 static void rtl_disable(struct r8152 *tp)
2923 static void r8152_power_cut_en(struct r8152 *tp, bool enable)
2939 static void rtl_rx_vlan_en(struct r8152 *tp, bool enable)
2955 struct r8152 *tp = netdev_priv(dev);
2981 static u32 __rtl_get_wol(struct r8152 *tp)
3005 static void __rtl_set_wol(struct r8152 *tp, u32 wolopts)
3041 static void r8153_u1u2en(struct r8152 *tp, bool enable)
3053 static void r8153b_u1u2en(struct r8152 *tp, bool enable)
3066 static void r8153_u2p3en(struct r8152 *tp, bool enable)
3078 static void r8153b_ups_flags(struct r8152 *tp)
3150 static void r8153b_green_en(struct r8152 *tp, bool enable)
3171 static u16 r8153_phy_status(struct r8152 *tp, u16 desired)
3195 static void r8153b_ups_en(struct r8152 *tp, bool enable)
3247 static void r8153_power_cut_en(struct r8152 *tp, bool enable)
3263 static void r8153b_power_cut_en(struct r8152 *tp, bool enable)
3279 static void r8153_queue_wake(struct r8152 *tp, bool enable)
3299 static bool rtl_can_wakeup(struct r8152 *tp)
3306 static void rtl_runtime_suspend_enable(struct r8152 *tp, bool enable)
3335 static void rtl8153_runtime_enable(struct r8152 *tp, bool enable)
3359 static void rtl8153b_runtime_enable(struct r8152 *tp, bool enable)
3376 static void r8153_teredo_off(struct r8152 *tp)
3411 static void rtl_reset_bmu(struct r8152 *tp)
3423 static void rtl_clear_bp(struct r8152 *tp, u16 type)
3470 static int r8153_patch_request(struct r8152 *tp, bool request)
3497 static int r8153_pre_ram_code(struct r8152 *tp, u16 key_addr, u16 patch_key)
3510 static int r8153_post_ram_code(struct r8152 *tp, u16 key_addr)
3529 static bool rtl8152_is_fw_phy_nc_ok(struct r8152 *tp, struct fw_phy_nc *phy)
3605 static bool rtl8152_is_fw_mac_ok(struct r8152 *tp, struct fw_mac *mac)
3729 static long rtl8152_fw_verify_checksum(struct r8152 *tp,
3776 static long rtl8152_check_firmware(struct r8152 *tp, struct rtl_fw *rtl_fw)
3911 static void rtl8152_fw_phy_nc_apply(struct r8152 *tp, struct fw_phy_nc *phy)
3946 static void rtl8152_fw_mac_apply(struct r8152 *tp, struct fw_mac *mac)
4007 static void rtl8152_apply_firmware(struct r8152 *tp)
4063 static void rtl8152_release_firmware(struct r8152 *tp)
4073 static int rtl8152_request_firmware(struct r8152 *tp)
4104 static void r8152_aldps_en(struct r8152 *tp, bool enable)
4116 static inline void r8152_mmd_indirect(struct r8152 *tp, u16 dev, u16 reg)
4123 static u16 r8152_mmd_read(struct r8152 *tp, u16 dev, u16 reg)
4134 static void r8152_mmd_write(struct r8152 *tp, u16 dev, u16 reg, u16 data)
4141 static void r8152_eee_en(struct r8152 *tp, bool enable)
4172 static void r8153_eee_en(struct r8152 *tp, bool enable)
4194 static void rtl_eee_enable(struct r8152 *tp, bool enable)
4228 static void r8152b_enable_fc(struct r8152 *tp)
4239 static void rtl8152_disable(struct r8152 *tp)
4246 static void r8152b_hw_phy_cfg(struct r8152 *tp)
4256 static void wait_oob_link_list_ready(struct r8152 *tp)
4269 static void r8152b_exit_oob(struct r8152 *tp)
4335 static void r8152b_enter_oob(struct r8152 *tp)
4376 static int r8153_pre_firmware_1(struct r8152 *tp)
4392 static int r8153_post_firmware_1(struct r8152 *tp)
4404 static int r8153_pre_firmware_2(struct r8152 *tp)
4417 static int r8153_post_firmware_2(struct r8152 *tp)
4445 static int r8153_post_firmware_3(struct r8152 *tp)
4460 static int r8153b_pre_firmware_1(struct r8152 *tp)
4469 static int r8153b_post_firmware_1(struct r8152 *tp)
4496 static void r8153_aldps_en(struct r8152 *tp, bool enable)
4519 static void r8153_hw_phy_cfg(struct r8152 *tp)
4581 static u32 r8152_efuse_read(struct r8152 *tp, u8 addr)
4593 static void r8153b_hw_phy_cfg(struct r8152 *tp)
4674 static void r8153_first_init(struct r8152 *tp)
4724 static void r8153_enter_oob(struct r8152 *tp)
4786 static void rtl8153_disable(struct r8152 *tp)
4794 static int rtl8152_set_speed(struct r8152 *tp, u8 autoneg, u32 speed, u8 duplex,
4920 static void rtl8152_up(struct r8152 *tp)
4930 static void rtl8152_down(struct r8152 *tp)
4943 static void rtl8153_up(struct r8152 *tp)
4983 static void rtl8153_down(struct r8152 *tp)
5004 static void rtl8153b_up(struct r8152 *tp)
5028 static void rtl8153b_down(struct r8152 *tp)
5049 static bool rtl8152_in_nway(struct r8152 *tp)
5065 static bool rtl8153_in_nway(struct r8152 *tp)
5075 static void set_carrier(struct r8152 *tp)
5114 struct r8152 *tp = container_of(work, struct r8152, schedule.work);
5152 struct r8152 *tp = container_of(work, struct r8152, hw_phy_work.work);
5187 struct r8152 *tp = container_of(nb, struct r8152, pm_notifier);
5212 struct r8152 *tp = netdev_priv(netdev);
5267 struct r8152 *tp = netdev_priv(netdev);
5300 static void rtl_tally_reset(struct r8152 *tp)
5309 static void r8152b_init(struct r8152 *tp)
5352 static void r8153_init(struct r8152 *tp)
5497 static void r8153b_init(struct r8152 *tp)
5585 struct r8152 *tp = usb_get_intfdata(intf);
5612 struct r8152 *tp = usb_get_intfdata(intf);
5650 static bool delay_autosuspend(struct r8152 *tp)
5673 static int rtl8152_runtime_resume(struct r8152 *tp)
5712 static int rtl8152_system_resume(struct r8152 *tp)
5728 static int rtl8152_runtime_suspend(struct r8152 *tp)
5783 static int rtl8152_system_suspend(struct r8152 *tp)
5807 struct r8152 *tp = usb_get_intfdata(intf);
5824 struct r8152 *tp = usb_get_intfdata(intf);
5841 struct r8152 *tp = usb_get_intfdata(intf);
5852 struct r8152 *tp = netdev_priv(dev);
5872 struct r8152 *tp = netdev_priv(dev);
5900 struct r8152 *tp = netdev_priv(dev);
5907 struct r8152 *tp = netdev_priv(dev);
5915 struct r8152 *tp = netdev_priv(netdev);
5929 struct r8152 *tp = netdev_priv(netdev);
5954 struct r8152 *tp = netdev_priv(dev);
6034 struct r8152 *tp = netdev_priv(dev);
6068 static int r8152_get_eee(struct r8152 *tp, struct ethtool_eee *eee)
6091 static int r8152_set_eee(struct r8152 *tp, struct ethtool_eee *eee)
6103 static int r8153_get_eee(struct r8152 *tp, struct ethtool_eee *eee)
6129 struct r8152 *tp = netdev_priv(net);
6151 struct r8152 *tp = netdev_priv(net);
6174 struct r8152 *tp = netdev_priv(dev);
6196 struct r8152 *tp = netdev_priv(netdev);
6215 struct r8152 *tp = netdev_priv(netdev);
6262 struct r8152 *tp = netdev_priv(netdev);
6279 struct r8152 *tp = netdev_priv(netdev);
6313 struct r8152 *tp = netdev_priv(netdev);
6322 struct r8152 *tp = netdev_priv(netdev);
6368 struct r8152 *tp = netdev_priv(netdev);
6412 struct r8152 *tp = netdev_priv(dev);
6463 static void rtl8152_unload(struct r8152 *tp)
6472 static void rtl8153_unload(struct r8152 *tp)
6480 static void rtl8153b_unload(struct r8152 *tp)
6488 static int rtl_ops_init(struct r8152 *tp)
6573 static int rtl_fw_init(struct r8152 *tp)
6669 struct r8152 *tp;
6685 netdev = alloc_etherdev(sizeof(struct r8152));
6840 struct r8152 *tp = usb_get_intfdata(intf);