Lines Matching refs:occ

42 	u32	occ;  member
131 u32 occ; member
242 return readl(&ring->rt->occ) & K3_RINGACC_RT_OCC_MASK; in k3_ringacc_ring_read_occ()
249 val = readl(&ring->rt->occ); in k3_ringacc_ring_update_occ()
251 ring->state.occ = val & K3_RINGACC_RT_OCC_MASK; in k3_ringacc_ring_update_occ()
322 dev_dbg(dev, "dump occ%08x\n", readl(&ring->rt->occ)); in k3_ringacc_ring_dump()
509 void k3_ringacc_ring_reset_dma(struct k3_ring *ring, u32 occ) in k3_ringacc_ring_reset_dma() argument
517 if (!occ) in k3_ringacc_ring_reset_dma()
518 occ = k3_ringacc_ring_read_occ(ring); in k3_ringacc_ring_reset_dma()
520 if (occ) { in k3_ringacc_ring_reset_dma()
524 ring->ring_id, occ); in k3_ringacc_ring_reset_dma()
540 db_ring_cnt = (1U << 22) - occ; in k3_ringacc_ring_reset_dma()
975 ring->state.occ--; in k3_ringacc_ring_access_proxy()
990 ring->state.occ); in k3_ringacc_ring_access_proxy()
1045 ring->state.occ--; in k3_ringacc_ring_access_io()
1060 ring->state.free, ring->state.windex, ring->state.occ, in k3_ringacc_ring_access_io()
1110 ring->state.occ = k3_ringacc_ring_read_occ(ring); in k3_dmaring_fwd_pop()
1111 if (ring->state.windex >= ring->state.occ) in k3_dmaring_fwd_pop()
1112 elem_idx = ring->state.windex - ring->state.occ; in k3_dmaring_fwd_pop()
1114 elem_idx = ring->size - (ring->state.occ - ring->state.windex); in k3_dmaring_fwd_pop()
1120 ring->state.occ--; in k3_dmaring_fwd_pop()
1124 __func__, ring->state.occ, ring->state.windex, elem_idx, in k3_dmaring_fwd_pop()
1135 if (ring->state.occ) { in k3_dmaring_reverse_pop()
1140 ring->state.occ--; in k3_dmaring_reverse_pop()
1151 __func__, ring->state.occ, ring->state.rindex, elem_ptr); in k3_dmaring_reverse_pop()
1187 ring->state.occ--; in k3_ringacc_ring_pop_mem()
1191 ring->state.occ, ring->state.rindex, elem_ptr); in k3_ringacc_ring_pop_mem()
1242 if (!ring->state.occ) in k3_ringacc_ring_pop()
1245 dev_dbg(ring->parent->dev, "ring_pop: occ%d index%d\n", ring->state.occ, in k3_ringacc_ring_pop()
1248 if (!ring->state.occ && !ring->state.tdown_complete) in k3_ringacc_ring_pop()
1265 if (!ring->state.occ) in k3_ringacc_ring_pop_tail()
1269 ring->state.occ, ring->state.rindex); in k3_ringacc_ring_pop_tail()
1271 if (!ring->state.occ) in k3_ringacc_ring_pop_tail()