• Home
  • Raw
  • Download

Lines Matching refs:l

94 	unsigned int l;  in kfifo_copy_in()  local
102 l = min(len, size - off); in kfifo_copy_in()
104 memcpy(fifo->data + off, src, l); in kfifo_copy_in()
105 memcpy(fifo->data, src + l, len - l); in kfifo_copy_in()
116 unsigned int l; in __kfifo_in() local
118 l = kfifo_unused(fifo); in __kfifo_in()
119 if (len > l) in __kfifo_in()
120 len = l; in __kfifo_in()
133 unsigned int l; in kfifo_copy_out() local
141 l = min(len, size - off); in kfifo_copy_out()
143 memcpy(dst, fifo->data + off, l); in kfifo_copy_out()
144 memcpy(dst + l, fifo->data, len - l); in kfifo_copy_out()
155 unsigned int l; in __kfifo_out_peek() local
157 l = fifo->in - fifo->out; in __kfifo_out_peek()
158 if (len > l) in __kfifo_out_peek()
159 len = l; in __kfifo_out_peek()
181 unsigned int l; in kfifo_copy_from_user() local
190 l = min(len, size - off); in kfifo_copy_from_user()
192 ret = copy_from_user(fifo->data + off, from, l); in kfifo_copy_from_user()
194 ret = DIV_ROUND_UP(ret + len - l, esize); in kfifo_copy_from_user()
196 ret = copy_from_user(fifo->data, from + l, len - l); in kfifo_copy_from_user()
213 unsigned int l; in __kfifo_from_user() local
221 l = kfifo_unused(fifo); in __kfifo_from_user()
222 if (len > l) in __kfifo_from_user()
223 len = l; in __kfifo_from_user()
239 unsigned int l; in kfifo_copy_to_user() local
250 l = min(len, size - off); in kfifo_copy_to_user()
252 ret = copy_to_user(to, fifo->data + off, l); in kfifo_copy_to_user()
254 ret = DIV_ROUND_UP(ret + len - l, esize); in kfifo_copy_to_user()
256 ret = copy_to_user(to + l, fifo->data, len - l); in kfifo_copy_to_user()
273 unsigned int l; in __kfifo_to_user() local
281 l = fifo->in - fifo->out; in __kfifo_to_user()
282 if (len > l) in __kfifo_to_user()
283 len = l; in __kfifo_to_user()
299 unsigned int l; in setup_sgl_buf() local
312 l = 0; in setup_sgl_buf()
314 while (len >= l + PAGE_SIZE - off) { in setup_sgl_buf()
317 l += PAGE_SIZE; in setup_sgl_buf()
320 if (page_to_phys(page) != page_to_phys(npage) - l) { in setup_sgl_buf()
321 sg_set_page(sgl, page, l - off, off); in setup_sgl_buf()
326 len -= l - off; in setup_sgl_buf()
327 l = off = 0; in setup_sgl_buf()
339 unsigned int l; in setup_sgl() local
348 l = min(len, size - off); in setup_sgl()
350 n = setup_sgl_buf(sgl, fifo->data + off, nents, l); in setup_sgl()
351 n += setup_sgl_buf(sgl + n, fifo->data, nents - n, len - l); in setup_sgl()
359 unsigned int l; in __kfifo_dma_in_prepare() local
361 l = kfifo_unused(fifo); in __kfifo_dma_in_prepare()
362 if (len > l) in __kfifo_dma_in_prepare()
363 len = l; in __kfifo_dma_in_prepare()
372 unsigned int l; in __kfifo_dma_out_prepare() local
374 l = fifo->in - fifo->out; in __kfifo_dma_out_prepare()
375 if (len > l) in __kfifo_dma_out_prepare()
376 len = l; in __kfifo_dma_out_prepare()
400 unsigned int l; in __kfifo_peek_n() local
404 l = __KFIFO_PEEK(data, fifo->out, mask); in __kfifo_peek_n()
407 l |= __KFIFO_PEEK(data, fifo->out + 1, mask) << 8; in __kfifo_peek_n()
409 return l; in __kfifo_peek_n()