Searched refs:bv (Results 1 - 25 of 103) sorted by last modified time

12345

/linux-master/lib/
H A Dscatterlist.c1167 const struct bio_vec *bv = iter->bvec; local
1176 len = bv[i].bv_len;
1183 off = bv[i].bv_offset + start;
1185 sg_set_page(sg, bv[i].bv_page, len, off);
/linux-master/drivers/nvme/host/
H A Dtcp.c325 struct bio_vec bv; local
329 bio_for_each_bvec(bv, bio, bi) {
H A Dpci.c732 struct bio_vec *bv)
735 unsigned int offset = bv->bv_offset & (NVME_CTRL_PAGE_SIZE - 1);
738 iod->first_dma = dma_map_bvec(dev->dev, bv, rq_dma_dir(req), 0);
741 iod->dma_len = bv->bv_len;
744 if (bv->bv_len > first_prp_len)
753 struct bio_vec *bv)
757 iod->first_dma = dma_map_bvec(dev->dev, bv, rq_dma_dir(req), 0);
760 iod->dma_len = bv->bv_len;
778 struct bio_vec bv = req_bvec(req); local
780 if (!is_pci_p2pdma_page(bv
730 nvme_setup_prp_simple(struct nvme_dev *dev, struct request *req, struct nvme_rw_command *cmnd, struct bio_vec *bv) argument
751 nvme_setup_sgl_simple(struct nvme_dev *dev, struct request *req, struct nvme_rw_command *cmnd, struct bio_vec *bv) argument
[all...]
H A Dapple.c490 struct bio_vec *bv)
493 unsigned int offset = bv->bv_offset & (NVME_CTRL_PAGE_SIZE - 1);
496 iod->first_dma = dma_map_bvec(anv->dev, bv, rq_dma_dir(req), 0);
499 iod->dma_len = bv->bv_len;
502 if (bv->bv_len > first_prp_len)
516 struct bio_vec bv = req_bvec(req); local
518 if (bv.bv_offset + bv.bv_len <= NVME_CTRL_PAGE_SIZE * 2)
520 &bv);
487 apple_nvme_setup_prp_simple(struct apple_nvme *anv, struct request *req, struct nvme_rw_command *cmnd, struct bio_vec *bv) argument
/linux-master/drivers/block/
H A Dublk_drv.c743 struct bio_vec bv = bio_iter_iovec(data->bio, data->iter); local
744 unsigned int bytes = min3(bv.bv_len, (unsigned)total - done,
746 void *bv_buf = bvec_kmap_local(&bv);
H A Dfloppy.c2433 struct bio_vec bv; local
2466 rq_for_each_segment(bv, current_req, iter) {
2470 size = bv.bv_len;
2489 memcpy_to_bvec(&bv, dma_buffer);
2491 memcpy_from_bvec(dma_buffer, &bv);
/linux-master/net/sunrpc/
H A Dxprtsock.c448 struct bio_vec bv; local
451 for_each_bvec(bv, bvec, bi, bi)
452 flush_dcache_page(bv.bv_page);
H A Dsvcsock.c283 struct bio_vec bv; local
286 for_each_bvec(bv, bvec, bi, bi)
287 flush_dcache_page(bv.bv_page);
/linux-master/fs/btrfs/
H A Dinode.c3317 * @bv: bio_vec to check
3325 u32 bio_offset, struct bio_vec *bv)
3330 u64 end = file_offset + bv->bv_len - 1;
3334 ASSERT(bv->bv_len == fs_info->sectorsize);
3350 if (btrfs_check_sector_csum(fs_info, bv->bv_page, bv->bv_offset, csum,
3360 memzero_bvec(bv);
3324 btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev, u32 bio_offset, struct bio_vec *bv) argument
/linux-master/include/linux/
H A Dblkdev.h595 #define dma_map_bvec(dev, bv, dir, attrs) \
596 dma_map_page_attrs(dev, (bv)->bv_page, (bv)->bv_offset, (bv)->bv_len, \
/linux-master/fs/smb/client/
H A Dmisc.c1004 * Must use kzalloc to initialize ctx->bv to NULL and ctx->direct_io
1028 * ctx->bv is only set if setup_aio_ctx_iter() was call successfuly
1033 if (ctx->bv) {
1038 struct page *page = ctx->bv[i].bv_page;
1046 kvfree(ctx->bv);
H A Dconnect.c790 struct bio_vec bv; local
792 bvec_set_page(&bv, page, to_read, page_offset);
793 iov_iter_bvec(&smb_msg.msg_iter, ITER_DEST, &bv, 1, to_read);
H A Dcifsglob.h1480 struct bio_vec *bv; member in struct:cifs_aio_ctx
1486 unsigned int bv_need_unpin; /* If ->bv[] needs unpinning */
1528 struct bio_vec *bv; member in struct:cifs_writedata
H A Dfile.c3752 ctx->bv = (void *)ctx->iter.bvec;
3762 ctx->bv = (void *)dup_iter(&ctx->iter, from, GFP_KERNEL);
3763 if (!ctx->bv) {
4284 ctx->bv = (void *)ctx->iter.bvec;
4295 ctx->bv = (void *)dup_iter(&ctx->iter, to, GFP_KERNEL);
4296 if (!ctx->bv) {
H A Dcifs_debug.c647 bool bv; local
653 rc = kstrtobool_from_user(buffer, count, &bv);
939 bool bv; local
945 if (kstrtobool(c, &bv) == 0)
946 cifsFYI = bv;
1093 bool bv; local
1105 if (kstrtobool(flags_string, &bv) == 0) {
1106 global_secflags = bv ? CIFSSEC_MAX : CIFSSEC_DEF;
/linux-master/drivers/s390/net/
H A Dism_drv.c490 unsigned long *bv; local
494 bv = (void *) &ism->sba->dmb_bits[ISM_DMB_WORD_OFFSET];
501 bit = find_next_bit_inv(bv, end, bit);
505 clear_bit_inv(bit, bv);
/linux-master/fs/bcachefs/
H A Dchecksum.c253 struct bio_vec bv;
269 __bio_for_each_segment(bv, bio, *iter, *iter) {
270 void *p = kmap_local_page(bv.bv_page) + bv.bv_offset;
272 bch2_checksum_update(&state, p, bv.bv_len);
276 __bio_for_each_bvec(bv, bio, *iter, *iter)
277 bch2_checksum_update(&state, page_address(bv.bv_page) + bv.bv_offset,
278 bv.bv_len);
292 __bio_for_each_segment(bv, bi
252 struct bio_vec bv; local
324 struct bio_vec bv; local
[all...]
H A Dutil.c682 struct bio_vec bv; local
685 __bio_for_each_segment(bv, dst, iter, dst_iter) {
686 void *dstp = kmap_local_page(bv.bv_page);
688 memcpy(dstp + bv.bv_offset, src, bv.bv_len);
691 src += bv.bv_len;
697 struct bio_vec bv; local
700 __bio_for_each_segment(bv, src, iter, src_iter) {
701 void *srcp = kmap_local_page(bv.bv_page);
703 memcpy(dst, srcp + bv
[all...]
/linux-master/drivers/md/
H A Ddm-integrity.c1699 struct bio_vec bv; local
1711 __bio_for_each_segment(bv, bio, iter, dio->bio_details.bi_iter) {
1760 mem = bvec_kmap_local(&bv);
1767 } while (pos < bv.bv_len);
1782 struct bio_vec bv; local
1838 __bio_for_each_segment(bv, bio, iter, dio->bio_details.bi_iter) {
1839 struct bio_vec bv_copy = bv;
1972 struct bio_vec bv; local
1974 bio_for_each_segment(bv, bio, iter) {
1975 if (unlikely(bv
2026 struct bio_vec bv = bio_iovec(bio); local
[all...]
/linux-master/block/
H A Dblk.h90 void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs);
92 bool bvec_try_merge_hw_page(struct request_queue *q, struct bio_vec *bv,
H A Dblk-merge.c21 static inline void bio_get_first_bvec(struct bio *bio, struct bio_vec *bv) argument
23 *bv = mp_bvec_iter_bvec(bio->bi_io_vec, bio->bi_iter);
26 static inline void bio_get_last_bvec(struct bio *bio, struct bio_vec *bv) argument
31 bio_get_first_bvec(bio, bv);
32 if (bv->bv_len == bio->bi_iter.bi_size)
42 *bv = bio->bi_io_vec[idx];
49 bv->bv_len = iter.bi_bvec_done;
210 * @bv: [in] bvec to examine
212 * by the number of segments from @bv that may be appended to that
215 * by the number of bytes from @bv tha
227 bvec_split_segs(const struct queue_limits *lim, const struct bio_vec *bv, unsigned *nsegs, unsigned *bytes, unsigned max_segs, unsigned max_bytes) argument
278 struct bio_vec bv, bvprv, *bvprvp = NULL; local
413 struct bio_vec bv; local
493 __blk_bvec_map_sg(struct bio_vec bv, struct scatterlist *sglist, struct scatterlist **sg) argument
[all...]
/linux-master/fs/ceph/
H A Dfile.c130 struct bio_vec *bv; local
143 bv = kvmalloc_array(npages, sizeof(*bv), GFP_KERNEL | __GFP_ZERO);
144 if (!bv)
147 bytes = __iter_get_bvecs(iter, maxsize, bv);
152 kvfree(bv);
156 *bvecs = bv;
/linux-master/drivers/s390/block/
H A Dscm_blk.c188 struct bio_vec bv; local
201 rq_for_each_segment(bv, req, iter) {
202 WARN_ON(bv.bv_offset);
203 msb->blk_count += bv.bv_len >> 12;
204 aidaw->data_addr = virt_to_dma64(page_address(bv.bv_page));
H A Ddasd_fba.c435 struct bio_vec bv; local
456 rq_for_each_segment(bv, req, iter) {
457 if (bv.bv_len & (blksize - 1))
460 count += bv.bv_len >> (block->s2b_shift + 9);
461 if (idal_is_needed (page_address(bv.bv_page), bv.bv_len))
462 cidaw += bv.bv_len / blksize;
498 rq_for_each_segment(bv, req, iter) {
499 dst = bvec_virt(&bv);
504 memcpy(copy + bv
567 struct bio_vec bv; local
[all...]
H A Ddasd_eckd.c3265 struct bio_vec bv; local
3307 rq_for_each_segment(bv, req, iter) {
3308 dst = bvec_virt(&bv);
3309 for (off = 0; off < bv.bv_len; off += blksize) {
3969 struct bio_vec bv; local
3990 rq_for_each_segment(bv, req, iter) {
3991 if (bv.bv_len & (blksize - 1))
3994 count += bv.bv_len >> (block->s2b_shift + 9);
3995 if (idal_is_needed (page_address(bv.bv_page), bv
4157 struct bio_vec bv; local
4487 struct bio_vec bv; local
4741 struct bio_vec bv; local
4884 struct bio_vec bv; local
[all...]

Completed in 641 milliseconds

12345