Searched refs:sg (Results 1 – 7 of 7) sorted by relevance
/lib/ |
D | scatterlist.c | 25 struct scatterlist *sg_next(struct scatterlist *sg) in sg_next() argument 28 BUG_ON(sg->sg_magic != SG_MAGIC); in sg_next() 30 if (sg_is_last(sg)) in sg_next() 33 sg++; in sg_next() 34 if (unlikely(sg_is_chain(sg))) in sg_next() 35 sg = sg_chain_ptr(sg); in sg_next() 37 return sg; in sg_next() 50 int sg_nents(struct scatterlist *sg) in sg_nents() argument 53 for (nents = 0; sg; sg = sg_next(sg)) in sg_nents() 73 int sg_nents_for_len(struct scatterlist *sg, u64 len) in sg_nents_for_len() argument [all …]
|
D | swiotlb.c | 884 struct scatterlist *sg; in swiotlb_map_sg_attrs() local 889 for_each_sg(sgl, sg, nelems, i) { in swiotlb_map_sg_attrs() 890 phys_addr_t paddr = sg_phys(sg); in swiotlb_map_sg_attrs() 894 !dma_capable(hwdev, dev_addr, sg->length)) { in swiotlb_map_sg_attrs() 895 phys_addr_t map = map_single(hwdev, sg_phys(sg), in swiotlb_map_sg_attrs() 896 sg->length, dir); in swiotlb_map_sg_attrs() 900 swiotlb_full(hwdev, sg->length, dir, 0); in swiotlb_map_sg_attrs() 906 sg->dma_address = phys_to_dma(hwdev, map); in swiotlb_map_sg_attrs() 908 sg->dma_address = dev_addr; in swiotlb_map_sg_attrs() 909 sg_dma_len(sg) = sg->length; in swiotlb_map_sg_attrs() [all …]
|
D | sg_split.c | 30 struct scatterlist *sg; in sg_calculate_split() local 37 for_each_sg(in, sg, nents, i) { in sg_calculate_split() 38 sglen = mapped ? sg_dma_len(sg) : sg->length; in sg_calculate_split() 46 curr->in_sg0 = sg; in sg_calculate_split() 59 curr->in_sg0 = sg; in sg_calculate_split()
|
D | dma-debug.c | 1363 void debug_dma_map_sg(struct device *dev, struct scatterlist *sg, in debug_dma_map_sg() argument 1373 for_each_sg(sg, s, mapped_ents, i) { in debug_dma_map_sg() 1578 void debug_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, in debug_dma_sync_sg_for_cpu() argument 1587 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_cpu() 1611 void debug_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, in debug_dma_sync_sg_for_device() argument 1620 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_device()
|
D | Kconfig | 522 # sg chaining option
|
D | Kconfig.debug | 1215 their sg tables.
|
/lib/mpi/ |
D | mpicoder.c | 436 struct scatterlist *sg; in mpi_read_raw_from_sgl() local 445 for_each_sg(sgl, sg, ents, i) { in mpi_read_raw_from_sgl() 446 const u8 *buff = sg_virt(sg); in mpi_read_raw_from_sgl() 447 int len = sg->length; in mpi_read_raw_from_sgl() 462 sgl = sg; in mpi_read_raw_from_sgl() 498 for_each_sg(sgl, sg, ents, i) { in mpi_read_raw_from_sgl() 499 const u8 *buffer = sg_virt(sg) + lzeros; in mpi_read_raw_from_sgl() 500 int len = sg->length - lzeros; in mpi_read_raw_from_sgl() 503 if (sg_is_last(sg) && (len % BYTES_PER_MPI_LIMB)) in mpi_read_raw_from_sgl()
|