Home
last modified time | relevance | path

Searched refs:wunit (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.15/include/linux/mtd/
Dmtd.h178 int (*get_info)(struct mtd_info *mtd, int wunit,
494 int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit,
646 int wunit) in mtd_wunit_to_offset() argument
648 return base + (wunit * mtd->writesize); in mtd_wunit_to_offset()
/Linux-v5.15/drivers/mtd/
Dmtdcore.c438 int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit, in mtd_wunit_to_pairing_info() argument
444 if (wunit < 0 || wunit >= npairs) in mtd_wunit_to_pairing_info()
448 return master->pairing->get_info(master, wunit, info); in mtd_wunit_to_pairing_info()
451 info->pair = wunit; in mtd_wunit_to_pairing_info()
1499 unsigned int wunit, oobavail; in mtd_io_emulated_slc() local
1520 wunit = mtd_pairing_info_to_wunit(master, &info); in mtd_io_emulated_slc()
1521 pos = mtd_wunit_to_offset(mtd, base, wunit); in mtd_io_emulated_slc()