• Home
  • Raw
  • Download

Lines Matching refs:src_ring

414 				  srng->u.src_ring.low_threshold);  in ath11k_hal_srng_src_hw_init()
422 ((unsigned long)srng->u.src_ring.tp_addr - in ath11k_hal_srng_src_hw_init()
436 *srng->u.src_ring.tp_addr = 0; in ath11k_hal_srng_src_hw_init()
519 params->low_threshold = srng->u.src_ring.low_threshold; in ath11k_hal_srng_get_params()
533 ((unsigned long)srng->u.src_ring.hp_addr - in ath11k_hal_srng_get_hp_addr()
549 ((unsigned long)srng->u.src_ring.tp_addr - in ath11k_hal_srng_get_tp_addr()
701 hp = srng->u.src_ring.hp; in ath11k_hal_srng_src_num_free()
704 tp = *srng->u.src_ring.tp_addr; in ath11k_hal_srng_src_num_free()
705 srng->u.src_ring.cached_tp = tp; in ath11k_hal_srng_src_num_free()
707 tp = srng->u.src_ring.cached_tp; in ath11k_hal_srng_src_num_free()
730 next_hp = (srng->u.src_ring.hp + srng->entry_size) % srng->ring_size; in ath11k_hal_srng_src_get_next_entry()
732 if (next_hp == srng->u.src_ring.cached_tp) in ath11k_hal_srng_src_get_next_entry()
735 desc = srng->ring_base_vaddr + srng->u.src_ring.hp; in ath11k_hal_srng_src_get_next_entry()
736 srng->u.src_ring.hp = next_hp; in ath11k_hal_srng_src_get_next_entry()
744 srng->u.src_ring.reap_hp = next_hp; in ath11k_hal_srng_src_get_next_entry()
757 next_reap_hp = (srng->u.src_ring.reap_hp + srng->entry_size) % in ath11k_hal_srng_src_reap_next()
760 if (next_reap_hp == srng->u.src_ring.cached_tp) in ath11k_hal_srng_src_reap_next()
764 srng->u.src_ring.reap_hp = next_reap_hp; in ath11k_hal_srng_src_reap_next()
776 if (srng->u.src_ring.hp == srng->u.src_ring.reap_hp) in ath11k_hal_srng_src_get_next_reaped()
779 desc = srng->ring_base_vaddr + srng->u.src_ring.hp; in ath11k_hal_srng_src_get_next_reaped()
780 srng->u.src_ring.hp = (srng->u.src_ring.hp + srng->entry_size) % in ath11k_hal_srng_src_get_next_reaped()
790 if (((srng->u.src_ring.hp + srng->entry_size) % srng->ring_size) == in ath11k_hal_srng_src_peek()
791 srng->u.src_ring.cached_tp) in ath11k_hal_srng_src_peek()
794 return srng->ring_base_vaddr + srng->u.src_ring.hp; in ath11k_hal_srng_src_peek()
802 srng->u.src_ring.cached_tp = in ath11k_hal_srng_access_begin()
803 *(volatile u32 *)srng->u.src_ring.tp_addr; in ath11k_hal_srng_access_begin()
826 srng->u.src_ring.last_tp = in ath11k_hal_srng_access_end()
827 *(volatile u32 *)srng->u.src_ring.tp_addr; in ath11k_hal_srng_access_end()
828 *srng->u.src_ring.hp_addr = srng->u.src_ring.hp; in ath11k_hal_srng_access_end()
835 srng->u.src_ring.last_tp = in ath11k_hal_srng_access_end()
836 *(volatile u32 *)srng->u.src_ring.tp_addr; in ath11k_hal_srng_access_end()
838 (unsigned long)srng->u.src_ring.hp_addr - in ath11k_hal_srng_access_end()
840 srng->u.src_ring.hp); in ath11k_hal_srng_access_end()
996 srng->u.src_ring.hp = 0; in ath11k_hal_srng_setup()
997 srng->u.src_ring.cached_tp = 0; in ath11k_hal_srng_setup()
998 srng->u.src_ring.reap_hp = srng->ring_size - srng->entry_size; in ath11k_hal_srng_setup()
999 srng->u.src_ring.tp_addr = (void *)(hal->rdp.vaddr + ring_id); in ath11k_hal_srng_setup()
1000 srng->u.src_ring.low_threshold = params->low_threshold * in ath11k_hal_srng_setup()
1004 srng->u.src_ring.hp_addr = (void *)(hal->wrp.vaddr + in ath11k_hal_srng_setup()
1009 srng->u.src_ring.hp_addr = in ath11k_hal_srng_setup()
1016 (unsigned long)srng->u.src_ring.hp_addr - in ath11k_hal_srng_setup()
1089 srng->u.src_ring.hp_addr = (u32 *)(HAL_SHADOW_REG(ab, shadow_cfg_idx) + in ath11k_hal_srng_update_hp_tp_addr()
1171 *srng->u.src_ring.tp_addr != srng->u.src_ring.hp) in ath11k_hal_srng_shadow_update_hp_tp()
1361 srng->ring_id, srng->u.src_ring.hp, in ath11k_hal_dump_srng_stats()
1362 srng->u.src_ring.reap_hp, in ath11k_hal_dump_srng_stats()
1363 *srng->u.src_ring.tp_addr, srng->u.src_ring.cached_tp, in ath11k_hal_dump_srng_stats()
1364 srng->u.src_ring.last_tp, in ath11k_hal_dump_srng_stats()