Lines Matching +full:non +full:- +full:flash
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
14 #include <mtd/ubi-user.h>
17 #define UBI_ALL -1
26 * enum ubi_open_mode - UBI volume open mode constants.
28 * UBI_READONLY: read-only mode
29 * UBI_READWRITE: read-write mode
31 * UBI_METAONLY: modify only the volume meta-data,
42 * struct ubi_volume_info - UBI volume description data structure.
50 * @corrupted: non-zero if the volume is corrupted (static volumes only)
51 * @upd_marker: non-zero if the volume has update marker set
90 * @usable_leb_size = LEB size - (LEB size mod @alignment),
93 * The alignment is multiple to the minimal flash input/output unit size or %1
116 * struct ubi_sgl - UBI scatter gather list data structure.
132 * ubi_sgl_init - initialize an UBI scatter gather list data structure.
140 usgl->list_pos = 0; in ubi_sgl_init()
141 usgl->page_pos = 0; in ubi_sgl_init()
145 * struct ubi_device_info - UBI device description data structure.
151 * @max_write_size: maximum amount of bytes the underlying flash can write at a
153 * @ro_mode: if this device is in read-only mode
160 * The @max_write_size field describes flash write maximum write unit. For
161 * example, NOR flash allows for changing individual bytes, so @min_io_size is
162 * %1. However, it does not mean than NOR flash has to write data byte-by-byte.
163 * Instead, CFI NOR flashes have a write-buffer of, e.g., 64 bytes, and when
164 * writing large chunks of data, they write 64-bytes at a time. Obviously, this
167 * Also, the MTD device may have N interleaved (striped) flash chips
169 * single flash chip, while @max_write_size can be N * @min_io_size.
192 * @UBI_VOLUME_RESIZED: a volume has been re-sized
193 * @UBI_VOLUME_RENAMED: a volume has been re-named
208 * struct ubi_notification - UBI notification description structure.