Home
last modified time | relevance | path

Searched refs:ext (Results 1 – 25 of 132) sorted by relevance

123456

/Zephyr-latest/subsys/llext/
Dllext_mem.c33 static void llext_init_mem_part(struct llext *ext, enum llext_mem mem_idx, in llext_init_mem_part() argument
38 ext->mem_parts[mem_idx].start = start; in llext_init_mem_part()
39 ext->mem_parts[mem_idx].size = len; in llext_init_mem_part()
43 ext->mem_parts[mem_idx].attr = K_MEM_PARTITION_P_RX_U_RX; in llext_init_mem_part()
47 ext->mem_parts[mem_idx].attr = K_MEM_PARTITION_P_RW_U_RW; in llext_init_mem_part()
50 ext->mem_parts[mem_idx].attr = K_MEM_PARTITION_P_RO_U_RO; in llext_init_mem_part()
61 static int llext_copy_region(struct llext_loader *ldr, struct llext *ext, in llext_copy_region() argument
72 ext->mem_size[mem_idx] = region_alloc; in llext_copy_region()
82 ext->mem[mem_idx] = llext_peek(ldr, region->sh_offset); in llext_copy_region()
83 if (ext->mem[mem_idx]) { in llext_copy_region()
[all …]
Dllext_handlers.c18 ssize_t z_impl_llext_get_fn_table(struct llext *ext, bool is_init, void *buf, size_t buf_size) in z_impl_llext_get_fn_table() argument
22 if (!ext) { in z_impl_llext_get_fn_table()
27 table_size = ext->mem_size[LLEXT_MEM_PREINIT] + in z_impl_llext_get_fn_table()
28 ext->mem_size[LLEXT_MEM_INIT]; in z_impl_llext_get_fn_table()
30 table_size = ext->mem_size[LLEXT_MEM_FINI]; in z_impl_llext_get_fn_table()
43 ext->mem[LLEXT_MEM_PREINIT], ext->mem_size[LLEXT_MEM_PREINIT]); in z_impl_llext_get_fn_table()
44 memcpy(byte_ptr + ext->mem_size[LLEXT_MEM_PREINIT], in z_impl_llext_get_fn_table()
45 ext->mem[LLEXT_MEM_INIT], ext->mem_size[LLEXT_MEM_INIT]); in z_impl_llext_get_fn_table()
49 ext->mem[LLEXT_MEM_FINI], ext->mem_size[LLEXT_MEM_FINI]); in z_impl_llext_get_fn_table()
57 const char *text_start = ext->mem[LLEXT_MEM_TEXT]; in z_impl_llext_get_fn_table()
[all …]
Dllext.c26 int llext_section_shndx(const struct llext_loader *ldr, const struct llext *ext, in llext_section_shndx() argument
31 for (i = 1; i < ext->sect_cnt; i++) { in llext_section_shndx()
32 const char *name = llext_section_name(ldr, ext, ext->sect_hdrs + i); in llext_section_shndx()
42 int llext_get_section_header(struct llext_loader *ldr, struct llext *ext, const char *search_name, in llext_get_section_header() argument
47 ret = llext_section_shndx(ldr, ext, search_name); in llext_get_section_header()
52 *shdr = ext->sect_hdrs[ret]; in llext_get_section_header()
96 struct llext *ext = CONTAINER_OF(node, struct llext, _llext_list); in llext_by_name() local
98 if (strncmp(ext->name, name, sizeof(ext->name)) == 0) { in llext_by_name()
100 return ext; in llext_by_name()
108 int llext_iterate(int (*fn)(struct llext *ext, void *arg), void *arg) in llext_iterate() argument
[all …]
Dllext_link.c29 __weak int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, in arch_elf_relocate() argument
35 __weak void arch_elf_relocate_local(struct llext_loader *ldr, struct llext *ext, in arch_elf_relocate_local() argument
41 __weak void arch_elf_relocate_global(struct llext_loader *ldr, struct llext *ext, in arch_elf_relocate_global() argument
78 static int llext_dependency_add(struct llext *ext, struct llext *dependency) in llext_dependency_add() argument
82 for (i = 0; i < ARRAY_SIZE(ext->dependency); i++) { in llext_dependency_add()
83 if (ext->dependency[i] == dependency) { in llext_dependency_add()
87 if (!ext->dependency[i]) { in llext_dependency_add()
88 ext->dependency[i] = dependency; in llext_dependency_add()
98 void llext_dependency_remove_all(struct llext *ext) in llext_dependency_remove_all() argument
102 for (i = 0; i < ARRAY_SIZE(ext->dependency) && ext->dependency[i]; i++) { in llext_dependency_remove_all()
[all …]
Dshell.c66 struct llext *ext; member
69 static int llext_shell_name_cb(struct llext *ext, void *arg) in llext_shell_name_cb() argument
74 cmd->ext = ext; in llext_shell_name_cb()
89 entry->syntax = cmd.ext ? cmd.ext->name : NULL; in llext_name_get()
111 static int llext_shell_list_cb(struct llext *ext, void *arg) in llext_shell_list_cb() argument
115 shell_print(sl->sh, "| %16s | %12d |", ext->name, ext->alloc_size); in llext_shell_list_cb()
152 struct llext *ext; in cmd_llext_load_hex() local
153 int res = llext_load(ldr, name, &ext, &ldr_parm); in cmd_llext_load_hex()
156 shell_print(sh, "Successfully loaded extension %s, addr %p\n", ext->name, ext); in cmd_llext_load_hex()
166 struct llext *ext = llext_by_name(argv[1]); in cmd_llext_unload() local
[all …]
Dllext_load.c42 const void *llext_loaded_sect_ptr(struct llext_loader *ldr, struct llext *ext, unsigned int sh_ndx) in llext_loaded_sect_ptr() argument
50 return (const uint8_t *)ext->mem[mem_idx] + ldr->sect_map[sh_ndx].offset; in llext_loaded_sect_ptr()
57 static int llext_load_elf_data(struct llext_loader *ldr, struct llext *ext) in llext_load_elf_data() argument
106 ext->sect_cnt = ldr->hdr.e_shnum; in llext_load_elf_data()
108 size_t sect_map_sz = ext->sect_cnt * sizeof(ldr->sect_map[0]); in llext_load_elf_data()
115 ext->alloc_size += sect_map_sz; in llext_load_elf_data()
116 for (int i = 0; i < ext->sect_cnt; i++) { in llext_load_elf_data()
121 ext->sect_hdrs = (elf_shdr_t *)llext_peek(ldr, ldr->hdr.e_shoff); in llext_load_elf_data()
122 if (ext->sect_hdrs) { in llext_load_elf_data()
123 ext->sect_hdrs_on_heap = false; in llext_load_elf_data()
[all …]
Dllext_priv.h18 int llext_copy_strings(struct llext_loader *ldr, struct llext *ext,
20 int llext_copy_regions(struct llext_loader *ldr, struct llext *ext,
22 void llext_free_regions(struct llext *ext);
23 void llext_adjust_mmu_permissions(struct llext *ext);
50 int do_llext_load(struct llext_loader *ldr, struct llext *ext,
57 int llext_link(struct llext_loader *ldr, struct llext *ext,
60 void llext_dependency_remove_all(struct llext *ext);
/Zephyr-latest/include/zephyr/llext/
Dllext_internal.h29 const void *llext_loaded_sect_ptr(struct llext_loader *ldr, struct llext *ext, unsigned int sh_ndx);
32 static inline const char *llext_string(const struct llext_loader *ldr, const struct llext *ext, in llext_string() argument
35 return (const char *)ext->mem[mem_idx] + idx; in llext_string()
39 struct llext *ext, in llext_get_reloc_instruction_location() argument
43 return (uintptr_t) llext_loaded_sect_ptr(ldr, ext, shndx) + rela->r_offset; in llext_get_reloc_instruction_location()
47 const struct llext *ext, in llext_section_name() argument
50 return llext_string(ldr, ext, LLEXT_MEM_SHSTRTAB, shdr->sh_name); in llext_section_name()
54 const struct llext *ext, in llext_symbol_name() argument
58 return llext_section_name(ldr, ext, ext->sect_hdrs + sym->st_shndx); in llext_symbol_name()
60 return llext_string(ldr, ext, LLEXT_MEM_STRTAB, sym->st_name); in llext_symbol_name()
[all …]
Dllext.h132 static inline const elf_shdr_t *llext_section_headers(const struct llext *ext) in llext_section_headers() argument
134 return ext->sect_hdrs; in llext_section_headers()
137 static inline unsigned int llext_section_count(const struct llext *ext) in llext_section_count() argument
139 return ext->sect_cnt; in llext_section_count()
200 int llext_iterate(int (*fn)(struct llext *ext, void *arg), void *arg);
217 int llext_load(struct llext_loader *loader, const char *name, struct llext **ext,
225 int llext_unload(struct llext **ext);
238 int llext_free_inspection_data(struct llext_loader *ldr, struct llext *ext);
254 int llext_bringup(struct llext *ext);
268 int llext_teardown(struct llext *ext);
[all …]
Dinspect.h49 const struct llext *ext, in llext_get_region_info() argument
64 *addr = (void *)((uintptr_t)ext->mem[region] + ldr->sects[region].sh_info); in llext_get_region_info()
67 *size = ext->mem_size[region] - ldr->sects[region].sh_info; in llext_get_region_info()
86 int llext_section_shndx(const struct llext_loader *ldr, const struct llext *ext,
109 const struct llext *ext, in llext_get_section_info() argument
115 if (shndx < 0 || shndx >= ext->sect_cnt) { in llext_get_section_info()
125 *hdr = &ext->sect_hdrs[shndx]; in llext_get_section_info()
/Zephyr-latest/tests/subsys/llext/src/
Dtest_llext.c63 void (*test_setup)(struct llext *ext, struct k_thread *llext_thread);
66 void (*test_cleanup)(struct llext *ext);
129 struct llext *ext = NULL; in load_call_unload() local
131 int res = llext_load(loader, test_case->name, &ext, &ldr_parm); in load_call_unload()
135 void (*test_entry_fn)() = llext_find_sym(&ext->exp_tab, "test_entry"); in load_call_unload()
157 res = llext_add_domain(ext, &domain); in load_call_unload()
169 ext, test_entry_fn, NULL, in load_call_unload()
175 test_case->test_setup(ext, &llext_thread); in load_call_unload()
182 test_case->test_cleanup(ext); in load_call_unload()
193 ext, test_entry_fn, NULL, in load_call_unload()
[all …]
/Zephyr-latest/arch/xtensa/core/
Delf.c35 static void xtensa_elf_relocate(struct llext_loader *ldr, struct llext *ext, in xtensa_elf_relocate() argument
52 for (sh_ndx = 0; sh_ndx < ext->sect_cnt; sh_ndx++) { in xtensa_elf_relocate()
53 if (ext->sect_hdrs[sh_ndx].sh_addr <= *got_entry && in xtensa_elf_relocate()
55 ext->sect_hdrs[sh_ndx].sh_addr + ext->sect_hdrs[sh_ndx].sh_size) in xtensa_elf_relocate()
59 if (sh_ndx == ext->sect_cnt) { in xtensa_elf_relocate()
64 *got_entry += (uintptr_t)llext_loaded_sect_ptr(ldr, ext, sh_ndx) - in xtensa_elf_relocate()
65 ext->sect_hdrs[sh_ndx].sh_addr; in xtensa_elf_relocate()
98 uintptr_t link_addr = (uintptr_t)llext_loaded_sect_ptr(ldr, ext, rsym.st_shndx) + in xtensa_elf_relocate()
136 void arch_elf_relocate_local(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel, in arch_elf_relocate_local() argument
144 elf_shdr_t *shdr = ext->sect_hdrs + sym->st_shndx; in arch_elf_relocate_local()
[all …]
/Zephyr-latest/samples/net/sockets/http_server/src/certs/
Dgen_server_cert.sh19 echo "subjectKeyIdentifier=hash" > server_csr.ext
20 echo "authorityKeyIdentifier=keyid,issuer" >> server_csr.ext
21 echo "basicConstraints=critical,CA:FALSE" >> server_csr.ext
22 echo "keyUsage=critical,digitalSignature" >> server_csr.ext
23 echo "extendedKeyUsage=serverAuth" >> server_csr.ext
24 echo "subjectAltName=DNS:zephyr.local,IP.1:192.0.2.1,IP.2:2001:db8::1" >> server_csr.ext
37 -extfile server_csr.ext
/Zephyr-latest/samples/subsys/llext/edk/app/src/
Dmain.c66 struct llext *ext; member
70 static const void * const load(const char *name, struct llext **ext, void *buf, in load() argument
78 llext_load(loader, name, ext, &ldr_parm); in load()
80 return llext_find_sym(&(*ext)->exp_tab, "start"); in load()
86 static void unload(struct llext **ext) in unload() argument
88 llext_unload(ext); in unload()
111 unload(&extension_threads[i].ext); in k_sys_fatal_error_handler()
126 struct llext **ext = &extension_threads[max_extension_thread_idx].ext; in run_extension_on_thread() local
129 start_fn = load(name, ext, ext_inc, ext_len); in run_extension_on_thread()
131 llext_add_domain(*ext, domain); in run_extension_on_thread()
/Zephyr-latest/samples/subsys/llext/modules/src/
Dmain_module.c27 struct llext *ext; in main() local
30 res = llext_load(ldr, "ext", &ext, &ldr_parm); in main()
36 void (*hello_world_fn)() = llext_find_sym(&ext->exp_tab, "hello_world"); in main()
45 return llext_unload(&ext); in main()
/Zephyr-latest/arch/arc/core/
Delf.c35 int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, in arch_elf_relocate() argument
40 const uintptr_t loc = llext_get_reloc_instruction_location(ldr, ext, shdr->sh_info, rel); in arch_elf_relocate()
46 ret = llext_read_symbol(ldr, ext, rel, &sym); in arch_elf_relocate()
53 sym_name = llext_symbol_name(ldr, ext, &sym); in arch_elf_relocate()
55 ret = llext_lookup_symbol(ldr, ext, &sym_base_addr, rel, &sym, sym_name, shdr); in arch_elf_relocate()
/Zephyr-latest/subsys/sd/
Dmmc.c436 static int mmc_set_power_class_HS200(struct sd_card *card, struct mmc_ext_csd *ext) in mmc_set_power_class_HS200() argument
442 cmd.arg = ((MMC_SWITCH_PWR_CLASS_ARG) | (ext->pwr_class_200MHZ_VCCQ195 << 8)); in mmc_set_power_class_HS200()
450 static int mmc_set_timing(struct sd_card *card, struct mmc_ext_csd *ext) in mmc_set_timing() argument
456 if ((ext->device_type.MMC_HS200_SDR_1200MV || ext->device_type.MMC_HS200_SDR_1800MV) && in mmc_set_timing()
467 } else if (ext->device_type.MMC_HS_52_DV) { in mmc_set_timing()
469 } else if (ext->device_type.MMC_HS_26_DV) { in mmc_set_timing()
493 ret = mmc_set_power_class_HS200(card, ext); in mmc_set_timing()
515 if ((ext->device_type.MMC_HS400_DDR_1200MV || ext->device_type.MMC_HS400_DDR_1800MV) && in mmc_set_timing()
592 static inline void mmc_decode_ext_csd(struct mmc_ext_csd *ext, uint8_t *raw) in mmc_decode_ext_csd() argument
594 ext->sec_count = in mmc_decode_ext_csd()
[all …]
/Zephyr-latest/tests/misc/llext-edk/src/
Dmain.c53 struct llext **ext) in load_and_run_extension() argument
61 llext_load(loader, "extension", ext, &ldr_parm); in load_and_run_extension()
62 start_fn = llext_find_sym(&(*ext)->exp_tab, "start"); in load_and_run_extension()
64 llext_add_domain(*ext, domain); in load_and_run_extension()
76 llext_unload(ext); in load_and_run_extension()
/Zephyr-latest/modules/trusted-firmware-m/nordic/nrf9120/
DCMakeLists.txt9 add_subdirectory(${Trusted\ Firmware\ M_SOURCE_DIR}/platform/ext/target/nordic_nrf/common/nrf91 nrf…
17 install(FILES ${Trusted\ Firmware\ M_SOURCE_DIR}/platform/ext/target/nordic_nrf/common/nrf912…
23 install(DIRECTORY ${Trusted\ Firmware\ M_SOURCE_DIR}/platform/ext/target/nordic_nrf/nrf9161dk_nrf…
/Zephyr-latest/modules/trusted-firmware-m/nordic/nrf9160/
DCMakeLists.txt9 add_subdirectory(${Trusted\ Firmware\ M_SOURCE_DIR}/platform/ext/target/nordic_nrf/common/nrf91 nrf…
17 install(FILES ${Trusted\ Firmware\ M_SOURCE_DIR}/platform/ext/target/nordic_nrf/common/nrf916…
23 install(DIRECTORY ${Trusted\ Firmware\ M_SOURCE_DIR}/platform/ext/target/nordic_nrf/nrf9160dk_nrf…
/Zephyr-latest/modules/trusted-firmware-m/nordic/nrf5340_cpuapp/
DCMakeLists.txt9 add_subdirectory(${Trusted\ Firmware\ M_SOURCE_DIR}/platform/ext/target/nordic_nrf/common/nrf5340 n…
20 install(DIRECTORY ${Trusted\ Firmware\ M_SOURCE_DIR}/platform/ext/target/nordic_nrf/nrf5340dk_nrf…
/Zephyr-latest/tests/boards/intel_adsp/hda/src/
Dtests.h32 uint32_t ext, k_timeout_t timeout) in hda_ipc_msg() argument
34 int ret = intel_adsp_ipc_send_message_sync(dev, data, ext, timeout); in hda_ipc_msg()
/Zephyr-latest/dts/arm/renesas/rz/rzn/
Dr9a07g084.dtsi98 compatible = "renesas,rz-ext-irq";
107 compatible = "renesas,rz-ext-irq";
116 compatible = "renesas,rz-ext-irq";
125 compatible = "renesas,rz-ext-irq";
134 compatible = "renesas,rz-ext-irq";
143 compatible = "renesas,rz-ext-irq";
152 compatible = "renesas,rz-ext-irq";
161 compatible = "renesas,rz-ext-irq";
170 compatible = "renesas,rz-ext-irq";
179 compatible = "renesas,rz-ext-irq";
[all …]
/Zephyr-latest/dts/arm/renesas/rz/rzt/
Dr9a07g074.dtsi99 compatible = "renesas,rz-ext-irq";
108 compatible = "renesas,rz-ext-irq";
117 compatible = "renesas,rz-ext-irq";
126 compatible = "renesas,rz-ext-irq";
135 compatible = "renesas,rz-ext-irq";
144 compatible = "renesas,rz-ext-irq";
153 compatible = "renesas,rz-ext-irq";
162 compatible = "renesas,rz-ext-irq";
171 compatible = "renesas,rz-ext-irq";
180 compatible = "renesas,rz-ext-irq";
[all …]
/Zephyr-latest/arch/riscv/core/
Delf.c82 static int llext_riscv_find_sym_pcrel(struct llext_loader *ldr, struct llext *ext, in llext_riscv_find_sym_pcrel() argument
96 const uintptr_t sect_base = (uintptr_t)llext_loaded_sect_ptr(ldr, ext, shdr->sh_info); in llext_riscv_find_sym_pcrel()
178 symbol_name = llext_symbol_name(ldr, ext, &candidate_sym); in llext_riscv_find_sym_pcrel()
180 ret = llext_lookup_symbol(ldr, ext, &link_addr, &candidate, &candidate_sym, in llext_riscv_find_sym_pcrel()
200 int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, in arch_elf_relocate() argument
205 const uintptr_t load_bias = (uintptr_t)ext->mem[LLEXT_MEM_TEXT]; in arch_elf_relocate()
206 const uintptr_t loc_unsigned = llext_get_reloc_instruction_location(ldr, ext, in arch_elf_relocate()
213 ret = llext_read_symbol(ldr, ext, rel, &sym); in arch_elf_relocate()
219 sym_name = llext_symbol_name(ldr, ext, &sym); in arch_elf_relocate()
220 ret = llext_lookup_symbol(ldr, ext, &sym_base_addr_unsigned, rel, &sym, sym_name, shdr); in arch_elf_relocate()
[all …]

123456