Lines Matching refs:slots
175 u32 rd_idx, rem, slots; in mei_dma_ring_read() local
187 slots = mei_data2slots(len); in mei_dma_ring_read()
193 if (rd_idx + slots > dbuf_depth) { in mei_dma_ring_read()
195 rem = slots - (dbuf_depth - rd_idx); in mei_dma_ring_read()
198 rem = slots; in mei_dma_ring_read()
203 WRITE_ONCE(ctrl->dbuf_rd_idx, ctrl->dbuf_rd_idx + slots); in mei_dma_ring_read()
252 u32 wr_idx, rem, slots; in mei_dma_ring_write() local
260 slots = mei_data2slots(len); in mei_dma_ring_write()
262 if (wr_idx + slots > hbuf_depth) { in mei_dma_ring_write()
264 rem = slots - (hbuf_depth - wr_idx); in mei_dma_ring_write()
267 rem = slots; in mei_dma_ring_write()
272 WRITE_ONCE(ctrl->hbuf_wr_idx, ctrl->hbuf_wr_idx + slots); in mei_dma_ring_write()