/linux-5.19.10/drivers/staging/r8188eu/os_dep/ |
D | osdep_service.c | 60 struct net_device *pnetdev; in rtw_alloc_etherdev_with_old_priv() local 63 pnetdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4); in rtw_alloc_etherdev_with_old_priv() 64 if (!pnetdev) in rtw_alloc_etherdev_with_old_priv() 67 pnetdev->dev.type = &wlan_type; in rtw_alloc_etherdev_with_old_priv() 68 pnpi = netdev_priv(pnetdev); in rtw_alloc_etherdev_with_old_priv() 73 return pnetdev; in rtw_alloc_etherdev_with_old_priv() 78 struct net_device *pnetdev; in rtw_alloc_etherdev() local 81 pnetdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4); in rtw_alloc_etherdev() 82 if (!pnetdev) in rtw_alloc_etherdev() 85 pnpi = netdev_priv(pnetdev); in rtw_alloc_etherdev() [all …]
|
D | usb_intf.c | 199 struct net_device *pnetdev = padapter->pnetdev; in rtw_suspend() local 213 if (pnetdev) { in rtw_suspend() 214 netif_carrier_off(pnetdev); in rtw_suspend() 215 netif_tx_stop_all_queues(pnetdev); in rtw_suspend() 248 struct net_device *pnetdev; in rtw_resume() local 252 pnetdev = padapter->pnetdev; in rtw_resume() 260 if (netdev_open(pnetdev) != 0) { in rtw_resume() 265 netif_device_attach(pnetdev); in rtw_resume() 266 netif_carrier_on(pnetdev); in rtw_resume() 295 struct net_device *pnetdev = NULL; in rtw_usb_if1_init() local [all …]
|
D | os_intfs.c | 225 static int rtw_net_set_mac_address(struct net_device *pnetdev, void *p) in rtw_net_set_mac_address() argument 227 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(pnetdev); in rtw_net_set_mac_address() 236 static struct net_device_stats *rtw_net_get_stats(struct net_device *pnetdev) in rtw_net_get_stats() argument 238 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(pnetdev); in rtw_net_get_stats() 330 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname) in rtw_init_netdev_name() argument 334 err = dev_alloc_name(pnetdev, ifname); in rtw_init_netdev_name() 338 netif_carrier_off(pnetdev); in rtw_init_netdev_name() 349 struct net_device *pnetdev; in rtw_init_netdev() local 352 pnetdev = rtw_alloc_etherdev_with_old_priv(sizeof(struct adapter), (void *)old_padapter); in rtw_init_netdev() 354 pnetdev = rtw_alloc_etherdev(sizeof(struct adapter)); in rtw_init_netdev() [all …]
|
D | recv_linux.c | 69 wireless_send_event(padapter->pnetdev, IWEVMICHAELMICFAILURE, in rtw_handle_tkip_mic_err() 111 struct net_device *pnetdev; in rtw_recv_indicatepkt() local 113 pnetdev = (struct net_device *)padapter->pnetdev; in rtw_recv_indicatepkt() 114 skb->dev = pnetdev; in rtw_recv_indicatepkt() 117 rtw_xmit_entry(skb, pnetdev); in rtw_recv_indicatepkt() 128 rcu_dereference(padapter->pnetdev->rx_handler_data); in rtw_recv_indicatepkt() 132 skb->dev = padapter->pnetdev; in rtw_recv_indicatepkt() 133 skb->protocol = eth_type_trans(skb, padapter->pnetdev); in rtw_recv_indicatepkt()
|
D | xmit_linux.c | 101 if (__netif_subqueue_stopped(padapter->pnetdev, queue) && in rtw_os_pkt_complete() 103 netif_wake_subqueue(padapter->pnetdev, queue); in rtw_os_pkt_complete() 105 if (__netif_subqueue_stopped(padapter->pnetdev, queue)) in rtw_os_pkt_complete() 106 netif_wake_subqueue(padapter->pnetdev, queue); in rtw_os_pkt_complete() 145 netif_stop_subqueue(padapter->pnetdev, queue); in rtw_check_xmit_resource() 148 if (!netif_tx_queue_stopped(netdev_get_tx_queue(padapter->pnetdev, queue))) in rtw_check_xmit_resource() 149 netif_stop_subqueue(padapter->pnetdev, queue); in rtw_check_xmit_resource() 201 int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev) in rtw_xmit_entry() argument 203 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(pnetdev); in rtw_xmit_entry()
|
D | mlme_linux.c | 45 netif_carrier_on(adapter->pnetdev); in rtw_os_indicate_connect() 101 …netif_carrier_off(adapter->pnetdev); /* Do it first for tx broadcast pkt after disconnection issu… in rtw_os_indicate_disconnect() 128 wireless_send_event(adapter->pnetdev, IWEVCUSTOM, &wrqu, buff); in rtw_report_sec_ie() 183 wireless_send_event(padapter->pnetdev, IWEVREGISTERED, &wrqu, NULL); in rtw_indicate_sta_assoc_event() 204 wireless_send_event(padapter->pnetdev, IWEVEXPIRED, &wrqu, NULL); in rtw_indicate_sta_disassoc_event()
|
/linux-5.19.10/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()
|
/linux-5.19.10/drivers/staging/rtl8723bs/os_dep/ |
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 | 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 | 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 int _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() 223 int 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-5.19.10/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 int _rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev); 29 extern int 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-5.19.10/drivers/staging/rtl8723bs/core/ |
D | rtw_odm.c | 99 netdev_dbg(adapter->pnetdev, "odm.DebugComponents = 0x%016llx\n", in rtw_odm_dbg_comp_msg() 103 netdev_dbg(adapter->pnetdev, "%cBIT%-2d %s\n", in rtw_odm_dbg_comp_msg() 120 netdev_dbg(adapter->pnetdev, "odm.DebugLevel = %u\n", dbg_level); in rtw_odm_dbg_level_msg() 123 netdev_dbg(adapter->pnetdev, "%u %s\n", i, in rtw_odm_dbg_level_msg() 139 netdev_dbg(adapter->pnetdev, "odm.SupportAbility = 0x%08x\n", ability); in rtw_odm_ability_msg() 142 netdev_dbg(adapter->pnetdev, "%cBIT%-2d %s\n", in rtw_odm_ability_msg() 158 netdev_dbg(adapter->pnetdev, "%10s %16s %8s %10s %11s %14s\n", in rtw_odm_adaptivity_parm_msg() 161 netdev_dbg(adapter->pnetdev, in rtw_odm_adaptivity_parm_msg() 192 netdev_dbg(adapter->pnetdev, in rtw_odm_get_perpkt_rssi()
|
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-5.19.10/drivers/staging/r8188eu/include/ |
D | osdep_service.h | 62 static inline int rtw_netif_queue_stopped(struct net_device *pnetdev) in rtw_netif_queue_stopped() argument 64 return netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 0)) && in rtw_netif_queue_stopped() 65 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 1)) && in rtw_netif_queue_stopped() 66 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 2)) && in rtw_netif_queue_stopped() 67 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 3)); in rtw_netif_queue_stopped() 108 #define ADPT_ARG(adapter) adapter->pnetdev->name 112 #define FUNC_ADPT_ARG(adapter) __func__, adapter->pnetdev->name
|
D | recv_osdep.h | 26 int _netdev_open(struct net_device *pnetdev); 27 int netdev_open(struct net_device *pnetdev); 28 int netdev_close(struct net_device *pnetdev);
|
/linux-5.19.10/drivers/staging/r8188eu/hal/ |
D | rtl8188eu_recv.c | 57 pskb = __netdev_alloc_skb(padapter->pnetdev, MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ, GFP_KERNEL); in rtl8188eu_init_recv_priv() 59 pskb->dev = padapter->pnetdev; in rtl8188eu_init_recv_priv()
|