| /linux-6.15/drivers/net/wireless/ath/ath11k/ |
| H A D | hal.c | 300 (srng->entry_size * srng->num_entries)); in ath11k_hal_srng_dst_hw_init() 380 (srng->entry_size * srng->num_entries)); in ath11k_hal_srng_src_hw_init() 671 srng->u.dst_ring.tp += srng->entry_size; in ath11k_hal_srng_dst_get_next_entry() 743 next_hp = (srng->u.src_ring.hp + srng->entry_size) % srng->ring_size; in ath11k_hal_srng_src_get_next_entry() 793 srng->u.src_ring.hp = (srng->u.src_ring.hp + srng->entry_size) % in ath11k_hal_srng_src_get_next_reaped() 805 next_hp = (srng->u.src_ring.hp + srng->entry_size) % srng->ring_size; in ath11k_hal_srng_src_next_peek() 817 if (((srng->u.src_ring.hp + srng->entry_size) % srng->ring_size) == in ath11k_hal_srng_src_peek() 996 srng->ring_size = srng->entry_size * srng->num_entries; in ath11k_hal_srng_setup() 1025 srng->u.src_ring.reap_hp = srng->ring_size - srng->entry_size; in ath11k_hal_srng_setup() 1394 srng->ring_id, srng->u.src_ring.hp, in ath11k_hal_dump_srng_stats() [all …]
|
| H A D | dbring.c | 45 struct hal_srng *srng; in ath11k_dbring_bufs_replenish() local 54 lockdep_assert_held(&srng->lock); in ath11k_dbring_bufs_replenish() 90 ath11k_hal_srng_access_end(ab, srng); in ath11k_dbring_bufs_replenish() 102 ath11k_hal_srng_access_end(ab, srng); in ath11k_dbring_bufs_replenish() 111 struct hal_srng *srng; in ath11k_dbring_fill_bufs() local 118 spin_lock_bh(&srng->lock); in ath11k_dbring_fill_bufs() 147 spin_unlock_bh(&srng->lock); in ath11k_dbring_fill_bufs() 204 struct hal_srng *srng; in ath11k_dbring_buf_setup() local 270 struct hal_srng *srng; in ath11k_dbring_buffer_release_event() local 329 spin_lock_bh(&srng->lock); in ath11k_dbring_buffer_release_event() [all …]
|
| H A D | ce.c | 276 struct hal_srng *srng; in ath11k_ce_rx_buf_enqueue_pipe() local 288 spin_lock_bh(&srng->lock); 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 386 spin_lock_bh(&srng->lock); in ath11k_ce_completed_recv_next() 412 spin_unlock_bh(&srng->lock); in ath11k_ce_completed_recv_next() 462 struct hal_srng *srng; in ath11k_ce_completed_send_next() local 475 spin_lock_bh(&srng->lock); in ath11k_ce_completed_send_next() 493 spin_unlock_bh(&srng->lock); in ath11k_ce_completed_send_next() 715 struct hal_srng *srng; in ath11k_ce_send() local [all …]
|
| H A D | hal.h | 923 struct hal_srng *srng); 930 struct hal_srng *srng); 932 struct hal_srng *srng); 945 struct hal_srng *srng); 946 u32 *ath11k_hal_srng_dst_peek(struct ath11k_base *ab, struct hal_srng *srng); 951 struct hal_srng *srng); 953 struct hal_srng *srng); 955 struct hal_srng *srng); 957 struct hal_srng *srng); 961 struct hal_srng *srng); [all …]
|
| H A D | dp.c | 374 struct hal_srng *srng; in ath11k_dp_srng_common_setup() local 462 ath11k_hal_reo_init_cmd_ring(ab, srng); in ath11k_dp_srng_common_setup() 741 spin_lock_bh(&srng->lock); in ath11k_dp_link_desc_setup() 743 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dp_link_desc_setup() 760 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_link_desc_setup() 762 spin_unlock_bh(&srng->lock); in ath11k_dp_link_desc_setup() 1051 struct hal_srng *srng = NULL; in ath11k_dp_alloc() local 1125 spin_lock_bh(&srng->lock); in ath11k_dp_shadow_timer_handler() 1141 spin_unlock_bh(&srng->lock); in ath11k_dp_shadow_timer_handler() 1145 struct hal_srng *srng, in ath11k_dp_shadow_start_timer() argument [all …]
|
| H A D | dp_rx.c | 349 struct hal_srng *srng; in ath11k_dp_rxbufs_replenish() local 614 srng, in ath11k_dp_rx_pdev_srng_alloc() 851 struct hal_srng *srng; in ath11k_dp_rx_link_desc_return() local 2633 struct hal_srng *srng; in ath11k_dp_process_rx() local 2655 srng))) { in ath11k_dp_process_rx() 2884 struct hal_srng *srng; in ath11k_dp_rx_mon_status_bufs_replenish() local 3030 struct hal_srng *srng; in ath11k_dp_rx_reap_mon_status_ring() local 3430 struct hal_srng *srng; in ath11k_dp_rx_h_defrag_reo_reinject() local 3824 struct hal_srng *srng; in ath11k_dp_process_rx_err() local 4131 struct hal_srng *srng; in ath11k_dp_rx_process_wbm_err() local [all …]
|
| H A D | hal_tx.h | 69 int ath11k_hal_reo_cmd_send(struct ath11k_base *ab, struct hal_srng *srng, 73 struct hal_srng *srng);
|
| H A 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()
|
| H A D | debugfs.h | 315 struct hal_srng *srng); 394 struct hal_srng *srng) in ath11k_debugfs_add_dbring_entry() argument
|
| H A D | hal_rx.c | 219 int ath11k_hal_reo_cmd_send(struct ath11k_base *ab, struct hal_srng *srng, in ath11k_hal_reo_cmd_send() argument 226 spin_lock_bh(&srng->lock); in ath11k_hal_reo_cmd_send() 228 ath11k_hal_srng_access_begin(ab, srng); in ath11k_hal_reo_cmd_send() 229 reo_desc = (struct hal_tlv_hdr *)ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_hal_reo_cmd_send() 257 ath11k_dp_shadow_start_timer(ab, srng, &ab->dp.reo_cmd_timer); in ath11k_hal_reo_cmd_send() 260 ath11k_hal_srng_access_end(ab, srng); in ath11k_hal_reo_cmd_send() 261 spin_unlock_bh(&srng->lock); in ath11k_hal_reo_cmd_send() 785 struct hal_srng *srng) in ath11k_hal_reo_init_cmd_ring() argument 797 ath11k_hal_srng_get_params(ab, srng, ¶ms); in ath11k_hal_reo_init_cmd_ring()
|
| H A D | dp_tx.c | 880 struct hal_srng *srng = &ab->hal.srng_list[ring_id]; in ath11k_dp_tx_htt_srng_setup() local 895 ath11k_hal_srng_get_params(ab, srng, ¶ms); in ath11k_dp_tx_htt_srng_setup() 897 hp_addr = ath11k_hal_srng_get_hp_addr(ab, srng); in ath11k_dp_tx_htt_srng_setup() 898 tp_addr = ath11k_hal_srng_get_tp_addr(ab, srng); in ath11k_dp_tx_htt_srng_setup() 1076 struct hal_srng *srng = &ab->hal.srng_list[ring_id]; in ath11k_dp_tx_htt_rx_filter_setup() local 1089 ath11k_hal_srng_get_params(ab, srng, ¶ms); in ath11k_dp_tx_htt_rx_filter_setup()
|
| H A D | dp.h | 1682 u32 ring_type, struct hal_srng *srng, 1685 struct hal_srng *srng,
|
| H A D | debugfs.c | 60 struct hal_srng *srng) in ath11k_debugfs_add_dbring_entry() argument 82 entry->hp = srng->u.src_ring.hp; in ath11k_debugfs_add_dbring_entry() 83 entry->tp = *srng->u.src_ring.tp_addr; in ath11k_debugfs_add_dbring_entry()
|
| /linux-6.15/drivers/net/wireless/ath/ath12k/ |
| H A D | hal.c | 2004 desc = srng->ring_base_vaddr + srng->u.dst_ring.tp; in ath12k_hal_srng_dst_get_next_entry() 2006 srng->u.dst_ring.tp = (srng->u.dst_ring.tp + srng->entry_size) % in ath12k_hal_srng_dst_get_next_entry() 2071 next_hp = (srng->u.src_ring.hp + srng->entry_size) % srng->ring_size; in ath12k_hal_srng_src_get_next_entry() 2121 srng->u.src_ring.hp = (srng->u.src_ring.hp + srng->entry_size) % in ath12k_hal_srng_src_get_next_reaped() 2153 *srng->u.src_ring.hp_addr = srng->u.src_ring.hp; in ath12k_hal_srng_access_end() 2156 *srng->u.dst_ring.tp_addr = srng->u.dst_ring.tp; in ath12k_hal_srng_access_end() 2308 srng->ring_size = srng->entry_size * srng->num_entries; in ath12k_hal_srng_setup() 2319 lockdep_set_class(&srng->lock, &srng->lock_key); in ath12k_hal_srng_setup() 2334 srng->u.src_ring.reap_hp = srng->ring_size - srng->entry_size; in ath12k_hal_srng_setup() 2606 srng->ring_id, srng->u.src_ring.hp, in ath12k_hal_dump_srng_stats() [all …]
|
| H A D | dbring.c | 16 struct hal_srng *srng; in ath12k_dbring_bufs_replenish() local 25 lockdep_assert_held(&srng->lock); in ath12k_dbring_bufs_replenish() 27 ath12k_hal_srng_access_begin(ab, srng); in ath12k_dbring_bufs_replenish() 59 ath12k_hal_srng_access_end(ab, srng); in ath12k_dbring_bufs_replenish() 80 struct hal_srng *srng; in ath12k_dbring_fill_bufs() local 88 spin_lock_bh(&srng->lock); in ath12k_dbring_fill_bufs() 111 spin_unlock_bh(&srng->lock); in ath12k_dbring_fill_bufs() 168 struct hal_srng *srng; in ath12k_dbring_buf_setup() local 234 struct hal_srng *srng; in ath12k_dbring_buffer_release_event() local 291 spin_lock_bh(&srng->lock); in ath12k_dbring_buffer_release_event() [all …]
|
| H A D | ce.c | 227 struct hal_srng *srng; in ath12k_ce_rx_buf_enqueue_pipe() local 239 spin_lock_bh(&srng->lock); in ath12k_ce_rx_buf_enqueue_pipe() 266 spin_unlock_bh(&srng->lock); in ath12k_ce_rx_buf_enqueue_pipe() 324 struct hal_srng *srng; in ath12k_ce_completed_recv_next() local 336 spin_lock_bh(&srng->lock); in ath12k_ce_completed_recv_next() 362 spin_unlock_bh(&srng->lock); in ath12k_ce_completed_recv_next() 413 struct hal_srng *srng; in ath12k_ce_completed_send_next() local 425 spin_lock_bh(&srng->lock); in ath12k_ce_completed_send_next() 443 spin_unlock_bh(&srng->lock); in ath12k_ce_completed_send_next() 643 struct hal_srng *srng; in ath12k_ce_send() local [all …]
|
| H A D | hal.h | 1104 struct hal_srng *srng); 1112 struct hal_srng *srng); 1114 struct hal_srng *srng); 1125 void ath12k_hal_srng_get_params(struct ath12k_base *ab, struct hal_srng *srng, 1128 struct hal_srng *srng); 1129 void *ath12k_hal_srng_dst_peek(struct ath12k_base *ab, struct hal_srng *srng); 1133 struct hal_srng *srng); 1135 struct hal_srng *srng); 1137 struct hal_srng *srng); 1141 struct hal_srng *srng); [all …]
|
| H A D | dp_rx.c | 301 struct hal_srng *srng; in ath12k_dp_rx_bufs_replenish() local 315 spin_lock_bh(&srng->lock); in ath12k_dp_rx_bufs_replenish() 392 spin_unlock_bh(&srng->lock); in ath12k_dp_rx_bufs_replenish() 838 struct hal_srng *srng; in ath12k_dp_rx_link_desc_return() local 843 spin_lock_bh(&srng->lock); in ath12k_dp_rx_link_desc_return() 2739 struct hal_srng *srng; in ath12k_dp_rx_process() local 2751 spin_lock_bh(&srng->lock); in ath12k_dp_rx_process() 3149 struct hal_srng *srng; in ath12k_dp_rx_h_defrag_reo_reinject() local 3581 struct hal_srng *srng; in ath12k_dp_rx_process_err() local 3919 struct hal_srng *srng; in ath12k_dp_rx_process_wbm_err() local [all …]
|
| H A D | hal_rx.c | 220 int ath12k_hal_reo_cmd_send(struct ath12k_base *ab, struct hal_srng *srng, in ath12k_hal_reo_cmd_send() argument 227 spin_lock_bh(&srng->lock); in ath12k_hal_reo_cmd_send() 229 ath12k_hal_srng_access_begin(ab, srng); in ath12k_hal_reo_cmd_send() 230 reo_desc = ath12k_hal_srng_src_get_next_entry(ab, srng); in ath12k_hal_reo_cmd_send() 259 ath12k_hal_srng_access_end(ab, srng); in ath12k_hal_reo_cmd_send() 260 spin_unlock_bh(&srng->lock); in ath12k_hal_reo_cmd_send() 795 struct hal_srng *srng) in ath12k_hal_reo_init_cmd_ring() argument 807 ath12k_hal_srng_get_params(ab, srng, ¶ms); in ath12k_hal_reo_init_cmd_ring()
|
| H A D | dp.c | 485 struct hal_srng *srng; in ath12k_dp_srng_common_setup() local 552 srng = &ab->hal.srng_list[dp->reo_cmd_ring.ring_id]; in ath12k_dp_srng_common_setup() 553 ath12k_hal_reo_init_cmd_ring(ab, srng); in ath12k_dp_srng_common_setup() 787 u32 ring_type, struct hal_srng *srng, in ath12k_dp_link_desc_setup() argument 845 spin_lock_bh(&srng->lock); in ath12k_dp_link_desc_setup() 847 ath12k_hal_srng_access_begin(ab, srng); in ath12k_dp_link_desc_setup() 864 ath12k_hal_srng_access_end(ab, srng); in ath12k_dp_link_desc_setup() 866 spin_unlock_bh(&srng->lock); in ath12k_dp_link_desc_setup() 1668 struct hal_srng *srng = NULL; in ath12k_dp_alloc() local 1689 srng = &ab->hal.srng_list[dp->wbm_idle_ring.ring_id]; in ath12k_dp_alloc() [all …]
|
| H A D | dp_mon.c | 2170 struct hal_srng *srng; in ath12k_dp_mon_buf_replenish() local 2176 spin_lock_bh(&srng->lock); in ath12k_dp_mon_buf_replenish() 2177 ath12k_hal_srng_access_begin(ab, srng); in ath12k_dp_mon_buf_replenish() 2220 ath12k_hal_srng_access_end(ab, srng); in ath12k_dp_mon_buf_replenish() 2221 spin_unlock_bh(&srng->lock); in ath12k_dp_mon_buf_replenish() 2234 ath12k_hal_srng_access_end(ab, srng); in ath12k_dp_mon_buf_replenish() 2235 spin_unlock_bh(&srng->lock); in ath12k_dp_mon_buf_replenish() 3241 struct hal_srng *srng; in ath12k_dp_mon_srng_process() local 3258 spin_lock_bh(&srng->lock); in ath12k_dp_mon_srng_process() 3335 ath12k_hal_srng_access_end(ab, srng); in ath12k_dp_mon_srng_process() [all …]
|
| H A D | dp_tx.c | 990 struct hal_srng *srng = &ab->hal.srng_list[ring_id]; in ath12k_dp_tx_htt_srng_setup() local 1005 ath12k_hal_srng_get_params(ab, srng, ¶ms); in ath12k_dp_tx_htt_srng_setup() 1007 hp_addr = ath12k_hal_srng_get_hp_addr(ab, srng); in ath12k_dp_tx_htt_srng_setup() 1008 tp_addr = ath12k_hal_srng_get_tp_addr(ab, srng); in ath12k_dp_tx_htt_srng_setup() 1193 struct hal_srng *srng = &ab->hal.srng_list[ring_id]; in ath12k_dp_tx_htt_rx_filter_setup() local 1206 ath12k_hal_srng_get_params(ab, srng, ¶ms); in ath12k_dp_tx_htt_rx_filter_setup() 1462 struct hal_srng *srng = &ab->hal.srng_list[ring_id]; in ath12k_dp_tx_htt_tx_filter_setup() local 1475 ath12k_hal_srng_get_params(ab, srng, ¶ms); in ath12k_dp_tx_htt_tx_filter_setup()
|
| H A D | hal_tx.h | 195 int ath12k_hal_reo_cmd_send(struct ath12k_base *ab, struct hal_srng *srng,
|
| H A D | dp.h | 1904 u32 ring_type, struct hal_srng *srng,
|