/linux-6.1.9/drivers/staging/r8188eu/os_dep/ |
D | osdep_service.c | 51 struct net_device *pnetdev; in rtw_alloc_etherdev_with_old_priv() local 54 pnetdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4); in rtw_alloc_etherdev_with_old_priv() 55 if (!pnetdev) in rtw_alloc_etherdev_with_old_priv() 58 pnetdev->dev.type = &wlan_type; in rtw_alloc_etherdev_with_old_priv() 59 pnpi = netdev_priv(pnetdev); in rtw_alloc_etherdev_with_old_priv() 63 return pnetdev; in rtw_alloc_etherdev_with_old_priv() 68 struct net_device *pnetdev; in rtw_alloc_etherdev() local 71 pnetdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4); in rtw_alloc_etherdev() 72 if (!pnetdev) in rtw_alloc_etherdev() 75 pnpi = netdev_priv(pnetdev); in rtw_alloc_etherdev() [all …]
|
D | usb_intf.c | 197 struct net_device *pnetdev = padapter->pnetdev; in rtw_suspend() local 211 if (pnetdev) { in rtw_suspend() 212 netif_carrier_off(pnetdev); in rtw_suspend() 213 netif_tx_stop_all_queues(pnetdev); in rtw_suspend() 246 struct net_device *pnetdev; in rtw_resume() local 250 pnetdev = padapter->pnetdev; in rtw_resume() 258 if (netdev_open(pnetdev) != 0) { in rtw_resume() 263 netif_device_attach(pnetdev); in rtw_resume() 264 netif_carrier_on(pnetdev); in rtw_resume() 292 struct net_device *pnetdev = NULL; in rtw_usb_if1_init() local [all …]
|
D | os_intfs.c | 219 static int rtw_net_set_mac_address(struct net_device *pnetdev, void *p) in rtw_net_set_mac_address() argument 221 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(pnetdev); in rtw_net_set_mac_address() 230 static struct net_device_stats *rtw_net_get_stats(struct net_device *pnetdev) in rtw_net_get_stats() argument 232 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(pnetdev); in rtw_net_get_stats() 324 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname) in rtw_init_netdev_name() argument 328 err = dev_alloc_name(pnetdev, ifname); in rtw_init_netdev_name() 332 netif_carrier_off(pnetdev); in rtw_init_netdev_name() 343 struct net_device *pnetdev; in rtw_init_netdev() local 346 pnetdev = rtw_alloc_etherdev_with_old_priv(sizeof(struct adapter), (void *)old_padapter); in rtw_init_netdev() 348 pnetdev = rtw_alloc_etherdev(sizeof(struct adapter)); in rtw_init_netdev() [all …]
|
/linux-6.1.9/drivers/staging/rtl8712/ |
D | os_intfs.c | 113 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 eth_hw_addr_set(pnetdev, 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 …]
|
D | usb_intf.c | 194 struct net_device *pnetdev = usb_get_intfdata(pusb_intf); in r871x_suspend() local 195 struct _adapter *padapter = netdev_priv(pnetdev); in r871x_suspend() 197 netdev_info(pnetdev, "Suspending...\n"); in r871x_suspend() 200 if (pnetdev->netdev_ops->ndo_stop) in r871x_suspend() 201 pnetdev->netdev_ops->ndo_stop(pnetdev); in r871x_suspend() 203 netif_device_detach(pnetdev); in r871x_suspend() 215 struct net_device *pnetdev = usb_get_intfdata(pusb_intf); in r871x_resume() local 216 struct _adapter *padapter = netdev_priv(pnetdev); in r871x_resume() 218 netdev_info(pnetdev, "Resuming...\n"); in r871x_resume() 219 netif_device_attach(pnetdev); in r871x_resume() [all …]
|
D | recv_linux.c | 88 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()
|
D | mlme_linux.c | 84 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()
|
D | hal_init.c | 60 register_netdev(adapter->pnetdev); in rtl871x_load_fw_cb() 84 dev_err(&adapter->pnetdev->dev, "r8712u: Bad fw->size of %zu\n", in rtl871x_open_fw() 333 netdev_info(padapter->pnetdev, "1 RCR=0x%x\n", in rtl8712_hal_init() 339 netdev_info(padapter->pnetdev, "2 RCR=0x%x\n", in rtl8712_hal_init()
|
D | rtl8712_recv.c | 68 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()
|
D | usb_ops_linux.c | 234 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()
|
/linux-6.1.9/drivers/staging/rtl8723bs/include/ |
D | osdep_service_linux.h | 78 static inline int rtw_netif_queue_stopped(struct net_device *pnetdev) in rtw_netif_queue_stopped() argument 80 return (netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 0)) && in rtw_netif_queue_stopped() 81 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 1)) && in rtw_netif_queue_stopped() 82 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 2)) && in rtw_netif_queue_stopped() 83 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 3))); in rtw_netif_queue_stopped() 86 static inline void rtw_netif_wake_queue(struct net_device *pnetdev) in rtw_netif_wake_queue() argument 88 netif_tx_wake_all_queues(pnetdev); in rtw_netif_wake_queue() 91 static inline void rtw_netif_start_queue(struct net_device *pnetdev) in rtw_netif_start_queue() argument 93 netif_tx_start_all_queues(pnetdev); in rtw_netif_start_queue() 96 static inline void rtw_netif_stop_queue(struct net_device *pnetdev) in rtw_netif_stop_queue() argument [all …]
|
D | xmit_osdep.h | 28 extern void _rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev); 29 extern netdev_tx_t rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev);
|
D | osdep_intf.h | 52 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname); 72 int netdev_open(struct net_device *pnetdev);
|
/linux-6.1.9/drivers/staging/rtl8723bs/os_dep/ |
D | os_intfs.c | 179 static int netdev_close(struct net_device *pnetdev); 181 static void loadparam(struct adapter *padapter, struct net_device *pnetdev) in loadparam() argument 278 static int rtw_net_set_mac_address(struct net_device *pnetdev, void *p) in rtw_net_set_mac_address() argument 280 struct adapter *padapter = rtw_netdev_priv(pnetdev); in rtw_net_set_mac_address() 293 static struct net_device_stats *rtw_net_get_stats(struct net_device *pnetdev) in rtw_net_get_stats() argument 295 struct adapter *padapter = rtw_netdev_priv(pnetdev); in rtw_net_get_stats() 442 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname) in rtw_init_netdev_name() argument 444 if (dev_alloc_name(pnetdev, ifname) < 0) { in rtw_init_netdev_name() 448 netif_carrier_off(pnetdev); in rtw_init_netdev_name() 457 struct net_device *pnetdev; in rtw_init_netdev() local [all …]
|
D | osdep_service.c | 54 struct net_device *pnetdev; in rtw_alloc_etherdev_with_old_priv() local 57 pnetdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4); in rtw_alloc_etherdev_with_old_priv() 58 if (!pnetdev) in rtw_alloc_etherdev_with_old_priv() 61 pnpi = netdev_priv(pnetdev); in rtw_alloc_etherdev_with_old_priv() 66 return pnetdev; in rtw_alloc_etherdev_with_old_priv() 71 struct net_device *pnetdev; in rtw_alloc_etherdev() local 74 pnetdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4); in rtw_alloc_etherdev() 75 if (!pnetdev) in rtw_alloc_etherdev() 78 pnpi = netdev_priv(pnetdev); in rtw_alloc_etherdev() 82 free_netdev(pnetdev); in rtw_alloc_etherdev() [all …]
|
D | xmit_linux.c | 75 if (__netif_subqueue_stopped(padapter->pnetdev, queue) && in rtw_os_pkt_complete() 77 netif_wake_subqueue(padapter->pnetdev, queue); in rtw_os_pkt_complete() 79 if (__netif_subqueue_stopped(padapter->pnetdev, queue)) in rtw_os_pkt_complete() 80 netif_wake_subqueue(padapter->pnetdev, queue); in rtw_os_pkt_complete() 114 netif_stop_subqueue(padapter->pnetdev, queue); in rtw_check_xmit_resource() 117 if (!netif_tx_queue_stopped(netdev_get_tx_queue(padapter->pnetdev, queue))) in rtw_check_xmit_resource() 118 netif_stop_subqueue(padapter->pnetdev, queue); in rtw_check_xmit_resource() 184 void _rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev) in _rtw_xmit_entry() argument 186 struct adapter *padapter = rtw_netdev_priv(pnetdev); in _rtw_xmit_entry() 220 netdev_tx_t rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev) in rtw_xmit_entry() argument [all …]
|
D | sdio_intf.c | 102 netdev_err(dvobj->if1->pnetdev, in sdio_free_irq() 246 struct net_device *pnetdev; in rtw_sdio_if1_init() local 263 pnetdev = rtw_init_netdev(padapter); in rtw_sdio_if1_init() 264 if (!pnetdev) in rtw_sdio_if1_init() 267 SET_NETDEV_DEV(pnetdev, dvobj_to_dev(dvobj)); in rtw_sdio_if1_init() 269 padapter = rtw_netdev_priv(pnetdev); in rtw_sdio_if1_init() 323 if (pnetdev) in rtw_sdio_if1_init() 324 rtw_free_netdev(pnetdev); in rtw_sdio_if1_init() 335 struct net_device *pnetdev = if1->pnetdev; in rtw_sdio_if1_deinit() local 352 if (pnetdev) in rtw_sdio_if1_deinit() [all …]
|
D | recv_linux.c | 115 struct net_device *pnetdev = (struct net_device *)padapter->pnetdev; in rtw_os_recv_indicate_pkt() local 117 pkt->dev = pnetdev; in rtw_os_recv_indicate_pkt() 120 _rtw_xmit_entry(pkt, pnetdev); in rtw_os_recv_indicate_pkt() 132 pkt->protocol = eth_type_trans(pkt, padapter->pnetdev); in rtw_os_recv_indicate_pkt() 133 pkt->dev = padapter->pnetdev; in rtw_os_recv_indicate_pkt() 137 rtw_netif_rx(padapter->pnetdev, pkt); in rtw_os_recv_indicate_pkt() 170 cfg80211_michael_mic_failure(padapter->pnetdev, (u8 *)&pmlmepriv->assoc_bssid[0], key_type, -1, in rtw_handle_tkip_mic_err()
|
D | mlme_linux.c | 51 netif_carrier_on(adapter->pnetdev); in rtw_os_indicate_connect() 126 …netif_carrier_off(adapter->pnetdev); /* Do it first for tx broadcast pkt after disconnection issu… in rtw_os_indicate_disconnect()
|
/linux-6.1.9/drivers/staging/rtl8723bs/core/ |
D | rtw_debug.c | 22 netdev_dbg(adapter->pnetdev, "0x%03x 0x%08x 0x%08x 0x%08x 0x%08x\n", in dump_4_regs() 30 netdev_dbg(adapter->pnetdev, "======= MAC REG =======\n"); in mac_reg_dump() 40 netdev_dbg(adapter->pnetdev, "======= BB REG =======\n"); in bb_reg_dump() 55 netdev_dbg(adapter->pnetdev, "0x%02x 0x%08x 0x%08x 0x%08x 0x%08x\n", in dump_4_rf_regs() 63 netdev_dbg(adapter->pnetdev, "======= RF REG =======\n"); in rf_reg_dump() 65 netdev_dbg(adapter->pnetdev, "RF_Path(%x)\n", path); in rf_reg_dump()
|
/linux-6.1.9/drivers/staging/r8188eu/include/ |
D | osdep_service.h | 61 static inline int rtw_netif_queue_stopped(struct net_device *pnetdev) in rtw_netif_queue_stopped() argument 63 return netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 0)) && in rtw_netif_queue_stopped() 64 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 1)) && in rtw_netif_queue_stopped() 65 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 2)) && in rtw_netif_queue_stopped() 66 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 3)); in rtw_netif_queue_stopped() 105 #define ADPT_ARG(adapter) adapter->pnetdev->name 109 #define FUNC_ADPT_ARG(adapter) __func__, adapter->pnetdev->name
|
D | osdep_intf.h | 42 int netdev_open(struct net_device *pnetdev); 43 int netdev_close(struct net_device *pnetdev); 53 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname);
|
/linux-6.1.9/drivers/staging/rtl8723bs/hal/ |
D | rtl8723bs_xmit.c | 132 netdev_emerg(padapter->pnetdev, in rtl8723bs_xmit_buf_handler() 263 netdev_err(padapter->pnetdev, in xmit_xmitframes() 297 netdev_err(padapter->pnetdev, in xmit_xmitframes() 368 netdev_emerg(padapter->pnetdev, "%s: SdioXmitStart fail!\n", in rtl8723bs_xmit_handler()
|
D | hal_com.c | 650 netdev_dbg(adapter->pnetdev, in SetHwReg() 670 netdev_dbg(adapter->pnetdev, in GetHwReg() 740 netdev_dbg(adapter->pnetdev, in SetHalDefVar() 790 netdev_dbg(adapter->pnetdev, in GetHalDefVar() 983 netdev_dbg(padapter->pnetdev, in rtw_get_raw_rssi_info() 994 netdev_dbg(padapter->pnetdev, in rtw_get_raw_rssi_info() 1001 netdev_dbg(padapter->pnetdev, in rtw_get_raw_rssi_info()
|
/linux-6.1.9/drivers/staging/r8188eu/core/ |
D | rtw_recv.c | 84 pskb = __netdev_alloc_skb(padapter->pnetdev, in rtl8188eu_init_recv_priv() 87 pskb->dev = padapter->pnetdev; in rtl8188eu_init_recv_priv() 360 wireless_send_event(padapter->pnetdev, IWEVMICHAELMICFAILURE, in rtw_handle_tkip_mic_err() 1503 sub_skb->protocol = eth_type_trans(sub_skb, padapter->pnetdev); in amsdu_to_msdu() 1504 sub_skb->dev = padapter->pnetdev; in amsdu_to_msdu() 1614 struct net_device *pnetdev; in rtw_recv_indicatepkt() local 1616 pnetdev = (struct net_device *)padapter->pnetdev; in rtw_recv_indicatepkt() 1617 skb->dev = pnetdev; in rtw_recv_indicatepkt() 1620 rtw_xmit_entry(skb, pnetdev); in rtw_recv_indicatepkt() 1631 rcu_dereference(padapter->pnetdev->rx_handler_data); in rtw_recv_indicatepkt() [all …]
|