/Zephyr-latest/subsys/llext/ |
D | llext_mem.c | 33 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_section(struct llext_loader *ldr, struct llext *ext, in llext_copy_section() argument 69 ext->mem_size[mem_idx] = ldr->sects[mem_idx].sh_size; in llext_copy_section() 74 ext->mem[mem_idx] = llext_peek(ldr, ldr->sects[mem_idx].sh_offset); in llext_copy_section() 75 if (ext->mem[mem_idx]) { in llext_copy_section() [all …]
|
D | llext_handlers.c | 18 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 …]
|
D | llext.c | 26 int llext_get_section_header(struct llext_loader *ldr, struct llext *ext, const char *search_name, in llext_get_section_header() argument 32 for (i = 0, tmp = ext->sect_hdrs; in llext_get_section_header() 33 i < ext->sect_cnt; in llext_get_section_header() 92 struct llext *ext = CONTAINER_OF(node, struct llext, _llext_list); in llext_by_name() local 94 if (strncmp(ext->name, name, sizeof(ext->name)) == 0) { in llext_by_name() 96 return ext; in llext_by_name() 104 int llext_iterate(int (*fn)(struct llext *ext, void *arg), void *arg) in llext_iterate() argument 114 struct llext *ext = CONTAINER_OF(node, struct llext, _llext_list); in llext_iterate() local 116 ret = fn(ext, arg); in llext_iterate() 163 int llext_load(struct llext_loader *ldr, const char *name, struct llext **ext, in llext_load() argument [all …]
|
D | llext_link.c | 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() 107 ext->dependency[i]->use_count--; in llext_dependency_remove_all() [all …]
|
D | shell.c | 66 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 …]
|
D | llext_load.c | 42 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 for (int i = 0; i < ext->sect_cnt; i++) { in llext_load_elf_data() 120 ext->sect_hdrs = (elf_shdr_t *)llext_peek(ldr, ldr->hdr.e_shoff); in llext_load_elf_data() 121 if (ext->sect_hdrs) { in llext_load_elf_data() 122 ext->sect_hdrs_on_heap = false; in llext_load_elf_data() 124 size_t sect_hdrs_sz = ext->sect_cnt * sizeof(ext->sect_hdrs[0]); in llext_load_elf_data() [all …]
|
D | llext_priv.h | 22 int llext_copy_strings(struct llext_loader *ldr, struct llext *ext); 23 int llext_copy_regions(struct llext_loader *ldr, struct llext *ext, 25 void llext_free_regions(struct llext *ext); 26 void llext_adjust_mmu_permissions(struct llext *ext); 53 int do_llext_load(struct llext_loader *ldr, struct llext *ext, 56 static inline const char *llext_string(struct llext_loader *ldr, struct llext *ext, in llext_string() argument 59 return (char *)ext->mem[mem_idx] + idx; in llext_string() 66 int llext_link(struct llext_loader *ldr, struct llext *ext, 68 void llext_dependency_remove_all(struct llext *ext);
|
/Zephyr-latest/include/zephyr/llext/ |
D | llext.h | 131 static inline const elf_shdr_t *llext_section_headers(const struct llext *ext) in llext_section_headers() argument 133 return ext->sect_hdrs; in llext_section_headers() 136 static inline unsigned int llext_section_count(const struct llext *ext) in llext_section_count() argument 138 return ext->sect_cnt; in llext_section_count() 187 int llext_iterate(int (*fn)(struct llext *ext, void *arg), void *arg); 204 int llext_load(struct llext_loader *loader, const char *name, struct llext **ext, 212 int llext_unload(struct llext **ext); 228 int llext_bringup(struct llext *ext); 242 int llext_teardown(struct llext *ext); 260 void llext_bootstrap(struct llext *ext, llext_entry_fn_t entry_fn, void *user_data); [all …]
|
/Zephyr-latest/arch/xtensa/core/ |
D | elf.c | 35 static void xtensa_elf_relocate(struct llext_loader *ldr, struct llext *ext, in xtensa_elf_relocate() argument 47 for (sh_ndx = 0; sh_ndx < ext->sect_cnt; sh_ndx++) { in xtensa_elf_relocate() 48 if (ext->sect_hdrs[sh_ndx].sh_addr <= *got_entry && in xtensa_elf_relocate() 50 ext->sect_hdrs[sh_ndx].sh_addr + ext->sect_hdrs[sh_ndx].sh_size) in xtensa_elf_relocate() 54 if (sh_ndx == ext->sect_cnt) { in xtensa_elf_relocate() 59 *got_entry += (uintptr_t)llext_loaded_sect_ptr(ldr, ext, sh_ndx) - in xtensa_elf_relocate() 60 ext->sect_hdrs[sh_ndx].sh_addr; in xtensa_elf_relocate() 93 uintptr_t link_addr = (uintptr_t)llext_loaded_sect_ptr(ldr, ext, rsym.st_shndx) + in xtensa_elf_relocate() 131 void arch_elf_relocate_local(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel, in arch_elf_relocate_local() argument 139 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/ |
D | gen_server_cert.sh | 19 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
|
D | .gitignore | 3 *.ext
|
/Zephyr-latest/tests/subsys/llext/src/ |
D | test_llext.c | 62 void (*test_setup)(struct llext *ext, struct k_thread *llext_thread); 65 void (*test_cleanup)(struct llext *ext); 128 struct llext *ext = NULL; in load_call_unload() local 130 int res = llext_load(loader, test_case->name, &ext, &ldr_parm); in load_call_unload() 134 void (*test_entry_fn)() = llext_find_sym(&ext->exp_tab, "test_entry"); in load_call_unload() 156 res = llext_add_domain(ext, &domain); in load_call_unload() 168 ext, test_entry_fn, NULL, in load_call_unload() 174 test_case->test_setup(ext, &llext_thread); in load_call_unload() 181 test_case->test_cleanup(ext); in load_call_unload() 192 ext, test_entry_fn, NULL, in load_call_unload() [all …]
|
/Zephyr-latest/samples/subsys/llext/edk/app/src/ |
D | main.c | 66 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/ |
D | main_module.c | 27 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/subsys/sd/ |
D | mmc.c | 444 static int mmc_set_power_class_HS200(struct sd_card *card, struct mmc_ext_csd *ext) in mmc_set_power_class_HS200() argument 450 cmd.arg = ((MMC_SWITCH_PWR_CLASS_ARG) | (ext->pwr_class_200MHZ_VCCQ195 << 8)); in mmc_set_power_class_HS200() 458 static int mmc_set_timing(struct sd_card *card, struct mmc_ext_csd *ext) in mmc_set_timing() argument 464 if ((ext->device_type.MMC_HS200_SDR_1200MV || ext->device_type.MMC_HS200_SDR_1800MV) && in mmc_set_timing() 475 } else if (ext->device_type.MMC_HS_52_DV) { in mmc_set_timing() 477 } else if (ext->device_type.MMC_HS_26_DV) { in mmc_set_timing() 501 ret = mmc_set_power_class_HS200(card, ext); in mmc_set_timing() 523 if ((ext->device_type.MMC_HS400_DDR_1200MV || ext->device_type.MMC_HS400_DDR_1800MV) && in mmc_set_timing() 600 static inline void mmc_decode_ext_csd(struct mmc_ext_csd *ext, uint8_t *raw) in mmc_decode_ext_csd() argument 602 ext->sec_count = in mmc_decode_ext_csd() [all …]
|
/Zephyr-latest/tests/misc/llext-edk/src/ |
D | main.c | 53 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/ |
D | CMakeLists.txt | 9 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/ |
D | CMakeLists.txt | 9 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/ |
D | CMakeLists.txt | 9 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/ |
D | tests.h | 32 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/scripts/coccinelle/ |
D | irq_lock.cocci | 10 @find depends on !(file in "ext")@ 28 @find2 depends on !(file in "ext") exists@
|
D | semicolon.cocci | 15 @r_default depends on !(file in "ext")@ 23 @r_case depends on !(file in "ext")@ 46 @r1 depends on !(file in "ext")@
|
D | returnvar.cocci | 16 @depends on patch && !(file in "ext")@ 29 @depends on context && !(file in "ext")@ 39 @r1 depends on (report || org) && !(file in "ext")@
|
/Zephyr-latest/samples/bluetooth/hci_pwr_ctrl/boards/ |
D | qemu_cortex_m3.overlay | 2 bt-hci-vs-ext;
|
D | qemu_x86.overlay | 2 bt-hci-vs-ext;
|