/linux-6.1.9/drivers/net/wireless/ath/ath11k/ |
D | hal.c | 250 struct hal_srng *srng, int ring_num) in ath11k_hal_ce_dst_setup() argument 263 srng->u.dst_ring.max_buffer_length); in ath11k_hal_ce_dst_setup() 268 struct hal_srng *srng) in ath11k_hal_srng_dst_hw_init() argument 275 reg_base = srng->hwreg_base[HAL_SRNG_REG_GRP_R0]; in ath11k_hal_srng_dst_hw_init() 277 if (srng->flags & HAL_SRNG_FLAGS_MSI_INTR) { in ath11k_hal_srng_dst_hw_init() 280 srng->msi_addr); in ath11k_hal_srng_dst_hw_init() 283 ((u64)srng->msi_addr >> in ath11k_hal_srng_dst_hw_init() 291 srng->msi_data); in ath11k_hal_srng_dst_hw_init() 294 ath11k_hif_write32(ab, reg_base, srng->ring_base_paddr); in ath11k_hal_srng_dst_hw_init() 297 ((u64)srng->ring_base_paddr >> in ath11k_hal_srng_dst_hw_init() [all …]
|
D | dbring.c | 44 struct hal_srng *srng; in ath11k_dbring_bufs_replenish() local 51 srng = &ab->hal.srng_list[ring->refill_srng.ring_id]; in ath11k_dbring_bufs_replenish() 53 lockdep_assert_held(&srng->lock); in ath11k_dbring_bufs_replenish() 55 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dbring_bufs_replenish() 75 desc = ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_dbring_bufs_replenish() 88 ath11k_debugfs_add_dbring_entry(ar, id, ATH11K_DBG_DBR_EVENT_REPLENISH, srng); in ath11k_dbring_bufs_replenish() 89 ath11k_hal_srng_access_end(ab, srng); in ath11k_dbring_bufs_replenish() 101 ath11k_hal_srng_access_end(ab, srng); in ath11k_dbring_bufs_replenish() 110 struct hal_srng *srng; in ath11k_dbring_fill_bufs() local 115 srng = &ar->ab->hal.srng_list[ring->refill_srng.ring_id]; in ath11k_dbring_fill_bufs() [all …]
|
D | ce.c | 276 struct hal_srng *srng; in ath11k_ce_rx_buf_enqueue_pipe() local 286 srng = &ab->hal.srng_list[ring->hal_ring_id]; in ath11k_ce_rx_buf_enqueue_pipe() 288 spin_lock_bh(&srng->lock); in ath11k_ce_rx_buf_enqueue_pipe() 290 ath11k_hal_srng_access_begin(ab, srng); in ath11k_ce_rx_buf_enqueue_pipe() 292 if (unlikely(ath11k_hal_srng_src_num_free(ab, srng, false) < 1)) { in ath11k_ce_rx_buf_enqueue_pipe() 297 desc = ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_ce_rx_buf_enqueue_pipe() 313 ath11k_hal_srng_access_end(ab, srng); in ath11k_ce_rx_buf_enqueue_pipe() 315 spin_unlock_bh(&srng->lock); in ath11k_ce_rx_buf_enqueue_pipe() 373 struct hal_srng *srng; in ath11k_ce_completed_recv_next() local 384 srng = &ab->hal.srng_list[pipe->status_ring->hal_ring_id]; in ath11k_ce_completed_recv_next() [all …]
|
D | hal.h | 917 struct hal_srng *srng); 924 struct hal_srng *srng); 926 struct hal_srng *srng); 936 void ath11k_hal_srng_get_params(struct ath11k_base *ab, struct hal_srng *srng, 939 struct hal_srng *srng); 940 u32 *ath11k_hal_srng_dst_peek(struct ath11k_base *ab, struct hal_srng *srng); 941 int ath11k_hal_srng_dst_num_free(struct ath11k_base *ab, struct hal_srng *srng, 943 u32 *ath11k_hal_srng_src_peek(struct ath11k_base *ab, struct hal_srng *srng); 945 struct hal_srng *srng); 947 struct hal_srng *srng); [all …]
|
D | dp.c | 371 struct hal_srng *srng; in ath11k_dp_srng_common_setup() local 420 srng = &ab->hal.srng_list[dp->tx_ring[i].tcl_data_ring.ring_id]; in ath11k_dp_srng_common_setup() 421 ath11k_hal_tx_init_data_ring(ab, srng); in ath11k_dp_srng_common_setup() 458 srng = &ab->hal.srng_list[dp->reo_cmd_ring.ring_id]; in ath11k_dp_srng_common_setup() 459 ath11k_hal_reo_init_cmd_ring(ab, srng); in ath11k_dp_srng_common_setup() 682 u32 ring_type, struct hal_srng *srng, in ath11k_dp_link_desc_setup() argument 738 spin_lock_bh(&srng->lock); in ath11k_dp_link_desc_setup() 740 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dp_link_desc_setup() 749 (desc = ath11k_hal_srng_src_get_next_entry(ab, srng))) { in ath11k_dp_link_desc_setup() 757 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_link_desc_setup() [all …]
|
D | dp_rx.c | 348 struct hal_srng *srng; in ath11k_dp_rxbufs_replenish() local 359 srng = &ab->hal.srng_list[rx_ring->refill_buf_ring.ring_id]; in ath11k_dp_rxbufs_replenish() 361 spin_lock_bh(&srng->lock); in ath11k_dp_rxbufs_replenish() 363 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dp_rxbufs_replenish() 365 num_free = ath11k_hal_srng_src_num_free(ab, srng, true); in ath11k_dp_rxbufs_replenish() 398 desc = ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_dp_rxbufs_replenish() 412 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_rxbufs_replenish() 414 spin_unlock_bh(&srng->lock); in ath11k_dp_rxbufs_replenish() 428 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_rxbufs_replenish() 430 spin_unlock_bh(&srng->lock); in ath11k_dp_rxbufs_replenish() [all …]
|
D | hal_tx.h | 69 int ath11k_hal_reo_cmd_send(struct ath11k_base *ab, struct hal_srng *srng, 73 struct hal_srng *srng);
|
D | hal_tx.c | 140 void ath11k_hal_tx_init_data_ring(struct ath11k_base *ab, struct hal_srng *srng) in ath11k_hal_tx_init_data_ring() argument 150 ath11k_hal_srng_get_params(ab, srng, ¶ms); in ath11k_hal_tx_init_data_ring()
|
D | debugfs.h | 314 struct hal_srng *srng); 401 struct hal_srng *srng) in ath11k_debugfs_add_dbring_entry() argument
|
D | hal_rx.c | 218 int ath11k_hal_reo_cmd_send(struct ath11k_base *ab, struct hal_srng *srng, in ath11k_hal_reo_cmd_send() argument 225 spin_lock_bh(&srng->lock); in ath11k_hal_reo_cmd_send() 227 ath11k_hal_srng_access_begin(ab, srng); in ath11k_hal_reo_cmd_send() 228 reo_desc = (struct hal_tlv_hdr *)ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_hal_reo_cmd_send() 256 ath11k_dp_shadow_start_timer(ab, srng, &ab->dp.reo_cmd_timer); in ath11k_hal_reo_cmd_send() 259 ath11k_hal_srng_access_end(ab, srng); in ath11k_hal_reo_cmd_send() 260 spin_unlock_bh(&srng->lock); in ath11k_hal_reo_cmd_send() 783 struct hal_srng *srng) in ath11k_hal_reo_init_cmd_ring() argument 795 ath11k_hal_srng_get_params(ab, srng, ¶ms); in ath11k_hal_reo_init_cmd_ring()
|
D | dp_tx.c | 841 struct hal_srng *srng = &ab->hal.srng_list[ring_id]; in ath11k_dp_tx_htt_srng_setup() local 856 ath11k_hal_srng_get_params(ab, srng, ¶ms); in ath11k_dp_tx_htt_srng_setup() 858 hp_addr = ath11k_hal_srng_get_hp_addr(ab, srng); in ath11k_dp_tx_htt_srng_setup() 859 tp_addr = ath11k_hal_srng_get_tp_addr(ab, srng); in ath11k_dp_tx_htt_srng_setup() 1041 struct hal_srng *srng = &ab->hal.srng_list[ring_id]; in ath11k_dp_tx_htt_rx_filter_setup() local 1054 ath11k_hal_srng_get_params(ab, srng, ¶ms); in ath11k_dp_tx_htt_rx_filter_setup()
|
D | dp.h | 1700 u32 ring_type, struct hal_srng *srng, 1703 struct hal_srng *srng,
|
D | debugfs.c | 59 struct hal_srng *srng) in ath11k_debugfs_add_dbring_entry() argument 81 entry->hp = srng->u.src_ring.hp; in ath11k_debugfs_add_dbring_entry() 82 entry->tp = *srng->u.src_ring.tp_addr; in ath11k_debugfs_add_dbring_entry()
|