/drivers/md/bcache/ |
D | util.c | 207 struct bio_vec *bv = bio->bi_io_vec; in bch_bio_map() local 212 bv->bv_offset = base ? ((unsigned long) base) % PAGE_SIZE : 0; in bch_bio_map() 215 for (; size; bio->bi_vcnt++, bv++) { in bch_bio_map() 216 bv->bv_offset = 0; in bch_bio_map() 217 start: bv->bv_len = min_t(size_t, PAGE_SIZE - bv->bv_offset, in bch_bio_map() 220 bv->bv_page = is_vmalloc_addr(base) in bch_bio_map() 224 base += bv->bv_len; in bch_bio_map() 227 size -= bv->bv_len; in bch_bio_map() 234 struct bio_vec *bv; in bch_bio_alloc_pages() local 236 bio_for_each_segment(bv, bio, i) { in bch_bio_alloc_pages() [all …]
|
D | io.c | 81 struct bio_vec *bv; in bch_bio_split() local 104 bio_for_each_segment(bv, bio, idx) { in bch_bio_split() 116 } else if (nbytes < bv->bv_len) { in bch_bio_split() 125 bv->bv_offset += nbytes; in bch_bio_split() 126 bv->bv_len -= nbytes; in bch_bio_split() 130 nbytes -= bv->bv_len; in bch_bio_split() 163 struct bio_vec *bv, *end = bio_iovec(bio) + in bch_bio_max_sectors() local 173 for (bv = bio_iovec(bio); bv < end; bv++) { in bch_bio_max_sectors() 182 q->merge_bvec_fn(q, &bvm, bv) < (int) bv->bv_len) in bch_bio_max_sectors() 185 ret += bv->bv_len >> 9; in bch_bio_max_sectors()
|
D | request.c | 202 struct bio_vec *bv; in bio_csum() local 206 bio_for_each_segment(bv, bio, i) { in bio_csum() 207 void *d = kmap(bv->bv_page) + bv->bv_offset; in bio_csum() 208 csum = bch_crc64_update(csum, d, bv->bv_len); in bio_csum() 209 kunmap(bv->bv_page); in bio_csum() 706 struct bio_vec *bv; in search_alloc() local 726 bv = mempool_alloc(d->unaligned_bvec, GFP_NOIO); in search_alloc() 727 memcpy(bv, bio_iovec(bio), in search_alloc() 730 s->bio.bio.bi_io_vec = bv; in search_alloc() 771 struct bio_vec *bv; in cached_dev_read_complete() local [all …]
|
D | debug.c | 192 struct bio_vec *bv; in bch_data_verify() local 196 bio_for_each_segment(bv, s->orig_bio, i) in bch_data_verify() 197 bv->bv_offset = 0, bv->bv_len = PAGE_SIZE; in bch_data_verify() 213 bio_for_each_segment(bv, s->orig_bio, i) { in bch_data_verify() 214 void *p1 = kmap(bv->bv_page); in bch_data_verify() 217 if (memcmp(p1 + bv->bv_offset, in bch_data_verify() 218 p2 + bv->bv_offset, in bch_data_verify() 219 bv->bv_len)) in bch_data_verify() 225 kunmap(bv->bv_page); in bch_data_verify() 229 __bio_for_each_segment(bv, check, i, 0) in bch_data_verify() [all …]
|
D | movinggc.c | 47 struct bio_vec *bv = bio_iovec_idx(bio, bio->bi_vcnt); in write_moving_finish() local 49 while (bv-- != bio->bi_io_vec) in write_moving_finish() 50 __free_page(bv->bv_page); in write_moving_finish()
|
D | writeback.c | 219 struct bio_vec *bv = bio_iovec_idx(&io->bio, io->bio.bi_vcnt); in write_dirty_finish() local 221 while (bv-- != io->bio.bi_io_vec) in write_dirty_finish() 222 __free_page(bv->bv_page); in write_dirty_finish()
|
D | journal.h | 187 struct bio_vec bv[8]; member
|
/drivers/s390/block/ |
D | dasd_fba.c | 260 struct bio_vec *bv; in dasd_fba_build_cp() local 282 rq_for_each_segment(bv, req, iter) { in dasd_fba_build_cp() 283 if (bv->bv_len & (blksize - 1)) in dasd_fba_build_cp() 286 count += bv->bv_len >> (block->s2b_shift + 9); in dasd_fba_build_cp() 288 if (idal_is_needed (page_address(bv->bv_page), bv->bv_len)) in dasd_fba_build_cp() 289 cidaw += bv->bv_len / blksize; in dasd_fba_build_cp() 325 rq_for_each_segment(bv, req, iter) { in dasd_fba_build_cp() 326 dst = page_address(bv->bv_page) + bv->bv_offset; in dasd_fba_build_cp() 331 memcpy(copy + bv->bv_offset, dst, bv->bv_len); in dasd_fba_build_cp() 333 dst = copy + bv->bv_offset; in dasd_fba_build_cp() [all …]
|
D | dasd_diag.c | 506 struct bio_vec *bv; in dasd_diag_build_cp() local 526 rq_for_each_segment(bv, req, iter) { in dasd_diag_build_cp() 527 if (bv->bv_len & (blksize - 1)) in dasd_diag_build_cp() 530 count += bv->bv_len >> (block->s2b_shift + 9); in dasd_diag_build_cp() 546 rq_for_each_segment(bv, req, iter) { in dasd_diag_build_cp() 547 dst = page_address(bv->bv_page) + bv->bv_offset; in dasd_diag_build_cp() 548 for (off = 0; off < bv->bv_len; off += blksize) { in dasd_diag_build_cp()
|
D | dasd_eckd.c | 2501 struct bio_vec *bv; in dasd_eckd_build_cp_cmd_single() local 2522 rq_for_each_segment(bv, req, iter) { in dasd_eckd_build_cp_cmd_single() 2523 if (bv->bv_len & (blksize - 1)) in dasd_eckd_build_cp_cmd_single() 2526 count += bv->bv_len >> (block->s2b_shift + 9); in dasd_eckd_build_cp_cmd_single() 2528 if (idal_is_needed (page_address(bv->bv_page), bv->bv_len)) in dasd_eckd_build_cp_cmd_single() 2529 cidaw += bv->bv_len >> (block->s2b_shift + 9); in dasd_eckd_build_cp_cmd_single() 2599 rq_for_each_segment(bv, req, iter) { in dasd_eckd_build_cp_cmd_single() 2600 dst = page_address(bv->bv_page) + bv->bv_offset; in dasd_eckd_build_cp_cmd_single() 2605 memcpy(copy + bv->bv_offset, dst, bv->bv_len); in dasd_eckd_build_cp_cmd_single() 2607 dst = copy + bv->bv_offset; in dasd_eckd_build_cp_cmd_single() [all …]
|
D | scm_blk.c | 149 struct bio_vec *bv; in scm_request_prepare() local 160 rq_for_each_segment(bv, scmrq->request, iter) { in scm_request_prepare() 161 WARN_ON(bv->bv_offset); in scm_request_prepare() 162 msb->blk_count += bv->bv_len >> 12; in scm_request_prepare() 163 aidaw->data_addr = (u64) page_address(bv->bv_page); in scm_request_prepare()
|
D | scm_blk_cluster.c | 125 struct bio_vec *bv; in scm_prepare_cluster_request() local 165 rq_for_each_segment(bv, req, iter) { in scm_prepare_cluster_request() 166 aidaw->data_addr = (u64) page_address(bv->bv_page); in scm_prepare_cluster_request()
|
/drivers/block/aoe/ |
D | aoecmd.c | 187 f->bv = NULL; in aoe_freetframe() 285 skb_fillup(struct sk_buff *skb, struct bio_vec *bv, ulong off, ulong cnt) in skb_fillup() argument 290 fcnt = bv->bv_len - (off - bv->bv_offset); in skb_fillup() 293 skb_fill_page_desc(skb, frag++, bv->bv_page, off, fcnt); in skb_fillup() 297 bv++; in skb_fillup() 298 off = bv->bv_offset; in skb_fillup() 350 skb_fillup(skb, f->bv, f->bv_off, f->bcnt); in ata_rw_frameinit() 388 f->bv = buf->bv; in aoecmd_ata_rw() 389 f->bv_off = f->bv->bv_offset + (f->bv->bv_len - buf->bv_resid); in aoecmd_ata_rw() 402 buf->bv++; in aoecmd_ata_rw() [all …]
|
D | aoe.h | 107 struct bio_vec *bv; member 127 struct bio_vec *bv; member
|
/drivers/gpu/drm/i915/ |
D | intel_tv.c | 94 u16 rv, gv, bv, av; member 222 .rv = 0x0340, .gv = 0x030c, .bv = 0x06d0, .av = 0x0200, 232 .rv = 0x037a, .gv = 0x033d, .bv = 0x06f6, .av = 0x0200, 242 .rv = 0x035a, .gv = 0x0322, .bv = 0x06e1, .av = 0x0200, 252 .rv = 0x0399, .gv = 0x0356, .bv = 0x070a, .av = 0x0200, 262 .rv = 0x0353, .gv = 0x031c, .bv = 0x06dc, .av = 0x0200, 272 .rv = 0x0390, .gv = 0x034f, .bv = 0x0705, .av = 0x0200, 282 .rv = 0x0340, .gv = 0x030c, .bv = 0x06d0, .av = 0x0200, 292 .rv = 0x037a, .gv = 0x033d, .bv = 0x06f6, .av = 0x0200, 302 .rv = 0x0340, .gv = 0x030c, .bv = 0x06d0, .av = 0x0200, [all …]
|
/drivers/video/omap2/displays/ |
D | panel-acx565akm.c | 301 int bv; in acx565akm_set_brightness() local 303 bv = level | (1 << 8); in acx565akm_set_brightness() 304 acx565akm_write(md, MIPID_CMD_WRITE_DISP_BRIGHTNESS, (u8 *)&bv, 2); in acx565akm_set_brightness() 314 u8 bv; in acx565akm_get_actual_brightness() local 316 acx565akm_read(md, MIPID_CMD_READ_DISP_BRIGHTNESS, &bv, 1); in acx565akm_get_actual_brightness() 318 return bv; in acx565akm_get_actual_brightness()
|
/drivers/media/usb/usbvision/ |
D | usbvision-core.c | 497 unsigned char rv, gv, bv; /* RGB components */ in usbvision_parse_lines_422() local 526 YUV_TO_RGB_BY_THE_BOOK(yuyv[0], yuyv[1], yuyv[3], rv, gv, bv); in usbvision_parse_lines_422() 532 (0xF8 & bv); in usbvision_parse_lines_422() 537 *f++ = bv; in usbvision_parse_lines_422() 542 *f++ = bv; in usbvision_parse_lines_422() 549 (0x7C & (bv << 2)); in usbvision_parse_lines_422() 560 YUV_TO_RGB_BY_THE_BOOK(yuyv[2], yuyv[1], yuyv[3], rv, gv, bv); in usbvision_parse_lines_422() 566 (0xF8 & bv); in usbvision_parse_lines_422() 571 *f++ = bv; in usbvision_parse_lines_422() 576 *f++ = bv; in usbvision_parse_lines_422() [all …]
|
/drivers/block/zram/ |
D | zram_drv.c | 941 struct bio_vec bv; in __zram_make_request() local 943 bv.bv_page = bvec->bv_page; in __zram_make_request() 944 bv.bv_len = max_transfer_size; in __zram_make_request() 945 bv.bv_offset = bvec->bv_offset; in __zram_make_request() 947 if (zram_bvec_rw(zram, &bv, index, offset, rw) < 0) in __zram_make_request() 950 bv.bv_len = bvec->bv_len - max_transfer_size; in __zram_make_request() 951 bv.bv_offset += max_transfer_size; in __zram_make_request() 952 if (zram_bvec_rw(zram, &bv, index + 1, 0, rw) < 0) in __zram_make_request()
|
/drivers/md/ |
D | dm-verity-target.c | 362 struct bio_vec *bv; in verity_for_bv_block() local 367 bv = &io->io_vec[*vector]; in verity_for_bv_block() 368 page = kmap_atomic(bv->bv_page); in verity_for_bv_block() 369 len = bv->bv_len - *offset; in verity_for_bv_block() 374 r = process(v, io, page + bv->bv_offset + *offset, len); in verity_for_bv_block() 382 if (likely(*offset == bv->bv_len)) { in verity_for_bv_block()
|
D | dm-crypt.c | 866 struct bio_vec *bv; in crypt_free_buffer_pages() local 868 bio_for_each_segment_all(bv, clone, i) { in crypt_free_buffer_pages() 869 BUG_ON(!bv->bv_page); in crypt_free_buffer_pages() 870 mempool_free(bv->bv_page, cc->page_pool); in crypt_free_buffer_pages() 871 bv->bv_page = NULL; in crypt_free_buffer_pages()
|
/drivers/net/wireless/rtlwifi/rtl8192cu/ |
D | trx.c | 371 bool bv; in _rtl_rx_process() local 422 bv = ieee80211_is_probe_resp(fc); in _rtl_rx_process() 423 if (bv) in _rtl_rx_process()
|
/drivers/block/ |
D | rbd.c | 1116 struct bio_vec *bv; in zero_bio_chain() local 1123 bio_for_each_segment(bv, chain, i) { in zero_bio_chain() 1124 if (pos + bv->bv_len > start_ofs) { in zero_bio_chain() 1126 buf = bvec_kmap_irq(bv, &flags); in zero_bio_chain() 1128 bv->bv_len - remainder); in zero_bio_chain() 1131 pos += bv->bv_len; in zero_bio_chain() 1178 struct bio_vec *bv; in bio_clone_range() local 1201 bio_for_each_segment(bv, bio_src, idx) { in bio_clone_range() 1202 if (resid < bv->bv_len) in bio_clone_range() 1204 resid -= bv->bv_len; in bio_clone_range() [all …]
|
D | floppy.c | 2354 struct bio_vec *bv; in buffer_chain_size() local 2362 rq_for_each_segment(bv, current_req, iter) { in buffer_chain_size() 2363 if (page_address(bv->bv_page) + bv->bv_offset != base + size) in buffer_chain_size() 2366 size += bv->bv_len; in buffer_chain_size() 2392 struct bio_vec *bv; in copy_buffer() local 2426 rq_for_each_segment(bv, current_req, iter) { in copy_buffer() 2430 size = bv->bv_len; in copy_buffer() 2433 buffer = page_address(bv->bv_page) + bv->bv_offset; in copy_buffer()
|
D | ps3disk.c | 133 struct bio_vec *bv; in ps3disk_submit_request_sg() local 136 rq_for_each_segment(bv, req, iter) in ps3disk_submit_request_sg()
|
/drivers/video/matrox/ |
D | matroxfb_maven.c | 756 unsigned int a, bv, c; in maven_compute_timming() local 919 DAC1064_calcclock(mt->pixclock, 450000, &a, &bv, &c); in maven_compute_timming() 921 m->regs[0x81] = bv; in maven_compute_timming()
|