Home
last modified time | relevance | path

Searched refs:wunit (Results 1 – 2 of 2) sorted by relevance

/linux/include/linux/mtd/
H A Dmtd.h155 * fill the info parameter based on the wunit index or return
156 * -EINVAL if the wunit parameter is invalid.
158 * This function should return the wunit index pointed by the
160 * return -EINVAL, if there's no wunit corresponding to the
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()
/linux/drivers/mtd/
H A Dmtdcore.c426 * 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, in mtd_wunit_to_pairing_info() argument
457 if (wunit < 0 || wunit > in mtd_wunit_to_pairing_info()
1648 unsigned int wunit, oobavail; mtd_io_emulated_slc() local
[all...]