Searched refs:miter (Results 1 – 7 of 7) sorted by relevance
/drivers/misc/cb710/ |
D | sgbuf2.c | 14 static bool sg_dwiter_next(struct sg_mapping_iter *miter) in sg_dwiter_next() argument 16 if (sg_miter_next(miter)) { in sg_dwiter_next() 17 miter->consumed = 0; in sg_dwiter_next() 23 static bool sg_dwiter_is_at_end(struct sg_mapping_iter *miter) in sg_dwiter_is_at_end() argument 25 return miter->length == miter->consumed && !sg_dwiter_next(miter); in sg_dwiter_is_at_end() 28 static uint32_t sg_dwiter_read_buffer(struct sg_mapping_iter *miter) in sg_dwiter_read_buffer() argument 35 len = min(miter->length - miter->consumed, left); in sg_dwiter_read_buffer() 36 memcpy(addr, miter->addr + miter->consumed, len); in sg_dwiter_read_buffer() 37 miter->consumed += len; in sg_dwiter_read_buffer() 42 } while (sg_dwiter_next(miter)); in sg_dwiter_read_buffer() [all …]
|
/drivers/mmc/host/ |
D | jz4740_mmc.c | 137 struct sg_mapping_iter miter; member 240 struct sg_mapping_iter *miter = &host->miter; in jz4740_mmc_write_data() local 246 while (sg_miter_next(miter)) { in jz4740_mmc_write_data() 247 buf = miter->addr; in jz4740_mmc_write_data() 248 i = miter->length / 4; in jz4740_mmc_write_data() 278 data->bytes_xfered += miter->length; in jz4740_mmc_write_data() 280 sg_miter_stop(miter); in jz4740_mmc_write_data() 285 miter->consumed = (void *)buf - miter->addr; in jz4740_mmc_write_data() 286 data->bytes_xfered += miter->consumed; in jz4740_mmc_write_data() 287 sg_miter_stop(miter); in jz4740_mmc_write_data() [all …]
|
D | cb710-mmc.c | 246 struct sg_mapping_iter *miter, size_t dw_count) in cb710_mmc_receive_pio() argument 255 cb710_sg_dwiter_write_from_io(miter, in cb710_mmc_receive_pio() 268 struct sg_mapping_iter miter; in cb710_mmc_receive() local 277 sg_miter_start(&miter, data->sg, data->sg_len, SG_MITER_TO_SG); in cb710_mmc_receive() 288 err = cb710_mmc_receive_pio(slot, &miter, 4); in cb710_mmc_receive() 301 err = cb710_mmc_receive_pio(slot, &miter, len); in cb710_mmc_receive() 306 sg_miter_stop(&miter); in cb710_mmc_receive() 312 struct sg_mapping_iter miter; in cb710_mmc_send() local 321 sg_miter_start(&miter, data->sg, data->sg_len, SG_MITER_FROM_SG); in cb710_mmc_send() 336 cb710_sg_dwiter_read_to_io(&miter, in cb710_mmc_send() [all …]
|
/drivers/memstick/host/ |
D | r592.c | 418 struct sg_mapping_iter miter; in r592_transfer_fifo_pio() local 434 sg_miter_start(&miter, &dev->req->sg, 1, SG_MITER_ATOMIC | in r592_transfer_fifo_pio() 438 while (sg_miter_next(&miter)) in r592_transfer_fifo_pio() 440 r592_write_fifo_pio(dev, miter.addr, miter.length); in r592_transfer_fifo_pio() 442 r592_read_fifo_pio(dev, miter.addr, miter.length); in r592_transfer_fifo_pio() 449 sg_miter_stop(&miter); in r592_transfer_fifo_pio()
|
/drivers/usb/gadget/ |
D | dummy_hcd.c | 155 struct sg_mapping_iter miter; member 1226 struct sg_mapping_iter *miter = &urbp->miter; in dummy_perform_transfer() local 1251 sg_miter_start(miter, urb->sg, urb->num_sgs, flags); in dummy_perform_transfer() 1254 next_sg = sg_miter_next(miter); in dummy_perform_transfer() 1260 ubuf = miter->addr; in dummy_perform_transfer() 1261 this_sg = min_t(u32, len, miter->length); in dummy_perform_transfer() 1262 miter->consumed = this_sg; in dummy_perform_transfer() 1273 next_sg = sg_miter_next(miter); in dummy_perform_transfer() 1282 sg_miter_stop(miter); in dummy_perform_transfer()
|
/drivers/crypto/ |
D | talitos.c | 1132 struct sg_mapping_iter miter; in sg_copy_end_to_buffer() local 1139 sg_miter_start(&miter, sgl, nents, sg_flags); in sg_copy_end_to_buffer() 1143 while (sg_miter_next(&miter) && offset < total_buffer) { in sg_copy_end_to_buffer() 1147 if ((offset + miter.length) > skip) { in sg_copy_end_to_buffer() 1151 len = miter.length - ignore; in sg_copy_end_to_buffer() 1154 memcpy(buf + boffset, miter.addr + ignore, len); in sg_copy_end_to_buffer() 1157 len = miter.length; in sg_copy_end_to_buffer() 1160 memcpy(buf + boffset, miter.addr, len); in sg_copy_end_to_buffer() 1164 offset += miter.length; in sg_copy_end_to_buffer() 1167 sg_miter_stop(&miter); in sg_copy_end_to_buffer()
|
/drivers/scsi/lpfc/ |
D | lpfc_bsg.c | 223 struct sg_mapping_iter miter; in lpfc_bsg_copy_data() local 235 sg_miter_start(&miter, bsg_buffers->sg_list, bsg_buffers->sg_cnt, in lpfc_bsg_copy_data() 238 sg_valid = sg_miter_next(&miter); in lpfc_bsg_copy_data() 246 sg_address = miter.addr + sg_offset; in lpfc_bsg_copy_data() 247 transfer_bytes = miter.length - sg_offset; in lpfc_bsg_copy_data() 249 sg_address = miter.addr; in lpfc_bsg_copy_data() 250 transfer_bytes = miter.length; in lpfc_bsg_copy_data() 264 if (sg_offset >= miter.length) { in lpfc_bsg_copy_data() 266 sg_valid = sg_miter_next(&miter); in lpfc_bsg_copy_data() 270 sg_miter_stop(&miter); in lpfc_bsg_copy_data()
|