Lines Matching refs:erasesize
18 return !do_div(size, mtd->erasesize); in mtd_is_aligned_with_block_size()
51 mtd->erasesize); in mtd_block_op()
59 remaining = lock_len = round_up(*len, mtd->erasesize); in mtd_block_op()
62 erase_op.len = mtd->erasesize; in mtd_block_op()
91 remaining -= mtd->erasesize; in mtd_block_op()
95 erase_op.addr += mtd->erasesize; in mtd_block_op()
125 off += mtd->erasesize; in mtd_block_op()
126 dfu->bad_skip += mtd->erasesize; in mtd_block_op()
212 dfu->bad_skip, mtd->erasesize); in dfu_flush_medium_mtd()
213 erase_op.len = mtd->erasesize; in dfu_flush_medium_mtd()
231 erase_op.addr += mtd->erasesize; in dfu_flush_medium_mtd()
232 remaining -= mtd->erasesize; in dfu_flush_medium_mtd()
267 dfu->max_buf_size = has_pages ? mtd->erasesize : 0; in dfu_fill_entity_mtd()
307 mtd->erasesize); in dfu_fill_entity_mtd()
312 mtd->erasesize); in dfu_fill_entity_mtd()