Searched refs:nents (Results 1 – 3 of 3) sorted by relevance
/lib/ |
D | scatterlist.c | 52 int nents; in sg_nents() local 53 for (nents = 0; sg; sg = sg_next(sg)) in sg_nents() 54 nents++; in sg_nents() 55 return nents; in sg_nents() 74 struct scatterlist *sg_last(struct scatterlist *sgl, unsigned int nents) in sg_last() argument 77 struct scatterlist *ret = &sgl[nents - 1]; in sg_last() 82 for_each_sg(sgl, sg, nents, i) in sg_last() 104 void sg_init_table(struct scatterlist *sgl, unsigned int nents) in sg_init_table() argument 106 memset(sgl, 0, sizeof(*sgl) * nents); in sg_init_table() 110 for (i = 0; i < nents; i++) in sg_init_table() [all …]
|
D | kfifo.c | 309 int nents, unsigned int len) in setup_sgl_buf() argument 316 if (!nents) in setup_sgl_buf() 336 if (++n == nents || sgl == NULL) in setup_sgl_buf() 348 int nents, unsigned int len, unsigned int off) 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() [all …]
|
D | dma-debug.c | 1135 int nents, int mapped_ents, int direction) in debug_dma_map_sg() argument 1155 entry->sg_call_ents = nents; in debug_dma_map_sg()
|