Lines Matching refs:wunit
486 * mtd_wunit_to_pairing_info - get pairing information of a wunit
488 * @wunit: write unit we are interested in
491 * Retrieve pairing information associated to the wunit.
495 * The notion of page is replaced by the term wunit (write-unit) to stay
498 * The @wunit argument can be extracted from an absolute offset using
500 * to @wunit.
503 * @wunit using the following loop:
511 int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit,
517 if (wunit < 0 || wunit >= npairs)
521 return master->pairing->get_info(master, wunit, info);
524 info->pair = wunit;
531 * mtd_pairing_info_to_wunit - get wunit from pairing information
535 * Returns a positive number representing the wunit associated to the info
549 * wunit = mtd_pairing_info_to_wunit(mtd, &info);
550 * mtd_write(mtd, mtd_wunit_to_offset(mtd, blkoffs, wunit),
1731 unsigned int wunit, oobavail;
1752 wunit = mtd_pairing_info_to_wunit(master, &info);
1753 pos = mtd_wunit_to_offset(mtd, base, wunit);