Lines Matching defs:wunit
446 * mtd_wunit_to_pairing_info - get pairing information of a wunit
448 * @wunit: write unit we are interested in
451 * Retrieve pairing information associated to the wunit.
455 * The notion of page is replaced by the term wunit (write-unit) to stay
458 * The @wunit argument can be extracted from an absolute offset using
460 * to @wunit.
463 * @wunit using the following loop:
471 int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit,
477 if (wunit < 0 || wunit >= npairs)
481 return master->pairing->get_info(master, wunit, info);
484 info->pair = wunit;
491 * mtd_pairing_info_to_wunit - get wunit from pairing information
495 * Returns a positive number representing the wunit associated to the info
509 * wunit = mtd_pairing_info_to_wunit(mtd, &info);
510 * mtd_write(mtd, mtd_wunit_to_offset(mtd, blkoffs, wunit),
1380 unsigned int wunit, oobavail;
1401 wunit = mtd_pairing_info_to_wunit(master, &info);
1402 pos = mtd_wunit_to_offset(mtd, base, wunit);