| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | dbring.c | 55 cookie = u32_encode_bits(ar->pdev_idx, DP_RXDMA_BUF_COOKIE_PDEV_ID) | in ath12k_dbring_bufs_replenish() 193 ring_num, ar->pdev_idx, num_entries); in ath12k_dbring_srng_setup() 207 u8 pdev_idx, in ath12k_dbring_get_cap() argument 220 if (pdev_idx == ab->db_caps[i].pdev_id && in ath12k_dbring_get_cap() 242 u8 pdev_idx, rbm; in ath12k_dbring_buffer_release_event() local 249 pdev_idx = le32_to_cpu(ev->fixed.pdev_id); in ath12k_dbring_buffer_release_event() 251 if (pdev_idx >= ab->num_radios) { in ath12k_dbring_buffer_release_event() 252 ath12k_warn(ab, "Invalid pdev id %d\n", pdev_idx); in ath12k_dbring_buffer_release_event() 264 ar = ab->pdevs[pdev_idx].ar; in ath12k_dbring_buffer_release_event() 267 if (!rcu_dereference(ab->pdevs_active[pdev_idx])) { in ath12k_dbring_buffer_release_event()
|
| H A D | reg.c | 292 reg_cap = &ab->hal_reg_cap[ar->pdev_idx]; in ath12k_regd_update() 351 pdev_id = ar->pdev_idx; in ath12k_regd_update() 893 int pdev_idx = reg_info->phy_id; in ath12k_reg_validate_reg_info() local 904 if (pdev_idx >= ab->num_radios) { in ath12k_reg_validate_reg_info() 910 pdev_idx < ab->hw_params->num_rxdma_per_pdev) in ath12k_reg_validate_reg_info() 919 if (ab->default_regd[pdev_idx] && !ab->new_regd[pdev_idx] && in ath12k_reg_validate_reg_info() 920 !memcmp(ab->default_regd[pdev_idx]->alpha2, in ath12k_reg_validate_reg_info() 933 int pdev_idx = reg_info->phy_id; in ath12k_reg_handle_chan_list() local 949 ar = ab->pdevs[pdev_idx].ar; in ath12k_reg_handle_chan_list() 950 kfree(ab->new_regd[pdev_idx]); in ath12k_reg_handle_chan_list() [all …]
|
| H A D | peer.c | 47 u8 pdev_idx, const u8 *addr) in ath12k_peer_find_by_pdev_idx() argument 54 if (peer->pdev_idx != pdev_idx) in ath12k_peer_find_by_pdev_idx() 335 peer = ath12k_peer_find_by_pdev_idx(ar->ab, ar->pdev_idx, arg->peer_addr); in ath12k_peer_create() 381 peer->pdev_idx = ar->pdev_idx; in ath12k_peer_create()
|
| H A D | hw.h | 239 int pdev_idx) in ath12k_hw_get_mac_from_pdev_id() argument 242 return hw->hw_ops->get_hw_mac_from_pdev_id(pdev_idx); in ath12k_hw_get_mac_from_pdev_id()
|
| H A D | dbring.h | 75 u8 pdev_idx,
|
| H A D | peer.h | 31 u8 pdev_idx; member
|
| H A D | mac.c | 6917 reg_info = ab->reg_info[ar->pdev_idx]; in ath12k_mac_handle_link_sta_state() 7792 ar->pdev_idx, ret); in ath12k_mac_conf_tx() 7799 ar->pdev_idx, ret); in ath12k_mac_conf_tx() 9463 rcu_assign_pointer(ab->pdevs_active[ar->pdev_idx], in ath12k_mac_start() 9464 &ab->pdevs[ar->pdev_idx]); in ath12k_mac_start() 9521 ar->pdev_idx, ret); in ath12k_mac_op_start() 9581 ar->pdev_idx, param); in ath12k_mac_rfkill_enable_radio() 9635 rcu_assign_pointer(ar->ab->pdevs_active[ar->pdev_idx], NULL); in ath12k_mac_stop() 10440 reg_info = ab->reg_info[ar->pdev_idx]; in ath12k_mac_op_add_interface() 11750 reg_info = ab->reg_info[ar->pdev_idx]; in ath12k_mac_parse_tx_pwr_env() [all …]
|
| H A D | hw.c | 23 static u8 ath12k_hw_qcn9274_mac_from_pdev_id(int pdev_idx) in ath12k_hw_qcn9274_mac_from_pdev_id() argument 25 return pdev_idx; in ath12k_hw_qcn9274_mac_from_pdev_id()
|
| H A D | dp_tx.c | 419 tx_desc->mac_id = ar->pdev_idx; in ath12k_dp_tx() 857 if (!rcu_dereference(ab->pdevs_active[ar->pdev_idx])) { in ath12k_dp_tx_complete_msdu() 1349 pdev_mask = 1 << (i + ar->pdev_idx); in ath12k_dp_tx_htt_h2t_ppdu_stats_req()
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | reg.c | 245 pdev_id = ar->pdev_idx; in ath11k_regd_update() 881 int pdev_idx; in ath11k_reg_handle_chan_list() local 896 pdev_idx = reg_info->phy_id; in ath11k_reg_handle_chan_list() 903 ab->default_regd[pdev_idx]) { in ath11k_reg_handle_chan_list() 909 if (pdev_idx >= ab->num_radios) { in ath11k_reg_handle_chan_list() 919 pdev_idx < ab->hw_params.num_rxdma_per_pdev) in ath11k_reg_handle_chan_list() 927 if (ab->default_regd[pdev_idx] && !ab->new_regd[pdev_idx] && in ath11k_reg_handle_chan_list() 928 !memcmp((char *)ab->default_regd[pdev_idx]->alpha2, in ath11k_reg_handle_chan_list() 936 if (ab->default_regd[pdev_idx] && in ath11k_reg_handle_chan_list() 938 ab->default_regd[pdev_idx]->alpha2) && in ath11k_reg_handle_chan_list() [all …]
|
| H A D | dbring.c | 85 cookie = FIELD_PREP(DP_RXDMA_BUF_COOKIE_PDEV_ID, ar->pdev_idx) | in ath11k_dbring_bufs_replenish() 229 ring_num, ar->pdev_idx, num_entries); in ath11k_dbring_srng_setup() 243 u8 pdev_idx, in ath11k_dbring_get_cap() argument 256 if (pdev_idx == ab->db_caps[i].pdev_id && in ath11k_dbring_get_cap() 278 u8 pdev_idx, rbm, module_id; in ath11k_dbring_buffer_release_event() local 285 pdev_idx = ev->fixed.pdev_id; in ath11k_dbring_buffer_release_event() 288 if (pdev_idx >= ab->num_radios) { in ath11k_dbring_buffer_release_event() 289 ath11k_warn(ab, "Invalid pdev id %d\n", pdev_idx); in ath11k_dbring_buffer_release_event() 301 ar = ab->pdevs[pdev_idx].ar; in ath11k_dbring_buffer_release_event() 304 if (!rcu_dereference(ab->pdevs_active[pdev_idx])) { in ath11k_dbring_buffer_release_event()
|
| H A D | dp_rx.h | 64 int ath11k_dp_rx_pdev_alloc(struct ath11k_base *ab, int pdev_idx); 65 void ath11k_dp_rx_pdev_free(struct ath11k_base *ab, int pdev_idx);
|
| H A D | dbring.h | 75 u8 pdev_idx,
|
| H A D | peer.h | 17 u8 pdev_idx; member
|
| H A D | spectral.c | 938 ar->pdev_idx); in ath11k_spectral_debug_register() 948 ar->pdev_idx); in ath11k_spectral_debug_register() 959 ar->pdev_idx); in ath11k_spectral_debug_register() 970 ar->pdev_idx); in ath11k_spectral_debug_register() 1001 ret = ath11k_dbring_get_cap(ar->ab, ar->pdev_idx, in ath11k_spectral_init()
|
| H A D | debugfs.c | 614 u8 i, pdev_idx; in ath11k_debugfs_dump_soc_ring_bp_stats() local 634 for (pdev_idx = 0; pdev_idx < MAX_RADIOS; pdev_idx++) { in ath11k_debugfs_dump_soc_ring_bp_stats() 636 &ab->soc_stats.bp_stats.lmac_ring_bp_stats[i][pdev_idx]; in ath11k_debugfs_dump_soc_ring_bp_stats() 644 pdev_idx); in ath11k_debugfs_dump_soc_ring_bp_stats() 1478 snprintf(pdev_name, sizeof(pdev_name), "%s%u", "mac", ar->pdev_idx); in ath11k_debugfs_register()
|
| H A D | peer.c | 437 peer->pdev_idx = ar->pdev_idx; in ath11k_peer_create()
|
| H A D | dp_tx.c | 140 ti.desc_id = FIELD_PREP(DP_TX_DESC_ID_MAC_ID, ar->pdev_idx) | in ath11k_dp_tx() 573 if (unlikely(!rcu_access_pointer(ab->pdevs_active[ar->pdev_idx]))) { in ath11k_dp_tx_complete_msdu() 1057 pdev_mask = 1 << (ar->pdev_idx + i); in ath11k_dp_tx_htt_h2t_ppdu_stats_req()
|
| H A D | hw.c | 18 static u8 ath11k_hw_ipq8074_mac_from_pdev_id(int pdev_idx) in ath11k_hw_ipq8074_mac_from_pdev_id() argument 20 switch (pdev_idx) { in ath11k_hw_ipq8074_mac_from_pdev_id() 32 static u8 ath11k_hw_ipq6018_mac_from_pdev_id(int pdev_idx) in ath11k_hw_ipq6018_mac_from_pdev_id() argument 34 return pdev_idx; in ath11k_hw_ipq6018_mac_from_pdev_id()
|
| H A D | core.h | 712 u8 pdev_idx; member
|
| H A D | mac.c | 6719 rcu_assign_pointer(ab->pdevs_active[ar->pdev_idx], in ath11k_mac_op_start() 6720 &ab->pdevs[ar->pdev_idx]); in ath11k_mac_op_start() 6776 rcu_assign_pointer(ar->ab->pdevs_active[ar->pdev_idx], NULL); in ath11k_mac_op_stop() 7292 reg_info = &ab->reg_info_store[ar->pdev_idx]; in ath11k_mac_op_add_interface() 8312 reg_info = &ab->reg_info_store[ar->pdev_idx]; in ath11k_mac_parse_tx_pwr_env() 10022 reg_info = &ar->ab->reg_info_store[ar->pdev_idx]; in ath11k_mac_op_sta_state() 10167 reg_cap = &ar->ab->hal_reg_cap[ar->pdev_idx]; in ath11k_mac_setup_channels_rates() 10770 ar->pdev_idx = i; in ath11k_mac_allocate()
|
| H A D | wmi.c | 2563 max_chan_limit = (wmi->wmi_ab->max_msg_len[ar->pdev_idx] - len) / in ath11k_wmi_send_scan_chan_list_cmd() 8895 u32 pdev_idx) in ath11k_connect_pdev_htc_service() argument 8914 conn_req.service_id = svc_id[pdev_idx]; in ath11k_connect_pdev_htc_service() 8923 ab->wmi_ab.wmi_endpoint_id[pdev_idx] = conn_resp.eid; in ath11k_connect_pdev_htc_service() 8924 ab->wmi_ab.wmi[pdev_idx].eid = conn_resp.eid; in ath11k_connect_pdev_htc_service() 8925 ab->wmi_ab.max_msg_len[pdev_idx] = conn_resp.max_msg_len; in ath11k_connect_pdev_htc_service() 8926 init_waitqueue_head(&ab->wmi_ab.wmi[pdev_idx].tx_ce_desc_wq); in ath11k_connect_pdev_htc_service()
|
| H A D | core.c | 2296 rcu_assign_pointer(ab->pdevs_active[ar->pdev_idx], NULL); in ath11k_core_halt()
|