Home
last modified time | relevance | path

Searched refs:bufio (Results 1 – 6 of 6) sorted by relevance

/drivers/md/persistent-data/
Ddm-block-manager.c357 struct dm_bufio_client *bufio; member
375 bm->bufio = dm_bufio_client_create(bdev, block_size, max_held_per_thread, in dm_block_manager_create()
379 if (IS_ERR(bm->bufio)) { in dm_block_manager_create()
380 r = PTR_ERR(bm->bufio); in dm_block_manager_create()
396 dm_bufio_client_destroy(bm->bufio); in dm_block_manager_destroy()
403 return dm_bufio_get_block_size(bm->bufio); in dm_bm_block_size()
409 return dm_bufio_get_device_size(bm->bufio); in dm_bm_nr_blocks()
421 r = v->check(v, (struct dm_block *) buf, dm_bufio_get_block_size(bm->bufio)); in dm_bm_validate_buffer()
447 p = dm_bufio_read(bm->bufio, b, (struct dm_buffer **) result); in dm_bm_read_lock()
483 p = dm_bufio_read(bm->bufio, b, (struct dm_buffer **) result); in dm_bm_write_lock()
[all …]
/drivers/md/
Ddm-verity-fec.c76 res = dm_bufio_read(v->fec->bufio, v->fec->start + block, buf); in fec_read_parity()
214 struct dm_bufio_client *bufio; in fec_read_bufs() local
239 bufio = v->fec->data_bufio; in fec_read_bufs()
252 bufio = v->bufio; in fec_read_bufs()
255 bbuf = dm_bufio_read(bufio, block, &buf); in fec_read_bufs()
270 if (bufio == v->fec->data_bufio && in fec_read_bufs()
574 if (f->bufio) in verity_fec_dtr()
575 dm_bufio_client_destroy(f->bufio); in verity_fec_dtr()
794 if (dm_bufio_get_device_size(v->bufio) < f->hash_blocks) { in verity_fec_ctr()
800 f->bufio = dm_bufio_client_create(f->dev->bdev, in verity_fec_ctr()
[all …]
Ddm-verity-target.c268 data = dm_bufio_read(v->bufio, hash_block, &buf); in verity_verify_level()
557 dm_bufio_prefetch(v->bufio, hash_block_start, in verity_prefetch_io()
740 if (v->bufio) in verity_dtr()
741 dm_bufio_client_destroy(v->bufio); in verity_dtr()
1083 v->bufio = dm_bufio_client_create(v->hash_dev->bdev, in verity_ctr()
1086 if (IS_ERR(v->bufio)) { in verity_ctr()
1088 r = PTR_ERR(v->bufio); in verity_ctr()
1089 v->bufio = NULL; in verity_ctr()
1093 if (dm_bufio_get_device_size(v->bufio) < v->hash_blocks) { in verity_ctr()
Ddm-verity-fec.h44 struct dm_bufio_client *bufio; /* for parity data access */ member
Ddm-verity.h38 struct dm_bufio_client *bufio; member
DMakefile40 obj-$(CONFIG_DM_BUFIO) += dm-bufio.o