Lines Matching defs:wunit
426 * mtd_wunit_to_pairing_info - get pairing information of a wunit
428 * @wunit: write unit we are interested in
431 * Retrieve pairing information associated to the wunit.
435 * The notion of page is replaced by the term wunit (write-unit) to stay
438 * The @wunit argument can be extracted from an absolute offset using
440 * to @wunit.
443 * @wunit using the following loop:
451 int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit,
457 if (wunit < 0 || wunit >= npairs)
461 return master->pairing->get_info(master, wunit, info);
464 info->pair = wunit;
471 * mtd_pairing_info_to_wunit - get wunit from pairing information
475 * Returns a positive number representing the wunit associated to the info
489 * wunit = mtd_pairing_info_to_wunit(mtd, &info);
490 * mtd_write(mtd, mtd_wunit_to_offset(mtd, blkoffs, wunit),
1648 unsigned int wunit, oobavail;
1669 wunit = mtd_pairing_info_to_wunit(master, &info);
1670 pos = mtd_wunit_to_offset(mtd, base, wunit);