Home
last modified time | relevance | path

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

1234

/linux/include/linux/
A Dbvec.h35 unsigned int bv_offset; member
70 (__bvec_iter_bvec((bvec), (iter))->bv_offset + (iter).bi_bvec_done)
79 .bv_offset = mp_bvec_iter_offset((bvec), (iter)), \
98 .bv_offset = bvec_iter_offset((bvec), (iter)), \
172 bv->bv_offset = 0; in bvec_advance()
174 bv->bv_page = bvec->bv_page + (bvec->bv_offset >> PAGE_SHIFT); in bvec_advance()
175 bv->bv_offset = bvec->bv_offset & ~PAGE_MASK; in bvec_advance()
177 bv->bv_len = min_t(unsigned int, PAGE_SIZE - bv->bv_offset, in bvec_advance()
196 return kmap_local_page(bvec->bv_page) + bvec->bv_offset; in bvec_kmap_local()
229 memzero_page(bvec->bv_page, bvec->bv_offset, bvec->bv_len); in memzero_bvec()
[all …]
/linux/block/
A Dblk.h103 phys_addr_t addr1 = page_to_phys(vec1->bv_page) + vec1->bv_offset; in biovec_phys_mergeable()
104 phys_addr_t addr2 = page_to_phys(vec2->bv_page) + vec2->bv_offset; in biovec_phys_mergeable()
119 ((bprv->bv_offset + bprv->bv_len) & queue_virt_boundary(q)); in __bvec_gap_to_prev()
195 bip_next->bip_vec[0].bv_offset); in integrity_req_gap_back_merge()
205 bip_next->bip_vec[0].bv_offset); in integrity_req_gap_front_merge()
326 bio->bi_io_vec->bv_len + bio->bi_io_vec->bv_offset > PAGE_SIZE; in blk_may_split()
A Dblk-merge.c66 if (pb.bv_offset & queue_virt_boundary(q)) in bio_will_gap()
82 return __bvec_gap_to_prev(q, &pb, nb.bv_offset); in bio_will_gap()
242 bv->bv_offset + total_len); in bvec_split_segs()
249 if ((bv->bv_offset + total_len) & queue_virt_boundary(q)) in bvec_split_segs()
294 if (bvprvp && bvec_gap_to_prev(q, bvprvp, bv.bv_offset)) in blk_bio_segment_split()
299 bv.bv_offset + bv.bv_len <= PAGE_SIZE) { in blk_bio_segment_split()
452 unsigned offset = bvec->bv_offset + total; in blk_bvec_map_sg()
483 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in __blk_bvec_map_sg()
529 if (bvec.bv_offset + bvec.bv_len <= PAGE_SIZE) in __blk_bios_map_sg()
A Dblk-crypto-fallback.c330 enc_bvec->bv_offset); in blk_crypto_fallback_encrypt_bio()
332 enc_bvec->bv_offset); in blk_crypto_fallback_encrypt_bio()
420 sg_set_page(&sg, page, data_unit_size, bv.bv_offset); in blk_crypto_fallback_decrypt_bio()
A Dblk-map.c55 bvec->bv_offset, in bio_copy_from_iter()
86 bvec->bv_offset, in bio_copy_to_iter()
A Dbio.c798 size_t bv_end = bv->bv_offset + bv->bv_len; in page_is_mergeable()
862 phys_addr_t addr1 = page_to_phys(bv->bv_page) + bv->bv_offset; in bio_try_merge_hw_seg()
919 bvec->bv_offset = offset; in bio_add_hw_page()
1001 bv->bv_offset = off; in __bio_add_page()
A Dbounce.c96 tovec.bv_offset); in copy_to_high_bio_irq()
A Dblk-crypto.c212 if (!IS_ALIGNED(bv.bv_len | bv.bv_offset, data_unit_size)) in bio_crypt_check_alignment()
A Dblk-lib.c197 bio->bi_io_vec->bv_offset = 0; in __blkdev_issue_write_same()
/linux/drivers/md/bcache/
A Dutil.c239 bv->bv_offset = base ? offset_in_page(base) : 0; in bch_bio_map()
243 bv->bv_offset = 0; in bch_bio_map()
244 start: bv->bv_len = min_t(size_t, PAGE_SIZE - bv->bv_offset, in bch_bio_map()
/linux/drivers/xen/
A Dbiomerge.c15 return bfn1 + PFN_DOWN(vec1->bv_offset + vec1->bv_len) == bfn2; in xen_biovec_phys_mergeable()
/linux/drivers/block/zram/
A Dzram_drv.c626 if (!bio_add_page(bio, bvec->bv_page, bvec->bv_len, bvec->bv_offset)) { in read_from_bdev_async()
701 bvec.bv_offset = 0; in writeback_store()
756 bvec.bv_offset); in writeback_store()
1274 bvec.bv_offset = 0; in __zram_bvec_read()
1342 memcpy(dst + bvec->bv_offset, src + offset, bvec->bv_len); in zram_bvec_read()
1495 memcpy(dst + offset, src + bvec->bv_offset, bvec->bv_len); in zram_bvec_write()
1501 vec.bv_offset = 0; in zram_bvec_write()
1618 bv.bv_offset += bv.bv_len; in __zram_make_request()
1686 bv.bv_offset = 0; in zram_rw_page()
/linux/drivers/nvdimm/
A Dblk.c93 err = ndbr->do_io(ndbr, dev_offset, iobuf + bv.bv_offset, in nd_blk_rw_integrity()
188 bvec.bv_offset, rw, iter.bi_sector); in nd_blk_submit_bio()
A Dpmem.c212 rc = pmem_do_write(pmem, bvec.bv_page, bvec.bv_offset, in pmem_submit_bio()
215 rc = pmem_do_read(pmem, bvec.bv_page, bvec.bv_offset, in pmem_submit_bio()
/linux/drivers/block/
A Dbrd.c297 WARN_ON_ONCE((bvec.bv_offset & (SECTOR_SIZE - 1)) || in brd_submit_bio()
300 err = brd_do_bvec(brd, bvec.bv_page, len, bvec.bv_offset, in brd_submit_bio()
A Dn64cart.c68 WARN_ON_ONCE((bv->bv_offset & (MIN_ALIGNMENT - 1)) || in n64cart_do_bvec()
/linux/fs/btrfs/
A Dcompression.c264 bvec->bv_offset; in finish_compressed_bio_read()
636 return page_offset(last->bv_page) + last->bv_len + last->bv_offset; in bio_end_offset()
816 file_offset = bio_first_bvec_all(bio)->bv_offset + in btrfs_submit_compressed_read()
1454 bvec_offset = page_offset(bvec.bv_page) + bvec.bv_offset - cb->start; in btrfs_decompress_buf2page()
1470 memcpy_to_page(bvec.bv_page, bvec.bv_offset, in btrfs_decompress_buf2page()
/linux/fs/crypto/
A Dbio.c39 bv->bv_offset); in fscrypt_decrypt_bio()
/linux/fs/orangefs/
A Dinode.c54 bv.bv_offset = off % PAGE_SIZE; in orangefs_writepage_locked()
110 ow->bv[i].bv_offset = ow->off - in orangefs_writepages_work()
113 ow->bv[i].bv_offset = 0; in orangefs_writepages_work()
305 bv.bv_offset = 0; in orangefs_readpage()
/linux/arch/m68k/emu/
A Dnfblock.c75 page_to_phys(bvec.bv_page) + bvec.bv_offset); in nfhd_submit_bio()
/linux/drivers/target/
A Dtarget_core_file.c283 aio_cmd->bvecs[i].bv_offset = sg->offset; in fd_execute_rw_aio()
331 bvec[i].bv_offset = sg->offset; in fd_do_rw()
468 bvec[i].bv_offset = cmd->t_data_sg[0].offset; in fd_execute_write_same()
/linux/net/ceph/
A Dmessenger_v2.c152 bv.bv_offset = it->bvec->bv_offset + it->iov_offset; in do_try_sendpage()
167 bv.bv_offset, bv.bv_len, in do_try_sendpage()
289 con->v2.out_bvec.bv_offset = 0; in set_out_bvec_zero()
867 bv->bv_offset = off; in get_bvec_at()
951 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in init_sgs_cursor()
1757 con->v2.in_bvec.bv_offset, in prepare_read_data_cont()
2873 con->v2.out_bvec.bv_offset, con->v2.out_bvec.bv_len); in queue_data_cont()
2901 bv.bv_offset = 0; in queue_enc_page()
3230 con->v2.out_bvec.bv_offset, sent); in revoke_at_queue_data_cont()
/linux/Documentation/block/
A Dbiovecs.rst13 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
/linux/drivers/vhost/
A Dvringh.c1125 iov[ret].bv_offset = pa & (PAGE_SIZE - 1); in iotlb_translate()
1186 from = kaddr + iov.bv_offset; in getu16_iotlb()
1207 to = kaddr + iov.bv_offset; in putu16_iotlb()
/linux/arch/xtensa/platforms/iss/
A Dsimdisk.c111 char *buffer = kmap_atomic(bvec.bv_page) + bvec.bv_offset; in simdisk_submit_bio()

Completed in 50 milliseconds

1234