Searched refs:wunit (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/include/linux/mtd/ |
H A D | mtd.h | 183 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()
|
/openbmc/linux/drivers/mtd/ |
H A D | mtdcore.c | 450 int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit, in mtd_wunit_to_pairing_info() argument 456 if (wunit < 0 || wunit >= npairs) in mtd_wunit_to_pairing_info() 460 return master->pairing->get_info(master, wunit, info); in mtd_wunit_to_pairing_info() 463 info->pair = wunit; in mtd_wunit_to_pairing_info() 1633 unsigned int wunit, oobavail; in mtd_io_emulated_slc() local 1654 wunit = mtd_pairing_info_to_wunit(master, &info); in mtd_io_emulated_slc() 1655 pos = mtd_wunit_to_offset(mtd, base, wunit); in mtd_io_emulated_slc()
|