Lines Matching defs: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;
183 slots = mei_data2slots(len);
189 if (rd_idx + slots > dbuf_depth) {
191 rem = slots - (dbuf_depth - rd_idx);
194 rem = slots;
199 WRITE_ONCE(ctrl->dbuf_rd_idx, ctrl->dbuf_rd_idx + slots);
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 */
248 u32 wr_idx, rem, slots;
256 slots = mei_data2slots(len);
258 if (wr_idx + slots > hbuf_depth) {
260 rem = slots - (hbuf_depth - wr_idx);
263 rem = slots;
268 WRITE_ONCE(ctrl->hbuf_wr_idx, ctrl->hbuf_wr_idx + slots);