Home
last modified time | relevance | path

Searched refs:mtd_div_by_eb (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/mtd/
A Dmtdcore.c635 mtd->size = (u64)mtd_div_by_eb(mtd->size, master) * in add_mtd_device()
1261 adjinstr.addr = (loff_t)mtd_div_by_eb(instr->addr, mtd) * in mtd_erase()
1275 instr->fail_addr = mtd_div_by_eb(instr->fail_addr, in mtd_erase()
2105 ofs = (loff_t)mtd_div_by_eb(ofs, mtd) * master->erasesize; in mtd_lock()
2106 len = (u64)mtd_div_by_eb(len, mtd) * master->erasesize; in mtd_lock()
2125 ofs = (loff_t)mtd_div_by_eb(ofs, mtd) * master->erasesize; in mtd_unlock()
2126 len = (u64)mtd_div_by_eb(len, mtd) * master->erasesize; in mtd_unlock()
2145 ofs = (loff_t)mtd_div_by_eb(ofs, mtd) * master->erasesize; in mtd_is_locked()
2146 len = (u64)mtd_div_by_eb(len, mtd) * master->erasesize; in mtd_is_locked()
2163 ofs = (loff_t)mtd_div_by_eb(ofs, mtd) * master->erasesize; in mtd_block_isreserved()
[all …]
A Dmtdoops.c77 u32 start_page_offset = mtd_div_by_eb(offset, mtd) * mtd->erasesize; in mtdoops_erase_block()
A Dmtdswap.c1389 eblocks = mtd_div_by_eb(use_size, mtd); in mtdswap_add_mtd()
/linux/drivers/mtd/parsers/
A Dsharpslpart.c177 phymax = mtd_div_by_eb(SHARPSL_FTL_PART_SIZE, mtd); in sharpsl_nand_init_ftl()
240 log_num = mtd_div_by_eb((u32)from, mtd); in sharpsl_nand_read_laddr()
241 final_log_num = mtd_div_by_eb(((u32)from + len - 1), mtd); in sharpsl_nand_read_laddr()
/linux/drivers/mtd/ubi/
A Dgluebi.c242 lnum = mtd_div_by_eb(instr->addr, mtd); in gluebi_erase()
243 count = mtd_div_by_eb(instr->len, mtd); in gluebi_erase()
A Dbuild.c570 device_pebs = mtd_div_by_eb(device_size, ubi->mtd); in get_bad_peb_limit()
624 ubi->peb_count = mtd_div_by_eb(ubi->mtd->size, ubi->mtd); in io_init()
922 ubi->fm_pool.max_size = min(((int)mtd_div_by_eb(ubi->mtd->size, in ubi_attach_mtd_dev()
932 if (!ubi->fm_disabled && (int)mtd_div_by_eb(ubi->mtd->size, ubi->mtd) in ubi_attach_mtd_dev()
A Dattach.c1566 if ((int)mtd_div_by_eb(ubi->mtd->size, ubi->mtd) <= UBI_FM_MAX_START) { in ubi_attach()
/linux/drivers/mtd/tests/
A Dnandbiterrs.c359 eraseblock = mtd_div_by_eb(offset, mtd); in mtd_nandbiterrs_init()
/linux/include/linux/mtd/
A Dmtd.h573 static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_eb() function

Completed in 42 milliseconds