Lines Matching +full:partition +full:- +full:erase
2 * Copyright (c) 2017-2024 Nordic Semiconductor ASA
6 * SPDX-License-Identifier: Apache-2.0
49 * @brief Flash partition
51 * This structure represents a fixed-size partition on a flash device.
52 * Each partition contains one or more flash sectors.
65 /** Partition label if defined in DTS. Otherwise nullptr; */
87 * This is used to pass data to be used to check flash integrity using SHA-256
114 * Function Retrieves flash_area from flash_map for given partition.
116 * @param[in] id ID of the flash partition.
120 * @return 0 on success, -EACCES if the flash_map is not available ,
121 * -ENOENT if @p ID is unknown, -ENODEV if there is no driver attached
154 return (fa != NULL && device_is_ready(fa->fa_dev)); in flash_area_device_is_ready()
161 * request. API has the same limitation regard read-block alignment and size
178 * request. API has the same limitation regard write-block alignment and size
192 * @brief Erase flash area
194 * Erase given flash area range. Area boundaries are asserted before erase
195 * request. API has the same limitation regard erase-block alignment and size
200 * @param[in] len Number of bytes to be erase
207 * @brief Erase flash area or fill with erase-value
209 * On program-erase devices this function behaves exactly like flash_area_erase.
210 * On RAM non-volatile device it will call erase, if driver provides such
211 * callback, or will fill given range with erase-value defined by driver.
213 * to directly support devices that do not require erase and rely on
215 * Note that emulated erase, on devices that do not require, is done
223 * @param[in] len Number of bytes to be erase
250 * -ENOMEM if There are too many flash pages on the flash_area to fit in the
265 * -ENOMEM if There are too many flash pages on the flash_area to fit in the
294 * @return 1 On success. -ENODEV if no driver match.
325 * @return Byte value of erase memory.
330 * Returns non-0 value if fixed-partition of given DTS node label exists.
334 * @return non-0 if fixed-partition node exists and is enabled;
335 * 0 if node does not exist, is not enabled or is not fixed-partition.
340 * Get flash area ID from fixed-partition DTS node label
342 * @param label DTS node label of a partition
349 * Get fixed-partition offset from DTS node label
351 * @param label DTS node label of a partition
353 * @return fixed-partition offset, as defined for the partition in DTS.
358 * Get fixed-partition offset from DTS node
360 * @param node DTS node of a partition
362 * @return fixed-partition offset, as defined for the partition in DTS.
367 * Get fixed-partition size for DTS node label
371 * @return fixed-partition offset, as defined for the partition in DTS.
376 * Get fixed-partition size for DTS node
378 * @param node DTS node of a partition
380 * @return fixed-partition size, as defined for the partition in DTS.
385 * Get device pointer for device the area/partition resides on
387 * @param label DTS node label of a partition
395 * Get device pointer for device the area/partition resides on
397 * @param label DTS node label of a partition
405 * Get device pointer for device the area/partition resides on
407 * @param node DTS node of a partition
415 * Get pointer to flash_area object by partition label
417 * @param label DTS node label of a partition
419 * @return Pointer to flash_area type object representing partition
424 * Get pointer to flash_area object by partition node in DTS
426 * @param node DTS node of a partition
428 * @return Pointer to flash_area type object representing partition