Lines Matching refs:dst_ring

1359 	if (srng->u.dst_ring.tp != srng->u.dst_ring.cached_hp)  in hal_srng_dst_peek()
1360 return (void *)(&srng->ring_base_vaddr[srng->u.dst_ring.tp]); in hal_srng_dst_peek()
1414 srng->u.dst_ring.cached_hp = in hal_srng_access_start_unlocked()
1415 *(volatile uint32_t *)(srng->u.dst_ring.hp_addr); in hal_srng_access_start_unlocked()
1461 srng->u.dst_ring.cached_hp = in hal_le_srng_access_start_unlocked_in_cpu_order()
1463 (srng->u.dst_ring.hp_addr)); in hal_le_srng_access_start_unlocked_in_cpu_order()
1574 if (srng->u.dst_ring.tp == srng->u.dst_ring.cached_hp) in hal_srng_dst_get_next()
1577 desc = &srng->ring_base_vaddr[srng->u.dst_ring.tp]; in hal_srng_dst_get_next()
1584 srng->u.dst_ring.tp = (srng->u.dst_ring.tp + srng->entry_size); in hal_srng_dst_get_next()
1585 if (srng->u.dst_ring.tp == srng->ring_size) in hal_srng_dst_get_next()
1586 srng->u.dst_ring.tp = 0; in hal_srng_dst_get_next()
1593 tp = srng->u.dst_ring.tp; in hal_srng_dst_get_next()
1594 desc_next = &srng->ring_base_vaddr[srng->u.dst_ring.tp]; in hal_srng_dst_get_next()
1619 if (srng->u.dst_ring.tp == srng->u.dst_ring.cached_hp) in hal_srng_dst_get_next_cached()
1622 desc = &srng->ring_base_vaddr[srng->u.dst_ring.tp]; in hal_srng_dst_get_next_cached()
1629 srng->u.dst_ring.tp = (srng->u.dst_ring.tp + srng->entry_size); in hal_srng_dst_get_next_cached()
1630 if (srng->u.dst_ring.tp == srng->ring_size) in hal_srng_dst_get_next_cached()
1631 srng->u.dst_ring.tp = 0; in hal_srng_dst_get_next_cached()
1633 desc_next = &srng->ring_base_vaddr[srng->u.dst_ring.tp]; in hal_srng_dst_get_next_cached()
1651 if (qdf_unlikely(!srng->u.dst_ring.tp)) in hal_srng_dst_dec_tp()
1652 srng->u.dst_ring.tp = (srng->ring_size - srng->entry_size); in hal_srng_dst_dec_tp()
1654 srng->u.dst_ring.tp -= srng->entry_size; in hal_srng_dst_dec_tp()
1703 uint32_t next_hp = (srng->u.dst_ring.cached_hp + srng->entry_size) % in hal_srng_dst_get_next_hp()
1706 if (next_hp != srng->u.dst_ring.tp) { in hal_srng_dst_get_next_hp()
1707 desc = &(srng->ring_base_vaddr[srng->u.dst_ring.cached_hp]); in hal_srng_dst_get_next_hp()
1708 srng->u.dst_ring.cached_hp = next_hp; in hal_srng_dst_get_next_hp()
1731 srng->u.dst_ring.cached_hp = in hal_srng_dst_peek_sync()
1732 *(volatile uint32_t *)(srng->u.dst_ring.hp_addr); in hal_srng_dst_peek_sync()
1734 if (srng->u.dst_ring.tp != srng->u.dst_ring.cached_hp) in hal_srng_dst_peek_sync()
1735 return (void *)(&(srng->ring_base_vaddr[srng->u.dst_ring.tp])); in hal_srng_dst_peek_sync()
1790 uint32_t tp = srng->u.dst_ring.tp; in hal_srng_dst_num_valid()
1793 hp = *(volatile uint32_t *)(srng->u.dst_ring.hp_addr); in hal_srng_dst_num_valid()
1794 srng->u.dst_ring.cached_hp = hp; in hal_srng_dst_num_valid()
1796 hp = srng->u.dst_ring.cached_hp; in hal_srng_dst_num_valid()
1835 first_desc = &srng->ring_base_vaddr[srng->u.dst_ring.tp]; in hal_srng_dst_inv_cached_descs()
1837 last_desc_index = (srng->u.dst_ring.tp + in hal_srng_dst_inv_cached_descs()
1900 hp = *(volatile uint32_t *)(srng->u.dst_ring.hp_addr); in hal_srng_sync_cachedhp()
1901 srng->u.dst_ring.cached_hp = hp; in hal_srng_sync_cachedhp()
2065 *tailp = srng->u.dst_ring.tp; in hal_get_sw_hptp()
2066 *headp = *srng->u.dst_ring.hp_addr; in hal_get_sw_hptp()
2483 *srng->u.dst_ring.tp_addr = in hal_srng_access_end_unlocked()
2484 qdf_cpu_to_le32(srng->u.dst_ring.tp); in hal_srng_access_end_unlocked()
2495 srng->u.dst_ring.tp_addr, in hal_srng_access_end_unlocked()
2496 srng->u.dst_ring.tp); in hal_srng_access_end_unlocked()
2778 ((unsigned long)(srng->u.dst_ring.hp_addr) - in hal_srng_get_hp_addr()
2803 ((unsigned long)(srng->u.dst_ring.tp_addr) - in hal_srng_get_tp_addr()
2806 return (qdf_dma_addr_t)srng->u.dst_ring.tp_addr; in hal_srng_get_tp_addr()
2809 ((unsigned long)srng->u.dst_ring.tp_addr - in hal_srng_get_tp_addr()
3084 tp = srng->u.dst_ring.tp; in hal_srng_dump_ring()
3428 if (srng->u.dst_ring.tp == srng->u.dst_ring.cached_hp) in hal_srng_dst_prefetch()
3431 desc = (uint8_t *)&srng->ring_base_vaddr[srng->u.dst_ring.tp]; in hal_srng_dst_prefetch()
3461 if (srng->u.dst_ring.tp == srng->u.dst_ring.cached_hp) in hal_srng_dst_prefetch_next_cached_desc()
3489 if (srng->u.dst_ring.tp == srng->u.dst_ring.cached_hp) in hal_srng_dst_prefetch_32_byte_desc()
3492 desc = (uint8_t *)&srng->ring_base_vaddr[srng->u.dst_ring.tp]; in hal_srng_dst_prefetch_32_byte_desc()
3522 if (srng->u.dst_ring.tp == srng->u.dst_ring.cached_hp) in hal_srng_dst_get_next_32_byte_desc()
3559 srng->u.dst_ring.tp = idx * srng->entry_size; in hal_srng_dst_set_tp()
3587 uint32_t hp = *(volatile uint32_t *)(srng->u.dst_ring.hp_addr); in hal_srng_dst_get_hpidx()