Lines Matching refs:l

95 	unsigned int l;  in kfifo_copy_in()  local
103 l = min(len, size - off); in kfifo_copy_in()
105 memcpy(fifo->data + off, src, l); in kfifo_copy_in()
106 memcpy(fifo->data, src + l, len - l); in kfifo_copy_in()
117 unsigned int l; in __kfifo_in() local
119 l = kfifo_unused(fifo); in __kfifo_in()
120 if (len > l) in __kfifo_in()
121 len = l; in __kfifo_in()
134 unsigned int l; in kfifo_copy_out() local
142 l = min(len, size - off); in kfifo_copy_out()
144 memcpy(dst, fifo->data + off, l); in kfifo_copy_out()
145 memcpy(dst + l, fifo->data, len - l); in kfifo_copy_out()
156 unsigned int l; in __kfifo_out_peek() local
158 l = fifo->in - fifo->out; in __kfifo_out_peek()
159 if (len > l) in __kfifo_out_peek()
160 len = l; in __kfifo_out_peek()
195 unsigned int l; in kfifo_copy_from_user() local
204 l = min(len, size - off); in kfifo_copy_from_user()
206 ret = copy_from_user(fifo->data + off, from, l); in kfifo_copy_from_user()
208 ret = DIV_ROUND_UP(ret + len - l, esize); in kfifo_copy_from_user()
210 ret = copy_from_user(fifo->data, from + l, len - l); in kfifo_copy_from_user()
227 unsigned int l; in __kfifo_from_user() local
235 l = kfifo_unused(fifo); in __kfifo_from_user()
236 if (len > l) in __kfifo_from_user()
237 len = l; in __kfifo_from_user()
253 unsigned int l; in kfifo_copy_to_user() local
264 l = min(len, size - off); in kfifo_copy_to_user()
266 ret = copy_to_user(to, fifo->data + off, l); in kfifo_copy_to_user()
268 ret = DIV_ROUND_UP(ret + len - l, esize); in kfifo_copy_to_user()
270 ret = copy_to_user(to + l, fifo->data, len - l); in kfifo_copy_to_user()
287 unsigned int l; in __kfifo_to_user() local
295 l = fifo->in - fifo->out; in __kfifo_to_user()
296 if (len > l) in __kfifo_to_user()
297 len = l; in __kfifo_to_user()
354 unsigned int l; in __kfifo_dma_in_prepare() local
356 l = kfifo_unused(fifo); in __kfifo_dma_in_prepare()
357 if (len > l) in __kfifo_dma_in_prepare()
358 len = l; in __kfifo_dma_in_prepare()
368 unsigned int l; in __kfifo_dma_out_prepare() local
370 l = fifo->in - fifo->out; in __kfifo_dma_out_prepare()
371 if (len > l) in __kfifo_dma_out_prepare()
372 len = l; in __kfifo_dma_out_prepare()
396 unsigned int l; in __kfifo_peek_n() local
400 l = __KFIFO_PEEK(data, fifo->out, mask); in __kfifo_peek_n()
403 l |= __KFIFO_PEEK(data, fifo->out + 1, mask) << 8; in __kfifo_peek_n()
405 return l; in __kfifo_peek_n()