Searched refs:piter (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/lib/ |
H A D | scatterlist.c | 744 if (!piter->__nents || !piter->sg) in __sg_page_iter_next() 747 piter->sg_pgoffset += piter->__pg_advance; in __sg_page_iter_next() 750 while (piter->sg_pgoffset >= sg_page_count(piter->sg)) { in __sg_page_iter_next() 751 piter->sg_pgoffset -= sg_page_count(piter->sg); in __sg_page_iter_next() 752 piter->sg = sg_next(piter->sg); in __sg_page_iter_next() 753 if (!--piter->__nents || !piter->sg) in __sg_page_iter_next() 770 if (!piter->__nents || !piter->sg) in __sg_page_iter_dma_next() 773 piter->sg_pgoffset += piter->__pg_advance; in __sg_page_iter_dma_next() 777 piter->sg_pgoffset -= sg_dma_page_count(piter->sg); in __sg_page_iter_dma_next() 778 piter->sg = sg_next(piter->sg); in __sg_page_iter_dma_next() [all …]
|
/openbmc/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
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/linux/sound/core/ |
H A D | memalloc.c | 603 struct sg_page_iter *piter, in snd_dma_noncontig_iter_set() argument 608 __sg_page_iter_start(piter, sgt->sgl, sgt->orig_nents, in snd_dma_noncontig_iter_set()
|
/openbmc/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()
|
/openbmc/linux/drivers/scsi/ |
H A D | scsi_debug.c | 3435 struct sg_mapping_iter piter; in prot_verify_write() local 3440 sg_miter_start(&piter, scsi_prot_sglist(SCpnt), in prot_verify_write() 3447 while (sg_miter_next(&piter)) { in prot_verify_write() 3454 for (ppage_offset = 0; ppage_offset < piter.length; in prot_verify_write() 3467 sdt = piter.addr + ppage_offset; in prot_verify_write() 3483 sg_miter_stop(&piter); in prot_verify_write() 3493 sg_miter_stop(&piter); in prot_verify_write()
|
/openbmc/linux/drivers/mmc/host/ |
H A D | dw_mmc.c | 2607 host->sg = sg_miter->piter.sg; in dw_mci_read_data_pio() 2662 host->sg = sg_miter->piter.sg; in dw_mci_write_data_pio()
|