/linux-6.6.21/drivers/net/wireless/ath/carl9170/ |
D | usb.c | 133 static void carl9170_usb_submit_data_urb(struct ar9170 *ar) in carl9170_usb_submit_data_urb() argument 138 if (atomic_inc_return(&ar->tx_anch_urbs) > AR9170_NUM_TX_URBS) in carl9170_usb_submit_data_urb() 141 urb = usb_get_from_anchor(&ar->tx_wait); in carl9170_usb_submit_data_urb() 145 usb_anchor_urb(urb, &ar->tx_anch); in carl9170_usb_submit_data_urb() 150 dev_err(&ar->udev->dev, "tx submit failed (%d)\n", in carl9170_usb_submit_data_urb() 155 usb_anchor_urb(urb, &ar->tx_err); in carl9170_usb_submit_data_urb() 164 atomic_dec(&ar->tx_anch_urbs); in carl9170_usb_submit_data_urb() 169 struct ar9170 *ar = usb_get_intfdata(usb_ifnum_to_if(urb->dev, 0)); in carl9170_usb_tx_data_complete() local 171 if (WARN_ON_ONCE(!ar)) { in carl9170_usb_tx_data_complete() 176 atomic_dec(&ar->tx_anch_urbs); in carl9170_usb_tx_data_complete() [all …]
|
D | main.c | 184 static void carl9170_ampdu_gc(struct ar9170 *ar) in carl9170_ampdu_gc() argument 190 list_for_each_entry_rcu(tid_info, &ar->tx_ampdu_list, list) { in carl9170_ampdu_gc() 191 spin_lock_bh(&ar->tx_ampdu_list_lock); in carl9170_ampdu_gc() 195 ar->tx_ampdu_list_len--; in carl9170_ampdu_gc() 198 spin_unlock_bh(&ar->tx_ampdu_list_lock); in carl9170_ampdu_gc() 201 rcu_assign_pointer(ar->tx_ampdu_iter, tid_info); in carl9170_ampdu_gc() 212 carl9170_tx_status(ar, skb, false); in carl9170_ampdu_gc() 219 static void carl9170_flush(struct ar9170 *ar, bool drop_queued) in carl9170_flush() argument 229 for (i = 0; i < ar->hw->queues; i++) { in carl9170_flush() 232 while ((skb = skb_dequeue(&ar->tx_pending[i]))) { in carl9170_flush() [all …]
|
D | led.c | 43 int carl9170_led_set_state(struct ar9170 *ar, const u32 led_state) in carl9170_led_set_state() argument 45 return carl9170_write_reg(ar, AR9170_GPIO_REG_PORT_DATA, led_state); in carl9170_led_set_state() 48 int carl9170_led_init(struct ar9170 *ar) in carl9170_led_init() argument 54 err = carl9170_write_reg(ar, AR9170_GPIO_REG_PORT_TYPE, 3); in carl9170_led_init() 59 err = carl9170_led_set_state(ar, 0); in carl9170_led_init() 68 struct ar9170 *ar = container_of(work, struct ar9170, led_work.work); in carl9170_led_update() local 73 if (!IS_ACCEPTING_CMD(ar)) in carl9170_led_update() 76 mutex_lock(&ar->mutex); in carl9170_led_update() 78 if (ar->leds[i].registered) { in carl9170_led_update() 79 if (ar->leds[i].last_state || in carl9170_led_update() [all …]
|
D | fw.c | 20 static const void *carl9170_fw_find_desc(struct ar9170 *ar, const u8 descid[4], in carl9170_fw_find_desc() argument 25 carl9170fw_for_each_hdr(iter, ar->fw.desc) { in carl9170_fw_find_desc() 39 static int carl9170_fw_verify_descs(struct ar9170 *ar, in carl9170_fw_verify_descs() argument 82 static void carl9170_fw_info(struct ar9170 *ar) in carl9170_fw_info() argument 88 dev_info(&ar->udev->dev, "driver API: %s 2%03d-%02d-%02d [%d-%d]\n", in carl9170_fw_info() 93 motd_desc = carl9170_fw_find_desc(ar, MOTD_MAGIC, in carl9170_fw_info() 102 dev_info(&ar->udev->dev, "firmware API: %.*s 2%03d-%02d-%02d\n", in carl9170_fw_info() 108 strscpy(ar->hw->wiphy->fw_version, motd_desc->release, in carl9170_fw_info() 109 sizeof(ar->hw->wiphy->fw_version)); in carl9170_fw_info() 131 static int carl9170_fw_checksum(struct ar9170 *ar, const __u8 *data, in carl9170_fw_checksum() argument [all …]
|
D | rx.c | 49 static void carl9170_dbg_message(struct ar9170 *ar, const char *buf, u32 len) in carl9170_dbg_message() argument 56 ar->fw.err_counter++; in carl9170_dbg_message() 57 if (ar->fw.err_counter > 3) { in carl9170_dbg_message() 64 ar->fw.bug_counter++; in carl9170_dbg_message() 70 wiphy_info(ar->hw->wiphy, "FW: %.*s\n", len, buf); in carl9170_dbg_message() 73 carl9170_restart(ar, reason); in carl9170_dbg_message() 76 static void carl9170_handle_ps(struct ar9170 *ar, struct carl9170_rsp *rsp) in carl9170_handle_ps() argument 84 if (ar->ps.state != new_ps) { in carl9170_handle_ps() 86 ar->ps.sleep_ms = jiffies_to_msecs(jiffies - in carl9170_handle_ps() 87 ar->ps.last_action); in carl9170_handle_ps() [all …]
|
D | mac.c | 44 int carl9170_set_dyn_sifs_ack(struct ar9170 *ar) in carl9170_set_dyn_sifs_ack() argument 48 if (conf_is_ht40(&ar->hw->conf)) in carl9170_set_dyn_sifs_ack() 51 if (ar->hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) in carl9170_set_dyn_sifs_ack() 57 return carl9170_write_reg(ar, AR9170_MAC_REG_DYNAMIC_SIFS_ACK, val); in carl9170_set_dyn_sifs_ack() 60 int carl9170_set_rts_cts_rate(struct ar9170 *ar) in carl9170_set_rts_cts_rate() argument 64 if (conf_is_ht(&ar->hw->conf)) { in carl9170_set_rts_cts_rate() 69 if (ar->hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) { in carl9170_set_rts_cts_rate() 80 return carl9170_write_reg(ar, AR9170_MAC_REG_RTS_CTS_RATE, in carl9170_set_rts_cts_rate() 84 int carl9170_set_slot_time(struct ar9170 *ar) in carl9170_set_slot_time() argument 90 vif = carl9170_get_main_vif(ar); in carl9170_set_slot_time() [all …]
|
/linux-6.6.21/drivers/net/wireless/ath/ath6kl/ |
D | core.c | 54 void ath6kl_core_tx_complete(struct ath6kl *ar, struct sk_buff *skb) in ath6kl_core_tx_complete() argument 56 ath6kl_htc_tx_complete(ar, skb); in ath6kl_core_tx_complete() 60 void ath6kl_core_rx_complete(struct ath6kl *ar, struct sk_buff *skb, u8 pipe) in ath6kl_core_rx_complete() argument 62 ath6kl_htc_rx_complete(ar, skb, pipe); in ath6kl_core_rx_complete() 66 int ath6kl_core_init(struct ath6kl *ar, enum ath6kl_htc_type htc_type) in ath6kl_core_init() argument 74 ath6kl_htc_mbox_attach(ar); in ath6kl_core_init() 77 ath6kl_htc_pipe_attach(ar); in ath6kl_core_init() 84 ar->ath6kl_wq = create_singlethread_workqueue("ath6kl"); in ath6kl_core_init() 85 if (!ar->ath6kl_wq) in ath6kl_core_init() 88 ret = ath6kl_bmi_init(ar); in ath6kl_core_init() [all …]
|
D | init.c | 251 static int ath6kl_set_host_app_area(struct ath6kl *ar) in ath6kl_set_host_app_area() argument 258 address = ath6kl_get_hi_item_addr(ar, HI_ITEM(hi_app_host_interest)); in ath6kl_set_host_app_area() 259 address = TARG_VTOP(ar->target_type, address); in ath6kl_set_host_app_area() 261 if (ath6kl_diag_read32(ar, address, &data)) in ath6kl_set_host_app_area() 264 address = TARG_VTOP(ar->target_type, data); in ath6kl_set_host_app_area() 266 if (ath6kl_diag_write(ar, address, (u8 *) &host_app_area, in ath6kl_set_host_app_area() 273 static inline void set_ac2_ep_map(struct ath6kl *ar, in set_ac2_ep_map() argument 277 ar->ac2ep_map[ac] = ep; in set_ac2_ep_map() 278 ar->ep2ac_map[ep] = ac; in set_ac2_ep_map() 282 static int ath6kl_connectservice(struct ath6kl *ar, in ath6kl_connectservice() argument [all …]
|
D | recovery.c | 23 struct ath6kl *ar = container_of(work, struct ath6kl, in ath6kl_recovery_work() local 26 ar->state = ATH6KL_STATE_RECOVERY; in ath6kl_recovery_work() 28 del_timer_sync(&ar->fw_recovery.hb_timer); in ath6kl_recovery_work() 30 ath6kl_init_hw_restart(ar); in ath6kl_recovery_work() 32 ar->state = ATH6KL_STATE_ON; in ath6kl_recovery_work() 33 clear_bit(WMI_CTRL_EP_FULL, &ar->flag); in ath6kl_recovery_work() 35 ar->fw_recovery.err_reason = 0; in ath6kl_recovery_work() 37 if (ar->fw_recovery.hb_poll) in ath6kl_recovery_work() 38 mod_timer(&ar->fw_recovery.hb_timer, jiffies + in ath6kl_recovery_work() 39 msecs_to_jiffies(ar->fw_recovery.hb_poll)); in ath6kl_recovery_work() [all …]
|
D | hif-ops.h | 24 static inline int hif_read_write_sync(struct ath6kl *ar, u32 addr, u8 *buf, in hif_read_write_sync() argument 32 return ar->hif_ops->read_write_sync(ar, addr, buf, len, request); in hif_read_write_sync() 35 static inline int hif_write_async(struct ath6kl *ar, u32 address, u8 *buffer, in hif_write_async() argument 43 return ar->hif_ops->write_async(ar, address, buffer, length, in hif_write_async() 46 static inline void ath6kl_hif_irq_enable(struct ath6kl *ar) in ath6kl_hif_irq_enable() argument 50 return ar->hif_ops->irq_enable(ar); in ath6kl_hif_irq_enable() 53 static inline void ath6kl_hif_irq_disable(struct ath6kl *ar) in ath6kl_hif_irq_disable() argument 57 return ar->hif_ops->irq_disable(ar); in ath6kl_hif_irq_disable() 60 static inline struct hif_scatter_req *hif_scatter_req_get(struct ath6kl *ar) in hif_scatter_req_get() argument 62 return ar->hif_ops->scatter_req_get(ar); in hif_scatter_req_get() [all …]
|
D | bmi.c | 23 int ath6kl_bmi_done(struct ath6kl *ar) in ath6kl_bmi_done() argument 28 if (ar->bmi.done_sent) { in ath6kl_bmi_done() 33 ar->bmi.done_sent = true; in ath6kl_bmi_done() 35 ret = ath6kl_hif_bmi_write(ar, (u8 *)&cid, sizeof(cid)); in ath6kl_bmi_done() 44 int ath6kl_bmi_get_target_info(struct ath6kl *ar, in ath6kl_bmi_get_target_info() argument 50 if (ar->bmi.done_sent) { in ath6kl_bmi_get_target_info() 55 ret = ath6kl_hif_bmi_write(ar, (u8 *)&cid, sizeof(cid)); in ath6kl_bmi_get_target_info() 61 if (ar->hif_type == ATH6KL_HIF_TYPE_USB) { in ath6kl_bmi_get_target_info() 62 ret = ath6kl_hif_bmi_read(ar, (u8 *)targ_info, in ath6kl_bmi_get_target_info() 65 ret = ath6kl_hif_bmi_read(ar, (u8 *)&targ_info->version, in ath6kl_bmi_get_target_info() [all …]
|
/linux-6.6.21/drivers/net/wireless/ath/ath10k/ |
D | wmi-ops.h | 15 void (*rx)(struct ath10k *ar, struct sk_buff *skb); 19 int (*pull_scan)(struct ath10k *ar, struct sk_buff *skb, 21 int (*pull_mgmt_rx)(struct ath10k *ar, struct sk_buff *skb, 23 int (*pull_mgmt_tx_compl)(struct ath10k *ar, struct sk_buff *skb, 26 struct ath10k *ar, struct sk_buff *skb, 28 int (*pull_ch_info)(struct ath10k *ar, struct sk_buff *skb, 30 int (*pull_vdev_start)(struct ath10k *ar, struct sk_buff *skb, 32 int (*pull_peer_kick)(struct ath10k *ar, struct sk_buff *skb, 34 int (*pull_swba)(struct ath10k *ar, struct sk_buff *skb, 36 int (*pull_phyerr_hdr)(struct ath10k *ar, struct sk_buff *skb, [all …]
|
D | core.c | 773 void ath10k_core_get_fw_features_str(struct ath10k *ar, in ath10k_core_get_fw_features_str() argument 781 if (test_bit(i, ar->normal_mode_fw.fw_file.fw_features)) { in ath10k_core_get_fw_features_str() 792 static void ath10k_send_suspend_complete(struct ath10k *ar) in ath10k_send_suspend_complete() argument 794 ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot suspend complete\n"); in ath10k_send_suspend_complete() 796 complete(&ar->target_suspend); in ath10k_send_suspend_complete() 799 static int ath10k_init_sdio(struct ath10k *ar, enum ath10k_firmware_mode mode) in ath10k_init_sdio() argument 801 bool mtu_workaround = ar->hw_params.credit_size_workaround; in ath10k_init_sdio() 805 ret = ath10k_bmi_write32(ar, hi_mbox_io_block_sz, 256); in ath10k_init_sdio() 809 ret = ath10k_bmi_write32(ar, hi_mbox_isr_yield_limit, 99); in ath10k_init_sdio() 813 ret = ath10k_bmi_read32(ar, hi_acs_flags, ¶m); in ath10k_init_sdio() [all …]
|
D | hif.h | 31 int (*tx_sg)(struct ath10k *ar, u8 pipe_id, 35 int (*diag_read)(struct ath10k *ar, u32 address, void *buf, 38 int (*diag_write)(struct ath10k *ar, u32 address, const void *data, 45 int (*exchange_bmi_msg)(struct ath10k *ar, 50 int (*start)(struct ath10k *ar); 55 void (*stop)(struct ath10k *ar); 57 int (*start_post)(struct ath10k *ar); 59 int (*get_htt_tx_complete)(struct ath10k *ar); 61 int (*map_service_to_pipe)(struct ath10k *ar, u16 service_id, 64 void (*get_default_pipe)(struct ath10k *ar, u8 *ul_pipe, u8 *dl_pipe); [all …]
|
D | ahb.c | 28 static inline struct ath10k_ahb *ath10k_ahb_priv(struct ath10k *ar) in ath10k_ahb_priv() argument 30 return &ath10k_pci_priv(ar)->ahb[0]; in ath10k_ahb_priv() 33 static void ath10k_ahb_write32(struct ath10k *ar, u32 offset, u32 value) in ath10k_ahb_write32() argument 35 struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); in ath10k_ahb_write32() 40 static u32 ath10k_ahb_read32(struct ath10k *ar, u32 offset) in ath10k_ahb_read32() argument 42 struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); in ath10k_ahb_read32() 47 static u32 ath10k_ahb_gcc_read32(struct ath10k *ar, u32 offset) in ath10k_ahb_gcc_read32() argument 49 struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); in ath10k_ahb_gcc_read32() 54 static void ath10k_ahb_tcsr_write32(struct ath10k *ar, u32 offset, u32 value) in ath10k_ahb_tcsr_write32() argument 56 struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); in ath10k_ahb_tcsr_write32() [all …]
|
D | testmode.c | 31 bool ath10k_tm_event_wmi(struct ath10k *ar, u32 cmd_id, struct sk_buff *skb) in ath10k_tm_event_wmi() argument 37 ath10k_dbg(ar, ATH10K_DBG_TESTMODE, in ath10k_tm_event_wmi() 41 ath10k_dbg_dump(ar, ATH10K_DBG_TESTMODE, NULL, "", skb->data, skb->len); in ath10k_tm_event_wmi() 43 spin_lock_bh(&ar->data_lock); in ath10k_tm_event_wmi() 45 if (!ar->testmode.utf_monitor) { in ath10k_tm_event_wmi() 56 nl_skb = cfg80211_testmode_alloc_event_skb(ar->hw->wiphy, in ath10k_tm_event_wmi() 60 ath10k_warn(ar, in ath10k_tm_event_wmi() 67 ath10k_warn(ar, in ath10k_tm_event_wmi() 76 ath10k_warn(ar, in ath10k_tm_event_wmi() 85 ath10k_warn(ar, in ath10k_tm_event_wmi() [all …]
|
D | debug.c | 25 void ath10k_info(struct ath10k *ar, const char *fmt, ...) in ath10k_info() argument 34 dev_info(ar->dev, "%pV", &vaf); in ath10k_info() 35 trace_ath10k_log_info(ar, &vaf); in ath10k_info() 40 void ath10k_debug_print_hwfw_info(struct ath10k *ar) in ath10k_debug_print_hwfw_info() argument 46 ath10k_core_get_fw_features_str(ar, fw_features, sizeof(fw_features)); in ath10k_debug_print_hwfw_info() 48 ath10k_info(ar, "%s target 0x%08x chip_id 0x%08x sub %04x:%04x", in ath10k_debug_print_hwfw_info() 49 ar->hw_params.name, in ath10k_debug_print_hwfw_info() 50 ar->target_version, in ath10k_debug_print_hwfw_info() 51 ar->bus_param.chip_id, in ath10k_debug_print_hwfw_info() 52 ar->id.subsystem_vendor, ar->id.subsystem_device); in ath10k_debug_print_hwfw_info() [all …]
|
D | mac.c | 211 int ath10k_mac_ext_resource_config(struct ath10k *ar, u32 val) in ath10k_mac_ext_resource_config() argument 216 if (test_bit(WMI_SERVICE_TX_MODE_DYNAMIC, ar->wmi.svc_map)) in ath10k_mac_ext_resource_config() 221 ret = ath10k_wmi_ext_resource_config(ar, platform_type, val); in ath10k_mac_ext_resource_config() 224 ath10k_warn(ar, "failed to configure ext resource: %d\n", ret); in ath10k_mac_ext_resource_config() 240 struct ath10k *ar = arvif->ar; in ath10k_send_key() local 250 lockdep_assert_held(&arvif->ar->conf_mutex); in ath10k_send_key() 254 arg.key_cipher = ar->wmi_key_cipher[WMI_CIPHER_AES_CCM]; in ath10k_send_key() 258 arg.key_cipher = ar->wmi_key_cipher[WMI_CIPHER_TKIP]; in ath10k_send_key() 264 arg.key_cipher = ar->wmi_key_cipher[WMI_CIPHER_WEP]; in ath10k_send_key() 267 arg.key_cipher = ar->wmi_key_cipher[WMI_CIPHER_AES_CCM]; in ath10k_send_key() [all …]
|
D | pci.c | 100 static void ath10k_pci_buffer_cleanup(struct ath10k *ar); 101 static int ath10k_pci_cold_reset(struct ath10k *ar); 102 static int ath10k_pci_safe_chip_reset(struct ath10k *ar); 103 static int ath10k_pci_init_irq(struct ath10k *ar); 104 static int ath10k_pci_deinit_irq(struct ath10k *ar); 105 static int ath10k_pci_request_irq(struct ath10k *ar); 106 static void ath10k_pci_free_irq(struct ath10k *ar); 107 static int ath10k_pci_bmi_wait(struct ath10k *ar, 111 static int ath10k_pci_qca99x0_chip_reset(struct ath10k *ar); 429 static bool ath10k_pci_is_awake(struct ath10k *ar) in ath10k_pci_is_awake() argument [all …]
|
D | thermal.c | 28 struct ath10k *ar = cdev->devdata; in ath10k_thermal_get_cur_throttle_state() local 30 mutex_lock(&ar->conf_mutex); in ath10k_thermal_get_cur_throttle_state() 31 *state = ar->thermal.throttle_state; in ath10k_thermal_get_cur_throttle_state() 32 mutex_unlock(&ar->conf_mutex); in ath10k_thermal_get_cur_throttle_state() 41 struct ath10k *ar = cdev->devdata; in ath10k_thermal_set_cur_throttle_state() local 44 ath10k_warn(ar, "throttle state %ld is exceeding the limit %d\n", in ath10k_thermal_set_cur_throttle_state() 48 mutex_lock(&ar->conf_mutex); in ath10k_thermal_set_cur_throttle_state() 49 ar->thermal.throttle_state = throttle_state; in ath10k_thermal_set_cur_throttle_state() 50 ath10k_thermal_set_throttling(ar); in ath10k_thermal_set_cur_throttle_state() 51 mutex_unlock(&ar->conf_mutex); in ath10k_thermal_set_cur_throttle_state() [all …]
|
D | snoc.c | 474 static void ath10k_snoc_write32(struct ath10k *ar, u32 offset, u32 value) in ath10k_snoc_write32() argument 476 struct ath10k_snoc *ar_snoc = ath10k_snoc_priv(ar); in ath10k_snoc_write32() 481 static u32 ath10k_snoc_read32(struct ath10k *ar, u32 offset) in ath10k_snoc_read32() argument 483 struct ath10k_snoc *ar_snoc = ath10k_snoc_priv(ar); in ath10k_snoc_read32() 494 struct ath10k *ar = pipe->hif_ce_state; in __ath10k_snoc_rx_post_buf() local 495 struct ath10k_ce *ce = ath10k_ce_priv(ar); in __ath10k_snoc_rx_post_buf() 506 paddr = dma_map_single(ar->dev, skb->data, in __ath10k_snoc_rx_post_buf() 509 if (unlikely(dma_mapping_error(ar->dev, paddr))) { in __ath10k_snoc_rx_post_buf() 510 ath10k_warn(ar, "failed to dma map snoc rx buf\n"); in __ath10k_snoc_rx_post_buf() 521 dma_unmap_single(ar->dev, paddr, skb->len + skb_tailroom(skb), in __ath10k_snoc_rx_post_buf() [all …]
|
D | ce.c | 51 static inline u32 shadow_sr_wr_ind_addr(struct ath10k *ar, in shadow_sr_wr_ind_addr() argument 74 ath10k_warn(ar, "invalid CE id: %d", ce_id); in shadow_sr_wr_ind_addr() 87 static inline u32 ath10k_ce_read32(struct ath10k *ar, u32 offset) in ath10k_ce_read32() argument 89 struct ath10k_ce *ce = ath10k_ce_priv(ar); in ath10k_ce_read32() 91 return ce->bus_ops->read32(ar, offset); in ath10k_ce_read32() 94 static inline void ath10k_ce_write32(struct ath10k *ar, u32 offset, u32 value) in ath10k_ce_write32() argument 96 struct ath10k_ce *ce = ath10k_ce_priv(ar); in ath10k_ce_write32() 98 ce->bus_ops->write32(ar, offset, value); in ath10k_ce_write32() 101 static inline void ath10k_ce_dest_ring_write_index_set(struct ath10k *ar, in ath10k_ce_dest_ring_write_index_set() argument 105 ath10k_ce_write32(ar, ce_ctrl_addr + in ath10k_ce_dest_ring_write_index_set() [all …]
|
/linux-6.6.21/drivers/net/wireless/ath/ar5523/ |
D | ar5523.c | 45 static int ar5523_submit_rx_cmd(struct ar5523 *ar); 46 static void ar5523_data_tx_pkt_put(struct ar5523 *ar); 48 static void ar5523_read_reply(struct ar5523 *ar, struct ar5523_cmd_hdr *hdr, in ar5523_read_reply() argument 61 ar5523_dbg(ar, "Code = %d len = %d\n", be32_to_cpu(hdr->code) & 0xff, in ar5523_read_reply() 77 ar5523_err(ar, "olen too small %d < %d\n", in ar5523_read_reply() 94 struct ar5523 *ar = urb->context; in ar5523_cmd_rx_cb() local 95 struct ar5523_tx_cmd *cmd = &ar->tx_cmd; in ar5523_cmd_rx_cb() 96 struct ar5523_cmd_hdr *hdr = ar->rx_cmd_buf; in ar5523_cmd_rx_cb() 102 ar5523_err(ar, "RX USB error %d.\n", urb->status); in ar5523_cmd_rx_cb() 107 ar5523_err(ar, "RX USB too short.\n"); in ar5523_cmd_rx_cb() [all …]
|
/linux-6.6.21/drivers/net/wireless/ath/ath11k/ |
D | mac.c | 575 struct ath11k_vif *ath11k_mac_get_arvif(struct ath11k *ar, u32 vdev_id) in ath11k_mac_get_arvif() argument 584 ieee80211_iterate_active_interfaces_atomic(ar->hw, in ath11k_mac_get_arvif() 589 ath11k_warn(ar->ab, "No VIF found for vdev %d\n", vdev_id); in ath11k_mac_get_arvif() 605 if (pdev && pdev->ar && in ath11k_mac_get_arvif_by_vdev_id() 606 (pdev->ar->allocated_vdev_map & (1LL << vdev_id))) { in ath11k_mac_get_arvif_by_vdev_id() 607 arvif = ath11k_mac_get_arvif(pdev->ar, vdev_id); in ath11k_mac_get_arvif_by_vdev_id() 623 if (pdev && pdev->ar) { in ath11k_mac_get_ar_by_vdev_id() 624 if (pdev->ar->allocated_vdev_map & (1LL << vdev_id)) in ath11k_mac_get_ar_by_vdev_id() 625 return pdev->ar; in ath11k_mac_get_ar_by_vdev_id() 639 return pdev ? pdev->ar : NULL; in ath11k_mac_get_ar_by_pdev_id() [all …]
|
/linux-6.6.21/drivers/net/wireless/ath/ath12k/ |
D | mac.c | 532 struct ath12k_vif *ath12k_mac_get_arvif(struct ath12k *ar, u32 vdev_id) in ath12k_mac_get_arvif() argument 540 ieee80211_iterate_active_interfaces_atomic(ar->hw, in ath12k_mac_get_arvif() 545 ath12k_warn(ar->ab, "No VIF found for vdev %d\n", vdev_id); in ath12k_mac_get_arvif() 561 if (pdev && pdev->ar) { in ath12k_mac_get_arvif_by_vdev_id() 562 arvif = ath12k_mac_get_arvif(pdev->ar, vdev_id); in ath12k_mac_get_arvif_by_vdev_id() 578 if (pdev && pdev->ar) { in ath12k_mac_get_ar_by_vdev_id() 579 if (pdev->ar->allocated_vdev_map & (1LL << vdev_id)) in ath12k_mac_get_ar_by_vdev_id() 580 return pdev->ar; in ath12k_mac_get_ar_by_vdev_id() 594 return pdev ? pdev->ar : NULL; in ath12k_mac_get_ar_by_pdev_id() 604 return (pdev->ar ? pdev->ar : NULL); in ath12k_mac_get_ar_by_pdev_id() [all …]
|