Lines Matching refs:off

103 		unsigned int len, unsigned int off)  in kfifo_copy_in()  argument
109 off &= fifo->mask; in kfifo_copy_in()
111 off *= esize; in kfifo_copy_in()
115 l = min(len, size - off); in kfifo_copy_in()
117 memcpy(fifo->data + off, src, l); in kfifo_copy_in()
142 unsigned int len, unsigned int off) in kfifo_copy_out() argument
148 off &= fifo->mask; in kfifo_copy_out()
150 off *= esize; in kfifo_copy_out()
154 l = min(len, size - off); in kfifo_copy_out()
156 memcpy(dst, fifo->data + off, l); in kfifo_copy_out()
189 const void __user *from, unsigned int len, unsigned int off, in kfifo_copy_from_user() argument
197 off &= fifo->mask; in kfifo_copy_from_user()
199 off *= esize; in kfifo_copy_from_user()
203 l = min(len, size - off); in kfifo_copy_from_user()
205 ret = copy_from_user(fifo->data + off, from, l); in kfifo_copy_from_user()
250 unsigned int len, unsigned int off, unsigned int *copied) in kfifo_copy_to_user() argument
257 off &= fifo->mask; in kfifo_copy_to_user()
259 off *= esize; in kfifo_copy_to_user()
263 l = min(len, size - off); in kfifo_copy_to_user()
265 ret = copy_to_user(to, fifo->data + off, l); in kfifo_copy_to_user()
313 unsigned int off; in setup_sgl_buf() local
324 off = offset_in_page(buf); in setup_sgl_buf()
327 while (len >= l + PAGE_SIZE - off) { in setup_sgl_buf()
334 sg_set_page(sgl, page, l - off, off); in setup_sgl_buf()
339 len -= l - off; in setup_sgl_buf()
340 l = off = 0; in setup_sgl_buf()
343 sg_set_page(sgl, page, len, off); in setup_sgl_buf()
348 int nents, unsigned int len, unsigned int off) in setup_sgl() argument
355 off &= fifo->mask; in setup_sgl()
357 off *= esize; in setup_sgl()
361 l = min(len, size - off); in setup_sgl()
363 n = setup_sgl_buf(sgl, fifo->data + off, nents, l); in setup_sgl()