Searched refs:sglen (Results 1 – 6 of 6) sorted by relevance
27 unsigned int sglen; in sg_calculate_split() local38 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()
304 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()
65 int sglen; member
248 struct scatterlist *list, int sglen ) in saa7146_pgtable_build_single() argument254 BUG_ON(0 == sglen); in saa7146_pgtable_build_single()262 for (i = 0; i < sglen; i++, list++) { in saa7146_pgtable_build_single()
258 dma->sglist, dma->sglen); in buffer_prepare()
211 int length = dma->sglen; in saa7146_pgtable_build()