Lines Matching refs:info

426  * @mtd: pointer to new MTD device info structure
428 * @info: returned pairing information
438 * mtd_offset_to_wunit(). @info is filled with the pairing information attached
441 * From the pairing info the MTD user can find all the wunits paired with
445 * info.pair = i;
446 * mtd_pairing_info_to_wunit(mtd, &info);
451 struct mtd_pairing_info *info)
460 return master->pairing->get_info(master, wunit, info);
462 info->group = 0;
463 info->pair = wunit;
471 * @mtd: pointer to new MTD device info structure
472 * @info: pairing information struct
474 * Returns a positive number representing the wunit associated to the info
485 * info.group = 0;
487 * for (info.pair = 0; info.pair < npairs; info.pair++) {
488 * wunit = mtd_pairing_info_to_wunit(mtd, &info);
494 const struct mtd_pairing_info *info)
500 if (!info || info->pair < 0 || info->pair >= npairs ||
501 info->group < 0 || info->group >= ngroups)
505 return mtd->pairing->get_wunit(master, info);
507 return info->pair;
513 * @mtd: pointer to new MTD device info structure
634 * @mtd: pointer to new MTD device info structure
799 * @mtd: pointer to MTD device info structure
854 struct otp_info *info;
860 info = kmalloc(PAGE_SIZE, GFP_KERNEL);
861 if (!info)
865 ret = mtd_get_user_prot_info(mtd, PAGE_SIZE, &retlen, info);
867 ret = mtd_get_fact_prot_info(mtd, PAGE_SIZE, &retlen, info);
871 for (i = 0; i < retlen / sizeof(*info); i++)
872 size += info[i].length;
874 kfree(info);
878 kfree(info);
1025 * MTD device is registered if no partition info is found
1138 * @new: pointer to notifier info structure
1163 * @old: pointer to notifier info structure
1630 struct mtd_pairing_info info;
1637 info.group = 0;
1638 info.pair = mtd_div_by_ws(ebofs, mtd);
1645 if (info.pair >= npairs) {
1646 info.pair = 0;
1650 wunit = mtd_pairing_info_to_wunit(master, &info);
1679 info.pair++;
1826 * @mtd: mtd info structure
1864 * Adjust region info to make it start at the beginning at the
1877 * @mtd: mtd info structure
1898 * @mtd: mtd info structure
1941 * @mtd: mtd info structure
1984 * @mtd: mtd info structure
2015 * @mtd: mtd info structure
2035 * @mtd: mtd info structure
2055 * @mtd: mtd info structure
2075 * @mtd: mtd info structure
2095 * @mtd: mtd info structure
2109 * @mtd: mtd info structure