Searched refs:piter (Results 1 – 7 of 7) sorted by relevance
/linux-4.19.296/lib/ |
D | scatterlist.c | 592 void __sg_page_iter_start(struct sg_page_iter *piter, in __sg_page_iter_start() argument 596 piter->__pg_advance = 0; in __sg_page_iter_start() 597 piter->__nents = nents; in __sg_page_iter_start() 599 piter->sg = sglist; in __sg_page_iter_start() 600 piter->sg_pgoffset = pgoffset; in __sg_page_iter_start() 609 bool __sg_page_iter_next(struct sg_page_iter *piter) in __sg_page_iter_next() argument 611 if (!piter->__nents || !piter->sg) in __sg_page_iter_next() 614 piter->sg_pgoffset += piter->__pg_advance; in __sg_page_iter_next() 615 piter->__pg_advance = 1; in __sg_page_iter_next() 617 while (piter->sg_pgoffset >= sg_page_count(piter->sg)) { in __sg_page_iter_next() [all …]
|
/linux-4.19.296/include/linux/ |
D | scatterlist.h | 359 bool __sg_page_iter_next(struct sg_page_iter *piter); 360 void __sg_page_iter_start(struct sg_page_iter *piter, 367 static inline struct page *sg_page_iter_page(struct sg_page_iter *piter) in sg_page_iter_page() argument 369 return nth_page(sg_page(piter->sg), piter->sg_pgoffset); in sg_page_iter_page() 377 static inline dma_addr_t sg_page_iter_dma_address(struct sg_page_iter *piter) in sg_page_iter_dma_address() argument 379 return sg_dma_address(piter->sg) + (piter->sg_pgoffset << PAGE_SHIFT); in sg_page_iter_dma_address() 389 #define for_each_sg_page(sglist, piter, nents, pgoffset) \ argument 390 for (__sg_page_iter_start((piter), (sglist), (nents), (pgoffset)); \ 391 __sg_page_iter_next(piter);) 419 struct sg_page_iter piter; /* page iterator */ member
|
D | genhd.h | 274 extern void disk_part_iter_init(struct disk_part_iter *piter, 276 extern struct hd_struct *disk_part_iter_next(struct disk_part_iter *piter); 277 extern void disk_part_iter_exit(struct disk_part_iter *piter);
|
/linux-4.19.296/block/ |
D | genhd.c | 145 void disk_part_iter_init(struct disk_part_iter *piter, struct gendisk *disk, in disk_part_iter_init() argument 153 piter->disk = disk; in disk_part_iter_init() 154 piter->part = NULL; in disk_part_iter_init() 157 piter->idx = ptbl->len - 1; in disk_part_iter_init() 159 piter->idx = 0; in disk_part_iter_init() 161 piter->idx = 1; in disk_part_iter_init() 163 piter->flags = flags; in disk_part_iter_init() 178 struct hd_struct *disk_part_iter_next(struct disk_part_iter *piter) in disk_part_iter_next() argument 184 disk_put_part(piter->part); in disk_part_iter_next() 185 piter->part = NULL; in disk_part_iter_next() [all …]
|
D | ioctl.c | 20 struct disk_part_iter piter; in blkpg_ioctl() local 55 disk_part_iter_init(&piter, disk, in blkpg_ioctl() 57 while ((part = disk_part_iter_next(&piter))) { in blkpg_ioctl() 60 disk_part_iter_exit(&piter); in blkpg_ioctl() 65 disk_part_iter_exit(&piter); in blkpg_ioctl() 129 disk_part_iter_init(&piter, disk, in blkpg_ioctl() 131 while ((lpart = disk_part_iter_next(&piter))) { in blkpg_ioctl() 136 disk_part_iter_exit(&piter); in blkpg_ioctl() 144 disk_part_iter_exit(&piter); in blkpg_ioctl()
|
D | partition-generic.c | 455 struct disk_part_iter piter; in drop_partitions() local 465 disk_part_iter_init(&piter, disk, DISK_PITER_INCL_EMPTY); in drop_partitions() 466 while ((part = disk_part_iter_next(&piter))) in drop_partitions() 468 disk_part_iter_exit(&piter); in drop_partitions()
|
/linux-4.19.296/drivers/s390/block/ |
D | dasd.c | 422 struct disk_part_iter piter; in dasd_state_ready_to_online() local 434 disk_part_iter_init(&piter, disk, DISK_PITER_INCL_PART0); in dasd_state_ready_to_online() 435 while ((part = disk_part_iter_next(&piter))) in dasd_state_ready_to_online() 437 disk_part_iter_exit(&piter); in dasd_state_ready_to_online() 449 struct disk_part_iter piter; in dasd_state_online_to_ready() local 461 disk_part_iter_init(&piter, disk, DISK_PITER_INCL_PART0); in dasd_state_online_to_ready() 462 while ((part = disk_part_iter_next(&piter))) in dasd_state_online_to_ready() 464 disk_part_iter_exit(&piter); in dasd_state_online_to_ready()
|