/drivers/block/zram/ |
D | zram_drv.c | 55 static int zram_bvec_read(struct zram *zram, struct bio_vec *bvec, 145 static inline bool is_partial_io(struct bio_vec *bvec) in is_partial_io() argument 147 return bvec->bv_len != PAGE_SIZE; in is_partial_io() 150 static inline bool is_partial_io(struct bio_vec *bvec) in is_partial_io() argument 180 static void update_position(u32 *index, int *offset, struct bio_vec *bvec) in update_position() argument 182 *index += (*offset + bvec->bv_len) / PAGE_SIZE; in update_position() 183 *offset = (*offset + bvec->bv_len) % PAGE_SIZE; in update_position() 586 static int read_from_bdev_async(struct zram *zram, struct bio_vec *bvec, in read_from_bdev_async() argument 597 if (!bio_add_page(bio, bvec->bv_page, bvec->bv_len, bvec->bv_offset)) { in read_from_bdev_async() 665 struct bio_vec bvec; in writeback_store() local [all …]
|
/drivers/block/ |
D | loop.c | 266 static int lo_write_bvec(struct file *file, struct bio_vec *bvec, loff_t *ppos) in lo_write_bvec() argument 271 iov_iter_bvec(&i, ITER_BVEC | WRITE, bvec, 1, bvec->bv_len); in lo_write_bvec() 277 if (likely(bw == bvec->bv_len)) in lo_write_bvec() 282 (unsigned long long)*ppos, bvec->bv_len); in lo_write_bvec() 291 struct bio_vec bvec; in lo_write_simple() local 295 rq_for_each_segment(bvec, rq, iter) { in lo_write_simple() 296 ret = lo_write_bvec(lo->lo_backing_file, &bvec, &pos); in lo_write_simple() 313 struct bio_vec bvec, b; in lo_write_transfer() local 322 rq_for_each_segment(bvec, rq, iter) { in lo_write_transfer() 323 ret = lo_do_transfer(lo, WRITE, page, 0, bvec.bv_page, in lo_write_transfer() [all …]
|
D | brd.c | 298 struct bio_vec bvec; in brd_make_request() local 306 bio_for_each_segment(bvec, bio, iter) { in brd_make_request() 307 unsigned int len = bvec.bv_len; in brd_make_request() 310 err = brd_do_bvec(brd, bvec.bv_page, len, bvec.bv_offset, in brd_make_request()
|
D | ps3disk.c | 97 struct bio_vec bvec; in ps3disk_scatter_gather() local 102 rq_for_each_segment(bvec, req, iter) { in ps3disk_scatter_gather() 108 size = bvec.bv_len; in ps3disk_scatter_gather() 109 buf = bvec_kmap_irq(&bvec, &flags); in ps3disk_scatter_gather() 115 flush_kernel_dcache_page(bvec.bv_page); in ps3disk_scatter_gather()
|
D | ps3vram.c | 556 struct bio_vec bvec; in ps3vram_do_bio() local 560 bio_for_each_segment(bvec, bio, iter) { in ps3vram_do_bio() 562 char *ptr = page_address(bvec.bv_page) + bvec.bv_offset; in ps3vram_do_bio() 563 size_t len = bvec.bv_len, retlen; in ps3vram_do_bio()
|
D | nbd.c | 548 struct bio_vec bvec; in nbd_send_cmd() local 550 bio_for_each_segment(bvec, bio, iter) { in nbd_send_cmd() 551 bool is_last = !next && bio_iter_last(bvec, iter); in nbd_send_cmd() 555 cmd, bvec.bv_len); in nbd_send_cmd() 557 &bvec, 1, bvec.bv_len); in nbd_send_cmd() 673 struct bio_vec bvec; in nbd_read_stat() local 675 rq_for_each_segment(bvec, req, iter) { in nbd_read_stat() 677 &bvec, 1, bvec.bv_len); in nbd_read_stat() 698 cmd, bvec.bv_len); in nbd_read_stat()
|
D | null_blk.c | 1123 struct bio_vec bvec; in null_handle_rq() local 1133 rq_for_each_segment(bvec, rq, iter) { in null_handle_rq() 1134 len = bvec.bv_len; in null_handle_rq() 1135 err = null_transfer(nullb, bvec.bv_page, len, bvec.bv_offset, in null_handle_rq() 1156 struct bio_vec bvec; in null_handle_bio() local 1168 bio_for_each_segment(bvec, bio, iter) { in null_handle_bio() 1169 len = bvec.bv_len; in null_handle_bio() 1170 err = null_transfer(nullb, bvec.bv_page, len, bvec.bv_offset, in null_handle_bio()
|
D | loop.h | 75 struct bio_vec *bvec; member
|
/drivers/target/ |
D | target_core_file.c | 259 struct bio_vec *bvec; in fd_do_rw() local 264 bvec = kcalloc(sgl_nents, sizeof(struct bio_vec), GFP_KERNEL); in fd_do_rw() 265 if (!bvec) { in fd_do_rw() 271 bvec[i].bv_page = sg_page(sg); in fd_do_rw() 272 bvec[i].bv_len = sg->length; in fd_do_rw() 273 bvec[i].bv_offset = sg->offset; in fd_do_rw() 278 iov_iter_bvec(&iter, ITER_BVEC, bvec, sgl_nents, len); in fd_do_rw() 322 kfree(bvec); in fd_do_rw() 379 struct bio_vec *bvec; in fd_execute_write_same() local 403 bvec = kcalloc(nolb, sizeof(struct bio_vec), GFP_KERNEL); in fd_execute_write_same() [all …]
|
/drivers/s390/block/ |
D | xpram.c | 187 struct bio_vec bvec; in xpram_make_request() local 205 bio_for_each_segment(bvec, bio, iter) { in xpram_make_request() 207 kmap(bvec.bv_page) + bvec.bv_offset; in xpram_make_request() 208 bytes = bvec.bv_len; in xpram_make_request()
|
D | dcssblk.c | 849 struct bio_vec bvec; in dcssblk_make_request() local 886 bio_for_each_segment(bvec, bio, iter) { in dcssblk_make_request() 888 page_address(bvec.bv_page) + bvec.bv_offset; in dcssblk_make_request() 890 if (unlikely((page_addr & 4095) != 0) || (bvec.bv_len & 4095) != 0) in dcssblk_make_request() 895 bvec.bv_len); in dcssblk_make_request() 898 bvec.bv_len); in dcssblk_make_request() 900 bytes_done += bvec.bv_len; in dcssblk_make_request()
|
/drivers/nvdimm/ |
D | blk.c | 179 struct bio_vec bvec; in nd_blk_make_request() local 190 bio_for_each_segment(bvec, bio, iter) { in nd_blk_make_request() 191 unsigned int len = bvec.bv_len; in nd_blk_make_request() 194 err = nsblk_do_bvec(nsblk, bip, bvec.bv_page, len, in nd_blk_make_request() 195 bvec.bv_offset, rw, iter.bi_sector); in nd_blk_make_request()
|
D | pmem.c | 175 struct bio_vec bvec; in pmem_make_request() local 184 bio_for_each_segment(bvec, bio, iter) { in pmem_make_request() 185 rc = pmem_do_bvec(pmem, bvec.bv_page, bvec.bv_len, in pmem_make_request() 186 bvec.bv_offset, op_is_write(bio_op(bio)), in pmem_make_request()
|
D | btt.c | 1446 struct bio_vec bvec; in btt_make_request() local 1454 bio_for_each_segment(bvec, bio, iter) { in btt_make_request() 1455 unsigned int len = bvec.bv_len; in btt_make_request() 1465 err = btt_do_bvec(btt, bip, bvec.bv_page, len, bvec.bv_offset, in btt_make_request()
|
/drivers/md/ |
D | dm-io.c | 211 struct bio_vec bvec = bvec_iter_bvec((struct bio_vec *)dp->context_ptr, in bio_get_page() local 214 *p = bvec.bv_page; in bio_get_page() 215 *len = bvec.bv_len; in bio_get_page() 216 *offset = bvec.bv_offset; in bio_get_page() 219 dp->context_bi.bi_sector = (sector_t)bvec.bv_len; in bio_get_page()
|
D | dm-flakey.c | 288 struct bio_vec bvec; in corrupt_bio_data() local 297 bio_for_each_segment(bvec, bio, iter) { in corrupt_bio_data()
|
D | dm.c | 1056 struct bio_vec bvec; in dm_remap_zone_report() local 1076 bio_for_each_segment(bvec, report_bio, iter) { in dm_remap_zone_report() 1077 addr = kmap_atomic(bvec.bv_page); in dm_remap_zone_report() 1087 while (hdr->nr_zones && ofst < bvec.bv_len) { in dm_remap_zone_report()
|
/drivers/block/rsxx/ |
D | dma.c | 687 struct bio_vec bvec; in rsxx_dma_queue_bio() local 726 bio_for_each_segment(bvec, bio, iter) { in rsxx_dma_queue_bio() 727 bv_len = bvec.bv_len; in rsxx_dma_queue_bio() 728 bv_off = bvec.bv_offset; in rsxx_dma_queue_bio() 740 laddr, bvec.bv_page, in rsxx_dma_queue_bio()
|
/drivers/block/drbd/ |
D | drbd_main.c | 1601 struct bio_vec bvec; in _drbd_send_bio() local 1605 bio_for_each_segment(bvec, bio, iter) { in _drbd_send_bio() 1608 err = _drbd_no_send_page(peer_device, bvec.bv_page, in _drbd_send_bio() 1609 bvec.bv_offset, bvec.bv_len, in _drbd_send_bio() 1610 bio_iter_last(bvec, iter) in _drbd_send_bio() 1623 struct bio_vec bvec; in _drbd_send_zc_bio() local 1627 bio_for_each_segment(bvec, bio, iter) { in _drbd_send_zc_bio() 1630 err = _drbd_send_page(peer_device, bvec.bv_page, in _drbd_send_zc_bio() 1631 bvec.bv_offset, bvec.bv_len, in _drbd_send_zc_bio() 1632 bio_iter_last(bvec, iter) ? 0 : MSG_MORE); in _drbd_send_zc_bio()
|
D | drbd_worker.c | 331 struct bio_vec bvec; in drbd_csum_bio() local 340 bio_for_each_segment(bvec, bio, iter) { in drbd_csum_bio() 341 sg_set_page(&sg, bvec.bv_page, bvec.bv_len, bvec.bv_offset); in drbd_csum_bio()
|
D | drbd_receiver.c | 1898 struct bio_vec bvec; in recv_dless_read() local 1921 bio_for_each_segment(bvec, bio, iter) { in recv_dless_read() 1922 void *mapped = kmap(bvec.bv_page) + bvec.bv_offset; in recv_dless_read() 1923 expect = min_t(int, data_size, bvec.bv_len); in recv_dless_read() 1925 kunmap(bvec.bv_page); in recv_dless_read()
|
/drivers/staging/lustre/lnet/klnds/socklnd/ |
D | socklnd_cb.c | 1364 to->nr_segs, to->bvec, in ksocknal_recv()
|
/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
D | o2iblnd_cb.c | 1780 to->nr_segs, to->bvec, in kiblnd_recv()
|