Lines Matching refs:mem_idx

44 	enum llext_mem mem_idx = ldr->sect_map[sh_ndx].mem_idx;  in llext_loaded_sect_ptr()  local
46 if (mem_idx == LLEXT_MEM_COUNT) { in llext_loaded_sect_ptr()
50 return (const uint8_t *)ext->mem[mem_idx] + ldr->sect_map[sh_ndx].offset; in llext_loaded_sect_ptr()
116 ldr->sect_map[i].mem_idx = LLEXT_MEM_COUNT; in llext_load_elf_data()
179 ldr->sect_map[i].mem_idx = LLEXT_MEM_SYMTAB; in llext_find_tables()
186 ldr->sect_map[i].mem_idx = LLEXT_MEM_SHSTRTAB; in llext_find_tables()
190 ldr->sect_map[i].mem_idx = LLEXT_MEM_STRTAB; in llext_find_tables()
224 if (ldr->sect_map[i].mem_idx != LLEXT_MEM_COUNT) { in llext_map_sections()
226 i, name, ldr->sect_map[i].mem_idx); in llext_map_sections()
231 enum llext_mem mem_idx; in llext_map_sections() local
235 mem_idx = LLEXT_MEM_BSS; in llext_map_sections()
239 mem_idx = LLEXT_MEM_TEXT; in llext_map_sections()
241 mem_idx = LLEXT_MEM_DATA; in llext_map_sections()
243 mem_idx = LLEXT_MEM_RODATA; in llext_map_sections()
247 mem_idx = LLEXT_MEM_PREINIT; in llext_map_sections()
250 mem_idx = LLEXT_MEM_INIT; in llext_map_sections()
253 mem_idx = LLEXT_MEM_FINI; in llext_map_sections()
256 mem_idx = LLEXT_MEM_COUNT; in llext_map_sections()
262 mem_idx = LLEXT_MEM_EXPORT; in llext_map_sections()
265 if (mem_idx == LLEXT_MEM_COUNT || in llext_map_sections()
272 switch (mem_idx) { in llext_map_sections()
285 LOG_DBG("section %d name %s maps to region %d", i, name, mem_idx); in llext_map_sections()
287 ldr->sect_map[i].mem_idx = mem_idx; in llext_map_sections()
288 elf_shdr_t *region = ldr->sects + mem_idx; in llext_map_sections()
310 name, mem_idx); in llext_map_sections()
315 switch (mem_idx) { in llext_map_sections()
330 LOG_ERR("Region %d redefined", mem_idx); in llext_map_sections()
345 "for %s (region %d)", name, mem_idx); in llext_map_sections()
442 enum llext_mem mem_idx = ldr->sect_map[i].mem_idx; in llext_map_sections() local
444 if (mem_idx != LLEXT_MEM_COUNT) { in llext_map_sections()
445 ldr->sect_map[i].offset = shdr->sh_offset - ldr->sects[mem_idx].sh_offset; in llext_map_sections()