Home
last modified time | relevance | path

Searched refs:bv_offset (Results 1 – 64 of 64) sorted by relevance

/linux-4.4.14/block/
Dbounce.c60 memcpy(vto + to->bv_offset, vfrom, to->bv_len); in bounce_copy_vec()
68 memcpy(page_address((to)->bv_page) + (to)->bv_offset, vfrom, (to)->bv_len)
116 tovec.bv_offset; in copy_to_high_bio_irq()
213 vto = page_address(to->bv_page) + to->bv_offset; in __blk_queue_bounce()
214 vfrom = kmap_atomic(page) + to->bv_offset; in __blk_queue_bounce()
Dbio-integrity.c110 bip->bip_vec->bv_offset); in bio_integrity_free()
155 iv->bv_offset = offset; in bio_integrity_add_page()
234 bip->bip_vec->bv_offset; in bio_integrity_process()
244 iter.data_buf = kaddr + bv.bv_offset; in bio_integrity_process()
Dbio.c735 offset == prev->bv_offset + prev->bv_len) { in bio_add_pc_page()
759 bvec->bv_offset = offset; in bio_add_pc_page()
788 bvec->bv_offset = 0; in bio_add_pc_page()
826 offset == bv->bv_offset + bv->bv_len) { in bio_add_page()
838 bv->bv_offset = offset; in bio_add_page()
978 memcpy(dst_p + dst_bv.bv_offset, in bio_copy_data()
979 src_p + src_bv.bv_offset, in bio_copy_data()
1024 bvec->bv_offset, in bio_copy_from_iter()
1055 bvec->bv_offset, in bio_copy_to_iter()
Dblk-merge.c101 if (bvprvp && bvec_gap_to_prev(q, bvprvp, bv.bv_offset)) in blk_bio_segment_split()
372 sg_set_page(*sg, bvec->bv_page, nbytes, bvec->bv_offset); in __blk_segment_map_sg()
408 sg_set_page(*sg, bvec.bv_page, bvec.bv_len, bvec.bv_offset); in __blk_bios_map_sg()
Dblk-lib.c178 bio->bi_io_vec->bv_offset = 0; in blkdev_issue_write_same()
Dblk-integrity.c117 sg_set_page(sg, iv.bv_page, iv.bv_len, iv.bv_offset); in blk_rq_map_integrity_sg()
Dblk-core.c1531 bio->bi_io_vec->bv_offset = 0; in blk_add_request_payload()
/linux-4.4.14/lib/
Diov_iter.c65 __v.bv_offset = __p->bv_offset + skip; \
76 __v.bv_offset = __p->bv_offset; \
398 memcpy_to_page(v.bv_page, v.bv_offset, in copy_to_iter()
420 v.bv_offset, v.bv_len), in copy_from_iter()
441 v.bv_offset, v.bv_len), in copy_from_iter_nocache()
485 memzero_page(v.bv_page, v.bv_offset, v.bv_len), in iov_iter_zero()
501 v.bv_offset, v.bv_len), in iov_iter_copy_from_user_atomic()
565 res |= v.bv_offset | v.bv_len, in iov_iter_alignment()
598 *start = v.bv_offset; in iov_iter_get_pages()
649 *start = v.bv_offset; in iov_iter_get_pages_alloc()
[all …]
/linux-4.4.14/drivers/md/bcache/
Dutil.c233 bv->bv_offset = base ? ((unsigned long) base) % PAGE_SIZE : 0; in bch_bio_map()
237 bv->bv_offset = 0; in bch_bio_map()
238 start: bv->bv_len = min_t(size_t, PAGE_SIZE - bv->bv_offset, in bch_bio_map()
Ddebug.c126 cache_set_err_on(memcmp(p1 + bv.bv_offset, in bch_data_verify()
127 p2 + bv.bv_offset, in bch_data_verify()
Drequest.c46 void *d = kmap(bv.bv_page) + bv.bv_offset; in bio_csum()
/linux-4.4.14/include/linux/
Dbio.h74 (__bvec_iter_bvec((bvec), (iter))->bv_offset + (iter).bi_bvec_done)
80 .bv_offset = bvec_iter_offset((bvec), (iter)), \
154 #define bvec_to_phys(bv) (page_to_phys((bv)->bv_page) + (unsigned long) (bv)->bv_offset)
164 bio_iter_iovec((bio), (iter)).bv_offset)
555 return (char *) addr + bvec->bv_offset; in bvec_kmap_irq()
569 return page_address(bvec->bv_page) + bvec->bv_offset; in bvec_kmap_irq()
Dblk_types.h26 unsigned int bv_offset; member
Dblkdev.h1374 ((bprv->bv_offset + bprv->bv_len) & queue_virt_boundary(q)); in __bvec_gap_to_prev()
1398 return __bvec_gap_to_prev(q, &pb, nb.bv_offset); in bio_will_gap()
1543 bip_next->bip_vec[0].bv_offset); in integrity_req_gap_back_merge()
1553 bip_next->bip_vec[0].bv_offset); in integrity_req_gap_front_merge()
/linux-4.4.14/drivers/scsi/
Dsd_dif.c142 pi = kmap_atomic(iv.bv_page) + iv.bv_offset; in sd_dif_prepare()
189 pi = kmap_atomic(iv.bv_page) + iv.bv_offset; in sd_dif_complete()
/linux-4.4.14/fs/logfs/
Ddev_bdev.c27 bio_vec.bv_offset = 0; in sync_request()
113 bio->bi_io_vec[i].bv_offset = 0; in __bdev_writeseg()
201 bio->bi_io_vec[i].bv_offset = 0; in do_erase()
/linux-4.4.14/drivers/s390/block/
Ddasd_fba.c327 dst = page_address(bv.bv_page) + bv.bv_offset; in dasd_fba_build_cp()
332 memcpy(copy + bv.bv_offset, dst, bv.bv_len); in dasd_fba_build_cp()
334 dst = copy + bv.bv_offset; in dasd_fba_build_cp()
400 dst = page_address(bv.bv_page) + bv.bv_offset; in dasd_fba_free_cp()
Dxpram.c207 kmap(bvec.bv_page) + bvec.bv_offset; in xpram_make_request()
Ddasd_eckd.c2724 dst = page_address(bv.bv_page) + bv.bv_offset; in dasd_eckd_build_cp_cmd_single()
2729 memcpy(copy + bv.bv_offset, dst, bv.bv_len); in dasd_eckd_build_cp_cmd_single()
2731 dst = copy + bv.bv_offset; in dasd_eckd_build_cp_cmd_single()
2887 dst = page_address(bv.bv_page) + bv.bv_offset; in dasd_eckd_build_cp_cmd_track()
3199 dst = page_address(bv.bv_page) + bv.bv_offset; in dasd_eckd_build_cp_tpm_track()
3232 dst = page_address(bv.bv_page) + bv.bv_offset; in dasd_eckd_build_cp_tpm_track()
3452 dst = page_address(bv.bv_page) + bv.bv_offset; in dasd_raw_build_cp()
3516 dst = page_address(bv.bv_page) + bv.bv_offset; in dasd_eckd_free_cp()
Dscm_blk.c204 WARN_ON(bv.bv_offset); in scm_request_prepare()
Ddasd_diag.c555 dst = page_address(bv.bv_page) + bv.bv_offset; in dasd_diag_build_cp()
Ddcssblk.c863 page_address(bvec.bv_page) + bvec.bv_offset; in dcssblk_make_request()
/linux-4.4.14/drivers/block/zram/
Dzram_drv.c182 memset(user_mem + bvec->bv_offset, 0, bvec->bv_len); in handle_zero_page()
636 memcpy(user_mem + bvec->bv_offset, uncmem + offset, in zram_bvec_read()
680 memcpy(uncmem + offset, user_mem + bvec->bv_offset, in zram_bvec_write()
871 bv.bv_offset = bvec.bv_offset; in __zram_make_request()
877 bv.bv_offset += max_transfer_size; in __zram_make_request()
960 bv.bv_offset = 0; in zram_rw_page()
/linux-4.4.14/drivers/nvdimm/
Dblk.c94 err = ndbr->do_io(ndbr, dev_offset, iobuf + bv.bv_offset, in nd_blk_rw_integrity()
196 bvec.bv_offset, rw, iter.bi_sector); in nd_blk_make_request()
Dbtt.c936 mem + bv.bv_offset, cur_len); in btt_rw_integrity()
939 mem + bv.bv_offset, cur_len); in btt_rw_integrity()
1185 err = btt_do_bvec(btt, bip, bvec.bv_page, len, bvec.bv_offset, in btt_make_request()
Dpmem.c78 pmem_do_bvec(pmem, bvec.bv_page, bvec.bv_len, bvec.bv_offset, in pmem_make_request()
/linux-4.4.14/fs/btrfs/
Dfile-item.c225 offset = page_offset(bvec->bv_page) + bvec->bv_offset; in __btrfs_lookup_bio_sums()
451 offset = page_offset(bvec->bv_page) + bvec->bv_offset; in btrfs_csum_one_bio()
460 offset = page_offset(bvec->bv_page) + bvec->bv_offset; in btrfs_csum_one_bio()
485 sums->sums[index] = btrfs_csum_data(data + bvec->bv_offset, in btrfs_csum_one_bio()
Dextent_io.c2567 if (bvec->bv_offset || bvec->bv_len != PAGE_CACHE_SIZE) { in end_bio_extent_writepage()
2568 if (bvec->bv_offset + bvec->bv_len != PAGE_CACHE_SIZE) in end_bio_extent_writepage()
2571 bvec->bv_offset, bvec->bv_len); in end_bio_extent_writepage()
2576 bvec->bv_offset, bvec->bv_len); in end_bio_extent_writepage()
2580 end = start + bvec->bv_offset + bvec->bv_len - 1; in end_bio_extent_writepage()
2644 if (bvec->bv_offset || bvec->bv_len != PAGE_CACHE_SIZE) { in end_bio_extent_readpage()
2645 if (bvec->bv_offset + bvec->bv_len != PAGE_CACHE_SIZE) in end_bio_extent_readpage()
2648 bvec->bv_offset, bvec->bv_len); in end_bio_extent_readpage()
2653 bvec->bv_offset, bvec->bv_len); in end_bio_extent_readpage()
2657 end = start + bvec->bv_offset + bvec->bv_len - 1; in end_bio_extent_readpage()
[all …]
Dcompression.c1080 unsigned long off = bvec[pg_index].bv_offset; in btrfs_clear_biovec_end()
Dcheck-integrity.c3014 bio->bi_io_vec[i].bv_offset); in __btrfsic_submit_bio()
Dinode.c8239 bvec->bv_offset) < bvec->bv_len) { in btrfs_submit_direct_hook()
/linux-4.4.14/Documentation/block/
Dbiovecs.txt13 ended up partway through a biovec, it would increment bv_offset and decrement
18 bi_size and bi_idx have been moved there; and instead of modifying bv_offset
Dbiodoc.txt425 unsigned short bv_offset;
/linux-4.4.14/fs/9p/
Dvfs_addr.c175 bvec.bv_offset = 0; in v9fs_vfs_writepage_locked()
/linux-4.4.14/drivers/target/
Dtarget_core_file.c269 bvec[i].bv_offset = sg->offset; in fd_do_rw()
395 bvec[i].bv_offset = cmd->t_data_sg[0].offset; in fd_execute_write_same()
/linux-4.4.14/mm/
Dpage_io.c266 .bv_offset = 0 in __swap_writepage()
/linux-4.4.14/arch/powerpc/sysdev/
Daxonram.c126 user_mem = page_address(vec.bv_page) + vec.bv_offset; in axon_ram_make_request()
/linux-4.4.14/drivers/block/
Dloop.c319 bvec.bv_offset, bvec.bv_len, pos >> 9); in lo_write_transfer()
324 b.bv_offset = 0; in lo_write_transfer()
382 b.bv_offset = 0; in lo_read_transfer()
393 bvec.bv_offset, len, offset >> 9); in lo_read_transfer()
Dnbd.c229 result = sock_xmit(nbd, 1, kaddr + bvec->bv_offset, in sock_send_bvec()
326 result = sock_xmit(nbd, 0, kaddr + bvec->bv_offset, bvec->bv_len, in sock_recv_bvec()
Dpktcdvd.c963 void *vfrom = kmap_atomic(bvec[f].bv_page) + bvec[f].bv_offset; in pkt_make_local_copy()
968 bvec[f].bv_offset = offs; in pkt_make_local_copy()
970 BUG_ON(bvec[f].bv_offset != offs); in pkt_make_local_copy()
1312 bvec[f].bv_offset = (f * CD_FRAMESIZE) % PAGE_SIZE; in pkt_start_write()
1313 if (!bio_add_page(pkt->w_bio, bvec[f].bv_page, CD_FRAMESIZE, bvec[f].bv_offset)) in pkt_start_write()
Dbrd.c356 bvec.bv_offset, rw, sector); in brd_make_request()
Dps3vram.c564 char *ptr = page_address(bvec.bv_page) + bvec.bv_offset; in ps3vram_do_bio()
Dfloppy.c2377 if (page_address(bv.bv_page) + bv.bv_offset != base + size) in buffer_chain_size()
2447 buffer = page_address(bv.bv_page) + bv.bv_offset; in copy_buffer()
3811 bio_vec.bv_offset = 0; in __floppy_read_block_0()
Dumem.c370 vec.bv_offset, in add_bio()
/linux-4.4.14/fs/ext4/
Dpage-io.c73 unsigned bio_start = bvec->bv_offset; in ext4_finish_bio()
/linux-4.4.14/drivers/md/
Ddm-io.c210 *offset = bvec->bv_offset + dp->context_u; in bio_get_page()
Ddm-crypt.c854 bv_in.bv_offset); in crypt_convert_block()
858 bv_out.bv_offset); in crypt_convert_block()
1023 bvec->bv_offset = 0; in crypt_alloc_buffer()
Ddm-log-writes.c648 memcpy(dst, src + bv.bv_offset, bv.bv_len); in log_writes_map()
Ddm-verity.c411 r = crypto_shash_update(desc, page + bv.bv_offset, len); in verity_verify_io()
Draid1.c984 memcpy(kmap(bvecs[i].bv_page) + bvec->bv_offset, in alloc_behind_pages()
985 kmap(bvec->bv_page) + bvec->bv_offset, bvec->bv_len); in alloc_behind_pages()
1951 bi->bv_offset = 0; in process_checks()
Draid5.c1026 bi->bi_io_vec[0].bv_offset = 0; in ops_run_io()
1075 rbi->bi_io_vec[0].bv_offset = 0; in ops_run_io()
1145 b_offset += bvl.bv_offset; in async_copy_data()
/linux-4.4.14/drivers/scsi/mpt3sas/
Dmpt3sas_transport.c1966 page_address(bvec.bv_page) + bvec.bv_offset, in _transport_smp_handler()
2096 bvec.bv_offset, pci_addr_in + in _transport_smp_handler()
2101 bvec.bv_offset, pci_addr_in + in _transport_smp_handler()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dlloop.c221 BUG_ON(bvec.bv_offset != 0); in do_bio_lustrebacked()
/linux-4.4.14/fs/gfs2/
Dlops.c181 while (bh_offset(bh) < bvec->bv_offset) in gfs2_end_log_write_bh()
/linux-4.4.14/drivers/block/aoe/
Daoecmd.c304 bv.bv_offset, bv.bv_len); in skb_fillup()
1095 char *p = page_address(bv.bv_page) + bv.bv_offset; in bvcpy()
/linux-4.4.14/drivers/block/rsxx/
Ddma.c728 bv_off = bvec.bv_offset; in rsxx_dma_queue_bio()
/linux-4.4.14/fs/exofs/
Dore.c416 zero_user(bv->bv_page, bv->bv_offset, this_count); in _clear_bio()
/linux-4.4.14/fs/
Dsplice.c1017 array[n].bv_offset = buf->offset; in iter_file_splice_write()
Dbuffer.c2994 zero_user(bvec->bv_page, bvec->bv_offset + bvec->bv_len, in guard_bio_eod()
/linux-4.4.14/drivers/block/drbd/
Ddrbd_main.c1558 bvec.bv_offset, bvec.bv_len, in _drbd_send_bio()
1577 bvec.bv_offset, bvec.bv_len, in _drbd_send_zc_bio()
Ddrbd_worker.c313 sg_set_page(&sg, bvec.bv_page, bvec.bv_len, bvec.bv_offset); in drbd_csum_bio()
Ddrbd_receiver.c1733 void *mapped = kmap(bvec.bv_page) + bvec.bv_offset; in recv_dless_read()
/linux-4.4.14/net/ceph/
Dmessenger.c858 *page_offset = (size_t) bio_vec.bv_offset; in ceph_msg_data_bio_next()
/linux-4.4.14/drivers/nvme/host/
Dpci.c537 pmap = kmap_atomic(bip->bip_vec->bv_page) + bip->bip_vec->bv_offset; in nvme_dif_remap()