/Linux-v5.15/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 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 …]
|
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-v5.15/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 61 struct net_device *pnetdev; in rtw_alloc_etherdev_with_old_priv() local 64 pnetdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4); in rtw_alloc_etherdev_with_old_priv() 65 if (!pnetdev) 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() 89 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-v5.15/drivers/staging/r8188eu/os_dep/ |
D | osdep_service.c | 119 struct net_device *pnetdev; in rtw_alloc_etherdev_with_old_priv() local 122 pnetdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4); in rtw_alloc_etherdev_with_old_priv() 123 if (!pnetdev) in rtw_alloc_etherdev_with_old_priv() 126 pnetdev->dev.type = &wlan_type; in rtw_alloc_etherdev_with_old_priv() 127 pnpi = netdev_priv(pnetdev); in rtw_alloc_etherdev_with_old_priv() 132 return pnetdev; in rtw_alloc_etherdev_with_old_priv() 137 struct net_device *pnetdev; in rtw_alloc_etherdev() local 140 pnetdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4); in rtw_alloc_etherdev() 141 if (!pnetdev) in rtw_alloc_etherdev() 144 pnpi = netdev_priv(pnetdev); in rtw_alloc_etherdev() [all …]
|
D | usb_intf.c | 323 struct net_device *pnetdev = padapter->pnetdev; in rtw_hw_suspend() local 342 if (pnetdev) { in rtw_hw_suspend() 343 netif_carrier_off(pnetdev); in rtw_hw_suspend() 344 rtw_netif_stop_queue(pnetdev); in rtw_hw_suspend() 385 struct net_device *pnetdev = padapter->pnetdev; in rtw_hw_resume() local 395 if (pm_netdev_open(pnetdev, false) != 0) { in rtw_hw_resume() 400 netif_device_attach(pnetdev); in rtw_hw_resume() 401 netif_carrier_on(pnetdev); in rtw_hw_resume() 403 if (!netif_queue_stopped(pnetdev)) in rtw_hw_resume() 404 netif_start_queue(pnetdev); in rtw_hw_resume() [all …]
|
D | os_intfs.c | 502 static uint loadparam(struct adapter *padapter, struct net_device *pnetdev) in loadparam() argument 578 static int rtw_net_set_mac_address(struct net_device *pnetdev, void *p) in rtw_net_set_mac_address() argument 580 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(pnetdev); in rtw_net_set_mac_address() 589 static struct net_device_stats *rtw_net_get_stats(struct net_device *pnetdev) in rtw_net_get_stats() argument 591 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(pnetdev); in rtw_net_get_stats() 683 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname) in rtw_init_netdev_name() argument 687 err = dev_alloc_name(pnetdev, ifname); in rtw_init_netdev_name() 691 netif_carrier_off(pnetdev); in rtw_init_netdev_name() 702 struct net_device *pnetdev; in rtw_init_netdev() local 705 pnetdev = rtw_alloc_etherdev_with_old_priv(sizeof(struct adapter), (void *)old_padapter); in rtw_init_netdev() [all …]
|
D | recv_linux.c | 99 wireless_send_event(padapter->pnetdev, IWEVMICHAELMICFAILURE, in rtw_handle_tkip_mic_err() 146 struct net_device *pnetdev; in rtw_recv_indicatepkt() local 148 pnetdev = (struct net_device *)padapter->pnetdev; in rtw_recv_indicatepkt() 149 skb->dev = pnetdev; in rtw_recv_indicatepkt() 152 rtw_xmit_entry(skb, pnetdev); in rtw_recv_indicatepkt() 163 rcu_dereference(padapter->pnetdev->rx_handler_data); in rtw_recv_indicatepkt() 167 skb->dev = padapter->pnetdev; in rtw_recv_indicatepkt() 168 skb->protocol = eth_type_trans(skb, padapter->pnetdev); in rtw_recv_indicatepkt()
|
D | xmit_linux.c | 113 if (__netif_subqueue_stopped(padapter->pnetdev, queue) && in rtw_os_pkt_complete() 115 netif_wake_subqueue(padapter->pnetdev, queue); in rtw_os_pkt_complete() 117 if (__netif_subqueue_stopped(padapter->pnetdev, queue)) in rtw_os_pkt_complete() 118 netif_wake_subqueue(padapter->pnetdev, queue); in rtw_os_pkt_complete() 157 netif_stop_subqueue(padapter->pnetdev, queue); in rtw_check_xmit_resource() 160 if (!netif_tx_queue_stopped(netdev_get_tx_queue(padapter->pnetdev, queue))) in rtw_check_xmit_resource() 161 netif_stop_subqueue(padapter->pnetdev, queue); in rtw_check_xmit_resource() 215 int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev) in rtw_xmit_entry() argument 217 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(pnetdev); in rtw_xmit_entry()
|
D | mlme_linux.c | 47 netif_carrier_on(adapter->pnetdev); in rtw_os_indicate_connect() 104 …netif_carrier_off(adapter->pnetdev); /* Do it first for tx broadcast pkt after disconnection issu… in rtw_os_indicate_disconnect() 131 wireless_send_event(adapter->pnetdev, IWEVCUSTOM, &wrqu, buff); in rtw_report_sec_ie() 190 wireless_send_event(padapter->pnetdev, IWEVREGISTERED, &wrqu, NULL); in rtw_indicate_sta_assoc_event() 213 wireless_send_event(padapter->pnetdev, IWEVEXPIRED, &wrqu, NULL); in rtw_indicate_sta_disassoc_event()
|
/Linux-v5.15/drivers/staging/rtl8723bs/include/ |
D | osdep_service_linux.h | 80 static inline int rtw_netif_queue_stopped(struct net_device *pnetdev) in rtw_netif_queue_stopped() argument 82 return (netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 0)) && in rtw_netif_queue_stopped() 83 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 1)) && in rtw_netif_queue_stopped() 84 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 2)) && in rtw_netif_queue_stopped() 85 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 3))); in rtw_netif_queue_stopped() 88 static inline void rtw_netif_wake_queue(struct net_device *pnetdev) in rtw_netif_wake_queue() argument 90 netif_tx_wake_all_queues(pnetdev); in rtw_netif_wake_queue() 93 static inline void rtw_netif_start_queue(struct net_device *pnetdev) in rtw_netif_start_queue() argument 95 netif_tx_start_all_queues(pnetdev); in rtw_netif_start_queue() 98 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-v5.15/drivers/staging/r8188eu/include/ |
D | osdep_service.h | 124 static inline int rtw_netif_queue_stopped(struct net_device *pnetdev) in rtw_netif_queue_stopped() argument 126 return netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 0)) && in rtw_netif_queue_stopped() 127 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 1)) && in rtw_netif_queue_stopped() 128 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 2)) && in rtw_netif_queue_stopped() 129 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 3)); in rtw_netif_queue_stopped() 132 static inline void rtw_netif_wake_queue(struct net_device *pnetdev) in rtw_netif_wake_queue() argument 134 netif_tx_wake_all_queues(pnetdev); in rtw_netif_wake_queue() 137 static inline void rtw_netif_start_queue(struct net_device *pnetdev) in rtw_netif_start_queue() argument 139 netif_tx_start_all_queues(pnetdev); in rtw_netif_start_queue() 142 static inline void rtw_netif_stop_queue(struct net_device *pnetdev) in rtw_netif_stop_queue() argument [all …]
|
D | recv_osdep.h | 33 int _netdev_open(struct net_device *pnetdev); 34 int netdev_open(struct net_device *pnetdev); 35 int netdev_close(struct net_device *pnetdev);
|
/Linux-v5.15/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-v5.15/drivers/staging/r8188eu/hal/ |
D | rtl8188eu_recv.c | 78 pskb = __netdev_alloc_skb(padapter->pnetdev, MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ, GFP_KERNEL); in rtl8188eu_init_recv_priv() 80 pskb->dev = padapter->pnetdev; in rtl8188eu_init_recv_priv()
|