Lines Matching +full:user +full:- +full:programmable
1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org> et al.
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
55 * @MTD_OPS_RAW: data are transferred as-is, with no error correction;
69 * struct mtd_write_req - data structure for requesting a write operation
74 * @usr_data: user-provided data buffer
75 * @usr_oob: user-provided OOB buffer
80 * writes in various modes. To write to OOB-only, set @usr_data == NULL, and to
81 * write data-only, set @usr_oob == NULL. However, setting both @usr_data and
95 * struct mtd_read_req_ecc_stats - ECC statistics for a read operation
114 * struct mtd_read_req - data structure for requesting a read operation
119 * @usr_data: user-provided data buffer
120 * @usr_oob: user-provided OOB buffer
126 * reads in various modes. To read from OOB-only, set @usr_data == NULL, and to
127 * read data-only, set @usr_oob == NULL. However, setting both @usr_data and
209 /* Write out-of-band data from MTD */
211 /* Read out-of-band data from MTD */
221 /* Get info about OOB modes (e.g., RAW, PLACE, AUTO) - legacy interface */
227 /* Set OTP (One-Time Programmable) mode (factory vs. user) */
229 /* Get number of OTP (One-Time Programmable) regions */
231 /* Get all OTP (One-Time Programmable) info about MTD */
233 /* Lock a given range of user data (must be in mode %MTD_FILE_MODE_OTP_USER) */
239 /* Set MTD mode on a per-file-descriptor basis (see "MTD file modes") */
241 /* Erase segment of MTD (supports 64-bit address) */
243 /* Write data to OOB (64-bit version) */
245 /* Read data from OOB (64-bit version) */
250 * Most generic write interface; can write in-band and/or out-of-band in various
255 /* Erase a given range of user data (must be in mode %MTD_FILE_MODE_OTP_USER) */
258 * Most generic read interface; can read in-band and/or out-of-band in various
283 * OBSOLETE: ECC layout control structure. Exported to user-space via ioctl
288 * the user struct, not the MAX size of the internal OOB layout representation.
298 * struct mtd_ecc_stats - error correction stats
313 * MTD file modes - for read/write access to MTD
317 * @MTD_FILE_MODE_OTP_USER: OTP enabled in user mode
323 * Note: %MTD_FILE_MODE_RAW provides the same functionality as %MTD_OPS_RAW -
339 return mtd->type == MTD_NANDFLASH || mtd->type == MTD_MLCNANDFLASH; in mtd_type_is_nand_user()