/linux/drivers/net/wireless/ath/ath10k/ |
A D | core.c | 920 ar->id.bmi_board_id, ar->id.bmi_chip_id); in ath10k_core_get_board_id_from_otp() 1467 ar->id.qmi_board_id, ar->id.qmi_chip_id, in ath10k_core_create_board_name() 1480 ar->id.vendor, ar->id.device, in ath10k_core_create_board_name() 2231 ar->coex_support, ar->coex_gpio_pin); in ath10k_core_fetch_btcoex_dt() 2308 ar->hw_params.name, ar->target_version); in ath10k_init_hw_params() 2320 queue_work(ar->workqueue, &ar->restart_work); in ath10k_core_start_recovery() 2579 ar->max_num_peers = ar->hw_params.num_peers; in ath10k_core_init_firmware_features() 3234 device_get_mac_address(ar->dev, ar->mac_addr); in ath10k_core_probe_fw() 3353 queue_work(ar->workqueue, &ar->register_work); in ath10k_core_register() 3400 ar->ath_common.priv = ar; in ath10k_core_create() [all …]
|
A D | wmi-ops.h | 240 ar->wmi.ops->rx(ar, skb); in ath10k_wmi_rx() 273 return ar->wmi.ops->pull_scan(ar, skb, arg); in ath10k_wmi_pull_scan() 343 return ar->wmi.ops->pull_swba(ar, skb, arg); in ath10k_wmi_pull_swba() 383 return ar->wmi.ops->pull_rdy(ar, skb, arg); in ath10k_wmi_pull_rdy() 495 skb = ar->wmi.ops->gen_mgmt_tx(ar, msdu); in ath10k_wmi_mgmt_tx() 571 skb = ar->wmi.ops->gen_pdev_resume(ar); in ath10k_wmi_pdev_resume_target() 601 skb = ar->wmi.ops->gen_init(ar); in ath10k_wmi_cmd_init() 617 skb = ar->wmi.ops->gen_start_scan(ar, arg); in ath10k_wmi_start_scan() 632 skb = ar->wmi.ops->gen_stop_scan(ar, arg); in ath10k_wmi_stop_scan() 1163 skb = ar->wmi.ops->gen_pktlog_disable(ar); in ath10k_wmi_pdev_pktlog_disable() [all …]
|
A D | hif.h | 134 return ar->hif.ops->start(ar); in ath10k_hif_start() 139 return ar->hif.ops->stop(ar); in ath10k_hif_stop() 145 return ar->hif.ops->start_post(ar); in ath10k_hif_start_post() 152 return ar->hif.ops->get_htt_tx_complete(ar); in ath10k_hif_get_htt_tx_complete() 186 return ar->hif.ops->power_up(ar, fw_mode); in ath10k_hif_power_up() 191 ar->hif.ops->power_down(ar); in ath10k_hif_power_down() 199 return ar->hif.ops->suspend(ar); in ath10k_hif_suspend() 207 return ar->hif.ops->resume(ar); in ath10k_hif_resume() 217 return ar->hif.ops->read32(ar, address); in ath10k_hif_read32() 228 ar->hif.ops->write32(ar, address, data); in ath10k_hif_write32() [all …]
|
A D | testmode.c | 43 spin_lock_bh(&ar->data_lock); 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() 180 switch (ar->hif.bus) { in ath10k_tm_fetch_firmware() 200 ret = ath10k_tm_fetch_utf_firmware_api_1(ar, &ar->testmode.utf_mode_fw.fw_file); in ath10k_tm_fetch_firmware() 263 ath10k_warn(ar, in ath10k_tm_cmd_utf_start() 306 ath10k_hif_power_down(ar); in ath10k_tm_cmd_utf_start() 327 ath10k_core_stop(ar); in __ath10k_tm_cmd_utf_stop() [all …]
|
A D | ahb.c | 392 struct ath10k *ar = arg; in ath10k_ahb_interrupt_handler() local 399 napi_schedule(&ar->napi); in ath10k_ahb_interrupt_handler() 626 ath10k_pci_rx_post(ar); in ath10k_ahb_hif_start() 642 ath10k_pci_flush(ar); in ath10k_ahb_hif_stop() 728 struct ath10k *ar; in ath10k_ahb_probe() local 748 if (!ar) { in ath10k_ahb_probe() 765 ar->dev_id = 0; in ath10k_ahb_probe() 768 ar_pci->ar = ar; in ath10k_ahb_probe() 821 ath10k_core_destroy(ar); in ath10k_ahb_probe() 832 if (!ar) in ath10k_ahb_remove() [all …]
|
A D | debug.c | 51 ar->id.subsystem_vendor, ar->id.subsystem_device); in ath10k_debug_print_hwfw_info() 66 ar->fw_api, in ath10k_debug_print_hwfw_info() 79 ar->id.bmi_chip_id, ar->id.bmi_board_id); in ath10k_debug_print_board_info() 1027 ar->debug.fw_dbglog_mask, ar->debug.fw_dbglog_level); in ath10k_read_fw_dbglog() 1653 ath10k_tpc_stats_fill(ar, ar->debug.tpc_stats, buf); in ath10k_tpc_stats_open() 1813 ar->dfs_detector->get_stats(ar->dfs_detector); in ath10k_read_dfs_stats() 2315 ath10k_tpc_stats_fill(ar, ar->debug.tpc_stats, buf); in ath10k_tpc_stats_final_open() 2443 ar); in ath10k_write_ps_state_enable() 2633 ar->debug.debugfs_phy, ar, in ath10k_debug_register() 2647 ar->debug.debugfs_phy, ar, in ath10k_debug_register() [all …]
|
A D | mac.c | 240 struct ath10k *ar = arvif->ar; in ath10k_send_key() local 301 struct ath10k *ar = arvif->ar; in ath10k_install_key() local 326 struct ath10k *ar = arvif->ar; in ath10k_install_peer_wep_keys() local 414 struct ath10k *ar = arvif->ar; in ath10k_clear_peer_keys() local 480 struct ath10k *ar = arvif->ar; in ath10k_clear_vdev_key() local 528 struct ath10k *ar = arvif->ar; in ath10k_mac_vif_update_wep_key() local 5477 arvif->ar = ar; in ath10k_add_interface() 6665 ar = arvif->ar; in ath10k_sta_rc_update_wk() 7271 ar = arvif->ar; in ath10k_sta_tid_cfg_wk() 9309 data.ar = ar; in ath10k_mac_op_set_tid_config() [all …]
|
A D | pci.c | 594 struct ath10k *ar = ar_pci->ar; in ath10k_pci_ps_timer() local 847 struct ath10k *ar = ar_pci->ar; in ath10k_pci_rx_replenish_retry() local 1173 struct ath10k *ar = ce_state->ar; in ath10k_pci_htc_tx_cb() local 1194 struct ath10k *ar = ce_state->ar; in ath10k_pci_process_rx_cb() local 1237 struct ath10k *ar = ce_state->ar; in ath10k_pci_process_htt_rx_cb() local 1318 struct ath10k *ar = ce_state->ar; in ath10k_pci_htt_tx_cb() local 1753 struct ath10k *ar = ar_pci->ar; in ath10k_pci_fw_dump_work() local 2209 struct ath10k *ar = ce_state->ar; in ath10k_pci_bmi_recv_data() local 3492 if (QCA_REV_6174(ar) || QCA_REV_9377(ar)) in ath10k_pci_setup_resource() 3617 ar_pci->ar = ar; in ath10k_pci_probe() [all …]
|
A D | snoc.c | 573 struct ath10k *ar = ce_state->ar; in ath10k_snoc_process_rx_cb() local 648 struct ath10k *ar = ar_snoc->ar; in ath10k_snoc_rx_replenish_retry() local 655 struct ath10k *ar = ce_state->ar; in ath10k_snoc_htc_tx_cb() local 673 struct ath10k *ar = ce_state->ar; in ath10k_snoc_htt_tx_cb() local 1245 netif_napi_add(&ar->napi_dev, &ar->napi, ath10k_snoc_napi_poll, in ath10k_snoc_init_napi() 1453 memcpy(buf, ar->msa.vaddr, ar->msa.mem_size); in ath10k_msa_dump_memory() 1485 struct ath10k *ar = ar_snoc->ar; in ath10k_snoc_modem_notify() local 1567 ar->msa.vaddr = devm_memremap(dev, ar->msa.paddr, in ath10k_setup_msa_resources() 1648 ar->msa.paddr, ar->msa.mem_size, in ath10k_fw_init() 1731 if (!ar) { in ath10k_snoc_probe() [all …]
|
A 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() 32 mutex_unlock(&ar->conf_mutex); in ath10k_thermal_get_cur_throttle_state() 48 mutex_lock(&ar->conf_mutex); in ath10k_thermal_set_cur_throttle_state() 51 mutex_unlock(&ar->conf_mutex); in ath10k_thermal_set_cur_throttle_state() 69 mutex_lock(&ar->conf_mutex); in ath10k_thermal_show_temp() 97 spin_lock_bh(&ar->data_lock); in ath10k_thermal_show_temp() 104 mutex_unlock(&ar->conf_mutex); in ath10k_thermal_show_temp() 110 spin_lock_bh(&ar->data_lock); in ath10k_thermal_event_temperature() 179 ar->thermal.cdev = cdev; in ath10k_thermal_register() [all …]
|
A D | ce.c | 640 struct ath10k *ar = pipe->ar; in __ath10k_ce_send_revert() local 688 struct ath10k *ar = pipe->ar; in ath10k_ce_num_free_src_entries() local 704 struct ath10k *ar = pipe->ar; in __ath10k_ce_rx_num_free_bufs() local 720 struct ath10k *ar = pipe->ar; in __ath10k_ce_rx_post_buf() local 751 struct ath10k *ar = pipe->ar; in __ath10k_ce_rx_post_buf_64() local 782 struct ath10k *ar = pipe->ar; in ath10k_ce_rx_update_write_idx() local 804 struct ath10k *ar = pipe->ar; in ath10k_ce_rx_post_buf() local 965 ar = ce_state->ar; in _ath10k_ce_revoke_recv_next() 1018 ar = ce_state->ar; in _ath10k_ce_revoke_recv_next_64() 1238 ar = ce_state->ar; in ath10k_ce_cancel_send_next() [all …]
|
/linux/drivers/net/wireless/ath/carl9170/ |
A D | usb.c | 382 struct ar9170 *ar = from_tasklet(ar, t, usb_tasklet); in carl9170_usb_tasklet() local 448 ieee80211_queue_work(ar->hw, &ar->ping_work); in carl9170_usb_rx_complete() 474 usb_fill_bulk_urb(urb, ar->udev, usb_rcvbulkpipe(ar->udev, in carl9170_usb_alloc_rx_urb() 497 usb_fill_int_urb(urb, ar->udev, usb_rcvintpipe(ar->udev, in carl9170_usb_send_rx_irq_urb() 676 err = __carl9170_exec_cmd(ar, &ar->cmd, false); in carl9170_exec_cmd() 741 usb_fill_bulk_urb(urb, ar->udev, usb_sndbulkpipe(ar->udev, in carl9170_usb_tx() 763 memset(&ar->fw, 0, sizeof(ar->fw)); in carl9170_release_firmware() 980 ar = NULL; in carl9170_usb_firmware_failed() 1048 ar = carl9170_alloc(sizeof(*ar)); in carl9170_usb_probe() 1135 if (!ar) in carl9170_usb_suspend() [all …]
|
A D | main.c | 306 memset(&ar->tx_stats, 0, sizeof(ar->tx_stats)); in carl9170_zap_queues() 353 ar->current_factor = ar->current_density = -1; in carl9170_op_start() 366 ar->rx_software_decryption = ar->disable_offload; in carl9170_op_start() 535 ieee80211_queue_work(ar->hw, &ar->restart_work); in carl9170_restart() 814 ieee80211_queue_work(ar->hw, &ar->ps_work); in carl9170_ps_check() 873 memset(&ar->tally, 0, sizeof(ar->tally)); in carl9170_update_survey() 1505 snprintf(ar->wps.phys, sizeof(ar->wps.phys), in carl9170_register_wps_button() 1583 *data = ar->rng.cache[ar->rng.cache_idx++]; in carl9170_rng_read() 1603 ar->rng.rng.name = ar->rng.name; in carl9170_register_hwrng() 1605 ar->rng.rng.priv = (unsigned long)ar; in carl9170_register_hwrng() [all …]
|
A D | fw.c | 211 ar->if_comb_limits[0].max = ar->fw.vif_num; in carl9170_fw_set_if_combinations() 215 ar->if_combs[0].max_interfaces = ar->fw.vif_num; in carl9170_fw_set_if_combinations() 216 ar->if_combs[0].limits = ar->if_comb_limits; in carl9170_fw_set_if_combinations() 217 ar->if_combs[0].n_limits = ARRAY_SIZE(ar->if_comb_limits); in carl9170_fw_set_if_combinations() 219 ar->hw->wiphy->iface_combinations = ar->if_combs; in carl9170_fw_set_if_combinations() 220 ar->hw->wiphy->n_iface_combinations = ARRAY_SIZE(ar->if_combs); in carl9170_fw_set_if_combinations() 320 atomic_set(&ar->mem_free_blocks, ar->fw.mem_blocks); in carl9170_fw() 323 if (ar->fw.vif_num >= AR9170_MAX_VIRTUAL_MAC || !ar->fw.vif_num || in carl9170_fw() 324 ar->fw.mem_blocks < 16 || !ar->fw.cmd_bufs || in carl9170_fw() 325 ar->fw.mem_block_size < 64 || ar->fw.mem_block_size > 512 || in carl9170_fw() [all …]
|
A D | rx.c | 104 if (ar->cmd_seq < 0) in carl9170_check_sequence() 105 ar->cmd_seq = seq; in carl9170_check_sequence() 116 count = (seq - ar->cmd_seq) % ar->fw.cmd_bufs; in carl9170_check_sequence() 125 ar->cmd_seq = (ar->cmd_seq + 1) % ar->fw.cmd_bufs; in carl9170_check_sequence() 140 ar->cmd_buf, (ar->cmd.hdr.len + 4) & 0x3f); in carl9170_cmd_callback() 151 if (ar->readbuf) { in carl9170_cmd_callback() 155 ar->readbuf = NULL; in carl9170_cmd_callback() 263 if (ar->wps.pbc) { in carl9170_handle_command_response() 720 ar->ampdu_ref++; in carl9170_rx_untie_data() 822 ar->rx_dropped++; in carl9170_rx_untie_data() [all …]
|
A D | led.c | 73 if (!IS_ACCEPTING_CMD(ar)) in carl9170_led_update() 76 mutex_lock(&ar->mutex); in carl9170_led_update() 96 mutex_unlock(&ar->mutex); in carl9170_led_update() 102 &ar->led_work, in carl9170_led_update() 110 struct ar9170 *ar = arl->ar; in carl9170_led_set_brightness() local 121 ieee80211_queue_delayed_work(ar->hw, &ar->led_work, HZ / 10); in carl9170_led_set_brightness() 129 snprintf(ar->leds[i].name, sizeof(ar->leds[i].name), in carl9170_led_register_led() 132 ar->leds[i].ar = ar; in carl9170_led_register_led() 133 ar->leds[i].l.name = ar->leds[i].name; in carl9170_led_register_led() 139 &ar->leds[i].l); in carl9170_led_register_led() [all …]
|
A D | debug.c | 76 if (!ar) in carl9170_debugfs_read() 129 if (!ar) in carl9170_debugfs_write() 222 ar->fw.mem_blocks, ar->mem_bitmap); in carl9170_debugfs_mem_usage_read() 428 ar->noise[0], ar->noise[2]); in carl9170_debugfs_phy_noise_read() 430 ar->noise[1], ar->noise[3]); in carl9170_debugfs_phy_noise_read() 443 ar->vifs, ar->fw.vif_num); in carl9170_debugfs_vif_dump_read() 446 ar->fw.vif_num, &ar->vif_bitmap); in carl9170_debugfs_vif_dump_read() 611 ar->debug.ring_head = ar->debug.ring_tail; in carl9170_debugfs_hw_ioread32_read() 669 ar->restart_counter, ar->last_reason); in carl9170_debugfs_bug_read() 671 ar->total_chan_fail, ar->chan_fail); in carl9170_debugfs_bug_read() [all …]
|
A D | mac.c | 128 carl9170_regwrite_begin(ar); in carl9170_set_mac_rates() 138 carl9170_regwrite_begin(ar); in carl9170_set_qos() 161 ar->edcf[0].txop | ar->edcf[1].txop << 16); in carl9170_set_qos() 163 ar->edcf[2].txop | ar->edcf[3].txop << 16 | in carl9170_set_qos() 164 ar->edcf[4].txop << 24); in carl9170_set_qos() 297 ar->cur_mc_hash = mc_hash; in carl9170_update_multicast() 370 if (ar->sniffer_enabled) { in carl9170_set_operating_mode() 414 ar->beacon_enabled; in carl9170_set_beacon_timers() 447 ar->global_pretbtt = ar->global_beacon_int - in carl9170_set_beacon_timers() 450 ar->global_pretbtt = 0; in carl9170_set_beacon_timers() [all …]
|
/linux/drivers/net/wireless/ath/ath6kl/ |
A D | core.c | 113 ar->htc_target = ath6kl_htc_create(ar); in ath6kl_core_init() 146 ar->wmi = ath6kl_wmi_init(ar); in ath6kl_core_init() 147 if (!ar->wmi) { in ath6kl_core_init() 198 ath6kl_rx_refill(ar->htc_target, ar->ctrl_ep); in ath6kl_core_init() 199 ath6kl_rx_refill(ar->htc_target, ar->ac2ep_map[WMM_AC_BE]); in ath6kl_core_init() 253 ar->wmi = NULL; in ath6kl_core_init() 273 if (!ar) in ath6kl_core_create() 277 ar->dev = dev; in ath6kl_core_create() 297 ar->tx_pwr = 0; in ath6kl_core_create() 326 return ar; in ath6kl_core_create() [all …]
|
A D | init.c | 584 if (ar->p2p && ar->vif_max == 1) in ath6kl_configure_target() 799 ar->hw.fw.dir, ar->hw.fw.otp); in ath6kl_fetch_otp_file() 829 ar->hw.fw.dir, ar->hw.fw.utf); in ath6kl_fetch_testmode_file() 837 ar->hw.fw.dir, ar->hw.fw.tcmd); in ath6kl_fetch_testmode_file() 842 ret = ath6kl_get_fw(ar, filename, &ar->fw, &ar->fw_len); in ath6kl_fetch_testmode_file() 865 ar->hw.fw.dir, ar->hw.fw.fw); in ath6kl_fetch_fw_file() 867 ret = ath6kl_get_fw(ar, filename, &ar->fw, &ar->fw_len); in ath6kl_fetch_fw_file() 889 ar->hw.fw.dir, ar->hw.fw.patch); in ath6kl_fetch_patch_file() 1129 if (ar->vif_max > 1 && !ar->p2p) in ath6kl_fetch_fw_apin() 1366 ret = ath6kl_bmi_fast_download(ar, address, ar->fw, ar->fw_len); in ath6kl_upload_firmware() [all …]
|
A D | recovery.c | 30 ath6kl_init_hw_restart(ar); in ath6kl_recovery_work() 32 ar->state = ATH6KL_STATE_ON; in ath6kl_recovery_work() 37 if (ar->fw_recovery.hb_poll) in ath6kl_recovery_work() 44 if (!ar->fw_recovery.enable) in ath6kl_recovery_err_notify() 54 queue_work(ar->ath6kl_wq, &ar->fw_recovery.recovery_work); in ath6kl_recovery_err_notify() 65 struct ath6kl *ar = from_timer(ar, t, fw_recovery.hb_timer); in ath6kl_recovery_hb_timer() local 85 ar->fw_recovery.seq_num++; in ath6kl_recovery_hb_timer() 110 if (ar->fw_recovery.hb_poll) in ath6kl_recovery_init() 117 if (!ar->fw_recovery.enable) in ath6kl_recovery_cleanup() 128 if (!ar->fw_recovery.enable) in ath6kl_recovery_suspend() [all …]
|
A D | hif-ops.h | 50 return ar->hif_ops->irq_enable(ar); in ath6kl_hif_irq_enable() 57 return ar->hif_ops->irq_disable(ar); in ath6kl_hif_irq_disable() 62 return ar->hif_ops->scatter_req_get(ar); in hif_scatter_req_get() 73 return ar->hif_ops->enable_scatter(ar); in ath6kl_hif_enable_scatter() 84 return ar->hif_ops->cleanup_scatter(ar); in ath6kl_hif_cleanup_scatter() 92 return ar->hif_ops->suspend(ar, wow); in ath6kl_hif_suspend() 117 return ar->hif_ops->bmi_read(ar, buf, len); in ath6kl_hif_bmi_read() 129 return ar->hif_ops->resume(ar); in ath6kl_hif_resume() 136 return ar->hif_ops->power_on(ar); in ath6kl_hif_power_on() 143 return ar->hif_ops->power_off(ar); in ath6kl_hif_power_off() [all …]
|
A D | bmi.c | 151 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_read() 157 ret = ath6kl_hif_bmi_read(ar, ar->bmi.cmd_buf, rx_len); in ath6kl_bmi_read() 185 if ((ar->bmi.max_data_size + header) > ar->bmi.max_cmd_size) { in ath6kl_bmi_write() 193 memset(ar->bmi.cmd_buf, 0, ar->bmi.max_data_size + header); in ath6kl_bmi_write() 225 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_write() 267 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_execute() 311 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_set_app_start() 347 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_reg_read() 394 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_reg_write() 441 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_lz_data() [all …]
|
/linux/drivers/net/wireless/ath/ar5523/ |
A D | ar5523.c | 203 usb_fill_bulk_urb(ar->rx_cmd_urb, ar->dev, in ar5523_submit_rx_cmd() 224 struct ar5523 *ar = cmd->ar; in ar5523_cmd_tx_cb() local 527 struct ar5523 *ar = data->ar; in ar5523_data_rx_cb() local 613 queue_work(ar->wq, &ar->rx_refill_work); in ar5523_data_rx_cb() 708 data->ar = ar; in ar5523_alloc_rx_bufs() 742 struct ar5523 *ar = data->ar; in ar5523_data_tx_cb() local 830 data->ar = ar; in ar5523_tx_work_locked() 946 cmd->ar = ar; in ar5523_alloc_tx_cmd() 1037 queue_work(ar->wq, &ar->rx_refill_work); in ar5523_start() 1471 ar->band.channels = ar->channels; in ar5523_init_modes() [all …]
|
/linux/drivers/net/wireless/ath/ath11k/ |
A D | mac.c | 633 struct ath11k *ar = arvif->ar; in ath11k_recalc_rtscts_prot() local 672 struct ath11k *ar = arvif->ar; in ath11k_mac_set_kickout() local 1116 struct ath11k *ar = arvif->ar; in ath11k_mac_setup_bcn_tmpl() local 3798 ar = arvif->ar; in ath11k_sta_rc_update_wk() 3924 ar = arvif->ar; in ath11k_sta_set_4addr_wk() 5510 arvif->ar = ar; in ath11k_mac_op_add_interface() 7585 ar = pdev->ar; in ath11k_mac_unregister() 7791 ar = pdev->ar; in ath11k_mac_register() 7812 ar = pdev->ar; in ath11k_mac_register() 7857 pdev->ar = ar; in ath11k_mac_allocate() [all …]
|