Home
last modified time | relevance | path

Searched refs:bv (Results 1 – 25 of 43) sorted by relevance

12

/drivers/md/bcache/
Dutil.c234 struct bio_vec *bv = bio->bi_io_vec; in bch_bio_map() local
239 bv->bv_offset = base ? offset_in_page(base) : 0; in bch_bio_map()
242 for (; size; bio->bi_vcnt++, bv++) { 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()
247 bv->bv_page = is_vmalloc_addr(base) in bch_bio_map()
251 base += bv->bv_len; in bch_bio_map()
254 size -= bv->bv_len; in bch_bio_map()
271 struct bio_vec *bv; in bch_bio_alloc_pages() local
277 for (i = 0, bv = bio->bi_io_vec; i < bio->bi_vcnt; bv++, i++) { in bch_bio_alloc_pages()
[all …]
Ddebug.c111 struct bio_vec bv, cbv; in bch_data_verify() local
129 bio_for_each_segment(bv, bio, iter) { in bch_data_verify()
130 void *p1 = kmap_atomic(bv.bv_page); in bch_data_verify()
136 cache_set_err_on(memcmp(p1 + bv.bv_offset, in bch_data_verify()
137 p2 + bv.bv_offset, in bch_data_verify()
138 bv.bv_len), in bch_data_verify()
145 bio_advance_iter(check, &citer, bv.bv_len); in bch_data_verify()
Djournal.h156 struct bio_vec bv[8]; member
Drequest.c42 struct bio_vec bv; in bio_csum() local
46 bio_for_each_segment(bv, bio, iter) { in bio_csum()
47 void *d = kmap(bv.bv_page) + bv.bv_offset; in bio_csum()
49 csum = bch_crc64_update(csum, d, bv.bv_len); in bio_csum()
50 kunmap(bv.bv_page); in bio_csum()
/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.c66 struct nfp_bpf_vnic *bv; in nfp_bpf_vnic_alloc() local
79 bv = kzalloc(sizeof(*bv), GFP_KERNEL); in nfp_bpf_vnic_alloc()
80 if (!bv) in nfp_bpf_vnic_alloc()
82 nn->app_priv = bv; in nfp_bpf_vnic_alloc()
88 bv->start_off = nn_readw(nn, NFP_NET_CFG_BPF_START); in nfp_bpf_vnic_alloc()
89 bv->tgt_done = nn_readw(nn, NFP_NET_CFG_BPF_DONE); in nfp_bpf_vnic_alloc()
99 struct nfp_bpf_vnic *bv = nn->app_priv; in nfp_bpf_vnic_free() local
101 WARN_ON(bv->tc_prog); in nfp_bpf_vnic_free()
102 kfree(bv); in nfp_bpf_vnic_free()
111 struct nfp_bpf_vnic *bv; in nfp_bpf_setup_tc_block_cb() local
[all …]
/drivers/s390/block/
Ddasd_fba.c448 struct bio_vec bv; in dasd_fba_build_cp_regular() local
469 rq_for_each_segment(bv, req, iter) { in dasd_fba_build_cp_regular()
470 if (bv.bv_len & (blksize - 1)) in dasd_fba_build_cp_regular()
473 count += bv.bv_len >> (block->s2b_shift + 9); in dasd_fba_build_cp_regular()
474 if (idal_is_needed (page_address(bv.bv_page), bv.bv_len)) in dasd_fba_build_cp_regular()
475 cidaw += bv.bv_len / blksize; in dasd_fba_build_cp_regular()
511 rq_for_each_segment(bv, req, iter) { in dasd_fba_build_cp_regular()
512 dst = page_address(bv.bv_page) + bv.bv_offset; in dasd_fba_build_cp_regular()
517 memcpy(copy + bv.bv_offset, dst, bv.bv_len); in dasd_fba_build_cp_regular()
519 dst = copy + bv.bv_offset; in dasd_fba_build_cp_regular()
[all …]
Ddasd_diag.c507 struct bio_vec bv; in dasd_diag_build_cp() local
527 rq_for_each_segment(bv, req, iter) { in dasd_diag_build_cp()
528 if (bv.bv_len & (blksize - 1)) in dasd_diag_build_cp()
531 count += bv.bv_len >> (block->s2b_shift + 9); in dasd_diag_build_cp()
548 rq_for_each_segment(bv, req, iter) { in dasd_diag_build_cp()
549 dst = page_address(bv.bv_page) + bv.bv_offset; in dasd_diag_build_cp()
550 for (off = 0; off < bv.bv_len; off += blksize) { in dasd_diag_build_cp()
Dscm_blk.c188 struct bio_vec bv; in scm_request_prepare() local
201 rq_for_each_segment(bv, req, iter) { in scm_request_prepare()
202 WARN_ON(bv.bv_offset); in scm_request_prepare()
203 msb->blk_count += bv.bv_len >> 12; in scm_request_prepare()
204 aidaw->data_addr = (u64) page_address(bv.bv_page); in scm_request_prepare()
Ddasd_eckd.c3061 struct bio_vec bv; in dasd_eckd_ese_read() local
3068 rq_for_each_segment(bv, req, iter) { in dasd_eckd_ese_read()
3069 dst = page_address(bv.bv_page) + bv.bv_offset; in dasd_eckd_ese_read()
3070 for (off = 0; off < bv.bv_len; off += blksize) { in dasd_eckd_ese_read()
3696 struct bio_vec bv; in dasd_eckd_build_cp_cmd_single() local
3717 rq_for_each_segment(bv, req, iter) { in dasd_eckd_build_cp_cmd_single()
3718 if (bv.bv_len & (blksize - 1)) in dasd_eckd_build_cp_cmd_single()
3721 count += bv.bv_len >> (block->s2b_shift + 9); in dasd_eckd_build_cp_cmd_single()
3722 if (idal_is_needed (page_address(bv.bv_page), bv.bv_len)) in dasd_eckd_build_cp_cmd_single()
3723 cidaw += bv.bv_len >> (block->s2b_shift + 9); in dasd_eckd_build_cp_cmd_single()
[all …]
/drivers/nvdimm/
Dblk.c81 struct bio_vec bv; in nd_blk_rw_integrity() local
84 bv = bvec_iter_bvec(bip->bip_vec, bip->bip_iter); in nd_blk_rw_integrity()
91 cur_len = min(len, bv.bv_len); in nd_blk_rw_integrity()
92 iobuf = kmap_atomic(bv.bv_page); in nd_blk_rw_integrity()
93 err = ndbr->do_io(ndbr, dev_offset, iobuf + bv.bv_offset, in nd_blk_rw_integrity()
Dbtt.c1155 struct bio_vec bv; in btt_rw_integrity() local
1158 bv = bvec_iter_bvec(bip->bip_vec, bip->bip_iter); in btt_rw_integrity()
1165 cur_len = min(len, bv.bv_len); in btt_rw_integrity()
1166 mem = kmap_atomic(bv.bv_page); in btt_rw_integrity()
1169 mem + bv.bv_offset, cur_len, in btt_rw_integrity()
1173 mem + bv.bv_offset, cur_len, in btt_rw_integrity()
/drivers/gpu/drm/panel/
Dpanel-sony-acx565akm.c271 u8 bv; in acx565akm_get_actual_brightness() local
273 acx565akm_read(lcd, MIPI_DCS_GET_DISPLAY_BRIGHTNESS, &bv, 1); in acx565akm_get_actual_brightness()
275 return bv; in acx565akm_get_actual_brightness()
281 int bv; in acx565akm_set_brightness() local
283 bv = level | (1 << 8); in acx565akm_set_brightness()
284 acx565akm_write(lcd, MIPI_DCS_SET_DISPLAY_BRIGHTNESS, (u8 *)&bv, 2); in acx565akm_set_brightness()
/drivers/gpu/drm/i915/display/
Dintel_tv.c63 u16 rv, gv, bv, av; member
191 .rv = 0x0340, .gv = 0x030c, .bv = 0x06d0, .av = 0x0200,
201 .rv = 0x037a, .gv = 0x033d, .bv = 0x06f6, .av = 0x0200,
211 .rv = 0x035a, .gv = 0x0322, .bv = 0x06e1, .av = 0x0200,
221 .rv = 0x0399, .gv = 0x0356, .bv = 0x070a, .av = 0x0200,
231 .rv = 0x0353, .gv = 0x031c, .bv = 0x06dc, .av = 0x0200,
241 .rv = 0x0390, .gv = 0x034f, .bv = 0x0705, .av = 0x0200,
251 .rv = 0x0340, .gv = 0x030c, .bv = 0x06d0, .av = 0x0200,
261 .rv = 0x037a, .gv = 0x033d, .bv = 0x06f6, .av = 0x0200,
271 .rv = 0x0340, .gv = 0x030c, .bv = 0x06d0, .av = 0x0200,
[all …]
/drivers/media/usb/usbvision/
Dusbvision-core.c478 unsigned char rv, gv, bv; /* RGB components */ in usbvision_parse_lines_422() local
507 YUV_TO_RGB_BY_THE_BOOK(yuyv[0], yuyv[1], yuyv[3], rv, gv, bv); in usbvision_parse_lines_422()
513 (0xF8 & bv); in usbvision_parse_lines_422()
518 *f++ = bv; in usbvision_parse_lines_422()
523 *f++ = bv; in usbvision_parse_lines_422()
530 (0x7C & (bv << 2)); in usbvision_parse_lines_422()
541 YUV_TO_RGB_BY_THE_BOOK(yuyv[2], yuyv[1], yuyv[3], rv, gv, bv); in usbvision_parse_lines_422()
547 (0xF8 & bv); in usbvision_parse_lines_422()
552 *f++ = bv; in usbvision_parse_lines_422()
557 *f++ = bv; in usbvision_parse_lines_422()
[all …]
/drivers/nvme/target/
Dio-cmd-file.c83 static void nvmet_file_init_bvec(struct bio_vec *bv, struct scatterlist *sg) in nvmet_file_init_bvec() argument
85 bv->bv_page = sg_page(sg); in nvmet_file_init_bvec()
86 bv->bv_offset = sg->offset; in nvmet_file_init_bvec()
87 bv->bv_len = sg->length; in nvmet_file_init_bvec()
/drivers/md/persistent-data/
Ddm-bitset.c54 bool bv; in pack_bits() local
57 r = p->fn(index * 64 + bit, &bv, p->context); in pack_bits()
61 if (bv) in pack_bits()
/drivers/video/fbdev/omap2/omapfb/displays/
Dpanel-sony-acx565akm.c316 int bv; in acx565akm_set_brightness() local
318 bv = level | (1 << 8); in acx565akm_set_brightness()
319 acx565akm_write(ddata, MIPID_CMD_WRITE_DISP_BRIGHTNESS, (u8 *)&bv, 2); in acx565akm_set_brightness()
329 u8 bv; in acx565akm_get_actual_brightness() local
331 acx565akm_read(ddata, MIPID_CMD_READ_DISP_BRIGHTNESS, &bv, 1); in acx565akm_get_actual_brightness()
333 return bv; in acx565akm_get_actual_brightness()
/drivers/md/
Ddm-verity-target.c382 struct bio_vec bv = bio_iter_iovec(bio, *iter); in verity_for_io_block() local
386 len = bv.bv_len; in verity_for_io_block()
395 sg_set_page(&sg, bv.bv_page, len, bv.bv_offset); in verity_for_io_block()
428 struct bio_vec bv = bio_iter_iovec(bio, *iter); in verity_for_bv_block() local
430 page = kmap_atomic(bv.bv_page); in verity_for_bv_block()
431 len = bv.bv_len; in verity_for_bv_block()
436 r = process(v, io, page + bv.bv_offset, len); in verity_for_bv_block()
Ddm-integrity.c1517 struct bio_vec bv; in integrity_metadata() local
1540 __bio_for_each_segment(bv, bio, iter, dio->orig_bi_iter) { in integrity_metadata()
1545 mem = (char *)kmap_atomic(bv.bv_page) + bv.bv_offset; in integrity_metadata()
1554 } while (pos < bv.bv_len && sectors_to_process && checksums != checksums_onstack); in integrity_metadata()
1574 if (unlikely(pos < bv.bv_len)) { in integrity_metadata()
1575 bv.bv_offset += pos; in integrity_metadata()
1576 bv.bv_len -= pos; in integrity_metadata()
1659 struct bio_vec bv; in dm_integrity_map() local
1660 bio_for_each_segment(bv, bio, iter) { in dm_integrity_map()
1661 if (unlikely(bv.bv_len & ((ic->sectors_per_block << SECTOR_SHIFT) - 1))) { in dm_integrity_map()
[all …]
Ddm-log-writes.c671 struct bio_vec bv; in log_writes_map() local
754 bio_for_each_segment(bv, bio, iter) { in log_writes_map()
768 src = kmap_atomic(bv.bv_page); in log_writes_map()
770 memcpy(dst, src + bv.bv_offset, bv.bv_len); in log_writes_map()
774 block->vecs[i].bv_len = bv.bv_len; in log_writes_map()
/drivers/block/zram/
Dzram_drv.c1564 struct bio_vec bv = bvec; in __zram_make_request() local
1568 bv.bv_len = min_t(unsigned int, PAGE_SIZE - offset, in __zram_make_request()
1570 if (zram_bvec_rw(zram, &bv, index, offset, in __zram_make_request()
1574 bv.bv_offset += bv.bv_len; in __zram_make_request()
1575 unwritten -= bv.bv_len; in __zram_make_request()
1577 update_position(&index, &offset, &bv); in __zram_make_request()
1632 struct bio_vec bv; in zram_rw_page() local
1647 bv.bv_page = page; in zram_rw_page()
1648 bv.bv_len = PAGE_SIZE; in zram_rw_page()
1649 bv.bv_offset = 0; in zram_rw_page()
[all …]
/drivers/block/aoe/
Daoecmd.c300 struct bio_vec bv; in skb_fillup() local
302 __bio_for_each_segment(bv, bio, iter, iter) in skb_fillup()
303 skb_fill_page_desc(skb, frag++, bv.bv_page, in skb_fillup()
304 bv.bv_offset, bv.bv_len); in skb_fillup()
1026 struct bio_vec bv; in bvcpy() local
1030 __bio_for_each_segment(bv, bio, iter, iter) { in bvcpy()
1031 char *p = kmap_atomic(bv.bv_page) + bv.bv_offset; in bvcpy()
1032 skb_copy_bits(skb, soff, p, bv.bv_len); in bvcpy()
1034 soff += bv.bv_len; in bvcpy()
/drivers/s390/net/
Dism_drv.c408 unsigned long *bv; in ism_handle_irq() local
410 bv = (void *) &ism->sba->dmb_bits[ISM_DMB_WORD_OFFSET]; in ism_handle_irq()
417 bit = find_next_bit_inv(bv, end, bit); in ism_handle_irq()
421 clear_bit_inv(bit, bv); in ism_handle_irq()
/drivers/nvme/host/
Dpci.c773 struct bio_vec *bv) in nvme_setup_prp_simple() argument
776 unsigned int offset = bv->bv_offset & (dev->ctrl.page_size - 1); in nvme_setup_prp_simple()
779 iod->first_dma = dma_map_bvec(dev->dev, bv, rq_dma_dir(req), 0); in nvme_setup_prp_simple()
782 iod->dma_len = bv->bv_len; in nvme_setup_prp_simple()
785 if (bv->bv_len > first_prp_len) in nvme_setup_prp_simple()
792 struct bio_vec *bv) in nvme_setup_sgl_simple() argument
796 iod->first_dma = dma_map_bvec(dev->dev, bv, rq_dma_dir(req), 0); in nvme_setup_sgl_simple()
799 iod->dma_len = bv->bv_len; in nvme_setup_sgl_simple()
816 struct bio_vec bv = req_bvec(req); in nvme_map_data() local
818 if (!is_pci_p2pdma_page(bv.bv_page)) { in nvme_map_data()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dtrx.c349 bool bv; in _rtl_rx_process() local
399 bv = ieee80211_is_probe_resp(fc); in _rtl_rx_process()
400 if (bv) in _rtl_rx_process()

12