Home
last modified time | relevance | path

Searched refs:pnetdev (Results 1 – 25 of 47) sorted by relevance

12

/Linux-v5.10/drivers/staging/rtl8712/
Dos_intfs.c113 static int netdev_open(struct net_device *pnetdev);
114 static int netdev_close(struct net_device *pnetdev);
116 static void loadparam(struct _adapter *padapter, struct net_device *pnetdev) in loadparam() argument
163 static int r871x_net_set_mac_address(struct net_device *pnetdev, void *p) in r871x_net_set_mac_address() argument
165 struct _adapter *padapter = netdev_priv(pnetdev); in r871x_net_set_mac_address()
169 ether_addr_copy(pnetdev->dev_addr, addr->sa_data); in r871x_net_set_mac_address()
173 static struct net_device_stats *r871x_net_get_stats(struct net_device *pnetdev) in r871x_net_get_stats() argument
175 struct _adapter *padapter = netdev_priv(pnetdev); in r871x_net_get_stats()
200 struct net_device *pnetdev; in r8712_init_netdev() local
202 pnetdev = alloc_etherdev(sizeof(struct _adapter)); in r8712_init_netdev()
[all …]
Dusb_intf.c195 struct net_device *pnetdev = usb_get_intfdata(pusb_intf); in r871x_suspend() local
196 struct _adapter *padapter = netdev_priv(pnetdev); in r871x_suspend()
198 netdev_info(pnetdev, "Suspending...\n"); in r871x_suspend()
201 if (pnetdev->netdev_ops->ndo_stop) in r871x_suspend()
202 pnetdev->netdev_ops->ndo_stop(pnetdev); in r871x_suspend()
204 netif_device_detach(pnetdev); in r871x_suspend()
216 struct net_device *pnetdev = usb_get_intfdata(pusb_intf); in r871x_resume() local
217 struct _adapter *padapter = netdev_priv(pnetdev); in r871x_resume()
219 netdev_info(pnetdev, "Resuming...\n"); in r871x_resume()
220 netif_device_attach(pnetdev); in r871x_resume()
[all …]
Drecv_linux.c88 wireless_send_event(adapter->pnetdev, IWEVMICHAELMICFAILURE, &wrqu, in r8712_handle_tkip_mic_err()
112 skb->dev = adapter->pnetdev; in r8712_recv_indicatepkt()
113 skb->protocol = eth_type_trans(skb, adapter->pnetdev); in r8712_recv_indicatepkt()
Dmlme_linux.c84 netif_carrier_on(adapter->pnetdev); in r8712_os_indicate_connect()
94 netif_carrier_off(adapter->pnetdev); in r8712_os_indicate_disconnect()
157 wireless_send_event(adapter->pnetdev, IWEVCUSTOM, &wrqu, buff); in r8712_report_sec_ie()
Dhal_init.c48 register_netdev(adapter->pnetdev); in rtl871x_load_fw_cb()
72 dev_err(&adapter->pnetdev->dev, "r8712u: Bad fw->size of %zu\n", in rtl871x_open_fw()
321 netdev_info(padapter->pnetdev, "1 RCR=0x%x\n", in rtl8712_hal_init()
327 netdev_info(padapter->pnetdev, "2 RCR=0x%x\n", in rtl8712_hal_init()
Drtl8712_recv.c68 pskb = netdev_alloc_skb(padapter->pnetdev, MAX_RECVBUF_SZ + in r8712_init_recv_priv()
94 netdev_warn(padapter->pnetdev, "r8712u: rx_skb_queue not empty\n"); in r8712_free_recv_priv()
97 netdev_warn(padapter->pnetdev, "r8712u: free_recv_skb_queue not empty %d\n", in r8712_free_recv_priv()
338 netdev_warn(padapter->pnetdev, "r8712u: nRemain_Length is %d and nSubframe_Length is: %d\n", in amsdu_to_msdu()
353 … netdev_warn(padapter->pnetdev, "r8712u: ParseSubframe(): Too many Subframes! Packets dropped!\n"); in amsdu_to_msdu()
397 eth_type_trans(sub_skb, padapter->pnetdev); in amsdu_to_msdu()
398 sub_skb->dev = padapter->pnetdev; in amsdu_to_msdu()
1034 pkt_copy = netdev_alloc_skb(padapter->pnetdev, alloc_sz); in recvbuf2recvframe()
Dusb_ops_linux.c234 netdev_err(padapter->pnetdev, "ERROR: URB IS IN PROGRESS!\n"); in r8712_usb_read_port_complete()
265 precvbuf->pskb = netdev_alloc_skb(adapter->pnetdev, in r8712_usb_read_port()
320 netdev_err(padapter->pnetdev, "xmit_bh => driver_stopped or surprise_removed\n"); in r8712_xmit_bh()
370 netdev_warn(padapter->pnetdev, in usb_write_port_complete()
Dxmit_osdep.h37 int r8712_xmit_entry(_pkt *pkt, struct net_device *pnetdev);
/Linux-v5.10/drivers/staging/rtl8723bs/os_dep/
Dosdep_service.c65 struct net_device *pnetdev; in rtw_alloc_etherdev_with_old_priv() local
68 pnetdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4); in rtw_alloc_etherdev_with_old_priv()
69 if (!pnetdev) in rtw_alloc_etherdev_with_old_priv()
72 pnpi = netdev_priv(pnetdev); in rtw_alloc_etherdev_with_old_priv()
77 return pnetdev; in rtw_alloc_etherdev_with_old_priv()
82 struct net_device *pnetdev; in rtw_alloc_etherdev() local
85 pnetdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4); in rtw_alloc_etherdev()
86 if (!pnetdev) in rtw_alloc_etherdev()
89 pnpi = netdev_priv(pnetdev); in rtw_alloc_etherdev()
93 free_netdev(pnetdev); in rtw_alloc_etherdev()
[all …]
Dos_intfs.c204 int _netdev_open(struct net_device *pnetdev);
205 int netdev_open(struct net_device *pnetdev);
206 static int netdev_close(struct net_device *pnetdev);
208 static void loadparam(struct adapter *padapter, _nic_hdl pnetdev) in loadparam() argument
311 static int rtw_net_set_mac_address(struct net_device *pnetdev, void *p) in rtw_net_set_mac_address() argument
313 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(pnetdev); in rtw_net_set_mac_address()
327 static struct net_device_stats *rtw_net_get_stats(struct net_device *pnetdev) in rtw_net_get_stats() argument
329 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(pnetdev); in rtw_net_get_stats()
475 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname) in rtw_init_netdev_name() argument
477 if (dev_alloc_name(pnetdev, ifname) < 0) { in rtw_init_netdev_name()
[all …]
Dxmit_linux.c77 if (__netif_subqueue_stopped(padapter->pnetdev, queue) && in rtw_os_pkt_complete()
79 netif_wake_subqueue(padapter->pnetdev, queue); in rtw_os_pkt_complete()
81 if (__netif_subqueue_stopped(padapter->pnetdev, queue)) in rtw_os_pkt_complete()
82 netif_wake_subqueue(padapter->pnetdev, queue); in rtw_os_pkt_complete()
117 netif_stop_subqueue(padapter->pnetdev, queue); in rtw_check_xmit_resource()
121 if (!netif_tx_queue_stopped(netdev_get_tx_queue(padapter->pnetdev, queue))) in rtw_check_xmit_resource()
122 netif_stop_subqueue(padapter->pnetdev, queue); in rtw_check_xmit_resource()
202 int _rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev) in _rtw_xmit_entry() argument
204 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(pnetdev); in _rtw_xmit_entry()
263 int rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev) in rtw_xmit_entry() argument
[all …]
Dsdio_intf.c316 struct net_device *pnetdev; in rtw_sdio_if1_init() local
334 pnetdev = rtw_init_netdev(padapter); in rtw_sdio_if1_init()
335 if (!pnetdev) in rtw_sdio_if1_init()
338 SET_NETDEV_DEV(pnetdev, dvobj_to_dev(dvobj)); in rtw_sdio_if1_init()
340 padapter = rtw_netdev_priv(pnetdev); in rtw_sdio_if1_init()
407 if (pnetdev) in rtw_sdio_if1_init()
408 rtw_free_netdev(pnetdev); in rtw_sdio_if1_init()
419 struct net_device *pnetdev = if1->pnetdev; in rtw_sdio_if1_deinit() local
447 if (pnetdev) in rtw_sdio_if1_deinit()
448 rtw_free_netdev(pnetdev); in rtw_sdio_if1_deinit()
[all …]
Drecv_linux.c120 struct net_device *pnetdev = (struct net_device*)padapter->pnetdev; in rtw_os_recv_indicate_pkt() local
122 pkt->dev = pnetdev; in rtw_os_recv_indicate_pkt()
125 _rtw_xmit_entry(pkt, pnetdev); in rtw_os_recv_indicate_pkt()
142 pkt->protocol = eth_type_trans(pkt, padapter->pnetdev); in rtw_os_recv_indicate_pkt()
143 pkt->dev = padapter->pnetdev; in rtw_os_recv_indicate_pkt()
155 ret = rtw_netif_rx(padapter->pnetdev, pkt); in rtw_os_recv_indicate_pkt()
192 cfg80211_michael_mic_failure(padapter->pnetdev, (u8 *)&pmlmepriv->assoc_bssid[0], key_type, -1, in rtw_handle_tkip_mic_err()
Dmlme_linux.c55 netif_carrier_on(adapter->pnetdev); in rtw_os_indicate_connect()
131 …netif_carrier_off(adapter->pnetdev); /* Do it first for tx broadcast pkt after disconnection issu… in rtw_os_indicate_disconnect()
/Linux-v5.10/drivers/staging/rtl8723bs/include/
Dosdep_service_linux.h101 static inline int rtw_netif_queue_stopped(struct net_device *pnetdev) in rtw_netif_queue_stopped() argument
103 return (netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 0)) && in rtw_netif_queue_stopped()
104 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 1)) && in rtw_netif_queue_stopped()
105 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 2)) && in rtw_netif_queue_stopped()
106 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 3))); in rtw_netif_queue_stopped()
109 static inline void rtw_netif_wake_queue(struct net_device *pnetdev) in rtw_netif_wake_queue() argument
111 netif_tx_wake_all_queues(pnetdev); in rtw_netif_wake_queue()
114 static inline void rtw_netif_start_queue(struct net_device *pnetdev) in rtw_netif_start_queue() argument
116 netif_tx_start_all_queues(pnetdev); in rtw_netif_start_queue()
119 static inline void rtw_netif_stop_queue(struct net_device *pnetdev) in rtw_netif_stop_queue() argument
[all …]
Dxmit_osdep.h28 extern int _rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev);
29 extern int rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev);
/Linux-v5.10/drivers/staging/rtl8188eu/os_dep/
Dusb_intf.c202 struct net_device *pnetdev = padapter->pnetdev; in rtw_suspend() local
223 if (pnetdev) { in rtw_suspend()
224 netif_carrier_off(pnetdev); in rtw_suspend()
225 netif_tx_stop_all_queues(pnetdev); in rtw_suspend()
267 struct net_device *pnetdev; in rtw_resume_process() local
275 pnetdev = padapter->pnetdev; in rtw_resume_process()
286 if (netdev_open(pnetdev) != 0) { in rtw_resume_process()
291 netif_device_attach(pnetdev); in rtw_resume_process()
292 netif_carrier_on(pnetdev); in rtw_resume_process()
329 struct net_device *pnetdev = NULL; in rtw_usb_if1_init() local
[all …]
Dos_intfs.c137 static int netdev_close(struct net_device *pnetdev);
139 static void loadparam(struct adapter *padapter, struct net_device *pnetdev) in loadparam() argument
188 static int rtw_net_set_mac_address(struct net_device *pnetdev, void *p) in rtw_net_set_mac_address() argument
190 struct adapter *padapter = rtw_netdev_priv(pnetdev); in rtw_net_set_mac_address()
199 static struct net_device_stats *rtw_net_get_stats(struct net_device *pnetdev) in rtw_net_get_stats() argument
201 struct adapter *padapter = rtw_netdev_priv(pnetdev); in rtw_net_get_stats()
295 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname) in rtw_init_netdev_name() argument
297 if (dev_alloc_name(pnetdev, ifname) < 0) in rtw_init_netdev_name()
300 netif_carrier_off(pnetdev); in rtw_init_netdev_name()
311 struct net_device *pnetdev = NULL; in rtw_init_netdev() local
[all …]
Drecv_linux.c60 wireless_send_event(padapter->pnetdev, IWEVMICHAELMICFAILURE, in rtw_handle_tkip_mic_err()
99 struct net_device *pnetdev; in rtw_recv_indicatepkt() local
101 pnetdev = (struct net_device *)padapter->pnetdev; in rtw_recv_indicatepkt()
102 skb->dev = pnetdev; in rtw_recv_indicatepkt()
105 rtw_xmit_entry(skb, pnetdev); in rtw_recv_indicatepkt()
116 skb->dev = padapter->pnetdev; in rtw_recv_indicatepkt()
117 skb->protocol = eth_type_trans(skb, padapter->pnetdev); in rtw_recv_indicatepkt()
Dxmit_linux.c56 if (__netif_subqueue_stopped(padapter->pnetdev, queue) && in rtw_os_pkt_complete()
58 netif_wake_subqueue(padapter->pnetdev, queue); in rtw_os_pkt_complete()
60 if (__netif_subqueue_stopped(padapter->pnetdev, queue)) in rtw_os_pkt_complete()
61 netif_wake_subqueue(padapter->pnetdev, queue); in rtw_os_pkt_complete()
101 netif_stop_subqueue(padapter->pnetdev, queue); in rtw_check_xmit_resource()
104 if (!netif_tx_queue_stopped(netdev_get_tx_queue(padapter->pnetdev, queue))) in rtw_check_xmit_resource()
105 netif_stop_subqueue(padapter->pnetdev, queue); in rtw_check_xmit_resource()
165 int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev) in rtw_xmit_entry() argument
167 struct adapter *padapter = rtw_netdev_priv(pnetdev); in rtw_xmit_entry()
Dmlme_linux.c27 netif_carrier_on(adapter->pnetdev); in rtw_os_indicate_connect()
79 netif_carrier_off(adapter->pnetdev); in rtw_os_indicate_disconnect()
109 wireless_send_event(adapter->pnetdev, IWEVCUSTOM, &wrqu, buff); in rtw_report_sec_ie()
149 wireless_send_event(padapter->pnetdev, IWEVREGISTERED, &wrqu, NULL); in rtw_indicate_sta_assoc_event()
172 wireless_send_event(padapter->pnetdev, IWEVEXPIRED, &wrqu, NULL); in rtw_indicate_sta_disassoc_event()
/Linux-v5.10/drivers/staging/rtl8188eu/include/
Dosdep_service.h56 static inline int rtw_netif_queue_stopped(struct net_device *pnetdev) in rtw_netif_queue_stopped() argument
58 return netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 0)) && in rtw_netif_queue_stopped()
59 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 1)) && in rtw_netif_queue_stopped()
60 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 2)) && in rtw_netif_queue_stopped()
61 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 3)); in rtw_netif_queue_stopped()
85 #define FUNC_ADPT_ARG(adapter) __func__, adapter->pnetdev->name
Dosdep_intf.h26 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname);
30 int netdev_open(struct net_device *pnetdev);
Dxmit_osdep.h21 int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev);
/Linux-v5.10/drivers/staging/rtl8188eu/core/
Drtw_pwrctrl.c18 struct net_device *pnetdev = padapter->pnetdev; in rtw_hw_suspend() local
35 if (pnetdev) { in rtw_hw_suspend()
36 netif_carrier_off(pnetdev); in rtw_hw_suspend()
37 netif_tx_stop_all_queues(pnetdev); in rtw_hw_suspend()
79 struct net_device *pnetdev = padapter->pnetdev; in rtw_hw_resume() local
87 if (ips_netdrv_open(rtw_netdev_priv(pnetdev)) != _SUCCESS) { in rtw_hw_resume()
92 netif_device_attach(pnetdev); in rtw_hw_resume()
93 netif_carrier_on(pnetdev); in rtw_hw_resume()
95 if (!netif_queue_stopped(pnetdev)) in rtw_hw_resume()
96 netif_start_queue(pnetdev); in rtw_hw_resume()
[all …]

12