Searched refs:sgl (Results 1 – 3 of 3) sorted by relevance
/lib/ |
D | scatterlist.c | 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() 87 BUG_ON(sgl[0].sg_magic != SG_MAGIC); 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() 111 sgl[i].sg_magic = SG_MAGIC; in sg_init_table() 114 sg_mark_end(&sgl[nents - 1]); in sg_init_table() 179 struct scatterlist *sgl, *next; in __sg_free_table() local 181 if (unlikely(!table->sgl)) in __sg_free_table() [all …]
|
D | kfifo.c | 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() [all …]
|
D | swiotlb.c | 851 swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems, in swiotlb_map_sg_attrs() argument 859 for_each_sg(sgl, sg, nelems, i) { in swiotlb_map_sg_attrs() 871 swiotlb_unmap_sg_attrs(hwdev, sgl, i, dir, in swiotlb_map_sg_attrs() 873 sgl[0].dma_length = 0; in swiotlb_map_sg_attrs() 886 swiotlb_map_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, in swiotlb_map_sg() argument 889 return swiotlb_map_sg_attrs(hwdev, sgl, nelems, dir, NULL); in swiotlb_map_sg() 898 swiotlb_unmap_sg_attrs(struct device *hwdev, struct scatterlist *sgl, in swiotlb_unmap_sg_attrs() argument 906 for_each_sg(sgl, sg, nelems, i) in swiotlb_unmap_sg_attrs() 913 swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, in swiotlb_unmap_sg() argument 916 return swiotlb_unmap_sg_attrs(hwdev, sgl, nelems, dir, NULL); in swiotlb_unmap_sg() [all …]
|