Searched refs:bufio (Results 1 – 8 of 8) sorted by relevance
/drivers/md/persistent-data/ |
D | dm-block-manager.c | 374 struct dm_bufio_client *bufio; member 391 bm->bufio = dm_bufio_client_create(bdev, block_size, max_held_per_thread, in dm_block_manager_create() 395 if (IS_ERR(bm->bufio)) { in dm_block_manager_create() 396 r = PTR_ERR(bm->bufio); in dm_block_manager_create() 412 dm_bufio_client_destroy(bm->bufio); in dm_block_manager_destroy() 419 return dm_bufio_get_block_size(bm->bufio); in dm_bm_block_size() 425 return dm_bufio_get_device_size(bm->bufio); in dm_bm_nr_blocks() 437 r = v->check(v, (struct dm_block *) buf, dm_bufio_get_block_size(bm->bufio)); in dm_bm_validate_buffer() 463 p = dm_bufio_read(bm->bufio, b, (struct dm_buffer **) result); in dm_bm_read_lock() 499 p = dm_bufio_read(bm->bufio, b, (struct dm_buffer **) result); in dm_bm_write_lock() [all …]
|
/drivers/md/ |
D | dm-verity-fec.c | 71 res = dm_bufio_read(v->fec->bufio, v->fec->start + block, buf); in fec_read_parity() 207 struct dm_bufio_client *bufio; in fec_read_bufs() local 235 bufio = v->fec->data_bufio; in fec_read_bufs() 248 bufio = v->bufio; in fec_read_bufs() 251 bbuf = dm_bufio_read(bufio, block, &buf); in fec_read_bufs() 266 if (bufio == v->fec->data_bufio && in fec_read_bufs() 558 if (f->bufio) in verity_fec_dtr() 559 dm_bufio_client_destroy(f->bufio); in verity_fec_dtr() 739 if (dm_bufio_get_device_size(v->bufio) < f->hash_blocks) { in verity_fec_ctr() 745 f->bufio = dm_bufio_client_create(f->dev->bdev, in verity_fec_ctr() [all …]
|
D | dm-bow.c | 86 struct dm_bufio_client *bufio; member 293 read = dm_bufio_read(bc->bufio, page, &read_buffer); in copy_data() 303 write = dm_bufio_new(bc->bufio, in copy_data() 319 dm_bufio_write_dirty_buffers(bc->bufio); in copy_data() 391 sector = dm_bufio_new(bc->bufio, 0, §or_buffer); in add_log_entry() 407 dm_bufio_write_dirty_buffers(bc->bufio); in add_log_entry() 611 if (bc->bufio) in dm_bow_dtr() 612 dm_bufio_client_destroy(bc->bufio); in dm_bow_dtr() 682 bc->bufio = dm_bufio_client_create(bc->dev->bdev, bc->block_size, 1, 0, in dm_bow_ctr() 684 if (IS_ERR(bc->bufio)) { in dm_bow_ctr() [all …]
|
D | dm-verity-target.c | 288 data = dm_bufio_read(v->bufio, hash_block, &buf); in verity_verify_level() 609 dm_bufio_prefetch(v->bufio, hash_block_start, in verity_prefetch_io() 791 if (v->bufio) in verity_dtr() 792 dm_bufio_client_destroy(v->bufio); in verity_dtr() 1166 v->bufio = dm_bufio_client_create(v->hash_dev->bdev, in verity_ctr() 1169 if (IS_ERR(v->bufio)) { in verity_ctr() 1171 r = PTR_ERR(v->bufio); in verity_ctr() 1172 v->bufio = NULL; in verity_ctr() 1176 if (dm_bufio_get_device_size(v->bufio) < v->hash_blocks) { in verity_ctr()
|
D | dm-verity.h | 37 struct dm_bufio_client *bufio; member
|
D | dm-verity-fec.h | 38 struct dm_bufio_client *bufio; /* for parity data access */ member
|
D | Makefile | 48 obj-$(CONFIG_DM_BUFIO) += dm-bufio.o
|
D | dm-integrity.c | 157 struct dm_bufio_client *bufio; member 1307 data = dm_bufio_read(ic->bufio, *metadata_block, &b); in dm_integrity_rw_tag() 1349 r = dm_bufio_write_dirty_buffers(ic->bufio); in dm_integrity_flush_buffers() 2295 dm_bufio_write_dirty_buffers_async(ic->bufio); in do_journal_write() 4012 ic->bufio = dm_bufio_client_create(ic->meta_dev ? ic->meta_dev->bdev : ic->dev->bdev, in dm_integrity_ctr() 4014 if (IS_ERR(ic->bufio)) { in dm_integrity_ctr() 4015 r = PTR_ERR(ic->bufio); in dm_integrity_ctr() 4017 ic->bufio = NULL; in dm_integrity_ctr() 4020 dm_bufio_set_sector_offset(ic->bufio, ic->start + ic->initial_sectors); in dm_integrity_ctr() 4134 if (ic->bufio) in dm_integrity_dtr() [all …]
|