/openbmc/linux/drivers/md/ |
H A D | dm-ebs-target.c | 87 ba = dm_bufio_read(ec->bufio, block, &b); in __ebs_rw_bvec() 89 ba = dm_bufio_new(ec->bufio, block, &b); in __ebs_rw_bvec() 197 dm_bufio_prefetch(ec->bufio, block1, __nr_blocks(ec, bio)); in __ebs_process_bios() 201 dm_bufio_prefetch(ec->bufio, block1, 1); in __ebs_process_bios() 203 dm_bufio_prefetch(ec->bufio, block2, 1); in __ebs_process_bios() 227 r = write ? dm_bufio_write_dirty_buffers(ec->bufio) : 0; in __ebs_process_bios() 319 if (IS_ERR(ec->bufio)) { in ebs_ctr() 321 r = PTR_ERR(ec->bufio); in ebs_ctr() 322 ec->bufio = NULL; in ebs_ctr() 354 if (ec->bufio) in ebs_dtr() [all …]
|
H A D | dm-verity-fec.c | 72 res = dm_bufio_read(v->fec->bufio, 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() 559 if (f->bufio) in verity_fec_dtr() 560 dm_bufio_client_destroy(f->bufio); in verity_fec_dtr() 751 f->bufio = dm_bufio_client_create(f->dev->bdev, in verity_fec_ctr() 754 if (IS_ERR(f->bufio)) { in verity_fec_ctr() [all …]
|
H A D | dm-verity-target.c | 301 data = dm_bufio_get(v->bufio, hash_block, &buf); in verity_verify_level() 311 data = dm_bufio_read(v->bufio, hash_block, &buf); in verity_verify_level() 755 dm_bufio_prefetch(v->bufio, hash_block_start, in verity_prefetch_io() 1004 if (v->bufio) in verity_dtr() 1005 dm_bufio_client_destroy(v->bufio); in verity_dtr() 1456 v->bufio = dm_bufio_client_create(v->hash_dev->bdev, in verity_ctr() 1460 if (IS_ERR(v->bufio)) { in verity_ctr() 1462 r = PTR_ERR(v->bufio); in verity_ctr() 1463 v->bufio = NULL; in verity_ctr() 1467 if (dm_bufio_get_device_size(v->bufio) < v->hash_blocks) { in verity_ctr()
|
H A D | dm-verity.h | 40 struct dm_bufio_client *bufio; member
|
H A D | dm-verity-fec.h | 38 struct dm_bufio_client *bufio; /* for parity data access */ member
|
H A D | Makefile | 57 obj-$(CONFIG_DM_BUFIO) += dm-bufio.o
|
H A D | dm-integrity.c | 172 struct dm_bufio_client *bufio; member 1433 data = dm_bufio_read(ic->bufio, *metadata_block, &b); in dm_integrity_rw_tag() 1526 fr.io_req.client = dm_bufio_get_dm_io_client(ic->bufio), in dm_integrity_flush_buffers() 1536 r = dm_bufio_write_dirty_buffers(ic->bufio); in dm_integrity_flush_buffers() 2668 dm_bufio_write_dirty_buffers_async(ic->bufio); in do_journal_write() 4576 if (IS_ERR(ic->bufio)) { in dm_integrity_ctr() 4577 r = PTR_ERR(ic->bufio); in dm_integrity_ctr() 4579 ic->bufio = NULL; in dm_integrity_ctr() 4582 dm_bufio_set_sector_offset(ic->bufio, ic->start + ic->initial_sectors); in dm_integrity_ctr() 4702 if (ic->bufio) in dm_integrity_dtr() [all …]
|
/openbmc/linux/drivers/md/persistent-data/ |
H A D | dm-block-manager.c | 380 struct dm_bufio_client *bufio; member 402 if (IS_ERR(bm->bufio)) { in dm_block_manager_create() 403 r = PTR_ERR(bm->bufio); in dm_block_manager_create() 419 dm_bufio_client_destroy(bm->bufio); in dm_block_manager_destroy() 426 dm_bufio_client_reset(bm->bufio); in dm_block_manager_reset() 432 return dm_bufio_get_block_size(bm->bufio); in dm_bm_block_size() 438 return dm_bufio_get_device_size(bm->bufio); in dm_bm_nr_blocks() 546 p = dm_bufio_get(bm->bufio, b, (struct dm_buffer **) result); in dm_bm_read_try_lock() 582 p = dm_bufio_new(bm->bufio, b, (struct dm_buffer **) result); in dm_bm_write_lock_zero() 621 return dm_bufio_write_dirty_buffers(bm->bufio); in dm_bm_flush() [all …]
|
/openbmc/bmcweb/src/ |
H A D | ssl_key_handler.cpp | 156 BIO* bufio = BIO_new_mem_buf(static_cast<void*>(fileContents.data()), in verifyOpensslKeyCert() local 158 EVP_PKEY* pkey = PEM_read_bio_PrivateKey(bufio, nullptr, nullptr, nullptr); in verifyOpensslKeyCert() 159 BIO_free(bufio); in verifyOpensslKeyCert() 335 BIO* bufio = BIO_new(BIO_s_mem()); in generateSslCertificate() local 338 bufio, pPrivKey, nullptr, nullptr, 0, nullptr, nullptr); in generateSslCertificate() 346 long int dataLen = BIO_get_mem_data(bufio, &data); in generateSslCertificate() 348 BIO_free(bufio); in generateSslCertificate() 350 bufio = BIO_new(BIO_s_mem()); in generateSslCertificate() 351 pkeyRet = PEM_write_bio_X509(bufio, x509); in generateSslCertificate() 357 dataLen = BIO_get_mem_data(bufio, &data); in generateSslCertificate() [all …]
|
/openbmc/linux/Documentation/admin-guide/device-mapper/ |
H A D | dm-integrity.rst | 42 buffered using dm-bufio. When an access to any given metadata area
|