Home
last modified time | relevance | path

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

/Linux-v6.1/include/linux/mtd/
Dmtd.h183 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-v6.1/drivers/mtd/
Dmtdcore.c420 int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit, in mtd_wunit_to_pairing_info() argument
426 if (wunit < 0 || wunit >= npairs) in mtd_wunit_to_pairing_info()
430 return master->pairing->get_info(master, wunit, info); in mtd_wunit_to_pairing_info()
433 info->pair = wunit; in mtd_wunit_to_pairing_info()
1581 unsigned int wunit, oobavail; in mtd_io_emulated_slc() local
1602 wunit = mtd_pairing_info_to_wunit(master, &info); in mtd_io_emulated_slc()
1603 pos = mtd_wunit_to_offset(mtd, base, wunit); in mtd_io_emulated_slc()