Searched refs:block_size_shift (Results 1 – 18 of 18) sorted by relevance
/openbmc/hiomapd/ |
H A D | protocol.c | 119 context->backend.block_size_shift = BLOCK_SIZE_SHIFT_V1; in protocol_v1_get_info() 121 1 << context->backend.block_size_shift, context->backend.block_size_shift); in protocol_v1_get_info() 127 context->windows.default_size >> context->backend.block_size_shift; in protocol_v1_get_info() 129 context->windows.default_size >> context->backend.block_size_shift; in protocol_v1_get_info() 160 return lpc_addr >> context->backend.block_size_shift; in get_lpc_addr_shifted() 274 offset = io->req.offset << backend->block_size_shift; in protocol_v1_create_window() 275 size = io->req.size << backend->block_size_shift; in protocol_v1_create_window() 347 context->backend.block_size_shift); in protocol_v1_mark_dirty() 351 offset << context->backend.block_size_shift, in protocol_v1_mark_dirty() 361 size = align_up(size, 1 << context->backend.block_size_shift); in protocol_v1_mark_dirty() [all …]
|
H A D | windows.c | 285 uint32_t flash_offset, count_bytes = count << context->backend.block_size_shift; in window_flush() 286 uint32_t offset_bytes = offset << context->backend.block_size_shift; in window_flush() 305 context->backend.block_size_shift) { in window_flush() 353 context->backend.block_size_shift), in windows_alloc_dirty_bytemap() 371 if (offset + size > (cur->size >> context->backend.block_size_shift)) { in window_set_bytemap() 374 offset << context->backend.block_size_shift, in window_set_bytemap() 375 size << context->backend.block_size_shift, in window_set_bytemap() 376 cur->size << context->backend.block_size_shift); in window_set_bytemap() 418 window->size >> context->backend.block_size_shift, in window_reset() 605 1 << context->backend.block_size_shift); in windows_create_map() [all …]
|
H A D | backend.h | 37 uint32_t block_size_shift; member 155 master->block_size_shift = 34; in backend_init() 166 assert(master->block_size_shift < 32); in backend_init()
|
H A D | protocol.h | 26 uint8_t block_size_shift; member
|
H A D | transport_mbox.c | 207 resp->args[5] = io.resp.v2.block_size_shift; in mbox_handle_mbox_info() 273 return lpc_addr >> context->backend.block_size_shift; in get_lpc_addr_shifted()
|
H A D | transport_dbus.c | 144 io.resp.v2.block_size_shift, in transport_dbus_get_info()
|
/openbmc/phosphor-mboxd/ |
H A D | mboxd_msg.c | 201 context->block_size_shift = BLOCK_SIZE_SHIFT_V1; in mbox_handle_mbox_info() 204 context->block_size_shift = log_2(context->mtd_info.erasesize); in mbox_handle_mbox_info() 208 1 << context->block_size_shift, context->block_size_shift); in mbox_handle_mbox_info() 227 context->block_size_shift); in mbox_handle_mbox_info() 229 context->block_size_shift); in mbox_handle_mbox_info() 232 resp->args[5] = context->block_size_shift; in mbox_handle_mbox_info() 262 context->flash_size >> context->block_size_shift); in mbox_handle_flash_info() 265 context->block_size_shift); in mbox_handle_flash_info() 292 return lpc_addr >> context->block_size_shift; in get_lpc_addr_shifted() 334 flash_offset = get_u16(&req->msg.args[0]) << context->block_size_shift; in mbox_handle_read_window() [all …]
|
H A D | mboxd_windows.c | 282 uint32_t flash_offset, count_bytes = count << context->block_size_shift; in write_from_window() 283 uint32_t offset_bytes = offset << context->block_size_shift; in write_from_window() 301 context->block_size_shift) { in write_from_window() 348 context->block_size_shift), in alloc_window_dirty_bytemap() 366 if (offset + size > (cur->size >> context->block_size_shift)) { in set_window_bytemap() 369 offset << context->block_size_shift, in set_window_bytemap() 370 size << context->block_size_shift, in set_window_bytemap() 371 cur->size << context->block_size_shift); in set_window_bytemap() 419 window->size >> context->block_size_shift, in reset_window() 611 1 << context->block_size_shift); in create_map_window() [all …]
|
H A D | mbox.h | 173 uint32_t block_size_shift; member
|
/openbmc/phosphor-mboxd/vpnor/ |
H A D | pnor_partition.hpp | 39 base(partition.data.base << ctx->block_size_shift), in Request() 64 << std::hex << (partition.data.size << ctx->block_size_shift); in write()
|
H A D | mboxd_msg.cpp | 37 offset <<= context->block_size_shift; in vpnor_handle_write_window()
|
H A D | mboxd_pnor_partition_table.cpp | 93 local.block_size_shift = log_2(eraseSize); in vpnor_copy_bootloader_partition()
|
H A D | pnor_partition.cpp | 95 size_t partSize = partition.data.size << ctx->block_size_shift; in clamp()
|
/openbmc/hiomapd/vpnor/ |
H A D | partition.hpp | 42 base(partition.data.base << backend->block_size_shift), in Request()
|
H A D | partition.cpp | 109 size_t partSize = partition.data.size << backend->block_size_shift; in clamp() 193 << std::hex << (partition.data.size << backend->block_size_shift); in write()
|
H A D | backend.cpp | 148 local.block_size_shift = log_2(eraseSize); in vpnor_copy_bootloader_partition() 244 backend->block_size_shift = backend->erase_size_shift; in vpnor_dev_init()
|
/openbmc/hiomapd/file/ |
H A D | backend.c | 92 backend->block_size_shift = backend->erase_size_shift; in file_dev_init()
|
/openbmc/hiomapd/mtd/ |
H A D | backend.c | 100 backend->block_size_shift = backend->erase_size_shift; in mtd_dev_init()
|