/Zephyr-latest/subsys/testsuite/ztest/src/ |
D | ztest_mock.c | 15 const char *fn; member 153 static struct parameter *find_and_delete_value(struct parameter *param, const char *fn, in find_and_delete_value() argument 162 if (strcmp(param->next->name, name) || strcmp(param->next->fn, fn)) { in find_and_delete_value() 163 return find_and_delete_value(param->next, fn, name); in find_and_delete_value() 173 static void insert_value(struct parameter *param, const char *fn, const char *name, uintptr_t val) in insert_value() argument 178 value->fn = fn; in insert_value() 195 void z_ztest_expect_value(const char *fn, const char *name, uintptr_t val) in z_ztest_expect_value() argument 197 insert_value(¶meter_list, fn, name, val); in z_ztest_expect_value() 200 void z_ztest_check_expected_value(const char *fn, const char *name, uintptr_t val) in z_ztest_check_expected_value() argument 205 param = find_and_delete_value(¶meter_list, fn, name); in z_ztest_check_expected_value() [all …]
|
/Zephyr-latest/subsys/testsuite/ztest/include/zephyr/ |
D | ztest_test.h | 409 #define Z_TEST_P(suite, fn, t_options) \ argument 410 struct ztest_unit_test_stats z_ztest_unit_test_stats_##suite##_##fn; \ 411 static void _##suite##_##fn##_wrapper(void *data); \ 412 static void suite##_##fn(void *data); \ 413 static STRUCT_SECTION_ITERABLE(ztest_unit_test, z_ztest_unit_test__##suite##__##fn) = { \ 415 .name = STRINGIFY(fn), \ 416 .test = (_##suite##_##fn##_wrapper), \ 418 .stats = &z_ztest_unit_test_stats_##suite##_##fn \ 420 static void _##suite##_##fn##_wrapper(void *wrapper_data) \ 422 suite##_##fn(wrapper_data); \ [all …]
|
D | ztest_mock.h | 158 void z_ztest_expect_value(const char *fn, const char *name, uintptr_t value); 159 void z_ztest_check_expected_value(const char *fn, const char *param, 162 void z_ztest_expect_data(const char *fn, const char *name, void *val); 163 void z_ztest_check_expected_data(const char *fn, const char *name, void *data, 166 void z_ztest_return_data(const char *fn, const char *name, void *val); 167 void z_ztest_copy_return_data(const char *fn, const char *name, void *data, 170 void z_ztest_returns_value(const char *fn, uintptr_t value); 171 uintptr_t z_ztest_get_return_value(const char *fn);
|
/Zephyr-latest/tests/drivers/i2c/i2c_emul/include/ |
D | emulated_target.hpp | 42 #define FFF_FAKE_ACTION(node_id, prop, n, fn) \ argument 44 fn(target_read_requested_##n); \ 45 fn(target_read_processed_##n); \ 46 fn(target_write_requested_##n); \ 47 fn(target_write_received_##n); \ 48 fn(target_stop_##n); \ 49 fn(target_buf_read_requested_##n); \ 50 fn(target_buf_write_received_##n); \ 53 #define FFF_FAKES_LIST_FOREACH(fn) \ argument 54 DT_FOREACH_PROP_ELEM_VARGS(CONTROLLER_LABEL, forwards, FFF_FAKE_ACTION, fn)
|
/Zephyr-latest/scripts/coccinelle/ |
D | ms_timeout.cocci | 22 identifier fn =~ "(?x)^ 37 fn(..., T); 47 fn@p(..., 58 fn << match_fn_l1.fn; 62 msg = "WARNING: [msl1] replace constant {} with ms duration in {}".format(T, fn) 72 fn(..., 85 identifier fn =~ "(?x)^ 92 fn(..., T, L1) 103 fn@p(..., 114 fn << match_fn_l2.fn; [all …]
|
D | macros.h | 17 #define ZTEST(suite, fn) static void _##suite##_##fn##_wrapper(void)
|
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/ |
D | test_fat_rename.c | 111 const char *fn = FATFS_MNTP"/tf.txt"; in test_rename_file() local 117 if (delete_it(fn, 0) || delete_it(nfn, 0)) { in test_rename_file() 122 res = fs_rename(fn, nfn); in test_rename_file() 130 res = create_file(fn); in test_rename_file() 135 res = fs_rename(fn, nfn); in test_rename_file() 138 check_file_dir_exists(fn)) { in test_rename_file() 139 TC_PRINT("Renaming %s to %s failed [%d]\n", fn, nfn, res); in test_rename_file() 145 create_file(fn); in test_rename_file() 146 res = fs_rename(fn, nfn); in test_rename_file() 149 check_file_dir_exists(fn)) { in test_rename_file() [all …]
|
/Zephyr-latest/include/zephyr/ |
D | devicetree.h | 2175 #define DT_FOREACH_RANGE(node_id, fn) \ argument 2176 DT_CAT(node_id, _FOREACH_RANGE)(fn) 2933 #define DT_FOREACH_NODE(fn) DT_FOREACH_HELPER(fn) argument 2947 #define DT_FOREACH_NODE_VARGS(fn, ...) DT_FOREACH_VARGS_HELPER(fn, __VA_ARGS__) argument 2960 #define DT_FOREACH_STATUS_OKAY_NODE(fn) DT_FOREACH_OKAY_HELPER(fn) argument 2976 #define DT_FOREACH_STATUS_OKAY_NODE_VARGS(fn, ...) DT_FOREACH_OKAY_VARGS_HELPER(fn, __VA_ARGS__) argument 3024 #define DT_FOREACH_ANCESTOR(node_id, fn) \ argument 3025 DT_CAT(node_id, _FOREACH_ANCESTOR)(fn) 3070 #define DT_FOREACH_CHILD(node_id, fn) \ argument 3071 DT_CAT(node_id, _FOREACH_CHILD)(fn) [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | net_pkt_filter.h | 46 npf_test_fn_t *fn; /**< packet condition test function */ member 243 .test.fn = npf_iface_match, \ 255 .test.fn = npf_iface_unmatch, \ 267 .test.fn = npf_orig_iface_match, \ 279 .test.fn = npf_orig_iface_unmatch, \ 304 .test.fn = npf_size_inbounds, \ 317 .test.fn = npf_size_inbounds, \ 331 .test.fn = npf_size_inbounds, \ 365 .test.fn = npf_ip_src_addr_match, \ 385 .test.fn = npf_ip_src_addr_unmatch, \ [all …]
|
/Zephyr-latest/arch/arc/core/ |
D | smp.c | 23 arch_cpustart_t fn; member 45 arch_cpustart_t fn, void *arg) in arch_cpu_start() argument 48 arc_cpu_init[cpu_num].fn = fn; in arch_cpu_start() 96 arch_cpustart_t fn; in arch_secondary_cpu_init() local 125 fn = arc_cpu_init[cpu_num].fn; in arch_secondary_cpu_init() 127 fn(arc_cpu_init[cpu_num].arg); in arch_secondary_cpu_init()
|
/Zephyr-latest/tests/drivers/bbram/generic/include/ |
D | fixture.h | 16 #define BBRAM_FOR_EACH(fn) \ argument 17 fn(DT_NODELABEL(mcp7940n)) fn(DT_NODELABEL(ite8xxx2)) fn(DT_NODELABEL(npcx))
|
/Zephyr-latest/include/zephyr/mem_mgmt/ |
D | mem_attr.h | 29 #define _FILTER(node_id, fn) \ argument 31 (fn(node_id)), \ 47 #define DT_MEMORY_ATTR_FOREACH_STATUS_OKAY_NODE(fn) \ argument 48 DT_FOREACH_STATUS_OKAY_NODE_VARGS(_FILTER, fn)
|
/Zephyr-latest/soc/intel/intel_adsp/common/ |
D | multiprocessing.c | 30 arch_cpustart_t fn; member 109 start_rec.fn(start_rec.arg); in z_mp_entry() 115 start_rec.fn(start_rec.arg); in mp_resume_entry() 124 arch_cpustart_t fn, void *arg) in arch_cpu_start() argument 129 start_rec.fn = fn; in arch_cpu_start()
|
/Zephyr-latest/kernel/ |
D | smp.c | 41 smp_init_fn fn; member 136 if (csc.fn != NULL) { in smp_init_top() 137 csc.fn(csc.arg); in smp_init_top() 170 void k_smp_cpu_start(int id, smp_init_fn fn, void *arg) in k_smp_cpu_start() argument 174 cpu_start_fn.fn = fn; in k_smp_cpu_start() 196 void k_smp_cpu_resume(int id, smp_init_fn fn, void *arg, in k_smp_cpu_resume() argument 201 cpu_start_fn.fn = fn; in k_smp_cpu_resume()
|
/Zephyr-latest/arch/riscv/core/ |
D | smp.c | 17 arch_cpustart_t fn; member 32 arch_cpustart_t fn, void *arg) in arch_cpu_start() argument 34 riscv_cpu_init[cpu_num].fn = fn; in arch_cpu_start() 85 riscv_cpu_init[cpu_num].fn(riscv_cpu_init[cpu_num].arg); in arch_secondary_cpu_init()
|
/Zephyr-latest/arch/arm64/core/ |
D | smp.c | 41 arch_cpustart_t fn; member 68 arch_cpustart_t fn, void *arg) in arch_cpu_start() argument 90 arm64_cpu_boot_params.fn = fn; in arch_cpu_start() 128 while (arm64_cpu_boot_params.fn) { in arch_cpu_start() 141 arch_cpustart_t fn; in arch_secondary_cpu_init() local 171 fn = arm64_cpu_boot_params.fn; in arch_secondary_cpu_init() 180 arm64_cpu_boot_params.fn = NULL; in arch_secondary_cpu_init() 184 fn(arg); in arch_secondary_cpu_init()
|
/Zephyr-latest/soc/native/inf_clock/ |
D | posix_native_task.h | 41 #define NATIVE_TASK(fn, level, prio) \ argument 42 static void (* const _CONCAT(__native_task_, fn))() __used __noasan \ 44 = fn
|
/Zephyr-latest/scripts/native_simulator/common/src/include/ |
D | nsi_hws_models_if.h | 36 #define NSI_HW_EVENT(t, fn, prio) \ argument 37 static const struct nsi_hw_event_st NSI_CONCAT(NSI_CONCAT(__nsi_hw_event_, fn), t) \ 41 .callback = fn, \
|
/Zephyr-latest/scripts/native_simulator/common/src/ |
D | nsi_tasks.h | 52 #define NSI_TASK(fn, level, prio) \ argument 53 static void (* const NSI_CONCAT(__nsi_task_, fn))(void) \ 56 = fn; \
|
/Zephyr-latest/arch/arm/core/cortex_a_r/ |
D | smp.c | 56 arch_cpustart_t fn; member 97 void arch_cpu_start(int cpu_num, k_thread_stack_t *stack, int sz, arch_cpustart_t fn, void *arg) in arch_cpu_start() argument 139 arm_cpu_boot_params.fn = fn; in arch_cpu_start() 160 while (arm_cpu_boot_params.fn) { in arch_cpu_start() 173 arch_cpustart_t fn; in arch_secondary_cpu_init() local 206 fn = arm_cpu_boot_params.fn; in arch_secondary_cpu_init() 215 arm_cpu_boot_params.fn = NULL; in arch_secondary_cpu_init() 220 fn(arg); in arch_secondary_cpu_init()
|
/Zephyr-latest/scripts/build/ |
D | gen_syscalls.py | 231 def wrapper_defs(func_name, func_type, args, fn, userspace_only): argument 315 if fn not in notracing: 410 def analyze_fn(match_group, fn, userspace_only): argument 428 invocation = wrapper_defs(func_name, func_type, args, fn, userspace_only) 484 for match_group, fn, to_emit in syscalls: 485 handler, inv, mrsh, sys_id, entry = analyze_fn(match_group, fn, args.userspace_only) 487 if fn not in invocations: 488 invocations[fn] = [] 490 invocations[fn].append(inv) 504 mrsh_includes[syscall] = "#include <zephyr/syscalls/%s>" % fn [all …]
|
/Zephyr-latest/drivers/interrupt_controller/ |
D | intc_xmc4xxx.c | 35 void (*fn)(const struct device *dev, int pin); member 57 void (*fn)(const struct device *, int), void *user_data) in intc_xmc4xxx_gpio_enable_interrupt() 81 if (cb->fn) { in intc_xmc4xxx_gpio_enable_interrupt() 104 cb->fn = fn; in intc_xmc4xxx_gpio_enable_interrupt() 156 if (cb->fn && cb->port_id == port_id && cb->pin == pin) { in intc_xmc4xxx_gpio_disable_interrupt() 159 cb->fn = NULL; in intc_xmc4xxx_gpio_disable_interrupt() 185 while (cb->fn) { in intc_xmc4xxx_isr() 186 cb->fn(cb->data, cb->pin); in intc_xmc4xxx_isr()
|
/Zephyr-latest/arch/x86/core/intel64/ |
D | cpu.c | 51 arch_cpustart_t fn, void *arg) in arch_cpu_start() argument 76 x86_cpuboot[cpu_num].fn = fn; in arch_cpu_start() 90 ARG_UNUSED(fn); in arch_cpu_start() 127 cpuboot->fn(cpuboot->arg); in z_x86_cpu_init()
|
/Zephyr-latest/soc/intel/intel_adsp/common/include/ |
D | intel_adsp_ipc.h | 88 intel_adsp_ipc_handler_t fn, void *arg); 101 intel_adsp_ipc_done_t fn, void *arg); 194 intel_adsp_ipc_resume_handler_t fn, void *arg); 204 intel_adsp_ipc_suspend_handler_t fn, void *arg);
|
/Zephyr-latest/arch/xtensa/core/ |
D | irq_offload.c | 12 irq_offload_routine_t fn; member 21 offload_params[cpu_id].fn(offload_params[cpu_id].arg); in irq_offload_isr() 31 offload_params[cpu_id].fn = routine; in arch_irq_offload()
|