/wlan-driver/qca-wifi-host-cmn/hal/wifi3.0/ |
D | hal_generic_api.h | 138 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_get_hw_hptp_generic() local 142 if (!hal_soc || !srng) { in hal_get_hw_hptp_generic() 150 if (srng->ring_dir == HAL_SRNG_SRC_RING) { in hal_get_hw_hptp_generic() 151 *headp = SRNG_SRC_REG_READ(srng, HP); in hal_get_hw_hptp_generic() 152 *tailp = SRNG_SRC_REG_READ(srng, TP); in hal_get_hw_hptp_generic() 154 *headp = SRNG_DST_REG_READ(srng, HP); in hal_get_hw_hptp_generic() 155 *tailp = SRNG_DST_REG_READ(srng, TP); in hal_get_hw_hptp_generic() 169 void hal_srng_src_hw_write_cons_prefetch_timer(struct hal_srng *srng, in hal_srng_src_hw_write_cons_prefetch_timer() argument 172 SRNG_SRC_REG_WRITE(srng, CONSUMER_PREFETCH_TIMER, value); in hal_srng_src_hw_write_cons_prefetch_timer() 182 void hal_srng_hw_disable_generic(struct hal_soc *hal, struct hal_srng *srng) in hal_srng_hw_disable_generic() argument [all …]
|
D | hal_api.h | 504 struct hal_srng *srng, in hal_srng_write_address_32_mb() argument 509 hal_srng_reg_his_add(srng, value); in hal_srng_write_address_32_mb() 513 struct hal_srng *srng, in hal_srng_write_address_32_mb() argument 517 hal_delayed_reg_write(hal_soc, srng, addr, value); in hal_srng_write_address_32_mb() 521 struct hal_srng *srng, in hal_srng_write_address_32_mb() argument 526 hal_srng_reg_his_add(srng, value); in hal_srng_write_address_32_mb() 891 struct hal_srng *srng, 895 hal_srng_check_and_update_hptp(struct hal_soc *hal_soc, struct hal_srng *srng, in hal_srng_check_and_update_hptp() argument 1010 void hal_srng_dump(struct hal_srng *srng); 1315 struct hal_srng *srng, [all …]
|
D | hal_srng.c | 166 struct hal_srng *srng; in hal_update_srng_hp_tp_address() local 175 srng = hal_get_srng(hal_soc, ring_id); in hal_update_srng_hp_tp_address() 178 srng->u.dst_ring.tp_addr = SHADOW_REGISTER(shadow_config_index) in hal_update_srng_hp_tp_address() 181 srng->u.dst_ring.tp_addr, hal_soc->dev_base_addr, in hal_update_srng_hp_tp_address() 184 srng->u.src_ring.hp_addr = SHADOW_REGISTER(shadow_config_index) in hal_update_srng_hp_tp_address() 187 srng->u.src_ring.hp_addr, in hal_update_srng_hp_tp_address() 587 char *hal_fill_reg_write_srng_stats(struct hal_srng *srng, in hal_fill_reg_write_srng_stats() argument 591 srng->wstats.enqueues, srng->wstats.dequeues, in hal_fill_reg_write_srng_stats() 592 srng->wstats.coalesces, srng->wstats.direct); in hal_fill_reg_write_srng_stats() 602 struct hal_srng *srng; in hal_dump_reg_write_srng_stats() local [all …]
|
D | README | 10 hal_6290_srng_table.c - holds hw srng table and hal hw reg offsets array 14 hal_8074_srng_table.c - holds hw srng table and hal hw reg offsets array
|
D | hal_internal.h | 504 struct hal_srng *srng; member 900 void hal_srng_reg_his_init(struct hal_srng *srng) in hal_srng_reg_his_init() argument 902 qdf_atomic_set(&srng->reg_his_ctx->current_idx, -1); in hal_srng_reg_his_init() 914 void hal_srng_reg_his_add(struct hal_srng *srng, uint32_t reg_val) in hal_srng_reg_his_add() argument 919 write_idx = qdf_atomic_inc_return(&srng->reg_his_ctx->current_idx); in hal_srng_reg_his_add() 922 reg_his_entry = &srng->reg_his_ctx->reg_his_arr[write_idx]; in hal_srng_reg_his_add() 929 void hal_srng_reg_his_init(struct hal_srng *srng) in hal_srng_reg_his_init() argument 934 void hal_srng_reg_his_add(struct hal_srng *srng, uint32_t reg_val) in hal_srng_reg_his_add() argument 1060 struct hal_srng *srng, bool idle_check, 1063 struct hal_srng *srng, bool idle_check, [all …]
|
/wlan-driver/qca-wifi-host-cmn/target_if/wifi_pos/src/ |
D | target_if_wifi_pos.c | 59 void *srng = priv->dma_cfg[ring_idx].srng; in target_if_wifi_pos_replenish_ring() local 78 hal_srng_access_start(hal_soc, srng); in target_if_wifi_pos_replenish_ring() 79 ring_entry = hal_srng_src_get_next(hal_soc, srng); in target_if_wifi_pos_replenish_ring() 84 hal_srng_access_end(hal_soc, srng); in target_if_wifi_pos_replenish_ring() 197 struct hal_srng *srng, in target_if_wifi_pos_fill_ring() argument 240 void *srng; in target_if_wifi_pos_init_ring() local 278 srng = hal_srng_setup(hal_soc, WIFI_POS_SRC, 0, in target_if_wifi_pos_init_ring() 280 if (!srng) { in target_if_wifi_pos_init_ring() 284 priv->dma_cfg[ring_idx].srng = srng; in target_if_wifi_pos_init_ring() 286 (void *)hal_srng_get_tp_addr(hal_soc, srng); in target_if_wifi_pos_init_ring() [all …]
|
/wlan-driver/qca-wifi-host-cmn/target_if/direct_buf_rx/src/ |
D | target_if_direct_buf_rx_main.c | 1311 void *hal_soc, *srng; in target_if_dbr_replenish_ring() local 1344 srng = dbr_ring_cfg->srng; in target_if_dbr_replenish_ring() 1367 hal_le_srng_access_start_in_cpu_order(hal_soc, srng); in target_if_dbr_replenish_ring() 1368 ring_entry = hal_srng_src_get_next(hal_soc, srng); in target_if_dbr_replenish_ring() 1382 hal_le_srng_access_end_in_cpu_order(hal_soc, srng); in target_if_dbr_replenish_ring() 1440 void *srng; in target_if_dbr_init_ring() local 1522 srng = hal_srng_setup(dbr_psoc_obj->hal_soc, DIR_BUF_RX_DMA_SRC, in target_if_dbr_init_ring() 1526 if (!srng) { in target_if_dbr_init_ring() 1536 dbr_ring_cfg->srng = srng; in target_if_dbr_init_ring() 1538 hal_srng_get_tp_addr(dbr_psoc_obj->hal_soc, srng); in target_if_dbr_init_ring() [all …]
|
D | target_if_direct_buf_rx_main.h | 77 void *srng; member
|
/wlan-driver/qca-wifi-host-cmn/dp/wifi3.0/be/ |
D | dp_be.h | 762 void dp_ppeds_disable_irq(struct dp_soc *soc, struct dp_srng *srng); 763 void dp_ppeds_enable_irq(struct dp_soc *soc, struct dp_srng *srng); 979 struct dp_srng *srng, in _dp_srng_test_and_update_nf_params() argument 984 if (dp_srng_check_ring_near_full(soc, srng)) { in _dp_srng_test_and_update_nf_params() 985 near_full_level = dp_srng_get_near_full_level(soc, srng); in _dp_srng_test_and_update_nf_params() 995 qdf_atomic_set(&srng->near_full, 0); in _dp_srng_test_and_update_nf_params() 1009 struct dp_srng *srng, in _dp_srng_test_and_update_nf_params() argument
|
D | dp_be.c | 1660 void dp_free_ppeds_interrupts(struct dp_soc *soc, struct dp_srng *srng, in dp_free_ppeds_interrupts() argument 1663 if (srng->irq >= 0) { in dp_free_ppeds_interrupts() 1664 qdf_dev_clear_irq_status_flags(srng->irq, IRQ_DISABLE_UNLAZY); in dp_free_ppeds_interrupts() 1667 pld_pfrm_free_irq(soc->osdev->dev, srng->irq, soc); in dp_free_ppeds_interrupts() 1669 pld_pfrm_free_irq(soc->osdev->dev, srng->irq, in dp_free_ppeds_interrupts() 1675 int dp_register_ppeds_interrupts(struct dp_soc *soc, struct dp_srng *srng, in dp_register_ppeds_interrupts() argument 1682 srng->irq = -1; in dp_register_ppeds_interrupts() 1725 srng->irq = irq; in dp_register_ppeds_interrupts() 1739 void dp_ppeds_disable_irq(struct dp_soc *soc, struct dp_srng *srng) in dp_ppeds_disable_irq() argument 1741 if (srng->irq >= 0) in dp_ppeds_disable_irq() [all …]
|
D | dp_be_tx.c | 1109 struct dp_srng *srng; in dp_ppeds_tx_comp_handler() local 1126 srng = &be_soc->ppeds_wbm_release_ring; in dp_ppeds_tx_comp_handler() 1128 if (srng) { in dp_ppeds_tx_comp_handler() 1129 hal_update_ring_util(soc->hal_soc, srng->hal_srng, in dp_ppeds_tx_comp_handler()
|
/wlan-driver/qca-wifi-host-cmn/dp/wifi3.0/rh/ |
D | dp_rh.c | 34 dp_srng_init_rh(struct dp_soc *soc, struct dp_srng *srng, int ring_type, in dp_srng_init_rh() argument 40 if (srng->hal_srng) { in dp_srng_init_rh() 47 qdf_mem_zero(srng->base_vaddr_unaligned, srng->alloc_size); in dp_srng_init_rh() 50 ring_params.ring_base_paddr = srng->base_paddr_aligned; in dp_srng_init_rh() 51 ring_params.ring_base_vaddr = srng->base_vaddr_aligned; in dp_srng_init_rh() 53 ring_params.num_entries = srng->num_entries; in dp_srng_init_rh() 66 dp_srng_msi_setup(soc, srng, &ring_params, in dp_srng_init_rh() 80 srng->num_entries); in dp_srng_init_rh() 83 srng->hal_srng = hal_srng_setup(hal_soc, ring_type, ring_num, in dp_srng_init_rh() 86 if (!srng->hal_srng) { in dp_srng_init_rh() [all …]
|
/wlan-driver/qca-wifi-host-cmn/hal/wifi3.0/kiwi/ |
D | hal_kiwi_tx.h | 172 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_tx_config_rbm_mapping_be_kiwi() local 180 ring_type = srng->ring_type; in hal_tx_config_rbm_mapping_be_kiwi() 182 ring_num = srng->ring_id - ring_num; in hal_tx_config_rbm_mapping_be_kiwi()
|
D | hal_kiwi.c | 2050 void hal_srng_dst_hw_init_misc_1_kiwi(struct hal_srng *srng) in hal_srng_dst_hw_init_misc_1_kiwi() argument 2055 if (srng->pointer_num_threshold) in hal_srng_dst_hw_init_misc_1_kiwi() 2058 srng->pointer_num_threshold); in hal_srng_dst_hw_init_misc_1_kiwi() 2060 if (srng->pointer_timer_threshold) in hal_srng_dst_hw_init_misc_1_kiwi() 2063 srng->pointer_timer_threshold); in hal_srng_dst_hw_init_misc_1_kiwi() 2066 SRNG_DST_REG_WRITE(srng, MISC_1, reg_val); in hal_srng_dst_hw_init_misc_1_kiwi() 2085 void hal_srng_dst_hw_init_misc_1_kiwi(struct hal_srng *srng) in hal_srng_dst_hw_init_misc_1_kiwi() argument 2107 struct hal_srng *srng, in hal_srng_dst_hw_init_kiwi() argument 2111 hal_srng_dst_hw_init_misc_1_kiwi(srng); in hal_srng_dst_hw_init_kiwi() 2113 hal_srng_dst_hw_init_generic(hal_soc, srng, idle_check, idx); in hal_srng_dst_hw_init_kiwi()
|
/wlan-driver/qca-wifi-host-cmn/dp/wifi3.0/ |
D | dp_main.c | 1277 struct dp_srng *srng, in dp_srng_aligned_mem_alloc_consistent() argument 1282 qdf_assert(!srng->is_mem_prealloc); in dp_srng_aligned_mem_alloc_consistent() 1291 (&srng->alloc_size, in dp_srng_aligned_mem_alloc_consistent() 1292 &srng->base_vaddr_unaligned, in dp_srng_aligned_mem_alloc_consistent() 1293 &srng->base_paddr_unaligned, in dp_srng_aligned_mem_alloc_consistent() 1294 &srng->base_paddr_aligned, in dp_srng_aligned_mem_alloc_consistent() 1298 srng->is_mem_prealloc = true; in dp_srng_aligned_mem_alloc_consistent() 1302 mem = qdf_aligned_mem_alloc_consistent(soc->osdev, &srng->alloc_size, in dp_srng_aligned_mem_alloc_consistent() 1303 &srng->base_vaddr_unaligned, in dp_srng_aligned_mem_alloc_consistent() 1304 &srng->base_paddr_unaligned, in dp_srng_aligned_mem_alloc_consistent() [all …]
|
D | dp_rings_main.c | 393 dp_srng_set_nf_thresholds(struct dp_soc *soc, struct dp_srng *srng, in dp_srng_set_nf_thresholds() argument 396 srng->crit_thresh = ring_params->crit_thresh; in dp_srng_set_nf_thresholds() 397 srng->safe_thresh = ring_params->safe_thresh; in dp_srng_set_nf_thresholds() 402 dp_srng_set_nf_thresholds(struct dp_soc *soc, struct dp_srng *srng, in dp_srng_set_nf_thresholds() argument 479 QDF_STATUS dp_srng_init_idx(struct dp_soc *soc, struct dp_srng *srng, in dp_srng_init_idx() argument 488 if (srng->hal_srng) { in dp_srng_init_idx() 495 qdf_mem_zero(srng->base_vaddr_unaligned, srng->alloc_size); in dp_srng_init_idx() 498 ring_params.ring_base_paddr = srng->base_paddr_aligned; in dp_srng_init_idx() 499 ring_params.ring_base_vaddr = srng->base_vaddr_aligned; in dp_srng_init_idx() 501 ring_params.num_entries = srng->num_entries; in dp_srng_init_idx() [all …]
|
D | dp_types.h | 2536 struct dp_srng *srng, int vector, 2539 struct dp_srng *srng, int ring_type, 2559 QDF_STATUS (*txrx_srng_init)(struct dp_soc *soc, struct dp_srng *srng, 5328 QDF_STATUS dp_srng_alloc(struct dp_soc *soc, struct dp_srng *srng, 5339 void dp_srng_free(struct dp_soc *soc, struct dp_srng *srng); 5351 QDF_STATUS dp_srng_init(struct dp_soc *soc, struct dp_srng *srng, 5365 QDF_STATUS dp_srng_init_idx(struct dp_soc *soc, struct dp_srng *srng, 5378 void dp_srng_deinit(struct dp_soc *soc, struct dp_srng *srng,
|
D | dp_rx_err.c | 228 struct hal_srng *srng = (struct hal_srng *)wbm_rel_srng; in dp_rx_link_desc_return_by_addr() local 233 srng->ring_id, in dp_rx_link_desc_return_by_addr() 236 *srng->u.src_ring.hp_addr, in dp_rx_link_desc_return_by_addr() 237 srng->u.src_ring.reap_hp, in dp_rx_link_desc_return_by_addr() 238 *srng->u.src_ring.tp_addr, in dp_rx_link_desc_return_by_addr() 239 srng->u.src_ring.cached_tp); in dp_rx_link_desc_return_by_addr()
|
/wlan-driver/qca-wifi-host-cmn/hal/wifi3.0/qca5332/ |
D | hal_5332_tx.h | 203 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_tx_config_rbm_mapping_be_5332() local 211 ring_type = srng->ring_type; in hal_tx_config_rbm_mapping_be_5332() 213 ring_num = srng->ring_id - ring_num; in hal_tx_config_rbm_mapping_be_5332()
|
/wlan-driver/qca-wifi-host-cmn/hal/wifi3.0/qcn9224/ |
D | hal_9224_tx.h | 299 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_tx_config_rbm_mapping_be_9224() local 307 ring_type = srng->ring_type; in hal_tx_config_rbm_mapping_be_9224() 309 ring_num = srng->ring_id - ring_num; in hal_tx_config_rbm_mapping_be_9224()
|
/wlan-driver/qca-wifi-host-cmn/hal/wifi3.0/qcn6432/ |
D | hal_6432_tx.h | 218 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_tx_config_rbm_mapping_be_6432() local 226 ring_type = srng->ring_type; in hal_tx_config_rbm_mapping_be_6432() 228 ring_num = srng->ring_id - ring_num; in hal_tx_config_rbm_mapping_be_6432()
|
/wlan-driver/qca-wifi-host-cmn/hif/src/ce/ |
D | ce_main.c | 2537 char srng[MAX_CE_STR_LEN]; in ce_ring_dump_register_region() local 2549 qdf_snprint(srng, MAX_CE_STR_LEN, in ce_ring_dump_register_region() 2551 qdf_ssr_driver_dump_register_region(srng, ce_ring->srng_ctx, in ce_ring_dump_register_region() 2561 qdf_snprint(srng, MAX_CE_STR_LEN, in ce_ring_dump_register_region() 2563 qdf_ssr_driver_dump_register_region(srng, ce_ring->srng_ctx, in ce_ring_dump_register_region() 2573 qdf_snprint(srng, MAX_CE_STR_LEN, in ce_ring_dump_register_region() 2575 qdf_ssr_driver_dump_register_region(srng, ce_ring->srng_ctx, in ce_ring_dump_register_region() 2592 char srng[MAX_CE_STR_LEN]; in ce_ring_dump_unregister_region() local 2599 qdf_snprint(srng, MAX_CE_STR_LEN, in ce_ring_dump_unregister_region() 2602 qdf_ssr_driver_dump_unregister_region(srng); in ce_ring_dump_unregister_region() [all …]
|
/wlan-driver/qca-wifi-host-cmn/umac/wifi_pos/inc/ |
D | wifi_pos_utils_i.h | 213 void *srng; member
|
/wlan-driver/qca-wifi-host-cmn/dp/wifi3.0/monitor/1.0/ |
D | dp_mon_1.0.c | 43 extern QDF_STATUS dp_srng_alloc(struct dp_soc *soc, struct dp_srng *srng, 46 extern void dp_srng_free(struct dp_soc *soc, struct dp_srng *srng); 47 extern QDF_STATUS dp_srng_init(struct dp_soc *soc, struct dp_srng *srng, 49 extern void dp_srng_deinit(struct dp_soc *soc, struct dp_srng *srng,
|
/wlan-driver/qca-wifi-host-cmn/dp/wifi3.0/li/ |
D | dp_li.c | 431 QDF_STATUS dp_srng_init_li(struct dp_soc *soc, struct dp_srng *srng, in dp_srng_init_li() argument 434 return dp_srng_init_idx(soc, srng, ring_type, ring_num, mac_id, 0); in dp_srng_init_li()
|