Lines Matching refs:n
298 int n; in setup_sgl_buf() local
309 n = 0; in setup_sgl_buf()
323 if (++n == nents || sgl == NULL) in setup_sgl_buf()
324 return n; in setup_sgl_buf()
331 return n + 1; in setup_sgl_buf()
340 unsigned int n; in setup_sgl() local
350 n = setup_sgl_buf(sgl, fifo->data + off, nents, l); in setup_sgl()
351 n += setup_sgl_buf(sgl + n, fifo->data, nents - n, len - l); in setup_sgl()
353 return n; in setup_sgl()
421 static void __kfifo_poke_n(struct __kfifo *fifo, unsigned int n, size_t recsize) in __kfifo_poke_n() argument
426 __KFIFO_POKE(data, fifo->in, mask, n); in __kfifo_poke_n()
429 __KFIFO_POKE(data, fifo->in + 1, mask, n >> 8); in __kfifo_poke_n()
453 void *buf, unsigned int len, size_t recsize, unsigned int *n) in kfifo_out_copy_r() argument
455 *n = __kfifo_peek_n(fifo, recsize); in kfifo_out_copy_r()
457 if (len > *n) in kfifo_out_copy_r()
458 len = *n; in kfifo_out_copy_r()
467 unsigned int n; in __kfifo_out_peek_r() local
472 return kfifo_out_copy_r(fifo, buf, len, recsize, &n); in __kfifo_out_peek_r()
479 unsigned int n; in __kfifo_out_r() local
484 len = kfifo_out_copy_r(fifo, buf, len, recsize, &n); in __kfifo_out_r()
485 fifo->out += n + recsize; in __kfifo_out_r()
492 unsigned int n; in __kfifo_skip_r() local
494 n = __kfifo_peek_n(fifo, recsize); in __kfifo_skip_r()
495 fifo->out += n + recsize; in __kfifo_skip_r()
527 unsigned int n; in __kfifo_to_user_r() local
534 n = __kfifo_peek_n(fifo, recsize); in __kfifo_to_user_r()
535 if (len > n) in __kfifo_to_user_r()
536 len = n; in __kfifo_to_user_r()
543 fifo->out += n + recsize; in __kfifo_to_user_r()