Lines Matching +full:sector +full:- +full:0 +full:a +full:- +full:pages
2 * Copyright (c) 2017-2024 Nordic Semiconductor ASA
6 * SPDX-License-Identifier: Apache-2.0
22 * @version 1.0.0
51 * This structure represents a fixed-size partition on a flash device.
71 * @brief Structure for transfer flash sector boundaries
77 /** Sector offset from the beginning of the flash device */
79 /** Sector size in bytes */
87 * This is used to pass data to be used to check flash integrity using SHA-256
99 * Verify flash memory length bytes integrity from a flash area. The start
105 * @return 0 on success, negative errno code on fail
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
137 * @brief Verify that a device assigned to flash area is ready for use.
139 * Indicates whether the provided flash area has a device known to be
140 * in a state where it can be used with Flash Map API.
148 * @retval false If the device is not ready for use or if a NULL pointer is
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
169 * @return 0 on success, negative errno code on fail.
178 * request. API has the same limitation regard write-block alignment and size
186 * @return 0 on success, negative errno code on fail.
195 * request. API has the same limitation regard erase-block alignment and size
202 * @return 0 on success, negative errno code on fail.
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.
225 * @return 0 on success, negative errno code on fail.
249 * @return 0 on success, negative errno code on fail. Especially returns
250 * -ENOMEM if There are too many flash pages on the flash_area to fit in the
264 * @return 0 on success, negative errno code on fail. Especially returns
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.
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.
387 * @param label DTS node label of a partition
397 * @param label DTS node label of a partition
399 * @return Pointer to a device.
407 * @param node DTS node of a partition
409 * @return Pointer to a device.
417 * @param label DTS node label of a partition
426 * @param node DTS node of a partition