/linux-5.19.10/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 | 916 struct hal_srng *srng); 923 struct hal_srng *srng); 925 struct hal_srng *srng); 935 void ath11k_hal_srng_get_params(struct ath11k_base *ab, struct hal_srng *srng, 938 struct hal_srng *srng); 939 u32 *ath11k_hal_srng_dst_peek(struct ath11k_base *ab, struct hal_srng *srng); 940 int ath11k_hal_srng_dst_num_free(struct ath11k_base *ab, struct hal_srng *srng, 942 u32 *ath11k_hal_srng_src_peek(struct ath11k_base *ab, struct hal_srng *srng); 944 struct hal_srng *srng); 946 struct hal_srng *srng); [all …]
|
D | dp.c | 372 struct hal_srng *srng; in ath11k_dp_srng_common_setup() local 417 srng = &ab->hal.srng_list[dp->tx_ring[i].tcl_data_ring.ring_id]; in ath11k_dp_srng_common_setup() 418 ath11k_hal_tx_init_data_ring(ab, srng); in ath11k_dp_srng_common_setup() 455 srng = &ab->hal.srng_list[dp->reo_cmd_ring.ring_id]; in ath11k_dp_srng_common_setup() 456 ath11k_hal_reo_init_cmd_ring(ab, srng); in ath11k_dp_srng_common_setup() 679 u32 ring_type, struct hal_srng *srng, in ath11k_dp_link_desc_setup() argument 735 spin_lock_bh(&srng->lock); in ath11k_dp_link_desc_setup() 737 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dp_link_desc_setup() 746 (desc = ath11k_hal_srng_src_get_next_entry(ab, srng))) { in ath11k_dp_link_desc_setup() 754 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 | 67 int ath11k_hal_reo_cmd_send(struct ath11k_base *ab, struct hal_srng *srng, 71 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); 402 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 | 844 struct hal_srng *srng = &ab->hal.srng_list[ring_id]; in ath11k_dp_tx_htt_srng_setup() local 859 ath11k_hal_srng_get_params(ab, srng, ¶ms); in ath11k_dp_tx_htt_srng_setup() 861 hp_addr = ath11k_hal_srng_get_hp_addr(ab, srng); in ath11k_dp_tx_htt_srng_setup() 862 tp_addr = ath11k_hal_srng_get_tp_addr(ab, srng); in ath11k_dp_tx_htt_srng_setup() 1044 struct hal_srng *srng = &ab->hal.srng_list[ring_id]; in ath11k_dp_tx_htt_rx_filter_setup() local 1057 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 | 58 struct hal_srng *srng) in ath11k_debugfs_add_dbring_entry() argument 80 entry->hp = srng->u.src_ring.hp; in ath11k_debugfs_add_dbring_entry() 81 entry->tp = *srng->u.src_ring.tp_addr; in ath11k_debugfs_add_dbring_entry()
|