• Home
  • Raw
  • Download

Lines Matching refs:ret

182 	unsigned long ret;  in kfifo_copy_from_user()  local
192 ret = copy_from_user(fifo->data + off, from, l); in kfifo_copy_from_user()
193 if (unlikely(ret)) 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()
197 if (unlikely(ret)) in kfifo_copy_from_user()
198 ret = DIV_ROUND_UP(ret, esize); in kfifo_copy_from_user()
205 *copied = len - ret * esize; in kfifo_copy_from_user()
207 return ret; in kfifo_copy_from_user()
214 unsigned long ret; in __kfifo_from_user() local
225 ret = kfifo_copy_from_user(fifo, from, len, fifo->in, copied); in __kfifo_from_user()
226 if (unlikely(ret)) { in __kfifo_from_user()
227 len -= ret; in __kfifo_from_user()
240 unsigned long ret; in kfifo_copy_to_user() local
252 ret = copy_to_user(to, fifo->data + off, l); in kfifo_copy_to_user()
253 if (unlikely(ret)) 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()
257 if (unlikely(ret)) in kfifo_copy_to_user()
258 ret = DIV_ROUND_UP(ret, esize); in kfifo_copy_to_user()
265 *copied = len - ret * esize; in kfifo_copy_to_user()
267 return ret; in kfifo_copy_to_user()
274 unsigned long ret; in __kfifo_to_user() local
284 ret = kfifo_copy_to_user(fifo, to, len, fifo->out, copied); in __kfifo_to_user()
285 if (unlikely(ret)) { in __kfifo_to_user()
286 len -= ret; in __kfifo_to_user()
502 unsigned long ret; in __kfifo_from_user_r() local
513 ret = kfifo_copy_from_user(fifo, from, len, fifo->in + recsize, copied); in __kfifo_from_user_r()
514 if (unlikely(ret)) { in __kfifo_from_user_r()
526 unsigned long ret; in __kfifo_to_user_r() local
538 ret = kfifo_copy_to_user(fifo, to, len, fifo->out + recsize, copied); in __kfifo_to_user_r()
539 if (unlikely(ret)) { in __kfifo_to_user_r()