/Zephyr-latest/subsys/settings/src/ |
D | settings_priv.h | 21 off_t w_loc, void *cb_arg); 27 off_t off, void *cb_arg); 30 off_t off, void *cb_arg); 33 off_t off, void *cb_arg); 37 off_t off; 51 off_t seek; /* offset of id-value pair within the file */ 71 int settings_line_raw_read(off_t seek, char *out, size_t len_req, 78 int settings_line_val_read(off_t val_off, off_t off, char *out, size_t len_req, 97 size_t settings_line_val_get_len(off_t val_off, void *read_cb_ctx); 99 int settings_line_entry_copy(void *dst_ctx, off_t dst_off, void *src_ctx, [all …]
|
D | settings_line.c | 18 int (*read_cb)(void *ctx, off_t off, char *buf, size_t *len); 19 int (*write_cb)(void *ctx, off_t off, char const *buf, size_t len); 25 off_t w_loc, void *cb_arg) in settings_line_write() 172 static int settings_line_raw_read_until(off_t seek, char *out, size_t len_req, in settings_line_raw_read_until() 180 off_t off; in settings_line_raw_read_until() 234 int settings_line_raw_read(off_t seek, char *out, size_t len_req, in settings_line_raw_read() 242 int settings_line_val_read(off_t val_off, off_t off, char *out, size_t len_req, in settings_line_val_read() 249 size_t settings_line_val_get_len(off_t val_off, void *read_cb_ctx) in settings_line_val_get_len() 275 int settings_line_entry_copy(void *dst_ctx, off_t dst_off, void *src_ctx, in settings_line_entry_copy() 276 off_t src_off, size_t len) in settings_line_entry_copy() [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_util.c | 23 int z_impl_flash_fill(const struct device *dev, uint8_t val, off_t offset, in z_impl_flash_fill() 71 int z_impl_flash_flatten(const struct device *dev, off_t offset, size_t size) in z_impl_flash_flatten() 92 static inline bool off_add_overflow(off_t offset, off_t size, off_t *result) in off_add_overflow() 94 BUILD_ASSERT((sizeof(off_t) == sizeof(uint32_t)) || (sizeof(off_t) == sizeof(uint64_t))); in off_add_overflow() 96 if (sizeof(off_t) == sizeof(uint32_t)) { in off_add_overflow() 103 } else if (sizeof(off_t) == sizeof(uint64_t)) { in off_add_overflow() 116 static inline bool flash_ranges_overlap(off_t a_start, off_t a_size, off_t b_start, off_t b_size) in flash_ranges_overlap() 118 off_t a_end = a_start + a_size; in flash_ranges_overlap() 119 off_t b_end = b_start + b_size; in flash_ranges_overlap() 124 int z_impl_flash_copy(const struct device *src_dev, off_t src_offset, const struct device *dst_dev, in z_impl_flash_copy() [all …]
|
D | flash_gecko.c | 33 static bool write_range_is_valid(off_t offset, uint32_t size); 34 static bool read_range_is_valid(off_t offset, uint32_t size); 35 static int erase_flash_block(off_t offset, size_t size); 38 static int flash_gecko_read(const struct device *dev, off_t offset, in flash_gecko_read() 55 static int flash_gecko_write(const struct device *dev, off_t offset, in flash_gecko_write() 86 static int flash_gecko_erase(const struct device *dev, off_t offset, in flash_gecko_erase() 140 static bool write_range_is_valid(off_t offset, uint32_t size) in write_range_is_valid() 147 static bool read_range_is_valid(off_t offset, uint32_t size) in read_range_is_valid() 152 static int erase_flash_block(off_t offset, size_t size) in erase_flash_block() 158 for (off_t tmp = offset; tmp < offset + size; tmp += FLASH_PAGE_SIZE) { in erase_flash_block()
|
D | flash_handlers.c | 11 static inline int z_vrfy_flash_read(const struct device *dev, off_t offset, in z_vrfy_flash_read() 22 static inline int z_vrfy_flash_write(const struct device *dev, off_t offset, in z_vrfy_flash_write() 32 static inline int z_vrfy_flash_erase(const struct device *dev, off_t offset, in z_vrfy_flash_erase() 62 int z_vrfy_flash_fill(const struct device *dev, uint8_t val, off_t offset, in z_vrfy_flash_fill() 70 int z_vrfy_flash_flatten(const struct device *dev, off_t offset, size_t size) in z_vrfy_flash_flatten() 80 off_t offs, in z_vrfy_flash_get_page_info_by_offs() 115 off_t offset, in z_vrfy_flash_sfdp_read()
|
D | flash_gd32.h | 32 bool flash_gd32_valid_range(off_t offset, uint32_t len, bool write); 34 int flash_gd32_write_range(off_t offset, const void *data, size_t len); 36 int flash_gd32_erase_block(off_t offset, size_t size);
|
D | soc_flash_nrf_rram.c | 100 static int write_synchronously(off_t addr, const void *data, size_t len); 104 static inline bool is_within_bounds(off_t addr, size_t len, off_t boundary_start, in is_within_bounds() 112 static void commit_changes(off_t addr, size_t len) in commit_changes() 154 static void rram_write(off_t addr, const void *data, size_t len) in rram_write() 225 static int write_synchronously(off_t addr, const void *data, size_t len) in write_synchronously() 242 static int nrf_write(off_t addr, const void *data, size_t len) in nrf_write() 273 static int nrf_rram_read(const struct device *dev, off_t addr, void *data, size_t len) in nrf_rram_read() 287 static int nrf_rram_write(const struct device *dev, off_t addr, const void *data, size_t len) in nrf_rram_write() 298 static int nrf_rram_erase(const struct device *dev, off_t addr, size_t len) in nrf_rram_erase()
|
D | soc_flash_nrf.c | 50 static int write_synchronously(off_t addr, const void *data, size_t len); 89 static int write(off_t addr, const void *data, size_t len); 97 static inline bool is_within_bounds(off_t addr, size_t len, off_t boundary_start, in is_within_bounds() 105 static inline bool is_regular_addr_valid(off_t addr, size_t len) in is_regular_addr_valid() 110 static inline bool is_uicr_addr_valid(off_t addr, size_t len) in is_uicr_addr_valid() 113 return is_within_bounds(addr, len, (off_t)NRF_UICR, sizeof(*NRF_UICR)); in is_uicr_addr_valid() 131 static void nrf_buffer_read_91_uicr(void *data, off_t addr, size_t len) in nrf_buffer_read_91_uicr() 145 static int flash_nrf_read(const struct device *dev, off_t addr, in flash_nrf_read() 174 static int flash_nrf_write(const struct device *dev, off_t addr, in flash_nrf_write() 215 static int flash_nrf_erase(const struct device *dev, off_t addr, size_t size) in flash_nrf_erase() [all …]
|
D | flash_sam.c | 35 off_t area_address; 36 off_t area_size; 43 off_t section_start; 55 static bool sam_flash_validate_offset_len(off_t offset, size_t len) in sam_flash_validate_offset_len() 73 static bool sam_flash_offset_is_on_write_page_boundary(off_t offset) in sam_flash_offset_is_on_write_page_boundary() 137 static bool sam_flash_section_is_within_area(const struct device *dev, off_t offset, size_t len) in sam_flash_section_is_within_area() 141 if ((offset + ((off_t)len)) < offset) { in sam_flash_section_is_within_area() 156 off_t offset, size_t len) in sam_flash_section_is_aligned_with_write_block_size() 171 static bool sam_flash_section_is_aligned_with_pages(const struct device *dev, off_t offset, in sam_flash_section_is_aligned_with_pages() 205 static int sam_flash_read(const struct device *dev, off_t offset, void *data, size_t len) in sam_flash_read() [all …]
|
D | flash_sam0.c | 99 static int flash_sam0_valid_range(off_t offset, size_t len) in flash_sam0_valid_range() 124 static int flash_sam0_check_status(off_t offset) in flash_sam0_check_status() 161 static int flash_sam0_write_page(const struct device *dev, off_t offset, in flash_sam0_write_page() 200 static int flash_sam0_erase_row(const struct device *dev, off_t offset) in flash_sam0_erase_row() 213 static int flash_sam0_commit(const struct device *dev, off_t base) in flash_sam0_commit() 236 static int flash_sam0_write(const struct device *dev, off_t offset, in flash_sam0_write() 261 off_t start = offset % sizeof(ctx->buf); in flash_sam0_write() 262 off_t base = offset - start; in flash_sam0_write() 289 static int flash_sam0_write(const struct device *dev, off_t offset, in flash_sam0_write() 344 static int flash_sam0_read(const struct device *dev, off_t offset, void *data, in flash_sam0_read() [all …]
|
/Zephyr-latest/lib/posix/options/ |
D | fd_mgmt.c | 18 int zvfs_ftruncate(int fd, off_t length); 19 off_t zvfs_lseek(int fd, off_t offset, int whence); 36 int ftruncate(int fd, off_t length) in ftruncate() 44 off_t lseek(int fd, off_t offset, int whence) in lseek() 49 FUNC_ALIAS(lseek, _lseek, off_t);
|
D | shm.c | 107 static int shm_ftruncate(struct shm_obj *shm, off_t length) in shm_ftruncate() 143 static off_t shm_lseek(struct shm_obj *shm, off_t offset, int whence, size_t cur) in shm_lseek() 176 static int shm_mmap(struct shm_obj *shm, void *addr, size_t len, int prot, int flags, off_t off, in shm_mmap() 256 off_t offset = va_arg(args, off_t); in shm_ioctl() 267 off_t off = va_arg(args, off_t); in shm_ioctl() 280 off_t length = va_arg(args, off_t); in shm_ioctl()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | flash.h | 128 typedef int (*flash_api_read)(const struct device *dev, off_t offset, 139 typedef int (*flash_api_write)(const struct device *dev, off_t offset, 155 typedef int (*flash_api_erase)(const struct device *dev, off_t offset, 199 typedef int (*flash_api_sfdp_read)(const struct device *dev, off_t offset, 245 __syscall int flash_read(const struct device *dev, off_t offset, void *data, 248 static inline int z_impl_flash_read(const struct device *dev, off_t offset, in z_impl_flash_read() 276 __syscall int flash_write(const struct device *dev, off_t offset, 280 static inline int z_impl_flash_write(const struct device *dev, off_t offset, in z_impl_flash_write() 320 __syscall int flash_erase(const struct device *dev, off_t offset, size_t size); 322 static inline int z_impl_flash_erase(const struct device *dev, off_t offset, in z_impl_flash_erase() [all …]
|
D | eeprom.h | 47 typedef int (*eeprom_api_read)(const struct device *dev, off_t offset, 55 typedef int (*eeprom_api_write)(const struct device *dev, off_t offset, 82 __syscall int eeprom_read(const struct device *dev, off_t offset, void *data, 85 static inline int z_impl_eeprom_read(const struct device *dev, off_t offset, in z_impl_eeprom_read() 104 __syscall int eeprom_write(const struct device *dev, off_t offset, 108 static inline int z_impl_eeprom_write(const struct device *dev, off_t offset, in z_impl_eeprom_write()
|
D | retained_mem.h | 27 BUILD_ASSERT(!(sizeof(off_t) > sizeof(size_t)), 51 typedef int (*retained_mem_read_api)(const struct device *dev, off_t offset, uint8_t *buffer, 59 typedef int (*retained_mem_write_api)(const struct device *dev, off_t offset, 114 __syscall int retained_mem_read(const struct device *dev, off_t offset, uint8_t *buffer, 117 static inline int z_impl_retained_mem_read(const struct device *dev, off_t offset, in z_impl_retained_mem_read() 148 __syscall int retained_mem_write(const struct device *dev, off_t offset, const uint8_t *buffer, 151 static inline int z_impl_retained_mem_write(const struct device *dev, off_t offset, in z_impl_retained_mem_write()
|
/Zephyr-latest/include/zephyr/retention/ |
D | retention.h | 37 typedef int (*retention_read_api)(const struct device *dev, off_t offset, uint8_t *buffer, 39 typedef int (*retention_write_api)(const struct device *dev, off_t offset, 84 int retention_read(const struct device *dev, off_t offset, uint8_t *buffer, size_t size); 98 int retention_write(const struct device *dev, off_t offset, const uint8_t *buffer, size_t size);
|
/Zephyr-latest/tests/subsys/fs/multi-fs/src/ |
D | test_ram_backend.c | 21 static int test_flash_ram_erase(const struct device *dev, off_t offset, in test_flash_ram_erase() 25 off_t end_offset = offset + len; in test_flash_ram_erase() 40 static int test_flash_ram_write(const struct device *dev, off_t offset, in test_flash_ram_write() 52 static int test_flash_ram_read(const struct device *dev, off_t offset, in test_flash_ram_read()
|
/Zephyr-latest/include/zephyr/storage/ |
D | flash_map.h | 59 off_t fa_off; 78 off_t fs_off; 171 int flash_area_read(const struct flash_area *fa, off_t off, void *dst, 188 int flash_area_write(const struct flash_area *fa, off_t off, const void *src, 204 int flash_area_erase(const struct flash_area *fa, off_t off, size_t len); 227 int flash_area_flatten(const struct flash_area *fa, off_t off, size_t len);
|
/Zephyr-latest/tests/drivers/flash/erase_blocks/src/ |
D | main.c | 68 static bool test_flash_is_erased(off_t offset, size_t size) in test_flash_is_erased() 88 offset += (off_t)readsize; in test_flash_is_erased() 119 static void test_flash_write_block_at_offset(off_t offset, size_t size) in test_flash_write_block_at_offset() 133 off_t page_boundary = info->start_offset; in test_flash_write_across_page_boundary() 136 off_t cross_write_start_offset = page_boundary - (off_t)write_block_size; in test_flash_write_across_page_boundary() 177 off_t page_offset = info->start_offset; in test_flash_erase_page()
|
/Zephyr-latest/drivers/eeprom/ |
D | eeprom_emulator.c | 77 off_t flash_offset; 92 off_t write_offset; 94 off_t page_offset; 102 const off_t address; /* eeprom address */ 109 static inline int eeprom_emu_flash_read(const struct device *dev, off_t offset, in eeprom_emu_flash_read() 121 static inline int eeprom_emu_flash_write(const struct device *dev, off_t offset, in eeprom_emu_flash_write() 136 static inline int eeprom_emu_flash_erase(const struct device *dev, off_t offset, in eeprom_emu_flash_erase() 150 static int eeprom_emu_page_invalidate(const struct device *dev, off_t offset) in eeprom_emu_page_invalidate() 230 static int eeprom_emu_word_read(const struct device *dev, off_t address, in eeprom_emu_word_read() 236 off_t direct_address; in eeprom_emu_word_read() [all …]
|
/Zephyr-latest/include/zephyr/drivers/eeprom/ |
D | eeprom_fake.h | 17 DECLARE_FAKE_VALUE_FUNC(int, fake_eeprom_read, const struct device *, off_t, void *, size_t); 19 DECLARE_FAKE_VALUE_FUNC(int, fake_eeprom_write, const struct device *, off_t, const void *, size_t);
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | blob_io_flash.h | 29 off_t offset; 47 uint8_t area_id, off_t offset);
|
/Zephyr-latest/include/zephyr/drivers/sensor/ |
D | tmp116.h | 25 int tmp116_eeprom_read(const struct device *dev, off_t offset, void *data, 28 int tmp116_eeprom_write(const struct device *dev, off_t offset,
|
/Zephyr-latest/subsys/storage/flash_map/ |
D | flash_map.c | 56 int flash_area_read(const struct flash_area *fa, off_t off, void *dst, in flash_area_read() 66 int flash_area_write(const struct flash_area *fa, off_t off, const void *src, in flash_area_write() 76 int flash_area_erase(const struct flash_area *fa, off_t off, size_t len) in flash_area_erase() 85 int flash_area_flatten(const struct flash_area *fa, off_t off, size_t len) in flash_area_flatten()
|
/Zephyr-latest/include/zephyr/posix/ |
D | unistd.h | 34 off_t lseek(int file, off_t offset, int whence); 36 int ftruncate(int fd, off_t length);
|