Lines Matching +full:user +full:- +full:otp

1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org> et al.
45 * @MTD_OPS_RAW: data are transferred as-is, with no error correction;
59 * struct mtd_write_req - data structure for requesting a write operation
64 * @usr_data: user-provided data buffer
65 * @usr_oob: user-provided OOB buffer
70 * writes in various modes. To write to OOB-only, set @usr_data == NULL, and to
71 * write data-only, set @usr_oob == NULL. However, setting both @usr_data and
111 /* OTP mode selection */
150 /* Write out-of-band data from MTD */
152 /* Read out-of-band data from MTD */
162 /* Get info about OOB modes (e.g., RAW, PLACE, AUTO) - legacy interface */
168 /* Set OTP (One-Time Programmable) mode (factory vs. user) */
170 /* Get number of OTP (One-Time Programmable) regions */
172 /* Get all OTP (One-Time Programmable) info about MTD */
174 /* Lock a given range of user data (must be in mode %MTD_FILE_MODE_OTP_USER) */
180 /* Set MTD mode on a per-file-descriptor basis (see "MTD file modes") */
182 /* Erase segment of MTD (supports 64-bit address) */
184 /* Write data to OOB (64-bit version) */
186 /* Read data from OOB (64-bit version) */
191 * Most generic write interface; can write in-band and/or out-of-band in various
216 * OBSOLETE: ECC layout control structure. Exported to user-space via ioctl
221 * the user struct, not the MAX size of the internal struct nand_ecclayout.
231 * struct mtd_ecc_stats - error correction stats
246 * MTD file modes - for read/write access to MTD
248 * @MTD_FILE_MODE_NORMAL: OTP disabled, ECC enabled
249 * @MTD_FILE_MODE_OTP_FACTORY: OTP enabled in factory mode
250 * @MTD_FILE_MODE_OTP_USER: OTP enabled in user mode
251 * @MTD_FILE_MODE_RAW: OTP disabled, ECC disabled
256 * Note: %MTD_FILE_MODE_RAW provides the same functionality as %MTD_OPS_RAW -
271 return mtd->type == MTD_NANDFLASH || mtd->type == MTD_MLCNANDFLASH; in mtd_type_is_nand_user()