Home
last modified time | relevance | path

Searched refs:sglen (Results 1 – 6 of 6) sorted by relevance

/linux-4.19.296/lib/
Dsg_split.c27 unsigned int sglen; in sg_calculate_split() local
38 sglen = mapped ? sg_dma_len(sg) : sg->length; in sg_calculate_split()
39 if (skip > sglen) { in sg_calculate_split()
40 skip -= sglen; in sg_calculate_split()
44 len = min_t(size_t, size, sglen - skip); in sg_calculate_split()
53 while (!size && (skip + len < sglen) && (--nb_splits > 0)) { in sg_calculate_split()
57 len = min_t(size_t, size, sglen - skip); in sg_calculate_split()
/linux-4.19.296/drivers/media/v4l2-core/
Dvideobuf-dma-sg.c304 dma->sglen = 1; in videobuf_dma_map()
316 dma->sglen = dma_map_sg(dev, dma->sglist, in videobuf_dma_map()
318 if (0 == dma->sglen) { in videobuf_dma_map()
323 dma->sglen = 0; in videobuf_dma_map()
335 if (!dma->sglen) in videobuf_dma_unmap()
342 dma->sglen = 0; in videobuf_dma_unmap()
352 BUG_ON(dma->sglen); in videobuf_dma_free()
582 BUG_ON(!mem || !mem->dma.sglen); in __videobuf_sync()
/linux-4.19.296/include/media/
Dvideobuf-dma-sg.h65 int sglen; member
/linux-4.19.296/drivers/media/common/saa7146/
Dsaa7146_core.c248 struct scatterlist *list, int sglen ) in saa7146_pgtable_build_single() argument
254 BUG_ON(0 == sglen); in saa7146_pgtable_build_single()
262 for (i = 0; i < sglen; i++, list++) { in saa7146_pgtable_build_single()
Dsaa7146_vbi.c258 dma->sglist, dma->sglen); in buffer_prepare()
Dsaa7146_video.c211 int length = dma->sglen; in saa7146_pgtable_build()