Lines Matching refs:occ
43 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()
496 void k3_ringacc_ring_reset_dma(struct k3_ring *ring, u32 occ) in k3_ringacc_ring_reset_dma() argument
504 if (!occ) in k3_ringacc_ring_reset_dma()
505 occ = k3_ringacc_ring_read_occ(ring); in k3_ringacc_ring_reset_dma()
507 if (occ) { in k3_ringacc_ring_reset_dma()
511 ring->ring_id, occ); in k3_ringacc_ring_reset_dma()
527 db_ring_cnt = (1U << 22) - occ; in k3_ringacc_ring_reset_dma()
960 ring->state.occ--; in k3_ringacc_ring_access_proxy()
975 ring->state.occ); in k3_ringacc_ring_access_proxy()
1030 ring->state.occ--; in k3_ringacc_ring_access_io()
1045 ring->state.free, ring->state.windex, ring->state.occ, in k3_ringacc_ring_access_io()
1095 ring->state.occ = k3_ringacc_ring_read_occ(ring); in k3_dmaring_fwd_pop()
1096 if (ring->state.windex >= ring->state.occ) in k3_dmaring_fwd_pop()
1097 elem_idx = ring->state.windex - ring->state.occ; in k3_dmaring_fwd_pop()
1099 elem_idx = ring->size - (ring->state.occ - ring->state.windex); in k3_dmaring_fwd_pop()
1105 ring->state.occ--; in k3_dmaring_fwd_pop()
1109 __func__, ring->state.occ, ring->state.windex, elem_idx, in k3_dmaring_fwd_pop()
1120 if (ring->state.occ) { in k3_dmaring_reverse_pop()
1125 ring->state.occ--; in k3_dmaring_reverse_pop()
1136 __func__, ring->state.occ, ring->state.rindex, elem_ptr); in k3_dmaring_reverse_pop()
1172 ring->state.occ--; in k3_ringacc_ring_pop_mem()
1176 ring->state.occ, ring->state.rindex, elem_ptr); in k3_ringacc_ring_pop_mem()
1227 if (!ring->state.occ) in k3_ringacc_ring_pop()
1230 dev_dbg(ring->parent->dev, "ring_pop: occ%d index%d\n", ring->state.occ, in k3_ringacc_ring_pop()
1233 if (!ring->state.occ && !ring->state.tdown_complete) in k3_ringacc_ring_pop()
1250 if (!ring->state.occ) in k3_ringacc_ring_pop_tail()
1254 ring->state.occ, ring->state.rindex); in k3_ringacc_ring_pop_tail()
1256 if (!ring->state.occ) in k3_ringacc_ring_pop_tail()