Home
last modified time | relevance | path

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

123

/Linux-v6.6/include/linux/
Dbvec.h34 unsigned int bv_offset; member
49 bv->bv_offset = offset; in bvec_set_page()
109 (__bvec_iter_bvec((bvec), (iter))->bv_offset + (iter).bi_bvec_done)
118 .bv_offset = mp_bvec_iter_offset((bvec), (iter)), \
137 .bv_offset = bvec_iter_offset((bvec), (iter)), \
211 bv->bv_offset = 0; in bvec_advance()
213 bv->bv_page = bvec->bv_page + (bvec->bv_offset >> PAGE_SHIFT); in bvec_advance()
214 bv->bv_offset = bvec->bv_offset & ~PAGE_MASK; in bvec_advance()
216 bv->bv_len = min_t(unsigned int, PAGE_SIZE - bv->bv_offset, in bvec_advance()
235 return kmap_local_page(bvec->bv_page) + bvec->bv_offset; in bvec_kmap_local()
[all …]
Dskbuff.h2427 frag->bv_offset = off; in skb_frag_fill_page_desc()
3371 return frag->bv_offset; in skb_frag_off()
3381 frag->bv_offset += delta; in skb_frag_off_add()
3391 frag->bv_offset = offset; in skb_frag_off_set()
3402 fragto->bv_offset = fragfrom->bv_offset; in skb_frag_off_copy()
/Linux-v6.6/block/
Dblk.h86 phys_addr_t addr1 = page_to_phys(vec1->bv_page) + vec1->bv_offset; in biovec_phys_mergeable()
87 phys_addr_t addr2 = page_to_phys(vec2->bv_page) + vec2->bv_offset; in biovec_phys_mergeable()
109 ((bprv->bv_offset + bprv->bv_len) & lim->virt_boundary_mask); in __bvec_gap_to_prev()
206 bip_next->bip_vec[0].bv_offset); in integrity_req_gap_back_merge()
217 bip_next->bip_vec[0].bv_offset); in integrity_req_gap_front_merge()
317 bio->bi_io_vec->bv_len + bio->bi_io_vec->bv_offset > PAGE_SIZE; in bio_may_exceed_limits()
Dblk-merge.c69 if (pb.bv_offset & queue_virt_boundary(q)) in bio_will_gap()
85 return __bvec_gap_to_prev(&q->limits, &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) & lim->virt_boundary_mask) in bvec_split_segs()
291 if (bvprvp && bvec_gap_to_prev(lim, bvprvp, bv.bv_offset)) in bio_split_rw()
296 bv.bv_offset + bv.bv_len <= PAGE_SIZE) { in bio_split_rw()
470 unsigned offset = bvec->bv_offset + total; in blk_bvec_map_sg()
501 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in __blk_bvec_map_sg()
547 if (bvec.bv_offset + bvec.bv_len <= PAGE_SIZE) in __blk_bios_map_sg()
Dblk-map.c57 bvec->bv_offset, in bio_copy_from_iter()
88 bvec->bv_offset, in bio_copy_to_iter()
588 if (bvprvp && bvec_gap_to_prev(lim, bvprvp, bv->bv_offset)) { in blk_rq_map_user_bvec()
597 if (bv->bv_offset + bv->bv_len > PAGE_SIZE) in blk_rq_map_user_bvec()
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()
Dbounce.c96 tovec.bv_offset); in copy_to_high_bio_irq()
Dblk-crypto.c221 if (!IS_ALIGNED(bv.bv_len | bv.bv_offset, data_unit_size)) in bio_crypt_check_alignment()
Dblk-integrity.c95 sg_set_page(sg, iv.bv_page, iv.bv_len, iv.bv_offset); in blk_rq_map_integrity_sg()
Dbio.c650 zero_user(bv.bv_page, bv.bv_offset + offset, in bio_truncate()
909 size_t bv_end = bv->bv_offset + bv->bv_len; in bvec_try_merge_page()
942 phys_addr_t addr1 = page_to_phys(bv->bv_page) + bv->bv_offset; in bvec_try_merge_hw_page()
/Linux-v6.6/drivers/md/bcache/
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-v6.6/drivers/xen/
Dbiomerge.c15 return bfn1 + PFN_DOWN(vec1->bv_offset + vec1->bv_len) == bfn2; in xen_biovec_phys_mergeable()
/Linux-v6.6/fs/btrfs/
Draid56.c1123 sector->pgoff = bvec.bv_offset + bvec_offset; in index_one_bio()
1401 for (pgoff = bvec->bv_offset; pgoff - bvec->bv_offset < bvec->bv_len; in set_bio_pages_uptodate()
1420 if (sector->page == bv->bv_page && sector->pgoff == bv->bv_offset) in get_bio_sector_nr()
1423 if (sector->page == bv->bv_page && sector->pgoff == bv->bv_offset) in get_bio_sector_nr()
1469 int bv_offset; in verify_bio_data_sectors() local
1471 for (bv_offset = bvec->bv_offset; in verify_bio_data_sectors()
1472 bv_offset < bvec->bv_offset + bvec->bv_len; in verify_bio_data_sectors()
1473 bv_offset += fs_info->sectorsize, total_sector_nr++) { in verify_bio_data_sectors()
1484 bv_offset, csum_buf, expected_csum); in verify_bio_data_sectors()
Dextent_io.c473 u64 start = page_offset(page) + bvec->bv_offset; in end_bio_extent_writepage()
477 if (!IS_ALIGNED(bvec->bv_offset, sectorsize)) in end_bio_extent_writepage()
480 bvec->bv_offset, bvec->bv_len); in end_bio_extent_writepage()
484 bvec->bv_offset, bvec->bv_len); in end_bio_extent_writepage()
620 if (!IS_ALIGNED(bvec->bv_offset, sectorsize)) in end_bio_extent_readpage()
623 bvec->bv_offset, bvec->bv_len); in end_bio_extent_readpage()
624 else if (!IS_ALIGNED(bvec->bv_offset + bvec->bv_len, in end_bio_extent_readpage()
628 bvec->bv_offset, bvec->bv_len); in end_bio_extent_readpage()
630 start = page_offset(page) + bvec->bv_offset; in end_bio_extent_readpage()
734 page_offset(bvec->bv_page) + bvec->bv_offset + bvec->bv_len == in btrfs_bio_is_contig()
Dbio.c218 bv->bv_page, bv->bv_offset, mirror); in btrfs_end_repair_bio()
269 __bio_add_page(repair_bio, bv->bv_page, bv->bv_len, bv->bv_offset); in repair_one_sector()
/Linux-v6.6/drivers/block/
Dbrd.c255 WARN_ON_ONCE((bvec.bv_offset & (SECTOR_SIZE - 1)) || in brd_submit_bio()
258 err = brd_do_bvec(brd, bvec.bv_page, len, bvec.bv_offset, in brd_submit_bio()
Dn64cart.c68 WARN_ON_ONCE((bv->bv_offset & (MIN_ALIGNMENT - 1)) || in n64cart_do_bvec()
/Linux-v6.6/arch/m68k/emu/
Dnfblock.c74 page_to_phys(bvec.bv_page) + bvec.bv_offset); in nfhd_submit_bio()
/Linux-v6.6/lib/
Diov_iter.c53 unsigned offset = p->bv_offset + skip; \
846 if ((unsigned long)(i->bvec[k].bv_offset + skip) & addr_mask) in iov_iter_aligned_bvec()
926 res |= (unsigned long)i->bvec[k].bv_offset + skip; in iov_iter_alignment_bvec()
1090 skip += i->bvec->bv_offset; in first_bvec_segment()
1283 unsigned offs = (p->bv_offset + skip) % PAGE_SIZE; in bvec_npages()
1672 skip += i->bvec->bv_offset; in iov_iter_extract_bvec_pages()
/Linux-v6.6/net/ceph/
Dmessenger_v2.c157 it->bvec->bv_offset + it->iov_offset); in do_try_sendpage()
960 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in init_sgs_cursor()
1120 memcpy_page(bv.bv_page, bv.bv_offset, in process_v2_sparse_read()
1883 bv.bv_offset = 0; in prepare_read_data()
1900 memcpy_to_page(bv.bv_page, bv.bv_offset, in prepare_read_data_cont()
1906 con->v2.in_bvec.bv_offset, in prepare_read_data_cont()
1915 bv.bv_offset = 0; in prepare_read_data_cont()
1945 memcpy_to_page(bv.bv_page, bv.bv_offset, in prepare_sparse_read_cont()
1951 con->v2.in_bvec.bv_offset, in prepare_sparse_read_cont()
1966 bv.bv_offset = 0; in prepare_sparse_read_cont()
[all …]
/Linux-v6.6/Documentation/block/
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-v6.6/drivers/nvdimm/
Dpmem.c220 rc = pmem_do_write(pmem, bvec.bv_page, bvec.bv_offset, in pmem_submit_bio()
223 rc = pmem_do_read(pmem, bvec.bv_page, bvec.bv_offset, in pmem_submit_bio()
/Linux-v6.6/drivers/s390/block/
Ddasd_fba.c509 memcpy(copy + bv.bv_offset, dst, bv.bv_len); in dasd_fba_build_cp_regular()
511 dst = copy + bv.bv_offset; in dasd_fba_build_cp_regular()
/Linux-v6.6/fs/gfs2/
Dmeta_io.c204 while (bh_offset(bh) < bvec->bv_offset) in gfs2_meta_read_endio()
/Linux-v6.6/drivers/md/
Ddm-io.c224 *offset = bvec.bv_offset; in bio_get_page()

123