Lines Matching full:slots
125 * @offset: offset in slots.
126 * @n: number of slots to copy.
145 * @offset: offset in slots.
146 * @n: number of slots to copy.
171 u32 rd_idx, rem, slots; in mei_dma_ring_read() local
183 slots = mei_data2slots(len); in mei_dma_ring_read()
189 if (rd_idx + slots > dbuf_depth) { in mei_dma_ring_read()
191 rem = slots - (dbuf_depth - rd_idx); in mei_dma_ring_read()
194 rem = slots; in mei_dma_ring_read()
199 WRITE_ONCE(ctrl->dbuf_rd_idx, ctrl->dbuf_rd_idx + slots); in mei_dma_ring_read()
208 * mei_dma_ring_empty_slots() - calaculate number of empty slots in dma ring
211 * Return: number of empty slots
224 /* easier to work in slots */ in mei_dma_ring_empty_slots()
248 u32 wr_idx, rem, slots; in mei_dma_ring_write() local
256 slots = mei_data2slots(len); in mei_dma_ring_write()
258 if (wr_idx + slots > hbuf_depth) { in mei_dma_ring_write()
260 rem = slots - (hbuf_depth - wr_idx); in mei_dma_ring_write()
263 rem = slots; in mei_dma_ring_write()
268 WRITE_ONCE(ctrl->hbuf_wr_idx, ctrl->hbuf_wr_idx + slots); in mei_dma_ring_write()