Searched refs:erase_size_shift (Results 1 – 11 of 11) sorted by relevance
89 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()
171 uint32_t erase_size_shift; member
99 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()
91 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()
35 uint32_t erase_size_shift; member154 master->erase_size_shift = 33; in backend_init()165 assert(master->erase_size_shift < 32); in backend_init()
179 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()
138 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()
240 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()
35 blockSize(1 << be->erase_size_shift), pnorSize(be->flash_size) in Table()
84 context->erase_size_shift = log_2(context->mtd_info.erasesize); in init_flash_dev()
27 blockSize(1 << ctx->erase_size_shift), pnorSize(ctx->flash_size) in Table()