Home
last modified time | relevance | path

Searched refs:erase_size_shift (Results 1 – 11 of 11) sorted by relevance

/openbmc/phosphor-mboxd/
H A Dmboxd_flash.c89 context->erase_size_shift = log_2(context->mtd_info.erasesize); in init_flash_dev()
91 context->erase_size_shift, in init_flash_dev()
118 return context->flash_bmap[offset >> context->erase_size_shift] in flash_is_erased()
143 memset(context->flash_bmap + (offset >> context->erase_size_shift), in set_flash_bytemap()
145 align_up(count, 1 << context->erase_size_shift) >> in set_flash_bytemap()
146 context->erase_size_shift); in set_flash_bytemap()
161 const uint32_t erase_size = 1 << context->erase_size_shift; in erase_flash()
H A Dmbox.h171 uint32_t erase_size_shift; member
/openbmc/hiomapd/mtd/
H A Dbackend.c99 backend->erase_size_shift = log_2(priv->mtd_info.erasesize); in mtd_dev_init()
100 backend->block_size_shift = backend->erase_size_shift; in mtd_dev_init()
102 >> backend->erase_size_shift, in mtd_dev_init()
145 const off_t index = offset >> backend->erase_size_shift; in mtd_is_erased()
174 memset(priv->flash_bmap + (offset >> backend->erase_size_shift), in mtd_set_bytemap()
176 align_up(count, 1 << backend->erase_size_shift) >> in mtd_set_bytemap()
177 backend->erase_size_shift); in mtd_set_bytemap()
192 const uint32_t erase_size = 1 << backend->erase_size_shift; in mtd_erase()
/openbmc/hiomapd/file/
H A Dbackend.c91 backend->erase_size_shift = log_2(FILE_ERASE_SIZE); in file_dev_init()
92 backend->block_size_shift = backend->erase_size_shift; in file_dev_init()
125 const uint32_t erase_size = 1 << backend->erase_size_shift; in file_erase()
/openbmc/hiomapd/
H A Dbackend.h35 uint32_t erase_size_shift; member
154 master->erase_size_shift = 33; in backend_init()
165 assert(master->erase_size_shift < 32); in backend_init()
H A Dwindows.c179 1 << context->backend.erase_size_shift); in window_flush_v1()
183 1 << context->backend.erase_size_shift) - in window_flush_v1()
304 if (context->backend.erase_size_shift != in window_flush()
H A Dprotocol.c138 io->resp.v1.erase_size = 1 << context->backend.erase_size_shift; in protocol_v1_get_flash_info()
558 ((1 << backend->erase_size_shift) >> backend->block_size_shift); in protocol_v2_get_flash_info()
/openbmc/hiomapd/vpnor/
H A Dbackend.cpp240 backend->erase_size_shift = log_2(VPNOR_ERASE_SIZE); in vpnor_dev_init()
241 backend->block_size_shift = backend->erase_size_shift; in vpnor_dev_init()
H A Dtable.cpp35 blockSize(1 << be->erase_size_shift), pnorSize(be->flash_size) in Table()
/openbmc/phosphor-mboxd/vpnor/
H A Dmboxd_flash.cpp84 context->erase_size_shift = log_2(context->mtd_info.erasesize); in init_flash_dev()
H A Dpnor_partition_table.cpp27 blockSize(1 << ctx->erase_size_shift), pnorSize(ctx->flash_size) in Table()