Lines Matching refs:off

91 		unsigned int len, unsigned int off)  in kfifo_copy_in()  argument
97 off &= fifo->mask; in kfifo_copy_in()
99 off *= esize; in kfifo_copy_in()
103 l = min(len, size - off); in kfifo_copy_in()
105 memcpy(fifo->data + off, src, l); in kfifo_copy_in()
130 unsigned int len, unsigned int off) in kfifo_copy_out() argument
136 off &= fifo->mask; in kfifo_copy_out()
138 off *= esize; in kfifo_copy_out()
142 l = min(len, size - off); in kfifo_copy_out()
144 memcpy(dst, fifo->data + off, l); in kfifo_copy_out()
171 unsigned int off = fifo->out & fifo->mask; in __kfifo_out_linear() local
174 *tail = off; in __kfifo_out_linear()
176 return min3(n, fifo->in - fifo->out, size - off); in __kfifo_out_linear()
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()
329 int nents, unsigned int len, unsigned int off, dma_addr_t dma) in setup_sgl() argument
336 off &= fifo->mask; in setup_sgl()
338 off *= esize; in setup_sgl()
342 len_to_end = min(len, size - off); in setup_sgl()
344 n = setup_sgl_buf(fifo, sgl, off, nents, len_to_end, dma); in setup_sgl()