/openbmc/qemu/crypto/ |
H A D | block.c | 2 * QEMU Crypto block device encryption 25 #include "block-qcow.h" 26 #include "block-luks.h" 58 QCryptoBlock *block = g_new0(QCryptoBlock, 1); in qcrypto_block_open() local 60 qemu_mutex_init(&block->mutex); in qcrypto_block_open() 62 block->format = options->format; in qcrypto_block_open() 66 error_setg(errp, "Unsupported block driver %s", in qcrypto_block_open() 68 g_free(block); in qcrypto_block_open() 72 block->driver = qcrypto_block_drivers[options->format]; in qcrypto_block_open() 74 if (block->driver->open(block, options, optprefix, in qcrypto_block_open() [all …]
|
H A D | block-qcow.c | 2 * QEMU Crypto block device encryption QCow/QCow2 AES-CBC format 22 * Note that the block encryption implemented in this file is broken 30 #include "block-qcow.h" 45 qcrypto_block_qcow_init(QCryptoBlock *block, in qcrypto_block_qcow_init() argument 65 block->niv = qcrypto_cipher_get_iv_len(QCRYPTO_CIPHER_ALGO_AES_128, in qcrypto_block_qcow_init() 67 block->ivgen = qcrypto_ivgen_new(QCRYPTO_IV_GEN_ALGO_PLAIN64, in qcrypto_block_qcow_init() 69 if (!block->ivgen) { in qcrypto_block_qcow_init() 74 ret = qcrypto_block_init_cipher(block, QCRYPTO_CIPHER_ALGO_AES_128, in qcrypto_block_qcow_init() 83 block->sector_size = QCRYPTO_BLOCK_QCOW_SECTOR_SIZE; in qcrypto_block_qcow_init() 84 block->payload_offset = 0; in qcrypto_block_qcow_init() [all …]
|
H A D | blockpriv.h | 2 * QEMU Crypto block device encryption 24 #include "crypto/block.h" 56 int (*open)(QCryptoBlock *block, 64 int (*create)(QCryptoBlock *block, 72 int (*amend)(QCryptoBlock *block, 80 int (*get_info)(QCryptoBlock *block, 84 void (*cleanup)(QCryptoBlock *block); 86 int (*encrypt)(QCryptoBlock *block, 91 int (*decrypt)(QCryptoBlock *block, 120 int qcrypto_block_decrypt_helper(QCryptoBlock *block, [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 307.out | 7 {"execute": "query-block-exports", "arguments": {}} 11 {"execute": "block-export-add", "arguments": {"id": "export0", "node-name": "fmt", "type": "nbd"}} 13 {"execute": "query-block-exports", "arguments": {}} 18 flags: 0x158f ( readonly flush fua df multi cache block-status-payload ) 19 min block: XXX 20 opt block: XXX 21 max block: XXX 28 {"execute": "block-export-add", "arguments": {"id": "#invalid", "node-name": "fmt", "type": "nbd"}} 29 {"error": {"class": "GenericError", "desc": "Invalid block export id"}} 30 {"execute": "block-export-add", "arguments": {"id": "export0", "node-name": "fmt", "type": "nbd"}} [all …]
|
H A D | 142 | 134 hmp_cmds="info block none0 135 info block image 136 info block file 137 info block backing 138 info block backing-file" 149 info block 150 info block image 151 info block file 152 info block backing 153 info block backing-file" [all …]
|
H A D | 030 | 59 self.vm.cmd('block-stream', device='drive0') 79 self.vm.cmd('block-stream', device='mid', job_id='stream-mid') 95 self.vm.cmd('block-stream', device='drive0') 101 result = self.vm.qmp('query-block-jobs') 105 result = self.vm.qmp('query-block-jobs') 108 self.vm.cmd('block-job-resume', device='drive0') 128 self.vm.cmd('block-stream', device='drive0', base=mid_img) 142 self.vm.cmd('block-stream', device='drive0', base=backing_img) 155 result = self.vm.qmp('block-stream', device='nonexistent') 160 result = self.vm.qmp('block-stream', device='mid') [all …]
|
H A D | 307 | 21 # Test the block export QAPI interfaces 55 vm.qmp_log('query-block-exports') 59 vm.qmp_log('block-export-add', id='export0', type='nbd', node_name='fmt') 60 vm.qmp_log('query-block-exports') 66 vm.qmp_log('block-export-add', id='#invalid', type='nbd', node_name='fmt') 67 vm.qmp_log('block-export-add', id='export0', type='nbd', node_name='fmt') 68 vm.qmp_log('block-export-add', id='export1', type='nbd', node_name='ro', 70 vm.qmp_log('block-export-del', id='export1') 71 vm.qmp_log('query-block-exports') 76 vm.qmp_log('query-block-exports') [all …]
|
H A D | 236 | 41 res = vm.qmp("query-block") 54 vm.qmp_log("block-dirty-bitmap-add", node="drive0", 56 vm.qmp_log("block-dirty-bitmap-add", node="drive0", 70 { "type": "block-dirty-bitmap-disable", 72 { "type": "block-dirty-bitmap-add", 75 { "type": "block-dirty-bitmap-clear", 83 { "type": "block-dirty-bitmap-disable", 85 { "type": "block-dirty-bitmap-add", 89 { "type": "block-dirty-bitmap-disable", 91 { "type": "block-dirty-bitmap-enable", [all …]
|
/openbmc/u-boot/drivers/block/ |
H A D | Kconfig | 2 bool "Support block devices" 6 Enable support for block devices, such as SCSI, MMC and USB 7 flash sticks. These provide a block-level interface which permits 8 reading, writing and (in some cases) erasing blocks. Block 14 bool "Enable Legacy Block Device" 16 Some devices require block support whether or not DM is enabled 19 bool "Support block devices in SPL" 23 Enable support for block devices, such as SCSI, MMC and USB 24 flash sticks. These provide a block-level interface which permits 25 reading, writing and (in some cases) erasing blocks. Block [all …]
|
/openbmc/qemu/migration/ |
H A D | ram.c | 77 * aligned according to the underlying device's block size. The first 79 * the file to align the offset. We cannot read the block size 81 * different systems, so use 1M to cover most block sizes and to keep 99 RAMBlock *block; member 128 /* Last block from where we have sent data */ 130 /* Current block being searched */ 131 RAMBlock *block; member 226 bool migrate_ram_is_ignored(RAMBlock *block) in migrate_ram_is_ignored() argument 229 return !qemu_ram_is_migratable(block) || in migrate_ram_is_ignored() 231 (migrate_ignore_shared() && qemu_ram_is_shared(block) in migrate_ram_is_ignored() [all …]
|
/openbmc/qemu/include/crypto/ |
H A D | block.h | 2 * QEMU Crypto block device encryption 32 typedef int (*QCryptoBlockReadFunc)(QCryptoBlock *block, 39 typedef int (*QCryptoBlockInitFunc)(QCryptoBlock *block, 44 typedef int (*QCryptoBlockWriteFunc)(QCryptoBlock *block, 81 * Create a new block encryption object for an existing 108 * Returns: a block encryption format, or NULL on error 131 * Create a new block encryption object for initializing 151 * Returns: a block encryption format, or NULL on error 163 * @block: the block encryption object 175 int qcrypto_block_amend_options(QCryptoBlock *block, [all …]
|
/openbmc/qemu/qapi/ |
H A D | block-export.json | 5 # Block device exports 10 { 'include': 'block-core.json' } 67 # Start an NBD server listening on the given host and port. Block 84 # An NBD block export (common options shared between `nbd-server-add` 85 # and the NBD branch of `block-export-add`). 101 # An NBD block export (distinct options used in the NBD branch of 102 # `block-export-add`). 125 # A vhost-user-blk block export. 131 # @logical-block-size: Logical block size in bytes. Defaults to 512 141 '*logical-block-size': 'size', [all …]
|
/openbmc/u-boot/disk/ |
H A D | part_amiga.c | 70 * Sum a block. The checksum of a block must end up at zero 76 s32 *block = (s32 *)header; in sum_block() local 81 sum += *block++; in sum_block() 106 * Print the info contained within the given partition block 123 * Search for the Rigid Disk Block. The rigid disk block is required 148 PRINTF("Rigid disk block suspect at %d, checking checksum\n",i); in get_rdisk() 164 * Again, the first boot block must be located somewhere in the first 16 blocks, or rooted in the 165 * Ridgid disk block 190 PRINTF("BOOT block at %d, checking checksum\n", i); in get_bootcode() 193 PRINTF("Found valid bootcode block\n"); in get_bootcode() [all …]
|
/openbmc/u-boot/lib/efi_driver/ |
H A D | efi_block_device.c | 3 * EFI block driver 10 * The EFI block driver binds to controllers implementing the block io 13 * When the bind function of the EFI block driver is called it creates a 14 * new U-Boot block device. It installs child handles for all partitions and 17 * The read and write functions of the EFI block driver delegate calls to the 23 * exposes a handle with the block IO protocol. It calls ConnectController. 25 * Now the EFI block driver installs the partitions with the simple file 39 * io block io protocol proxied by this driver 47 * Read from block device 50 * @blknr first block to be read [all …]
|
/openbmc/qemu/docs/devel/ |
H A D | block-coroutine-wrapper.rst | 2 block-coroutine-wrapper 5 A lot of functions in QEMU block layer (see ``block/*``) can only be 29 ``block/coroutines.h``) with the ``co_wrapper`` mark, 32 .. code-block:: c 36 2. You need to feed this declaration to block-coroutine-wrapper script. 39 ``block/meson.build`` 42 ``<BUILD_DIR>/block/block-gen.c``. 47 1. The script location is ``scripts/block-coroutine-wrapper.py``. 50 ``block/coroutines.h``, for public declarations: 51 ``include/block/block.h`` [all …]
|
/openbmc/phosphor-logging/ |
H A D | elog_block.hpp | 23 /** @class Block 24 * @brief OpenBMC logging Block implementation. 28 class Block : public BlockIface class 31 Block() = delete; 32 Block(const Block&) = delete; 33 Block& operator=(const Block&) = delete; 34 Block(Block&&) = delete; 35 Block& operator=(Block&&) = delete; 36 virtual ~Block() = default; 43 Block(sdbusplus::bus_t& bus, const std::string& path, uint32_t entryId) : in Block() function in phosphor::logging::Block
|
/openbmc/qemu/hw/tpm/ |
H A D | tpm_ppi.c | 28 GuestPhysBlock *block; in tpm_ppi_reset() local 32 QTAILQ_FOREACH(block, &guest_phys_blocks.head, next) { in tpm_ppi_reset() 33 hwaddr mr_offs = block->host_addr - in tpm_ppi_reset() 34 (uint8_t *)memory_region_get_ram_ptr(block->mr); in tpm_ppi_reset() 36 trace_tpm_ppi_memset(block->host_addr, in tpm_ppi_reset() 37 block->target_end - block->target_start); in tpm_ppi_reset() 38 memset(block->host_addr, 0, in tpm_ppi_reset() 39 block->target_end - block->target_start); in tpm_ppi_reset() 40 memory_region_set_dirty(block->mr, mr_offs, in tpm_ppi_reset() 41 block->target_end - block->target_start); in tpm_ppi_reset()
|
/openbmc/u-boot/include/linux/mtd/ |
H A D | bbm.h | 5 * NAND family Bad Block Management (BBM) header file 6 * - Bad Block Table (BBT) implementation 24 * struct nand_bbt_descr - bad block table descriptor 37 * bad) block in the stored bbt 38 * @pattern: pattern to identify bad block table or factory marked good / 41 * Descriptor for the bad block table marker and the descriptor for the 44 * of the first block. 58 /* Options for the bad block table descriptors */ 60 /* The number of bits used per block in the bbt on the device */ 66 /* The bad block table is in the last good block of the device */ [all …]
|
/openbmc/phosphor-bmc-code-mgmt/cpld/lattice/ |
H A D | lattice_xo5_cpld.cpp | 89 auto eraseBlock = [this](uint8_t block) -> sdbusplus::async::task<bool> { in eraseCfg() argument 94 request.push_back(block); in eraseCfg() 99 lg2::error("Failed to erase block"); in eraseCfg() 105 for (size_t block = startBlock; block < endBlock; ++block) in eraseCfg() local 107 if (!(co_await eraseBlock(block))) in eraseCfg() 109 lg2::error("Erase failed: Block {BLOCK}", "BLOCK", block); in eraseCfg() 122 uint8_t block, uint8_t page, const std::vector<uint8_t>& data) in programPage() argument 128 request.push_back(block); in programPage() 156 for (size_t block = startBlock; block < endBlock; ++block) in programCfg() local 174 success |= co_await programPage(block, page, chunk); in programCfg() [all …]
|
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | nand_bbt.c | 3 * Bad block table support for the NAND driver 13 * When nand_scan_bbt is called, then it tries to find the bad block table 17 * Once a new bad block is discovered then the "factory" information is updated 24 * If the tables are not versioned, then we "or" the bad block information. 27 * good / bad blocks and the bad block tables are created. 32 * The auto generated bad block table is located in the last good blocks 41 * The table uses 2 bits per block 42 * 11b: block is good 43 * 00b: block is factory marked bad 44 * 01b, 10b: block is marked bad due to wear [all …]
|
/openbmc/u-boot/board/toradex/common/ |
H A D | Kconfig | 5 bool "Enable Toradex config block support" 8 The Toradex config block stored production data on the on-module 13 # Helper config to determine the correct default location of the cfg block 41 int "Toradex config block eMMC device ID" 45 int "Toradex config block eMMC partition ID" 49 int "Toradex config block offset" 51 Specify the byte offset of the Toradex config block within the flash 52 device the config block is stored on. 55 int "Toradex config block offset, second instance" 58 Specify the byte offset of the 2nd instance of the Toradex config block [all …]
|
/openbmc/u-boot/drivers/mtd/onenand/ |
H A D | onenand_spl.c | 17 * - 2048b page, 128k erase block. 18 * - 4096b page, 256k erase block. 31 static inline int onenand_block_address(int block) in onenand_block_address() argument 33 /* Device Flash Core select, NAND Flash Block Address */ in onenand_block_address() 34 if (block & density_mask) in onenand_block_address() 35 return ONENAND_DDP_CHIP1 | (block ^ density_mask); in onenand_block_address() 37 return block; in onenand_block_address() 40 static inline int onenand_bufferram_address(int block) in onenand_bufferram_address() argument 43 if (block & density_mask) in onenand_bufferram_address() 81 static int onenand_spl_read_page(uint32_t block, uint32_t page, uint32_t *buf, in onenand_spl_read_page() argument [all …]
|
H A D | onenand_bbt.c | 4 * Bad Block Table support for the OneNAND driver 32 * Check for a pattern at the given place. Used to search bad block 33 * tables and good / bad block identifiers. Same as check_pattern, but 52 * create_bbt - [GENERIC] Create a bad block table by scanning the device 55 * @param bd descriptor for the good/bad block search pattern 59 * Create a bad block table by scanning the device 60 * for the given good/bad block identify pattern 105 /* If it is a initial bad block, just ignore it */ in create_bbt() 131 * onenand_memory_bbt - [GENERIC] create a memory based bad block table 133 * @param bd descriptor for the good/bad block search pattern [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | ResourceBlock.v1_4_3.json | 44 … "Composed": "Final successful state of a resource block that has participated in composition.", 45 …"ComposedAndAvailable": "The resource block is currently participating in one or more compositions… 48 …ble": "The resource block has been made unavailable by the service, such as due to maintenance bei… 49 "Unused": "The resource block is free and can participate in composition." 59 "description": "Composition status of the resource block.", 60 …e shall contain properties that describe the high level composition status of the resource block.", 85 … "description": "The current state of the resource block from a composition perspective.", 86 …rty shall contain an enumerated value that describes the composition state of the resource block.", 90 …"description": "The maximum number of compositions in which this resource block can participate si… 91 …mber indicating the maximum number of compositions in which this resource block can participate si… [all …]
|
/openbmc/u-boot/include/ |
H A D | blk.h | 78 unsigned long blksz; /* block size */ 121 * @param start - starting block number 123 * @param blksz - size in bytes of each block 126 * @return - '1' if block returned from cache, '0' otherwise. 133 * blkcache_fill() - make data read from a block device available 134 * to the block cache 138 * @param start - starting block number 140 * @param blksz - size in bytes of each block 158 * blkcache_configure() - configure block cache 166 * statistics of the block cache [all …]
|