• Home
  • Raw
  • Download

Lines Matching refs:off

90 		unsigned int len, unsigned int off)  in kfifo_copy_in()  argument
96 off &= fifo->mask; in kfifo_copy_in()
98 off *= esize; in kfifo_copy_in()
102 l = min(len, size - off); in kfifo_copy_in()
104 memcpy(fifo->data + off, src, l); in kfifo_copy_in()
129 unsigned int len, unsigned int off) in kfifo_copy_out() argument
135 off &= fifo->mask; in kfifo_copy_out()
137 off *= esize; in kfifo_copy_out()
141 l = min(len, size - off); in kfifo_copy_out()
143 memcpy(dst, fifo->data + off, l); in kfifo_copy_out()
176 const void __user *from, unsigned int len, unsigned int off, in kfifo_copy_from_user() argument
184 off &= fifo->mask; in kfifo_copy_from_user()
186 off *= esize; in kfifo_copy_from_user()
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()
237 unsigned int len, unsigned int off, unsigned int *copied) in kfifo_copy_to_user() argument
244 off &= fifo->mask; in kfifo_copy_to_user()
246 off *= esize; in kfifo_copy_to_user()
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()
300 unsigned int off; in setup_sgl_buf() local
311 off = offset_in_page(buf); in setup_sgl_buf()
314 while (len >= l + PAGE_SIZE - off) { 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()
330 sg_set_page(sgl, page, len, off); in setup_sgl_buf()
335 int nents, unsigned int len, unsigned int off) in setup_sgl() argument
342 off &= fifo->mask; in setup_sgl()
344 off *= esize; in setup_sgl()
348 l = min(len, size - off); in setup_sgl()
350 n = setup_sgl_buf(sgl, fifo->data + off, nents, l); in setup_sgl()