Searched refs:piter (Results 1 – 8 of 8) sorted by relevance
/linux/lib/ |
H A D | scatterlist.c | 745 if (!piter->__nents || !piter->sg) in __sg_page_iter_next() 748 piter->sg_pgoffset += piter->__pg_advance; in __sg_page_iter_next() 751 while (piter->sg_pgoffset >= sg_page_count(piter->sg)) { in __sg_page_iter_next() 752 piter->sg_pgoffset -= sg_page_count(piter->sg); in __sg_page_iter_next() 753 piter->sg = sg_next(piter->sg); in __sg_page_iter_next() 754 if (!--piter->__nents || !piter->sg) in __sg_page_iter_next() 771 if (!piter->__nents || !piter->sg) in __sg_page_iter_dma_next() 774 piter->sg_pgoffset += piter->__pg_advance; in __sg_page_iter_dma_next() 778 piter->sg_pgoffset -= sg_dma_page_count(piter->sg); in __sg_page_iter_dma_next() 779 piter->sg = sg_next(piter->sg); in __sg_page_iter_dma_next() [all …]
|
/linux/include/linux/ |
H A D | scatterlist.h | 571 bool __sg_page_iter_next(struct sg_page_iter *piter); 573 void __sg_page_iter_start(struct sg_page_iter *piter, 580 static inline struct page *sg_page_iter_page(struct sg_page_iter *piter) in sg_page_iter_page() argument 582 return nth_page(sg_page(piter->sg), piter->sg_pgoffset); in sg_page_iter_page() 607 #define for_each_sg_page(sglist, piter, nents, pgoffset) \ argument 608 for (__sg_page_iter_start((piter), (sglist), (nents), (pgoffset)); \ 609 __sg_page_iter_next(piter);) 637 #define for_each_sgtable_page(sgt, piter, pgoffset) \ argument 638 for_each_sg_page((sgt)->sgl, piter, (sgt)->orig_nents, pgoffset) 681 struct sg_page_iter piter; /* page iterator */ member
|
/linux/drivers/usb/storage/ |
H A D | protocol.c | 150 if (*offset + len < miter.piter.sg->length) { in usb_stor_access_xfer_buf() 152 *sgptr = miter.piter.sg; in usb_stor_access_xfer_buf() 155 *sgptr = sg_next(miter.piter.sg); in usb_stor_access_xfer_buf()
|
/linux/drivers/dma-buf/heaps/ |
H A D | system_heap.c | 200 struct sg_page_iter piter; in system_heap_mmap() local 203 for_each_sgtable_page(table, &piter, vma->vm_pgoff) { in system_heap_mmap() 204 struct page *page = sg_page_iter_page(&piter); in system_heap_mmap() 223 struct sg_page_iter piter; in system_heap_do_vmap() local 229 for_each_sgtable_page(table, &piter, 0) { in system_heap_do_vmap() 231 *tmp++ = sg_page_iter_page(&piter); in system_heap_do_vmap()
|
/linux/sound/core/ |
H A D | memalloc.c | 613 struct sg_page_iter *piter, in snd_dma_noncontig_iter_set() argument 618 __sg_page_iter_start(piter, sgt->sgl, sgt->orig_nents, in snd_dma_noncontig_iter_set()
|
/linux/drivers/target/ |
H A D | target_core_sbc.c | 520 m.piter.sg->offset + block_size); in compare_and_write_callback() 524 m.piter.sg->offset); in compare_and_write_callback()
|
/linux/drivers/scsi/ |
H A D | scsi_debug.c | 4037 struct sg_mapping_iter piter; in prot_verify_write() local 4042 sg_miter_start(&piter, scsi_prot_sglist(SCpnt), in prot_verify_write() 4049 while (sg_miter_next(&piter)) { in prot_verify_write() 4056 for (ppage_offset = 0; ppage_offset < piter.length; in prot_verify_write() 4069 sdt = piter.addr + ppage_offset; in prot_verify_write() 4085 sg_miter_stop(&piter); in prot_verify_write() 4095 sg_miter_stop(&piter); in prot_verify_write()
|
/linux/drivers/mmc/host/ |
H A D | dw_mmc.c | 2612 host->sg = sg_miter->piter.sg; in dw_mci_read_data_pio() 2667 host->sg = sg_miter->piter.sg; in dw_mci_write_data_pio()
|