Lines Matching refs:address
56 static inline int get_entry(struct bindesc_handle *handle, const uint8_t *address, in get_entry() argument
64 flash_retval = flash_read(handle->flash_device, (size_t)address, in get_entry()
78 (size_t)address + BINDESC_ENTRY_HEADER_SIZE, in get_entry()
88 *entry = (const struct bindesc_entry *)address; in get_entry()
97 uint8_t *address = (uint8_t *)CONFIG_FLASH_BASE_ADDRESS + offset; in bindesc_open_memory_mapped_flash() local
99 if (*(uint64_t *)address != BINDESC_MAGIC) { in bindesc_open_memory_mapped_flash()
104 handle->address = address; in bindesc_open_memory_mapped_flash()
112 int bindesc_open_ram(struct bindesc_handle *handle, const uint8_t *address, size_t max_size) in bindesc_open_ram() argument
114 if (!IS_ALIGNED(address, BINDESC_ALIGNMENT)) { in bindesc_open_ram()
119 if (*(uint64_t *)address != BINDESC_MAGIC) { in bindesc_open_ram()
124 handle->address = address; in bindesc_open_ram()
148 handle->address = (uint8_t *)offset; in bindesc_open_flash()
159 const uint8_t *address = handle->address; in bindesc_foreach() local
162 address += sizeof(BINDESC_MAGIC); in bindesc_foreach()
165 retval = get_entry(handle, address, &entry); in bindesc_foreach()
169 address += WB_UP(BINDESC_ENTRY_HEADER_SIZE + entry->len); in bindesc_foreach()
179 ((address - handle->address) <= handle->size_limit)); in bindesc_foreach()