Lines Matching full:wilc
28 struct wilc *wilc = user_data; in isr_uh_routine() local
30 if (wilc->close) { in isr_uh_routine()
39 struct wilc *wilc = userdata; in isr_bh_routine() local
41 if (wilc->close) { in isr_bh_routine()
46 wilc_handle_isr(wilc); in isr_bh_routine()
54 struct wilc *wl = vif->wilc; in init_irq()
73 struct wilc *wilc = vif->wilc; in deinit_irq() local
76 if (wilc->dev_irq_num) in deinit_irq()
77 free_irq(wilc->dev_irq_num, wilc); in deinit_irq()
80 void wilc_mac_indicate(struct wilc *wilc) in wilc_mac_indicate() argument
84 wilc_wlan_cfg_get_val(wilc, WID_STATUS, &status, 1); in wilc_mac_indicate()
85 if (wilc->mac_status == WILC_MAC_STATUS_INIT) { in wilc_mac_indicate()
86 wilc->mac_status = status; in wilc_mac_indicate()
87 complete(&wilc->sync_event); in wilc_mac_indicate()
89 wilc->mac_status = status; in wilc_mac_indicate()
93 static struct net_device *get_if_handler(struct wilc *wilc, u8 *mac_header) in get_if_handler() argument
99 wilc_for_each_vif(wilc, vif) { in get_if_handler()
128 int wilc_wlan_get_num_conn_ifcs(struct wilc *wilc) in wilc_wlan_get_num_conn_ifcs() argument
134 srcu_idx = srcu_read_lock(&wilc->srcu); in wilc_wlan_get_num_conn_ifcs()
135 wilc_for_each_vif(wilc, vif) { in wilc_wlan_get_num_conn_ifcs()
139 srcu_read_unlock(&wilc->srcu, srcu_idx); in wilc_wlan_get_num_conn_ifcs()
143 static void wilc_wake_tx_queues(struct wilc *wl) in wilc_wake_tx_queues()
160 struct wilc *wl = vp; in wilc_txq_task()
197 struct wilc *wilc = vif->wilc; in wilc_wlan_get_firmware() local
202 chip_id = wilc_get_chipid(wilc, false); in wilc_wlan_get_firmware()
208 wilc->dev); in wilc_wlan_get_firmware()
214 wilc->firmware = wilc_fw; in wilc_wlan_get_firmware()
222 struct wilc *wilc = vif->wilc; in wilc_start_firmware() local
225 ret = wilc_wlan_start(wilc); in wilc_start_firmware()
229 if (!wait_for_completion_timeout(&wilc->sync_event, in wilc_start_firmware()
239 struct wilc *wilc = vif->wilc; in wilc1000_firmware_download() local
242 if (!wilc->firmware) { in wilc1000_firmware_download()
247 ret = wilc_wlan_firmware_download(wilc, wilc->firmware->data, in wilc1000_firmware_download()
248 wilc->firmware->size); in wilc1000_firmware_download()
252 release_firmware(wilc->firmware); in wilc1000_firmware_download()
253 wilc->firmware = NULL; in wilc1000_firmware_download()
434 struct wilc *wl = vif->wilc; in wlan_deinitialize_threads()
449 struct wilc *wl = vif->wilc; in wilc_wlan_deinitialize()
484 struct wilc *wilc = vif->wilc; in wlan_initialize_threads() local
486 wilc->txq_thread = kthread_run(wilc_txq_task, (void *)wilc, in wlan_initialize_threads()
488 if (IS_ERR(wilc->txq_thread)) { in wlan_initialize_threads()
490 wilc->close = 1; in wlan_initialize_threads()
491 return PTR_ERR(wilc->txq_thread); in wlan_initialize_threads()
493 wait_for_completion(&wilc->txq_thread_started); in wlan_initialize_threads()
501 struct wilc *wl = vif->wilc; in wilc_wlan_initialize()
590 struct wilc *wl = vif->wilc; in wilc_mac_open()
647 struct wilc *wilc = vif->wilc; in wilc_set_mac_addr() local
663 srcu_idx = srcu_read_lock(&wilc->srcu); in wilc_set_mac_addr()
664 wilc_for_each_vif(wilc, tmp_vif) { in wilc_set_mac_addr()
668 srcu_read_unlock(&wilc->srcu, srcu_idx); in wilc_set_mac_addr()
671 srcu_read_unlock(&wilc->srcu, srcu_idx); in wilc_set_mac_addr()
675 srcu_read_unlock(&wilc->srcu, srcu_idx); in wilc_set_mac_addr()
735 struct wilc *wilc = vif->wilc; in wilc_mac_xmit() local
766 srcu_idx = srcu_read_lock(&wilc->srcu); in wilc_mac_xmit()
767 wilc_for_each_vif(wilc, vif) { in wilc_mac_xmit()
771 srcu_read_unlock(&wilc->srcu, srcu_idx); in wilc_mac_xmit()
780 struct wilc *wl = vif->wilc; in wilc_mac_close()
807 void wilc_frmw_to_host(struct wilc *wilc, u8 *buff, u32 size, in wilc_frmw_to_host() argument
818 if (!wilc) in wilc_frmw_to_host()
821 srcu_idx = srcu_read_lock(&wilc->srcu); in wilc_frmw_to_host()
822 wilc_netdev = get_if_handler(wilc, buff); in wilc_frmw_to_host()
849 srcu_read_unlock(&wilc->srcu, srcu_idx); in wilc_frmw_to_host()
852 void wilc_wfi_mgmt_rx(struct wilc *wilc, u8 *buff, u32 size, bool is_auth) in wilc_wfi_mgmt_rx() argument
857 srcu_idx = srcu_read_lock(&wilc->srcu); in wilc_wfi_mgmt_rx()
858 wilc_for_each_vif(wilc, vif) { in wilc_wfi_mgmt_rx()
876 wilc_wfi_monitor_rx(wilc->monitor_dev, buff, size); in wilc_wfi_mgmt_rx()
878 srcu_read_unlock(&wilc->srcu, srcu_idx); in wilc_wfi_mgmt_rx()
891 void wilc_netdev_cleanup(struct wilc *wilc) in wilc_netdev_cleanup() argument
895 if (!wilc) in wilc_netdev_cleanup()
898 if (wilc->firmware) { in wilc_netdev_cleanup()
899 release_firmware(wilc->firmware); in wilc_netdev_cleanup()
900 wilc->firmware = NULL; in wilc_netdev_cleanup()
903 list_for_each_entry_safe(vif, vif_tmp, &wilc->vif_list, list) { in wilc_netdev_cleanup()
904 mutex_lock(&wilc->vif_mutex); in wilc_netdev_cleanup()
906 wilc->vif_num--; in wilc_netdev_cleanup()
907 mutex_unlock(&wilc->vif_mutex); in wilc_netdev_cleanup()
908 synchronize_srcu(&wilc->srcu); in wilc_netdev_cleanup()
913 wilc_wfi_deinit_mon_interface(wilc, false); in wilc_netdev_cleanup()
914 destroy_workqueue(wilc->hif_workqueue); in wilc_netdev_cleanup()
916 wilc_wlan_cfg_deinit(wilc); in wilc_netdev_cleanup()
917 wlan_deinit_locks(wilc); in wilc_netdev_cleanup()
918 wiphy_unregister(wilc->wiphy); in wilc_netdev_cleanup()
919 wiphy_free(wilc->wiphy); in wilc_netdev_cleanup()
923 static u8 wilc_get_available_idx(struct wilc *wl) in wilc_get_available_idx()
940 struct wilc_vif *wilc_netdev_ifc_init(struct wilc *wl, const char *name, in wilc_netdev_ifc_init()
956 vif->wilc = wl; in wilc_netdev_ifc_init()
975 /* WILC firmware uses locally administered MAC address for the in wilc_netdev_ifc_init()