Lines Matching refs:sgl
308 static int setup_sgl_buf(struct scatterlist *sgl, void *buf, in setup_sgl_buf() argument
334 sg_set_page(sgl, page, l - off, off); in setup_sgl_buf()
335 sgl = sg_next(sgl); in setup_sgl_buf()
336 if (++n == nents || sgl == NULL) in setup_sgl_buf()
343 sg_set_page(sgl, page, len, off); in setup_sgl_buf()
347 static unsigned int setup_sgl(struct __kfifo *fifo, struct scatterlist *sgl, in setup_sgl() argument
363 n = setup_sgl_buf(sgl, fifo->data + off, nents, l); in setup_sgl()
364 n += setup_sgl_buf(sgl + n, fifo->data, nents - n, len - l); in setup_sgl()
370 struct scatterlist *sgl, int nents, unsigned int len) in __kfifo_dma_in_prepare() argument
378 return setup_sgl(fifo, sgl, nents, len, fifo->in); in __kfifo_dma_in_prepare()
383 struct scatterlist *sgl, int nents, unsigned int len) in __kfifo_dma_out_prepare() argument
391 return setup_sgl(fifo, sgl, nents, len, fifo->out); in __kfifo_dma_out_prepare()
562 struct scatterlist *sgl, int nents, unsigned int len, size_t recsize) in __kfifo_dma_in_prepare_r() argument
572 return setup_sgl(fifo, sgl, nents, len, fifo->in + recsize); in __kfifo_dma_in_prepare_r()
586 struct scatterlist *sgl, int nents, unsigned int len, size_t recsize) in __kfifo_dma_out_prepare_r() argument
596 return setup_sgl(fifo, sgl, nents, len, fifo->out + recsize); in __kfifo_dma_out_prepare_r()