Searched refs:mtd_div_by_eb (Results 1 – 9 of 9) sorted by relevance
/kernel/linux/linux-5.10/drivers/mtd/ |
D | mtdcore.c | 667 mtd->size = (u64)mtd_div_by_eb(mtd->size, master) * in add_mtd_device() 1140 adjinstr.addr = (loff_t)mtd_div_by_eb(instr->addr, mtd) * in mtd_erase() 1142 adjinstr.len = ((u64)mtd_div_by_eb(instr->addr + instr->len, mtd) * in mtd_erase() 1154 instr->fail_addr = mtd_div_by_eb(instr->fail_addr, in mtd_erase() 1385 base = (loff_t)mtd_div_by_eb(start, mtd) * master->erasesize; in mtd_io_emulated_slc() 1972 ofs = (loff_t)mtd_div_by_eb(ofs, mtd) * master->erasesize; in mtd_lock() 1973 len = (u64)mtd_div_by_eb(len, mtd) * master->erasesize; in mtd_lock() 1992 ofs = (loff_t)mtd_div_by_eb(ofs, mtd) * master->erasesize; in mtd_unlock() 1993 len = (u64)mtd_div_by_eb(len, mtd) * master->erasesize; in mtd_unlock() 2012 ofs = (loff_t)mtd_div_by_eb(ofs, mtd) * master->erasesize; in mtd_is_locked() [all …]
|
D | mtdoops.c | 76 u32 start_page_offset = mtd_div_by_eb(offset, mtd) * mtd->erasesize; in mtdoops_erase_block()
|
D | mtdswap.c | 1391 eblocks = mtd_div_by_eb(use_size, mtd); in mtdswap_add_mtd()
|
/kernel/linux/linux-5.10/drivers/mtd/parsers/ |
D | sharpslpart.c | 177 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()
|
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
D | gluebi.c | 242 lnum = mtd_div_by_eb(instr->addr, mtd); in gluebi_erase() 243 count = mtd_div_by_eb(instr->len, mtd); in gluebi_erase()
|
D | build.c | 565 device_pebs = mtd_div_by_eb(device_size, ubi->mtd); in get_bad_peb_limit() 619 ubi->peb_count = mtd_div_by_eb(ubi->mtd->size, ubi->mtd); in io_init() 919 ubi->fm_pool.max_size = min(((int)mtd_div_by_eb(ubi->mtd->size, in ubi_attach_mtd_dev() 929 if (!ubi->fm_disabled && (int)mtd_div_by_eb(ubi->mtd->size, ubi->mtd) in ubi_attach_mtd_dev()
|
D | attach.c | 1566 if ((int)mtd_div_by_eb(ubi->mtd->size, ubi->mtd) <= UBI_FM_MAX_START) { in ubi_attach()
|
/kernel/linux/linux-5.10/drivers/mtd/tests/ |
D | nandbiterrs.c | 359 eraseblock = mtd_div_by_eb(offset, mtd); in mtd_nandbiterrs_init()
|
/kernel/linux/linux-5.10/include/linux/mtd/ |
D | mtd.h | 568 static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_eb() function
|