Lines Matching defs:wunit
425 * mtd_wunit_to_pairing_info - get pairing information of a wunit
427 * @wunit: write unit we are interested in
430 * Retrieve pairing information associated to the wunit.
434 * The notion of page is replaced by the term wunit (write-unit) to stay
437 * The @wunit argument can be extracted from an absolute offset using
439 * to @wunit.
442 * @wunit using the following loop:
450 int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit,
456 if (wunit < 0 || wunit >= npairs)
460 return master->pairing->get_info(master, wunit, info);
463 info->pair = wunit;
470 * mtd_pairing_info_to_wunit - get wunit from pairing information
474 * Returns a positive number representing the wunit associated to the info
488 * wunit = mtd_pairing_info_to_wunit(mtd, &info);
489 * mtd_write(mtd, mtd_wunit_to_offset(mtd, blkoffs, wunit),
1629 unsigned int wunit, oobavail;
1650 wunit = mtd_pairing_info_to_wunit(master, &info);
1651 pos = mtd_wunit_to_offset(mtd, base, wunit);