Lines Matching refs:hal_ring_hdl

239 					       hal_ring_handle_t hal_ring_hdl)  in hal_tx_init_cmd_credit_ring()  argument
244 hal_ring_hdl); in hal_tx_init_cmd_credit_ring()
1003 void hal_set_low_threshold(hal_ring_handle_t hal_ring_hdl,
1326 hal_ring_handle_t hal_ring_hdl);
1334 void hal_srng_cleanup(void *hal_soc, hal_ring_handle_t hal_ring_hdl,
1337 static inline bool hal_srng_initialized(hal_ring_handle_t hal_ring_hdl) in hal_srng_initialized() argument
1339 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_initialized()
1355 hal_ring_handle_t hal_ring_hdl) in hal_srng_dst_peek() argument
1357 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_peek()
1404 hal_ring_handle_t hal_ring_hdl) in hal_srng_access_start_unlocked() argument
1406 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_access_start_unlocked()
1418 desc = hal_srng_dst_peek(hal_soc_hdl, hal_ring_hdl); in hal_srng_access_start_unlocked()
1450 hal_ring_handle_t hal_ring_hdl) in hal_le_srng_access_start_unlocked_in_cpu_order() argument
1452 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_le_srng_access_start_unlocked_in_cpu_order()
1466 desc = hal_srng_dst_peek(hal_soc_hdl, hal_ring_hdl); in hal_le_srng_access_start_unlocked_in_cpu_order()
1486 hal_ring_handle_t hal_ring_hdl) in hal_srng_try_access_start() argument
1488 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_try_access_start()
1490 if (qdf_unlikely(!hal_ring_hdl)) { in hal_srng_try_access_start()
1498 return hal_srng_access_start_unlocked(hal_soc_hdl, hal_ring_hdl); in hal_srng_try_access_start()
1514 hal_ring_handle_t hal_ring_hdl) in hal_srng_access_start() argument
1516 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_access_start()
1518 if (qdf_unlikely(!hal_ring_hdl)) { in hal_srng_access_start()
1525 return hal_srng_access_start_unlocked(hal_soc_hdl, hal_ring_hdl); in hal_srng_access_start()
1545 hal_ring_handle_t hal_ring_hdl) in hal_le_srng_access_start_in_cpu_order() argument
1547 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_le_srng_access_start_in_cpu_order()
1549 if (qdf_unlikely(!hal_ring_hdl)) { in hal_le_srng_access_start_in_cpu_order()
1557 hal_soc_hdl, hal_ring_hdl); in hal_le_srng_access_start_in_cpu_order()
1569 hal_ring_handle_t hal_ring_hdl) in hal_srng_dst_get_next() argument
1571 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_get_next()
1613 hal_ring_handle_t hal_ring_hdl) in hal_srng_dst_get_next_cached() argument
1615 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_get_next_cached()
1647 void hal_srng_dst_dec_tp(void *hal_soc, hal_ring_handle_t hal_ring_hdl) in hal_srng_dst_dec_tp() argument
1649 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_dec_tp()
1657 static inline int hal_srng_lock(hal_ring_handle_t hal_ring_hdl) in hal_srng_lock() argument
1659 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_lock()
1661 if (qdf_unlikely(!hal_ring_hdl)) { in hal_srng_lock()
1670 static inline int hal_srng_unlock(hal_ring_handle_t hal_ring_hdl) in hal_srng_unlock() argument
1672 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_unlock()
1674 if (qdf_unlikely(!hal_ring_hdl)) { in hal_srng_unlock()
1693 hal_ring_handle_t hal_ring_hdl) in hal_srng_dst_get_next_hp() argument
1695 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_get_next_hp()
1727 hal_ring_handle_t hal_ring_hdl) in hal_srng_dst_peek_sync() argument
1729 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_peek_sync()
1752 hal_ring_handle_t hal_ring_hdl) in hal_srng_dst_peek_sync_locked() argument
1754 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_peek_sync_locked()
1757 if (qdf_unlikely(!hal_ring_hdl)) { in hal_srng_dst_peek_sync_locked()
1764 ring_desc_ptr = hal_srng_dst_peek_sync(hal_soc_hdl, hal_ring_hdl); in hal_srng_dst_peek_sync_locked()
1771 #define hal_srng_dst_num_valid_nolock(hal_soc, hal_ring_hdl, sync_hw_ptr) \ argument
1772 hal_srng_dst_num_valid(hal_soc, hal_ring_hdl, sync_hw_ptr)
1785 hal_ring_handle_t hal_ring_hdl, in hal_srng_dst_num_valid() argument
1788 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_num_valid()
1817 hal_ring_handle_t hal_ring_hdl, in hal_srng_dst_inv_cached_descs() argument
1820 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_inv_cached_descs()
1874 hal_ring_handle_t hal_ring_hdl, in hal_srng_dst_num_valid_locked() argument
1878 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_num_valid_locked()
1881 num_valid = hal_srng_dst_num_valid(hal_soc, hal_ring_hdl, sync_hw_ptr); in hal_srng_dst_num_valid_locked()
1895 hal_ring_handle_t hal_ring_hdl) in hal_srng_sync_cachedhp() argument
1897 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_sync_cachedhp()
1919 hal_srng_src_reap_next(void *hal_soc, hal_ring_handle_t hal_ring_hdl) in hal_srng_src_reap_next() argument
1921 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_src_reap_next()
1953 hal_srng_src_get_next_reaped(void *hal_soc, hal_ring_handle_t hal_ring_hdl) in hal_srng_src_get_next_reaped() argument
1955 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_src_get_next_reaped()
1981 hal_srng_src_pending_reap_next(void *hal_soc, hal_ring_handle_t hal_ring_hdl) in hal_srng_src_pending_reap_next() argument
1983 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_src_pending_reap_next()
2006 hal_srng_src_done_val(void *hal_soc, hal_ring_handle_t hal_ring_hdl) in hal_srng_src_done_val() argument
2008 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_src_done_val()
2039 uint8_t hal_get_entrysize_from_srng(hal_ring_handle_t hal_ring_hdl) in hal_get_entrysize_from_srng() argument
2041 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_get_entrysize_from_srng()
2056 void hal_get_sw_hptp(void *hal_soc, hal_ring_handle_t hal_ring_hdl, in hal_get_sw_hptp() argument
2059 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_get_sw_hptp()
2080 hal_ring_handle_t hal_ring_hdl) in hal_srng_src_get_next_consumed() argument
2082 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_src_get_next_consumed()
2104 hal_ring_handle_t hal_ring_hdl) in hal_srng_src_get_next_consumed() argument
2120 void *hal_srng_src_peek(void *hal_soc, hal_ring_handle_t hal_ring_hdl) in hal_srng_src_peek() argument
2122 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_src_peek()
2145 hal_ring_handle_t hal_ring_hdl) in hal_srng_src_get_next() argument
2147 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_src_get_next()
2185 hal_ring_handle_t hal_ring_hdl) in hal_srng_src_peek_n_get_next() argument
2187 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_src_peek_n_get_next()
2216 hal_ring_handle_t hal_ring_hdl) in hal_srng_src_dec_hp() argument
2218 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_src_dec_hp()
2245 hal_ring_handle_t hal_ring_hdl) in hal_srng_src_peek_n_get_next_next() argument
2247 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_src_peek_n_get_next_next()
2279 hal_ring_handle_t hal_ring_hdl) in hal_srng_src_get_cur_hp_n_move_next() argument
2281 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_src_get_cur_hp_n_move_next()
2306 hal_ring_handle_t hal_ring_hdl, int sync_hw_ptr) in hal_srng_src_num_avail() argument
2308 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_src_num_avail()
2338 hal_ring_handle_t hal_ring_hdl) in hal_srng_clear_ring_usage_wm_locked() argument
2340 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_clear_ring_usage_wm_locked()
2361 hal_ring_handle_t hal_ring_hdl) in hal_srng_update_ring_usage_wm_no_lock() argument
2363 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_update_ring_usage_wm_no_lock()
2367 curr_wm_val = hal_srng_src_num_avail(hal_soc_hdl, hal_ring_hdl, in hal_srng_update_ring_usage_wm_no_lock()
2370 curr_wm_val = hal_srng_dst_num_valid(hal_soc_hdl, hal_ring_hdl, in hal_srng_update_ring_usage_wm_no_lock()
2399 hal_ring_handle_t hal_ring_hdl, in hal_dump_srng_high_wm_stats() argument
2402 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_dump_srng_high_wm_stats()
2428 hal_ring_handle_t hal_ring_hdl) in hal_srng_clear_ring_usage_wm_locked() argument
2443 hal_ring_handle_t hal_ring_hdl) in hal_srng_update_ring_usage_wm_no_lock() argument
2449 hal_ring_handle_t hal_ring_hdl, in hal_dump_srng_high_wm_stats() argument
2470 hal_srng_access_end_unlocked(void *hal_soc, hal_ring_handle_t hal_ring_hdl) in hal_srng_access_end_unlocked() argument
2472 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_access_end_unlocked()
2519 hal_srng_access_end(void *hal_soc, hal_ring_handle_t hal_ring_hdl) in hal_srng_access_end() argument
2521 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_access_end()
2523 if (qdf_unlikely(!hal_ring_hdl)) { in hal_srng_access_end()
2528 hal_srng_access_end_unlocked(hal_soc, hal_ring_hdl); in hal_srng_access_end()
2551 hal_ring_handle_t hal_ring_hdl,
2554 #define hal_srng_access_end_v1(hal_soc_hdl, hal_ring_hdl, rtpm_id) \ argument
2555 hal_srng_access_end(hal_soc_hdl, hal_ring_hdl)
2573 hal_srng_access_end_reap(void *hal_soc, hal_ring_handle_t hal_ring_hdl) in hal_srng_access_end_reap() argument
2575 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_access_end_reap()
2759 hal_ring_handle_t hal_ring_hdl) in hal_srng_get_hp_addr() argument
2761 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_get_hp_addr()
2791 hal_srng_get_tp_addr(void *hal_soc, hal_ring_handle_t hal_ring_hdl) in hal_srng_get_tp_addr() argument
2793 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_get_tp_addr()
2823 hal_ring_handle_t hal_ring_hdl) in hal_srng_get_num_entries() argument
2825 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_get_num_entries()
2837 hal_ring_handle_t hal_ring_hdl,
2910 hal_ring_handle_t hal_ring_hdl, in hal_get_hw_hptp() argument
2916 hal_soc->ops->hal_get_hw_hptp(hal_soc, hal_ring_hdl, in hal_get_hw_hptp()
3063 hal_ring_handle_t hal_ring_hdl, in hal_srng_dump_ring_desc() argument
3066 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dump_ring_desc()
3078 hal_ring_handle_t hal_ring_hdl) in hal_srng_dump_ring() argument
3080 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dump_ring()
3119 static inline void hal_srng_set_event(hal_ring_handle_t hal_ring_hdl, int event) in hal_srng_set_event() argument
3121 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_set_event()
3134 void hal_srng_clear_event(hal_ring_handle_t hal_ring_hdl, int event) in hal_srng_clear_event() argument
3136 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_clear_event()
3149 int hal_srng_get_clear_event(hal_ring_handle_t hal_ring_hdl, int event) in hal_srng_get_clear_event() argument
3151 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_get_clear_event()
3162 static inline void hal_srng_set_flush_last_ts(hal_ring_handle_t hal_ring_hdl) in hal_srng_set_flush_last_ts() argument
3164 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_set_flush_last_ts()
3175 static inline void hal_srng_inc_flush_cnt(hal_ring_handle_t hal_ring_hdl) in hal_srng_inc_flush_cnt() argument
3177 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_inc_flush_cnt()
3314 hal_ring_handle_t hal_ring_hdl, in hal_get_ring_usage() argument
3317 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_get_ring_usage()
3350 void hal_update_ring_util(void *hal_soc, hal_ring_handle_t hal_ring_hdl, in hal_update_ring_util() argument
3356 hal_get_sw_hptp(hal_soc, hal_ring_hdl, &tailp, &headp); in hal_update_ring_util()
3357 ring_usage = hal_get_ring_usage(hal_ring_hdl, ring_type, &headp, in hal_update_ring_util()
3413 hal_ring_handle_t hal_ring_hdl, in hal_srng_dst_prefetch() argument
3416 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_prefetch()
3456 hal_ring_handle_t hal_ring_hdl, in hal_srng_dst_prefetch_next_cached_desc() argument
3459 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_prefetch_next_cached_desc()
3483 hal_ring_handle_t hal_ring_hdl, in hal_srng_dst_prefetch_32_byte_desc() argument
3486 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_prefetch_32_byte_desc()
3517 hal_ring_handle_t hal_ring_hdl, in hal_srng_dst_get_next_32_byte_desc() argument
3520 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_get_next_32_byte_desc()
3540 void hal_srng_src_set_hp(hal_ring_handle_t hal_ring_hdl, uint16_t idx) in hal_srng_src_set_hp() argument
3542 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_src_set_hp()
3555 void hal_srng_dst_set_tp(hal_ring_handle_t hal_ring_hdl, uint16_t idx) in hal_srng_dst_set_tp() argument
3557 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_set_tp()
3569 uint16_t hal_srng_src_get_tpidx(hal_ring_handle_t hal_ring_hdl) in hal_srng_src_get_tpidx() argument
3571 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_src_get_tpidx()
3584 uint16_t hal_srng_dst_get_hpidx(hal_ring_handle_t hal_ring_hdl) in hal_srng_dst_get_hpidx() argument
3586 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_dst_get_hpidx()
3600 bool hal_srng_batch_threshold_irq_enabled(hal_ring_handle_t hal_ring_hdl) in hal_srng_batch_threshold_irq_enabled() argument
3602 struct hal_srng *srng = (struct hal_srng *)hal_ring_hdl; in hal_srng_batch_threshold_irq_enabled()
3622 hal_ring_handle_t hal_ring_hdl, in hal_srng_set_msi_irq_config() argument
3627 return hal_soc->ops->hal_srng_set_msi_config(hal_ring_hdl, ring_params); in hal_srng_set_msi_irq_config()
3632 hal_ring_handle_t hal_ring_hdl, in hal_srng_set_msi_irq_config() argument