Home
last modified time | relevance | path

Searched refs:pdev_idx (Results 1 – 25 of 26) sorted by relevance

12

/linux/drivers/net/wireless/ath/ath12k/
H A Ddbring.c54 cookie = u32_encode_bits(ar->pdev_idx, DP_RXDMA_BUF_COOKIE_PDEV_ID) | in ath12k_dbring_bufs_replenish()
192 ring_num, ar->pdev_idx, num_entries); in ath12k_dbring_srng_setup()
206 u8 pdev_idx, in ath12k_dbring_get_cap() argument
219 if (pdev_idx == ab->db_caps[i].pdev_id && in ath12k_dbring_get_cap()
241 u8 pdev_idx, rbm; in ath12k_dbring_buffer_release_event() local
248 pdev_idx = le32_to_cpu(ev->fixed.pdev_id); in ath12k_dbring_buffer_release_event()
250 if (pdev_idx >= ab->num_radios) { in ath12k_dbring_buffer_release_event()
251 ath12k_warn(ab, "Invalid pdev id %d\n", pdev_idx); in ath12k_dbring_buffer_release_event()
263 ar = ab->pdevs[pdev_idx].ar; in ath12k_dbring_buffer_release_event()
266 if (!rcu_dereference(ab->pdevs_active[pdev_idx])) { in ath12k_dbring_buffer_release_event()
H A Dhw.h236 int pdev_idx) in ath12k_hw_get_mac_from_pdev_id() argument
239 return hw->hw_ops->get_hw_mac_from_pdev_id(pdev_idx); in ath12k_hw_get_mac_from_pdev_id()
H A Ddbring.h75 u8 pdev_idx,
H A Dhw.c22 static u8 ath12k_hw_qcn9274_mac_from_pdev_id(int pdev_idx) in ath12k_hw_qcn9274_mac_from_pdev_id() argument
24 return pdev_idx; in ath12k_hw_qcn9274_mac_from_pdev_id()
H A Dmac.c1332 ar->pdev_idx, ret); in ath12k_mac_op_config()
5295 ar->pdev_idx, ret); in ath12k_mac_conf_tx()
5302 ar->pdev_idx, ret); in ath12k_mac_conf_tx()
6418 rcu_assign_pointer(ab->pdevs_active[ar->pdev_idx], in ath12k_mac_start()
6419 &ab->pdevs[ar->pdev_idx]); in ath12k_mac_start()
6470 ar->pdev_idx, ret); in ath12k_mac_op_start()
6530 ar->pdev_idx, param); in ath12k_mac_rfkill_enable_radio()
6570 rcu_assign_pointer(ar->ab->pdevs_active[ar->pdev_idx], NULL); in ath12k_mac_stop()
7508 ar->pdev_idx, params->action, ret); in ath12k_mac_op_ampdu_action()
9239 reg_cap = &ar->ab->hal_reg_cap[ar->pdev_idx]; in ath12k_mac_setup_channels_rates()
[all …]
H A Dwmi.c2346 if (extraie_len_with_pad <= (wmi->wmi_ab->max_msg_len[ar->pdev_idx] - len)) { in ath12k_wmi_send_scan_start_cmd()
2553 max_chan_limit = (wmi->wmi_ab->max_msg_len[ar->pdev_idx] - len) / in ath12k_wmi_send_scan_chan_list_cmd()
5694 int ret = 0, pdev_idx, i, j; in ath12k_reg_chan_list_event() local
5719 pdev_idx = reg_info->phy_id; in ath12k_reg_chan_list_event()
5721 if (pdev_idx >= ab->num_radios) { in ath12k_reg_chan_list_event()
5727 pdev_idx < ab->hw_params->num_rxdma_per_pdev) in ath12k_reg_chan_list_event()
5736 if (ab->default_regd[pdev_idx] && !ab->new_regd[pdev_idx] && in ath12k_reg_chan_list_event()
5737 !memcmp(ab->default_regd[pdev_idx]->alpha2, in ath12k_reg_chan_list_event()
5745 if (ab->default_regd[pdev_idx] && in ath12k_reg_chan_list_event()
5747 ab->default_regd[pdev_idx]->alpha2) && in ath12k_reg_chan_list_event()
[all …]
H A Dcore.h616 u8 pdev_idx; member
1001 u8 pdev_idx; member
H A Ddp_tx.c376 tx_desc->mac_id = ar->pdev_idx; in ath12k_dp_tx()
606 if (!rcu_dereference(ab->pdevs_active[ar->pdev_idx])) { in ath12k_dp_tx_complete_msdu()
H A Dreg.c237 pdev_id = ar->pdev_idx; in ath12k_regd_update()
/linux/drivers/net/wireless/ath/ath11k/
H A Dreg.c247 pdev_id = ar->pdev_idx; in ath11k_regd_update()
841 int pdev_idx; in ath11k_reg_handle_chan_list() local
856 pdev_idx = reg_info->phy_id; in ath11k_reg_handle_chan_list()
863 ab->default_regd[pdev_idx]) { in ath11k_reg_handle_chan_list()
869 if (pdev_idx >= ab->num_radios) { in ath11k_reg_handle_chan_list()
879 pdev_idx < ab->hw_params.num_rxdma_per_pdev) in ath11k_reg_handle_chan_list()
887 if (ab->default_regd[pdev_idx] && !ab->new_regd[pdev_idx] && in ath11k_reg_handle_chan_list()
888 !memcmp((char *)ab->default_regd[pdev_idx]->alpha2, in ath11k_reg_handle_chan_list()
896 if (ab->default_regd[pdev_idx] && in ath11k_reg_handle_chan_list()
898 ab->default_regd[pdev_idx]->alpha2) && in ath11k_reg_handle_chan_list()
[all …]
H A Ddbring.c84 cookie = FIELD_PREP(DP_RXDMA_BUF_COOKIE_PDEV_ID, ar->pdev_idx) | in ath11k_dbring_bufs_replenish()
228 ring_num, ar->pdev_idx, num_entries); in ath11k_dbring_srng_setup()
242 u8 pdev_idx, in ath11k_dbring_get_cap() argument
255 if (pdev_idx == ab->db_caps[i].pdev_id && in ath11k_dbring_get_cap()
277 u8 pdev_idx, rbm, module_id; in ath11k_dbring_buffer_release_event() local
284 pdev_idx = ev->fixed.pdev_id; in ath11k_dbring_buffer_release_event()
287 if (pdev_idx >= ab->num_radios) { in ath11k_dbring_buffer_release_event()
288 ath11k_warn(ab, "Invalid pdev id %d\n", pdev_idx); in ath11k_dbring_buffer_release_event()
300 ar = ab->pdevs[pdev_idx].ar; in ath11k_dbring_buffer_release_event()
303 if (!rcu_dereference(ab->pdevs_active[pdev_idx])) { in ath11k_dbring_buffer_release_event()
H A Ddp_rx.h64 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 Ddbring.h75 u8 pdev_idx,
H A Dpeer.h17 u8 pdev_idx; member
H A Dspectral.c937 ar->pdev_idx); in ath11k_spectral_debug_register()
947 ar->pdev_idx); in ath11k_spectral_debug_register()
958 ar->pdev_idx); in ath11k_spectral_debug_register()
969 ar->pdev_idx); in ath11k_spectral_debug_register()
1000 ret = ath11k_dbring_get_cap(ar->ab, ar->pdev_idx, in ath11k_spectral_init()
H A Dhw.h299 int pdev_idx) in ath11k_hw_get_mac_from_pdev_id() argument
302 return hw->hw_ops->get_hw_mac_from_pdev_id(pdev_idx); in ath11k_hw_get_mac_from_pdev_id()
H A Ddebugfs.c734 u8 i, pdev_idx; in ath11k_debugfs_dump_soc_ring_bp_stats() local
754 for (pdev_idx = 0; pdev_idx < MAX_RADIOS; pdev_idx++) { in ath11k_debugfs_dump_soc_ring_bp_stats()
756 &ab->soc_stats.bp_stats.lmac_ring_bp_stats[i][pdev_idx]; in ath11k_debugfs_dump_soc_ring_bp_stats()
764 pdev_idx); in ath11k_debugfs_dump_soc_ring_bp_stats()
1598 snprintf(pdev_name, sizeof(pdev_name), "%s%u", "mac", ar->pdev_idx); in ath11k_debugfs_register()
H A Dpeer.c437 peer->pdev_idx = ar->pdev_idx; in ath11k_peer_create()
H A Ddp_tx.c139 ti.desc_id = FIELD_PREP(DP_TX_DESC_ID_MAC_ID, ar->pdev_idx) | in ath11k_dp_tx()
572 if (unlikely(!rcu_access_pointer(ab->pdevs_active[ar->pdev_idx]))) { in ath11k_dp_tx_complete_msdu()
1056 pdev_mask = 1 << (ar->pdev_idx + i); in ath11k_dp_tx_htt_h2t_ppdu_stats_req()
H A Dhw.c18 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 Dcore.h706 u8 pdev_idx; member
H A Dmac.c6277 rcu_assign_pointer(ab->pdevs_active[ar->pdev_idx], in ath11k_mac_op_start()
6278 &ab->pdevs[ar->pdev_idx]); in ath11k_mac_op_start()
6323 rcu_assign_pointer(ar->ab->pdevs_active[ar->pdev_idx], NULL); in ath11k_mac_op_stop()
6842 reg_info = &ab->reg_info_store[ar->pdev_idx]; in ath11k_mac_op_add_interface()
7864 reg_info = &ab->reg_info_store[ar->pdev_idx]; in ath11k_mac_parse_tx_pwr_env()
9652 reg_info = &ar->ab->reg_info_store[ar->pdev_idx]; in ath11k_mac_op_sta_state()
9797 reg_cap = &ar->ab->hal_reg_cap[ar->pdev_idx]; in ath11k_mac_setup_channels_rates()
10391 ar->pdev_idx = i; in ath11k_mac_allocate()
H A Ddp_rx.c1642 u8 pdev_id, ring_type, ring_id, pdev_idx; in ath11k_htt_backpressure_event_handler() local
1667 pdev_idx = DP_HW2SW_MACID(pdev_id); in ath11k_htt_backpressure_event_handler()
1669 if (ring_id >= HTT_SW_LMAC_RING_IDX_MAX || pdev_idx >= MAX_RADIOS) in ath11k_htt_backpressure_event_handler()
1672 bp_stats = &ab->soc_stats.bp_stats.lmac_ring_bp_stats[ring_id][pdev_idx]; in ath11k_htt_backpressure_event_handler()
3789 if (!rcu_dereference(ar->ab->pdevs_active[ar->pdev_idx])) { in ath11k_dp_process_rx_err_buf()
H A Dwmi.c2557 max_chan_limit = (wmi->wmi_ab->max_msg_len[ar->pdev_idx] - len) / in ath11k_wmi_send_scan_chan_list_cmd()
8848 u32 pdev_idx) in ath11k_connect_pdev_htc_service() argument
8867 conn_req.service_id = svc_id[pdev_idx]; in ath11k_connect_pdev_htc_service()
8876 ab->wmi_ab.wmi_endpoint_id[pdev_idx] = conn_resp.eid; in ath11k_connect_pdev_htc_service()
8877 ab->wmi_ab.wmi[pdev_idx].eid = conn_resp.eid; in ath11k_connect_pdev_htc_service()
8878 ab->wmi_ab.max_msg_len[pdev_idx] = conn_resp.max_msg_len; in ath11k_connect_pdev_htc_service()
8879 init_waitqueue_head(&ab->wmi_ab.wmi[pdev_idx].tx_ce_desc_wq); in ath11k_connect_pdev_htc_service()
H A Dcore.c1930 rcu_assign_pointer(ab->pdevs_active[ar->pdev_idx], NULL); in ath11k_core_halt()

12