Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 520) sorted by relevance

12345678910>>...21

/Zephyr-latest/tests/posix/single_process/src/
Dconfstr.c19 struct arg { in ZTEST() struct
25 const struct arg arg1s[] = { in ZTEST()
32 const struct arg arg2s[] = { in ZTEST()
37 const struct arg arg3s[] = { in ZTEST()
41 ARRAY_FOR_EACH_PTR(arg1s, arg) { in ZTEST()
43 zassert_equal(0, confstr(arg->name, arg->buf, arg->len)); in ZTEST()
47 ARRAY_FOR_EACH_PTR(arg2s, arg) { in ZTEST()
50 zassert_true(confstr(arg->name, arg->buf, arg->len) > 0); in ZTEST()
55 ARRAY_FOR_EACH_PTR(arg3s, arg) { in ZTEST()
57 zassert_true(confstr(arg->name, arg->buf, arg->len) > 0); in ZTEST()
/Zephyr-latest/include/zephyr/sys/
Dcbprintf_cxx.h81 static inline int z_cbprintf_cxx_is_pchar(T arg, bool const_as_fixed) in z_cbprintf_cxx_is_pchar() argument
83 ARG_UNUSED(arg); in z_cbprintf_cxx_is_pchar()
133 static inline int z_cbprintf_cxx_is_word_num(T arg) in z_cbprintf_cxx_is_word_num() argument
135 ARG_UNUSED(arg); in z_cbprintf_cxx_is_word_num()
244 static inline int z_cbprintf_cxx_is_none_char_ptr(T arg) in z_cbprintf_cxx_is_none_char_ptr() argument
246 ARG_UNUSED(arg); in z_cbprintf_cxx_is_none_char_ptr()
260 static inline size_t z_cbprintf_cxx_arg_size(T arg) in z_cbprintf_cxx_arg_size() argument
262 ARG_UNUSED(arg); in z_cbprintf_cxx_arg_size()
268 static inline void z_cbprintf_cxx_store_arg(uint8_t *dst, float arg) in z_cbprintf_cxx_store_arg() argument
270 double d = (double)arg; in z_cbprintf_cxx_store_arg()
[all …]
/Zephyr-latest/arch/common/
Dshared_irq.c31 client->isr(client->arg); in z_shared_isr()
71 entry->arg = param; in z_isr_install()
83 shared_entry->clients[shared_entry->client_num].arg = entry->arg; in z_isr_install()
88 entry->arg = shared_entry; in z_isr_install()
95 __ASSERT((client->isr == routine && client->arg == param) == false, in z_isr_install()
100 shared_entry->clients[shared_entry->client_num].arg = param; in z_isr_install()
111 tmp.arg = a->arg; in swap_client_data()
114 a->arg = b->arg; in swap_client_data()
117 b->arg = tmp.arg; in swap_client_data()
127 shared_entry->clients[client_idx].arg = NULL; in shared_irq_remove_client()
[all …]
/Zephyr-latest/kernel/
Dsmp.c44 void *arg; member
110 static inline void smp_init_top(void *arg) in smp_init_top() argument
112 struct cpu_start_cb csc = arg ? *(struct cpu_start_cb *)arg : (struct cpu_start_cb){0}; in smp_init_top()
122 if ((arg == NULL) || csc.invoke_sched) { in smp_init_top()
130 if ((arg == NULL) || csc.reinit_timer) { in smp_init_top()
137 csc.fn(csc.arg); in smp_init_top()
140 if ((arg != NULL) && !csc.invoke_sched) { in smp_init_top()
170 void k_smp_cpu_start(int id, smp_init_fn fn, void *arg) in k_smp_cpu_start() argument
175 cpu_start_fn.arg = arg; 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
[all …]
/Zephyr-latest/tests/bsim/bluetooth/mesh/
D_mesh_test.sh33 for arg in $@ ; do
34 if [ "$arg" == "--" ]; then
39 if [[ "$arg" == "-"* ]]; then
40 testids["${testid}"]+="$arg "
42 testid=$arg
90 for arg in $@ ; do
91 if [ "$arg" == "--" ]; then
96 ext_arg+="$arg "
98 if [[ "$arg" != "-"* ]]; then
/Zephyr-latest/subsys/settings/src/
Dsettings_runtime.c20 struct read_cb_arg *arg = (struct read_cb_arg *)cb_arg; in settings_runtime_read_cb() local
22 memcpy(data, arg->data, MIN(arg->len, len)); in settings_runtime_read_cb()
23 return MIN(arg->len, len); in settings_runtime_read_cb()
30 struct read_cb_arg arg; in settings_runtime_set() local
37 arg.data = data; in settings_runtime_set()
38 arg.len = len; in settings_runtime_set()
39 return ch->h_set(name_key, len, settings_runtime_read_cb, (void *)&arg); in settings_runtime_set()
/Zephyr-latest/tests/drivers/tee/optee/src/
Dmain.c141 struct tee_open_session_arg arg = {}; in ZTEST() local
159 arg.uuid[0] = 111; in ZTEST()
160 arg.clnt_uuid[0] = 222; in ZTEST()
161 arg.clnt_login = TEEC_LOGIN_PUBLIC; in ZTEST()
164 ret = tee_open_session(dev, &arg, 1, &param, &session_id); in ZTEST()
176 struct tee_open_session_arg arg = {}; in ZTEST() local
201 arg.uuid[0] = 111; in ZTEST()
202 arg.clnt_uuid[0] = 222; in ZTEST()
203 arg.clnt_login = TEEC_LOGIN_PUBLIC; in ZTEST()
206 ret = tee_open_session(dev, &arg, 1, &param, &session_id); in ZTEST()
[all …]
/Zephyr-latest/drivers/tee/optee/
Doptee.c246 static inline bool check_param_input(struct optee_msg_arg *arg) in check_param_input() argument
248 return arg->num_params == 1 && in check_param_input()
249 arg->params[0].attr == OPTEE_MSG_ATTR_TYPE_VALUE_INPUT; in check_param_input()
328 static void handle_cmd_alloc(const struct device *dev, struct optee_msg_arg *arg, in handle_cmd_alloc() argument
336 arg->ret_origin = TEEC_ORIGIN_COMMS; in handle_cmd_alloc()
338 if (!check_param_input(arg)) { in handle_cmd_alloc()
339 arg->ret = TEEC_ERROR_BAD_PARAMETERS; in handle_cmd_alloc()
343 switch (arg->params[0].u.value.a) { in handle_cmd_alloc()
346 rc = tee_add_shm(dev, NULL, 0, arg->params[0].u.value.b, TEE_SHM_ALLOC, &shm); in handle_cmd_alloc()
349 rc = cmd_alloc_suppl(dev, arg->params[0].u.value.b, &shm); in handle_cmd_alloc()
[all …]
/Zephyr-latest/soc/intel/intel_adsp/common/include/
Dintel_adsp_ipc.h39 typedef bool (*intel_adsp_ipc_handler_t)(const struct device *dev, void *arg,
64 typedef bool (*intel_adsp_ipc_done_t)(const struct device *dev, void *arg);
88 intel_adsp_ipc_handler_t fn, void *arg);
101 intel_adsp_ipc_done_t fn, void *arg);
182 typedef int (*intel_adsp_ipc_resume_handler_t)(const struct device *dev, void *arg);
184 typedef int (*intel_adsp_ipc_suspend_handler_t)(const struct device *dev, void *arg);
194 intel_adsp_ipc_resume_handler_t fn, void *arg);
204 intel_adsp_ipc_suspend_handler_t fn, void *arg);
/Zephyr-latest/soc/cdns/xtensa_sample_controller/include/
D_soc_inthandlers.h95 e->isr(e->arg); in _xtensa_handle_one_int1()
101 e->isr(e->arg); in _xtensa_handle_one_int1()
107 e->isr(e->arg); in _xtensa_handle_one_int1()
115 e->isr(e->arg); in _xtensa_handle_one_int1()
121 e->isr(e->arg); in _xtensa_handle_one_int1()
128 e->isr(e->arg); in _xtensa_handle_one_int1()
134 e->isr(e->arg); in _xtensa_handle_one_int1()
144 e->isr(e->arg); in _xtensa_handle_one_int1()
150 e->isr(e->arg); in _xtensa_handle_one_int1()
156 e->isr(e->arg); in _xtensa_handle_one_int1()
[all …]
/Zephyr-latest/scripts/native_simulator/native/src/
Dnsi_cmdline_common.c33 int nsi_cmd_is_option(const char *arg, const char *option, int with_value) in nsi_cmd_is_option() argument
38 if (arg[of] == '-') { in nsi_cmd_is_option()
41 if (arg[of] == '-') { in nsi_cmd_is_option()
46 if (strcmp(&arg[of], option) != 0) { in nsi_cmd_is_option()
53 while (!(arg[of] == 0 && *option == 0)) { in nsi_cmd_is_option()
55 if ((arg[of] == ':') || (arg[of] == '=')) { in nsi_cmd_is_option()
61 if (arg[of] != *option) { in nsi_cmd_is_option()
68 if (arg[of] == 0) { /* we need a value to follow */ in nsi_cmd_is_option()
72 arg); in nsi_cmd_is_option()
84 int nsi_cmd_is_help_option(const char *arg) in nsi_cmd_is_help_option() argument
[all …]
/Zephyr-latest/boards/native/native_posix/
Dcmdline_common.c31 int cmd_is_option(const char *arg, const char *option, int with_value) in cmd_is_option() argument
36 if (arg[of] == '-') { in cmd_is_option()
39 if (arg[of] == '-') { in cmd_is_option()
44 if (strcmp(&arg[of], option) != 0) { in cmd_is_option()
51 while (!(arg[of] == 0 && *option == 0)) { in cmd_is_option()
53 if ((arg[of] == ':') || (arg[of] == '=')) { in cmd_is_option()
59 if (arg[of] != *option) { in cmd_is_option()
66 if (arg[of] == 0) { /* we need a value to follow */ in cmd_is_option()
70 arg); in cmd_is_option()
82 int cmd_is_help_option(const char *arg) in cmd_is_help_option() argument
[all …]
/Zephyr-latest/tests/kernel/interrupt/src/
Dtest_shared_irq.h39 static inline bool client_exists_at_index(void (*routine)(const void *arg), in client_exists_at_index() argument
40 void *arg, int irq, size_t idx) in client_exists_at_index()
52 if (client->isr == routine && client->arg == arg) { in client_exists_at_index()
63 return client->isr == routine && client->arg == arg; in client_exists_at_index()
/Zephyr-latest/subsys/net/lib/shell/
Dcm.c115 char *arg; in parse_ifi_target() local
125 arg = argv[*argidx]; in parse_ifi_target()
127 iface_index = shell_strtoul(arg, 10, &err); in parse_ifi_target()
130 PR_ERROR("\"%s\" is not a valid iface index.\n", arg); in parse_ifi_target()
137 PR_ERROR("iface with index \"%s\" does not exist.\n", arg); in parse_ifi_target()
154 char *arg; in parse_if_target() local
161 arg = argv[*argidx]; in parse_if_target()
163 target->iface = net_if_get_by_index(net_if_get_by_name(arg)); in parse_if_target()
166 PR_ERROR("iface with name \"%s\" does not exist.\n", arg); in parse_if_target()
187 char *arg; in parse_target() local
[all …]
Dvlan.c95 int arg = 0; in cmd_net_vlan_add() local
103 if (!argv[++arg]) { in cmd_net_vlan_add()
108 tag = strtol(argv[arg], &endptr, 10); in cmd_net_vlan_add()
110 PR_WARNING("Invalid tag %s\n", argv[arg]); in cmd_net_vlan_add()
114 if (!argv[++arg]) { in cmd_net_vlan_add()
119 iface_idx = strtol(argv[arg], &endptr, 10); in cmd_net_vlan_add()
121 PR_WARNING("Invalid index %s\n", argv[arg]); in cmd_net_vlan_add()
169 int arg = 0; in cmd_net_vlan_del() local
175 if (!argv[++arg]) { in cmd_net_vlan_del()
180 tag = strtol(argv[arg], &endptr, 10); in cmd_net_vlan_del()
[all …]
/Zephyr-latest/tests/lib/c_lib/thrd/src/
Dtss.c22 static void destroy_fn(void *arg) in destroy_fn() argument
24 int32_t val = *(int32_t *)arg; in destroy_fn()
51 static int thread_fn(void *arg) in thread_fn() argument
53 int32_t val = *(int32_t *)arg; in thread_fn()
56 tss_set(key, arg); in thread_fn()
57 zassert_equal(tss_get(key), arg); in thread_fn()
85 static void before(void *arg) in before() argument
93 static void after(void *arg) in after() argument
/Zephyr-latest/lib/heap/
Dheap_stress.c12 void *(*alloc_fn)(void *arg, size_t bytes);
13 void (*free_fn)(void *arg, void *p);
14 void *arg; member
107 void sys_heap_stress(void *(*alloc_fn)(void *arg, size_t bytes), in sys_heap_stress() argument
108 void (*free_fn)(void *arg, void *p), in sys_heap_stress() argument
109 void *arg, size_t total_bytes, in sys_heap_stress()
118 .arg = arg, in sys_heap_stress()
130 void *p = sr.alloc_fn(sr.arg, sz); in sys_heap_stress()
149 sr.free_fn(sr.arg, p); in sys_heap_stress()
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v1/src/
Dsemaphore.c15 void thread_sema(void const *arg) in thread_sema() argument
20 tokens_available = osSemaphoreWait((osSemaphoreId)arg, 0); in thread_sema()
25 tokens_available = osSemaphoreWait((osSemaphoreId)arg, TIMEOUT - 100); in thread_sema()
37 tokens_available = osSemaphoreWait((osSemaphoreId)arg, 0); in thread_sema()
40 zassert_true(osSemaphoreRelease((osSemaphoreId)arg) == osOK, in thread_sema()
44 zassert_true(osSemaphoreRelease((osSemaphoreId)arg) == osErrorResource, in thread_sema()
/Zephyr-latest/drivers/clock_control/
Dclock_control_ambiq.c30 am_hal_mcuctrl_control_arg_t arg = { in ambiq_clock_on() local
42 arg.ui32_arg_hfxtal_user_mask = BIT(AM_HAL_HFXTAL_BLE_CONTROLLER_EN); in ambiq_clock_on()
43 arg.b_arg_enable_HfXtalClockout = true; in ambiq_clock_on()
44 ret = am_hal_mcuctrl_control(AM_HAL_MCUCTRL_CONTROL_EXTCLK32M_KICK_START, &arg); in ambiq_clock_on()
62 am_hal_mcuctrl_control_arg_t arg = { in ambiq_clock_off() local
74 arg.ui32_arg_hfxtal_user_mask = BIT(AM_HAL_HFXTAL_BLE_CONTROLLER_EN); in ambiq_clock_off()
75 arg.b_arg_enable_HfXtalClockout = true; in ambiq_clock_off()
76 ret = am_hal_mcuctrl_control(AM_HAL_MCUCTRL_CONTROL_EXTCLK32M_DISABLE, &arg); in ambiq_clock_off()
/Zephyr-latest/subsys/net/lib/wifi_credentials/
Dwifi_credentials_backend_settings.c35 struct zephyr_settings_backend_load_cb_arg *arg = param; in zephyr_settings_backend_load_val_cb() local
38 if (arg->idx != idx) { in zephyr_settings_backend_load_val_cb()
43 if (len != arg->buf_len) { in zephyr_settings_backend_load_val_cb()
48 size_t length_read = read_cb(cb_arg, arg->buf, arg->buf_len); in zephyr_settings_backend_load_val_cb()
56 arg->found = true; in zephyr_settings_backend_load_val_cb()
145 struct zephyr_settings_backend_load_cb_arg arg = { in wifi_credentials_load_entry() local
155 zephyr_settings_backend_load_val_cb, &arg); in wifi_credentials_load_entry()
161 if (!arg.found) { in wifi_credentials_load_entry()
/Zephyr-latest/soc/nuvoton/npcx/common/ecst/
Decst_args.py126 for arg in vars(argument_list):
127 if (arg == "input") & (argument_list.input is not None):
130 elif (arg == "output") & (argument_list.output is not None):
133 elif (arg == "chip") & (argument_list.chip is not None):
137 elif (arg == "verbose") & argument_list.verbose:
140 elif (arg == "super_verbose") & argument_list.super_verbose:
143 elif (arg == "spi_flash_maximum_clock") & \
148 elif (arg == "spi_flash_clock_ratio") & \
156 elif (arg == "firmware_header_crc") &\
160 elif (arg == "firmware_crc") & argument_list.firmware_crc:
[all …]
/Zephyr-latest/subsys/stats/
Dstats_shell.c10 static int stats_cb(struct stats_hdr *hdr, void *arg, const char *name, uint16_t off) in stats_cb() argument
12 struct shell *sh = arg; in stats_cb()
32 static int stats_group_cb(struct stats_hdr *hdr, void *arg) in stats_group_cb() argument
34 struct shell *sh = arg; in stats_group_cb()
37 return stats_walk(hdr, stats_cb, arg); in stats_group_cb()
/Zephyr-latest/soc/intel/intel_adsp/common/
Dmultiprocessing.c31 void *arg; 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
130 start_rec.arg = arg; in arch_cpu_start()
/Zephyr-latest/include/zephyr/debug/
Dcoredump.h229 void *arg);
231 void *arg);
255 int coredump_query(enum coredump_query_id query_id, void *arg);
256 int coredump_cmd(enum coredump_cmd_id cmd_id, void *arg);
280 static inline int coredump_query(enum coredump_query_id query_id, void *arg) in coredump_query() argument
283 ARG_UNUSED(arg); in coredump_query()
287 static inline int coredump_cmd(enum coredump_cmd_id query_id, void *arg) in coredump_cmd() argument
290 ARG_UNUSED(arg); in coredump_cmd()
/Zephyr-latest/lib/libc/minimal/source/stdlib/
Dqsort.c36 void *arg; member
39 int (*comp3)(const void *a, const void *b, void *arg);
46 return cmp->comp3(a, b, cmp->arg); in compare()
101 int (*comp3)(const void *a, const void *b, void *arg), void *arg) in qsort_r() argument
105 .arg = arg, in qsort_r()
119 .arg = NULL, in qsort()

12345678910>>...21