Home
last modified time | relevance | path

Searched refs:block_size_shift (Results 1 – 18 of 18) sorted by relevance

/openbmc/hiomapd/
H A Dprotocol.c119 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 Dwindows.c285 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 Dbackend.h37 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 Dprotocol.h26 uint8_t block_size_shift; member
H A Dtransport_mbox.c207 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 Dtransport_dbus.c144 io.resp.v2.block_size_shift, in transport_dbus_get_info()
/openbmc/phosphor-mboxd/
H A Dmboxd_msg.c201 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 Dmboxd_windows.c282 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 Dmbox.h173 uint32_t block_size_shift; member
/openbmc/phosphor-mboxd/vpnor/
H A Dpnor_partition.hpp39 base(partition.data.base << ctx->block_size_shift), in Request()
64 << std::hex << (partition.data.size << ctx->block_size_shift); in write()
H A Dmboxd_msg.cpp37 offset <<= context->block_size_shift; in vpnor_handle_write_window()
H A Dmboxd_pnor_partition_table.cpp93 local.block_size_shift = log_2(eraseSize); in vpnor_copy_bootloader_partition()
H A Dpnor_partition.cpp95 size_t partSize = partition.data.size << ctx->block_size_shift; in clamp()
/openbmc/hiomapd/vpnor/
H A Dpartition.hpp42 base(partition.data.base << backend->block_size_shift), in Request()
H A Dpartition.cpp109 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 Dbackend.cpp148 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 Dbackend.c92 backend->block_size_shift = backend->erase_size_shift; in file_dev_init()
/openbmc/hiomapd/mtd/
H A Dbackend.c100 backend->block_size_shift = backend->erase_size_shift; in mtd_dev_init()