miter             263 crypto/adiantum.c 	struct sg_mapping_iter miter;
miter             273 crypto/adiantum.c 	sg_miter_start(&miter, sgl, sg_nents(sgl),
miter             276 crypto/adiantum.c 		sg_miter_next(&miter);
miter             277 crypto/adiantum.c 		n = min_t(unsigned int, miter.length, bulk_len - i);
miter             278 crypto/adiantum.c 		err = crypto_shash_update(hash_desc, miter.addr, n);
miter             282 crypto/adiantum.c 	sg_miter_stop(&miter);
miter            3634 drivers/ata/libata-scsi.c 	struct sg_mapping_iter miter;
miter            3638 drivers/ata/libata-scsi.c 	sg_miter_start(&miter, scsi_sglist(scmd), scsi_sg_count(scmd),
miter            3642 drivers/ata/libata-scsi.c 	while (sg_miter_next(&miter)) {
miter            3652 drivers/ata/libata-scsi.c 			hdr = miter.addr;
miter            3664 drivers/ata/libata-scsi.c 		while (offset < miter.length) {
miter            3670 drivers/ata/libata-scsi.c 			rec = miter.addr + offset;
miter            3683 drivers/ata/libata-scsi.c 			WARN_ON(offset + 64 > miter.length);
miter            3688 drivers/ata/libata-scsi.c 	sg_miter_stop(&miter);
miter             203 drivers/crypto/caam/caampkc.c 	struct sg_mapping_iter miter;
miter             213 drivers/crypto/caam/caampkc.c 	sg_miter_start(&miter, sgl, ents, SG_MITER_FROM_SG | flags);
miter             228 drivers/crypto/caam/caampkc.c 		sg_miter_next(&miter);
miter             229 drivers/crypto/caam/caampkc.c 		buff = miter.addr;
miter             230 drivers/crypto/caam/caampkc.c 		len = miter.length;
miter             236 drivers/crypto/caam/caampkc.c 	miter.consumed = lzeros;
miter             237 drivers/crypto/caam/caampkc.c 	sg_miter_stop(&miter);
miter             100 drivers/fpga/fpga-mgr.c 	struct sg_mapping_iter miter;
miter             112 drivers/fpga/fpga-mgr.c 	sg_miter_start(&miter, sgt->sgl, sgt->nents, SG_MITER_FROM_SG);
miter             113 drivers/fpga/fpga-mgr.c 	if (sg_miter_next(&miter) &&
miter             114 drivers/fpga/fpga-mgr.c 	    miter.length >= mgr->mops->initial_header_size) {
miter             115 drivers/fpga/fpga-mgr.c 		ret = fpga_mgr_write_init_buf(mgr, info, miter.addr,
miter             116 drivers/fpga/fpga-mgr.c 					      miter.length);
miter             117 drivers/fpga/fpga-mgr.c 		sg_miter_stop(&miter);
miter             120 drivers/fpga/fpga-mgr.c 	sg_miter_stop(&miter);
miter             189 drivers/fpga/fpga-mgr.c 		struct sg_mapping_iter miter;
miter             191 drivers/fpga/fpga-mgr.c 		sg_miter_start(&miter, sgt->sgl, sgt->nents, SG_MITER_FROM_SG);
miter             192 drivers/fpga/fpga-mgr.c 		while (sg_miter_next(&miter)) {
miter             193 drivers/fpga/fpga-mgr.c 			ret = mgr->mops->write(mgr, miter.addr, miter.length);
miter             197 drivers/fpga/fpga-mgr.c 		sg_miter_stop(&miter);
miter              98 drivers/memstick/core/ms_block.c 	struct sg_mapping_iter miter;
miter             100 drivers/memstick/core/ms_block.c 	sg_miter_start(&miter, sg, sg_nents(sg),
miter             103 drivers/memstick/core/ms_block.c 	while (sg_miter_next(&miter) && len > 0) {
miter             104 drivers/memstick/core/ms_block.c 		if (offset >= miter.length) {
miter             105 drivers/memstick/core/ms_block.c 			offset -= miter.length;
miter             109 drivers/memstick/core/ms_block.c 		cmplen = min(miter.length - offset, len);
miter             110 drivers/memstick/core/ms_block.c 		retval = memcmp(miter.addr + offset, buffer, cmplen) ? -1 : 0;
miter             122 drivers/memstick/core/ms_block.c 	sg_miter_stop(&miter);
miter             862 drivers/memstick/core/ms_block.c 		struct sg_mapping_iter miter;
miter             868 drivers/memstick/core/ms_block.c 		sg_miter_start(&miter, sg, sg_nents(sg),
miter             871 drivers/memstick/core/ms_block.c 		while (sg_miter_next(&miter) && len > 0) {
miter             875 drivers/memstick/core/ms_block.c 			if (offset && offset >= miter.length) {
miter             876 drivers/memstick/core/ms_block.c 				offset -= miter.length;
miter             880 drivers/memstick/core/ms_block.c 			chunklen = min(miter.length - offset, len);
miter             881 drivers/memstick/core/ms_block.c 			memset(miter.addr + offset, 0xFF, chunklen);
miter             886 drivers/memstick/core/ms_block.c 		sg_miter_stop(&miter);
miter             416 drivers/memstick/host/r592.c 	struct sg_mapping_iter miter;
miter             432 drivers/memstick/host/r592.c 	sg_miter_start(&miter, &dev->req->sg, 1, SG_MITER_ATOMIC |
miter             436 drivers/memstick/host/r592.c 	while (sg_miter_next(&miter))
miter             438 drivers/memstick/host/r592.c 			r592_write_fifo_pio(dev, miter.addr, miter.length);
miter             440 drivers/memstick/host/r592.c 			r592_read_fifo_pio(dev, miter.addr, miter.length);
miter             447 drivers/memstick/host/r592.c 	sg_miter_stop(&miter);
miter              11 drivers/misc/cb710/sgbuf2.c static bool sg_dwiter_next(struct sg_mapping_iter *miter)
miter              13 drivers/misc/cb710/sgbuf2.c 	if (sg_miter_next(miter)) {
miter              14 drivers/misc/cb710/sgbuf2.c 		miter->consumed = 0;
miter              20 drivers/misc/cb710/sgbuf2.c static bool sg_dwiter_is_at_end(struct sg_mapping_iter *miter)
miter              22 drivers/misc/cb710/sgbuf2.c 	return miter->length == miter->consumed && !sg_dwiter_next(miter);
miter              25 drivers/misc/cb710/sgbuf2.c static uint32_t sg_dwiter_read_buffer(struct sg_mapping_iter *miter)
miter              32 drivers/misc/cb710/sgbuf2.c 		len = min(miter->length - miter->consumed, left);
miter              33 drivers/misc/cb710/sgbuf2.c 		memcpy(addr, miter->addr + miter->consumed, len);
miter              34 drivers/misc/cb710/sgbuf2.c 		miter->consumed += len;
miter              39 drivers/misc/cb710/sgbuf2.c 	} while (sg_dwiter_next(miter));
miter              54 drivers/misc/cb710/sgbuf2.c static bool sg_dwiter_get_next_block(struct sg_mapping_iter *miter, uint32_t **ptr)
miter              58 drivers/misc/cb710/sgbuf2.c 	if (sg_dwiter_is_at_end(miter))
miter              61 drivers/misc/cb710/sgbuf2.c 	len = miter->length - miter->consumed;
miter              64 drivers/misc/cb710/sgbuf2.c 			miter->addr + miter->consumed))) {
miter              65 drivers/misc/cb710/sgbuf2.c 		*ptr = miter->addr + miter->consumed;
miter              66 drivers/misc/cb710/sgbuf2.c 		miter->consumed += 4;
miter              90 drivers/misc/cb710/sgbuf2.c uint32_t cb710_sg_dwiter_read_next_block(struct sg_mapping_iter *miter)
miter              94 drivers/misc/cb710/sgbuf2.c 	if (likely(sg_dwiter_get_next_block(miter, &ptr)))
miter              97 drivers/misc/cb710/sgbuf2.c 	return sg_dwiter_read_buffer(miter);
miter             101 drivers/misc/cb710/sgbuf2.c static void sg_dwiter_write_slow(struct sg_mapping_iter *miter, uint32_t data)
miter             107 drivers/misc/cb710/sgbuf2.c 		len = min(miter->length - miter->consumed, left);
miter             108 drivers/misc/cb710/sgbuf2.c 		memcpy(miter->addr, addr, len);
miter             109 drivers/misc/cb710/sgbuf2.c 		miter->consumed += len;
miter             114 drivers/misc/cb710/sgbuf2.c 	} while (sg_dwiter_next(miter));
miter             130 drivers/misc/cb710/sgbuf2.c void cb710_sg_dwiter_write_next_block(struct sg_mapping_iter *miter, uint32_t data)
miter             134 drivers/misc/cb710/sgbuf2.c 	if (likely(sg_dwiter_get_next_block(miter, &ptr))) {
miter             140 drivers/misc/cb710/sgbuf2.c 		sg_dwiter_write_slow(miter, data);
miter             243 drivers/mmc/host/cb710-mmc.c 	struct sg_mapping_iter *miter, size_t dw_count)
miter             252 drivers/mmc/host/cb710-mmc.c 	cb710_sg_dwiter_write_from_io(miter,
miter             265 drivers/mmc/host/cb710-mmc.c 	struct sg_mapping_iter miter;
miter             274 drivers/mmc/host/cb710-mmc.c 	sg_miter_start(&miter, data->sg, data->sg_len, SG_MITER_TO_SG);
miter             285 drivers/mmc/host/cb710-mmc.c 			err = cb710_mmc_receive_pio(slot, &miter, 4);
miter             298 drivers/mmc/host/cb710-mmc.c 		err = cb710_mmc_receive_pio(slot, &miter, len);
miter             303 drivers/mmc/host/cb710-mmc.c 	sg_miter_stop(&miter);
miter             309 drivers/mmc/host/cb710-mmc.c 	struct sg_mapping_iter miter;
miter             318 drivers/mmc/host/cb710-mmc.c 	sg_miter_start(&miter, data->sg, data->sg_len, SG_MITER_FROM_SG);
miter             333 drivers/mmc/host/cb710-mmc.c 			cb710_sg_dwiter_read_to_io(&miter,
miter             338 drivers/mmc/host/cb710-mmc.c 	sg_miter_stop(&miter);
miter             159 drivers/mmc/host/jz4740_mmc.c 	struct sg_mapping_iter miter;
miter             468 drivers/mmc/host/jz4740_mmc.c 	struct sg_mapping_iter *miter = &host->miter;
miter             474 drivers/mmc/host/jz4740_mmc.c 	while (sg_miter_next(miter)) {
miter             475 drivers/mmc/host/jz4740_mmc.c 		buf = miter->addr;
miter             476 drivers/mmc/host/jz4740_mmc.c 		i = miter->length / 4;
miter             506 drivers/mmc/host/jz4740_mmc.c 		data->bytes_xfered += miter->length;
miter             508 drivers/mmc/host/jz4740_mmc.c 	sg_miter_stop(miter);
miter             513 drivers/mmc/host/jz4740_mmc.c 	miter->consumed = (void *)buf - miter->addr;
miter             514 drivers/mmc/host/jz4740_mmc.c 	data->bytes_xfered += miter->consumed;
miter             515 drivers/mmc/host/jz4740_mmc.c 	sg_miter_stop(miter);
miter             523 drivers/mmc/host/jz4740_mmc.c 	struct sg_mapping_iter *miter = &host->miter;
miter             531 drivers/mmc/host/jz4740_mmc.c 	while (sg_miter_next(miter)) {
miter             532 drivers/mmc/host/jz4740_mmc.c 		buf = miter->addr;
miter             533 drivers/mmc/host/jz4740_mmc.c 		i = miter->length;
miter             568 drivers/mmc/host/jz4740_mmc.c 		data->bytes_xfered += miter->length;
miter             572 drivers/mmc/host/jz4740_mmc.c 		flush_dcache_page(miter->page);
miter             574 drivers/mmc/host/jz4740_mmc.c 	sg_miter_stop(miter);
miter             588 drivers/mmc/host/jz4740_mmc.c 	miter->consumed = (void *)buf - miter->addr;
miter             589 drivers/mmc/host/jz4740_mmc.c 	data->bytes_xfered += miter->consumed;
miter             590 drivers/mmc/host/jz4740_mmc.c 	sg_miter_stop(miter);
miter             705 drivers/mmc/host/jz4740_mmc.c 	sg_miter_start(&host->miter, data->sg, data->sg_len, direction);
miter             227 drivers/scsi/lpfc/lpfc_bsg.c 	struct sg_mapping_iter miter;
miter             239 drivers/scsi/lpfc/lpfc_bsg.c 	sg_miter_start(&miter, bsg_buffers->sg_list, bsg_buffers->sg_cnt,
miter             242 drivers/scsi/lpfc/lpfc_bsg.c 	sg_valid = sg_miter_next(&miter);
miter             250 drivers/scsi/lpfc/lpfc_bsg.c 				sg_address = miter.addr + sg_offset;
miter             251 drivers/scsi/lpfc/lpfc_bsg.c 				transfer_bytes = miter.length - sg_offset;
miter             253 drivers/scsi/lpfc/lpfc_bsg.c 				sg_address = miter.addr;
miter             254 drivers/scsi/lpfc/lpfc_bsg.c 				transfer_bytes = miter.length;
miter             268 drivers/scsi/lpfc/lpfc_bsg.c 			if (sg_offset >= miter.length) {
miter             270 drivers/scsi/lpfc/lpfc_bsg.c 				sg_valid = sg_miter_next(&miter);
miter             274 drivers/scsi/lpfc/lpfc_bsg.c 	sg_miter_stop(&miter);
miter            2595 drivers/scsi/scsi_debug.c 	struct sg_mapping_iter miter;
miter            2600 drivers/scsi/scsi_debug.c 	sg_miter_start(&miter, scsi_prot_sglist(SCpnt),
miter            2604 drivers/scsi/scsi_debug.c 	while (sg_miter_next(&miter) && resid > 0) {
miter            2605 drivers/scsi/scsi_debug.c 		size_t len = min(miter.length, resid);
miter            2612 drivers/scsi/scsi_debug.c 		paddr = miter.addr;
miter            2629 drivers/scsi/scsi_debug.c 	sg_miter_stop(&miter);
miter             626 drivers/target/target_core_iblock.c 		 struct sg_mapping_iter *miter)
miter             657 drivers/target/target_core_iblock.c 	while (resid > 0 && sg_miter_next(miter)) {
miter             659 drivers/target/target_core_iblock.c 		len = min_t(size_t, miter->length, resid);
miter             660 drivers/target/target_core_iblock.c 		rc = bio_integrity_add_page(bio, miter->page, len,
miter             661 drivers/target/target_core_iblock.c 					    offset_in_page(miter->addr));
miter             664 drivers/target/target_core_iblock.c 			sg_miter_stop(miter);
miter             669 drivers/target/target_core_iblock.c 			  miter->page, len, offset_in_page(miter->addr));
miter             672 drivers/target/target_core_iblock.c 		if (len < miter->length)
miter             673 drivers/target/target_core_iblock.c 			miter->consumed -= miter->length - len;
miter             675 drivers/target/target_core_iblock.c 	sg_miter_stop(miter);
miter             229 drivers/usb/gadget/udc/dummy_hcd.c 	struct sg_mapping_iter	miter;
miter            1319 drivers/usb/gadget/udc/dummy_hcd.c 	struct sg_mapping_iter *miter = &urbp->miter;
miter            1344 drivers/usb/gadget/udc/dummy_hcd.c 		sg_miter_start(miter, urb->sg, urb->num_sgs, flags);
miter            1347 drivers/usb/gadget/udc/dummy_hcd.c 	next_sg = sg_miter_next(miter);
miter            1353 drivers/usb/gadget/udc/dummy_hcd.c 		ubuf = miter->addr;
miter            1354 drivers/usb/gadget/udc/dummy_hcd.c 		this_sg = min_t(u32, len, miter->length);
miter            1355 drivers/usb/gadget/udc/dummy_hcd.c 		miter->consumed = this_sg;
miter            1366 drivers/usb/gadget/udc/dummy_hcd.c 		next_sg = sg_miter_next(miter);
miter            1375 drivers/usb/gadget/udc/dummy_hcd.c 	sg_miter_stop(miter);
miter             127 drivers/usb/storage/protocol.c 	struct sg_mapping_iter miter;
miter             135 drivers/usb/storage/protocol.c 	sg_miter_start(&miter, sg, nents, dir == FROM_XFER_BUF ?
miter             138 drivers/usb/storage/protocol.c 	if (!sg_miter_skip(&miter, *offset))
miter             141 drivers/usb/storage/protocol.c 	while (sg_miter_next(&miter) && cnt < buflen) {
miter             142 drivers/usb/storage/protocol.c 		unsigned int len = min_t(unsigned int, miter.length,
miter             146 drivers/usb/storage/protocol.c 			memcpy(buffer + cnt, miter.addr, len);
miter             148 drivers/usb/storage/protocol.c 			memcpy(miter.addr, buffer + cnt, len);
miter             150 drivers/usb/storage/protocol.c 		if (*offset + len < miter.piter.sg->length) {
miter             152 drivers/usb/storage/protocol.c 			*sgptr = miter.piter.sg;
miter             155 drivers/usb/storage/protocol.c 			*sgptr = sg_next(miter.piter.sg);
miter             159 drivers/usb/storage/protocol.c 	sg_miter_stop(&miter);
miter             154 include/linux/cb710.h uint32_t cb710_sg_dwiter_read_next_block(struct sg_mapping_iter *miter);
miter             155 include/linux/cb710.h void cb710_sg_dwiter_write_next_block(struct sg_mapping_iter *miter, uint32_t data);
miter             172 include/linux/cb710.h static inline void cb710_sg_dwiter_write_from_io(struct sg_mapping_iter *miter,
miter             176 include/linux/cb710.h 		cb710_sg_dwiter_write_next_block(miter, ioread32(port));
miter             194 include/linux/cb710.h static inline void cb710_sg_dwiter_read_to_io(struct sg_mapping_iter *miter,
miter             198 include/linux/cb710.h 		iowrite32(cb710_sg_dwiter_read_next_block(miter), port);
miter             461 include/linux/scatterlist.h void sg_miter_start(struct sg_mapping_iter *miter, struct scatterlist *sgl,
miter             463 include/linux/scatterlist.h bool sg_miter_skip(struct sg_mapping_iter *miter, off_t offset);
miter             464 include/linux/scatterlist.h bool sg_miter_next(struct sg_mapping_iter *miter);
miter             465 include/linux/scatterlist.h void sg_miter_stop(struct sg_mapping_iter *miter);
miter             259 lib/mpi/mpicoder.c 	struct sg_mapping_iter miter;
miter             273 lib/mpi/mpicoder.c 	sg_miter_start(&miter, sgl, nents, SG_MITER_ATOMIC | SG_MITER_TO_SG);
miter             274 lib/mpi/mpicoder.c 	sg_miter_next(&miter);
miter             275 lib/mpi/mpicoder.c 	buf_len = miter.length;
miter             276 lib/mpi/mpicoder.c 	p2 = miter.addr;
miter             286 lib/mpi/mpicoder.c 			sg_miter_next(&miter);
miter             287 lib/mpi/mpicoder.c 			buf_len = miter.length;
miter             288 lib/mpi/mpicoder.c 			p2 = miter.addr;
miter             305 lib/mpi/mpicoder.c 				sg_miter_next(&miter);
miter             306 lib/mpi/mpicoder.c 				buf_len = miter.length;
miter             307 lib/mpi/mpicoder.c 				p2 = miter.addr;
miter             312 lib/mpi/mpicoder.c 	sg_miter_stop(&miter);
miter             332 lib/mpi/mpicoder.c 	struct sg_mapping_iter miter;
miter             344 lib/mpi/mpicoder.c 	sg_miter_start(&miter, sgl, ents, SG_MITER_ATOMIC | SG_MITER_FROM_SG);
miter             358 lib/mpi/mpicoder.c 		sg_miter_next(&miter);
miter             359 lib/mpi/mpicoder.c 		buff = miter.addr;
miter             360 lib/mpi/mpicoder.c 		len = miter.length;
miter             366 lib/mpi/mpicoder.c 	miter.consumed = lzeros;
miter             371 lib/mpi/mpicoder.c 		sg_miter_stop(&miter);
miter             379 lib/mpi/mpicoder.c 	sg_miter_stop(&miter);
miter             398 lib/mpi/mpicoder.c 	while (sg_miter_next(&miter)) {
miter             399 lib/mpi/mpicoder.c 		buff = miter.addr;
miter             400 lib/mpi/mpicoder.c 		len = miter.length;
miter             674 lib/scatterlist.c void sg_miter_start(struct sg_mapping_iter *miter, struct scatterlist *sgl,
miter             677 lib/scatterlist.c 	memset(miter, 0, sizeof(struct sg_mapping_iter));
miter             679 lib/scatterlist.c 	__sg_page_iter_start(&miter->piter, sgl, nents, 0);
miter             681 lib/scatterlist.c 	miter->__flags = flags;
miter             685 lib/scatterlist.c static bool sg_miter_get_next_page(struct sg_mapping_iter *miter)
miter             687 lib/scatterlist.c 	if (!miter->__remaining) {
miter             690 lib/scatterlist.c 		if (!__sg_page_iter_next(&miter->piter))
miter             693 lib/scatterlist.c 		sg = miter->piter.sg;
miter             695 lib/scatterlist.c 		miter->__offset = miter->piter.sg_pgoffset ? 0 : sg->offset;
miter             696 lib/scatterlist.c 		miter->piter.sg_pgoffset += miter->__offset >> PAGE_SHIFT;
miter             697 lib/scatterlist.c 		miter->__offset &= PAGE_SIZE - 1;
miter             698 lib/scatterlist.c 		miter->__remaining = sg->offset + sg->length -
miter             699 lib/scatterlist.c 				     (miter->piter.sg_pgoffset << PAGE_SHIFT) -
miter             700 lib/scatterlist.c 				     miter->__offset;
miter             701 lib/scatterlist.c 		miter->__remaining = min_t(unsigned long, miter->__remaining,
miter             702 lib/scatterlist.c 					   PAGE_SIZE - miter->__offset);
miter             726 lib/scatterlist.c bool sg_miter_skip(struct sg_mapping_iter *miter, off_t offset)
miter             728 lib/scatterlist.c 	sg_miter_stop(miter);
miter             733 lib/scatterlist.c 		if (!sg_miter_get_next_page(miter))
miter             736 lib/scatterlist.c 		consumed = min_t(off_t, offset, miter->__remaining);
miter             737 lib/scatterlist.c 		miter->__offset += consumed;
miter             738 lib/scatterlist.c 		miter->__remaining -= consumed;
miter             763 lib/scatterlist.c bool sg_miter_next(struct sg_mapping_iter *miter)
miter             765 lib/scatterlist.c 	sg_miter_stop(miter);
miter             771 lib/scatterlist.c 	if (!sg_miter_get_next_page(miter))
miter             774 lib/scatterlist.c 	miter->page = sg_page_iter_page(&miter->piter);
miter             775 lib/scatterlist.c 	miter->consumed = miter->length = miter->__remaining;
miter             777 lib/scatterlist.c 	if (miter->__flags & SG_MITER_ATOMIC)
miter             778 lib/scatterlist.c 		miter->addr = kmap_atomic(miter->page) + miter->__offset;
miter             780 lib/scatterlist.c 		miter->addr = kmap(miter->page) + miter->__offset;
miter             800 lib/scatterlist.c void sg_miter_stop(struct sg_mapping_iter *miter)
miter             802 lib/scatterlist.c 	WARN_ON(miter->consumed > miter->length);
miter             805 lib/scatterlist.c 	if (miter->addr) {
miter             806 lib/scatterlist.c 		miter->__offset += miter->consumed;
miter             807 lib/scatterlist.c 		miter->__remaining -= miter->consumed;
miter             809 lib/scatterlist.c 		if ((miter->__flags & SG_MITER_TO_SG) &&
miter             810 lib/scatterlist.c 		    !PageSlab(miter->page))
miter             811 lib/scatterlist.c 			flush_kernel_dcache_page(miter->page);
miter             813 lib/scatterlist.c 		if (miter->__flags & SG_MITER_ATOMIC) {
miter             815 lib/scatterlist.c 			kunmap_atomic(miter->addr);
miter             817 lib/scatterlist.c 			kunmap(miter->page);
miter             819 lib/scatterlist.c 		miter->page = NULL;
miter             820 lib/scatterlist.c 		miter->addr = NULL;
miter             821 lib/scatterlist.c 		miter->length = 0;
miter             822 lib/scatterlist.c 		miter->consumed = 0;
miter             844 lib/scatterlist.c 	struct sg_mapping_iter miter;
miter             852 lib/scatterlist.c 	sg_miter_start(&miter, sgl, nents, sg_flags);
miter             854 lib/scatterlist.c 	if (!sg_miter_skip(&miter, skip))
miter             857 lib/scatterlist.c 	while ((offset < buflen) && sg_miter_next(&miter)) {
miter             860 lib/scatterlist.c 		len = min(miter.length, buflen - offset);
miter             863 lib/scatterlist.c 			memcpy(buf + offset, miter.addr, len);
miter             865 lib/scatterlist.c 			memcpy(miter.addr, buf + offset, len);
miter             870 lib/scatterlist.c 	sg_miter_stop(&miter);
miter             959 lib/scatterlist.c 	struct sg_mapping_iter miter;
miter             962 lib/scatterlist.c 	sg_miter_start(&miter, sgl, nents, sg_flags);
miter             964 lib/scatterlist.c 	if (!sg_miter_skip(&miter, skip))
miter             967 lib/scatterlist.c 	while (offset < buflen && sg_miter_next(&miter)) {
miter             970 lib/scatterlist.c 		len = min(miter.length, buflen - offset);
miter             971 lib/scatterlist.c 		memset(miter.addr, 0, len);
miter             976 lib/scatterlist.c 	sg_miter_stop(&miter);