• Home
  • Raw
  • Download

Lines Matching refs:off

104 		unsigned int len, unsigned int off)  in kfifo_copy_in()  argument
110 off &= fifo->mask; in kfifo_copy_in()
112 off *= esize; in kfifo_copy_in()
116 l = min(len, size - off); in kfifo_copy_in()
118 memcpy(fifo->data + off, src, l); in kfifo_copy_in()
143 unsigned int len, unsigned int off) in kfifo_copy_out() argument
149 off &= fifo->mask; in kfifo_copy_out()
151 off *= esize; in kfifo_copy_out()
155 l = min(len, size - off); in kfifo_copy_out()
157 memcpy(dst, fifo->data + off, l); in kfifo_copy_out()
190 const void __user *from, unsigned int len, unsigned int off, in kfifo_copy_from_user() argument
198 off &= fifo->mask; in kfifo_copy_from_user()
200 off *= esize; in kfifo_copy_from_user()
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()
251 unsigned int len, unsigned int off, unsigned int *copied) in kfifo_copy_to_user() argument
258 off &= fifo->mask; in kfifo_copy_to_user()
260 off *= esize; in kfifo_copy_to_user()
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()
314 unsigned int off; in setup_sgl_buf() local
325 off = offset_in_page(buf); in setup_sgl_buf()
328 while (len >= l + PAGE_SIZE - off) { in setup_sgl_buf()
335 sg_set_page(sgl, page, l - off, off); in setup_sgl_buf()
340 len -= l - off; in setup_sgl_buf()
341 l = off = 0; in setup_sgl_buf()
344 sg_set_page(sgl, page, len, off); in setup_sgl_buf()
349 int nents, unsigned int len, unsigned int off) in setup_sgl() argument
356 off &= fifo->mask; in setup_sgl()
358 off *= esize; in setup_sgl()
362 l = min(len, size - off); in setup_sgl()
364 n = setup_sgl_buf(sgl, fifo->data + off, nents, l); in setup_sgl()