Home
last modified time | relevance | path

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

12345678910>>...15

/Zephyr-Core-2.7.6/include/sys/
Dcbprintf_cxx.h53 static inline int z_cbprintf_cxx_is_pchar(T arg) in z_cbprintf_cxx_is_pchar() argument
77 static inline size_t z_cbprintf_cxx_arg_size(T arg) in z_cbprintf_cxx_arg_size() argument
79 return sizeof(arg + 0); in z_cbprintf_cxx_arg_size()
83 static inline void z_cbprintf_cxx_store_arg(uint8_t *dst, float arg) in z_cbprintf_cxx_store_arg() argument
85 double d = (double)arg; in z_cbprintf_cxx_store_arg()
96 static inline void z_cbprintf_cxx_store_arg(uint8_t *dst, char arg) in z_cbprintf_cxx_store_arg() argument
98 int tmp = arg + 0; in z_cbprintf_cxx_store_arg()
103 static inline void z_cbprintf_cxx_store_arg(uint8_t *dst, unsigned char arg) in z_cbprintf_cxx_store_arg() argument
105 int tmp = arg + 0; in z_cbprintf_cxx_store_arg()
110 static inline void z_cbprintf_cxx_store_arg(uint8_t *dst, signed char arg) in z_cbprintf_cxx_store_arg() argument
[all …]
Dcbprintf_internal.h170 #define Z_CBPRINTF_STORE_ARG(buf, arg) z_cbprintf_cxx_store_arg(buf, arg) argument
172 #define Z_CBPRINTF_STORE_ARG(buf, arg) do { \
175 __auto_type _v = (arg) + 0; \
176 double _d = _Generic((arg) + 0, \
177 float : (arg) + 0, \
180 size_t arg_size = Z_CBPRINTF_ARG_SIZE(arg); \
183 (int *) _Generic((arg) + 0, float : &_d, default : &_v), \
186 *_Generic((arg) + 0, \
201 (const void **)buf) = arg; \
290 #define Z_CBPRINTF_PACK_ARG(arg) \ argument
[all …]
/Zephyr-Core-2.7.6/boards/posix/nrf52_bsim/
Dargparse.c30 static struct NRF_bsim_args_t arg; variable
36 bs_trace_set_level(arg.verb); in cmd_trace_lvl_found()
41 bs_trace_set_prefix_dev(arg.global_device_nbr); in cmd_gdev_nbr_found()
87 #define args (&arg) in nrfbsim_register_args()
152 arg.verb = 2; in nrfbsim_argsparse()
153 bs_trace_set_level(arg.verb); in nrfbsim_argsparse()
154 arg.test_case_argv[0] = 0; in nrfbsim_argsparse()
155 arg.test_case_argc = 0; in nrfbsim_argsparse()
156 nrf_hw_sub_cmline_set_defaults(&arg.nrf_hw); in nrfbsim_argsparse()
177 save_test_arg(&arg, argv[i]); in nrfbsim_argsparse()
[all …]
/Zephyr-Core-2.7.6/drivers/interrupt_controller/
Dintc_exti_stm32.c267 static inline void __stm32_exti_isr_0_1(const void *arg) in __stm32_exti_isr_0_1() argument
269 __stm32_exti_isr(0, 2, arg); in __stm32_exti_isr_0_1()
272 static inline void __stm32_exti_isr_2_3(const void *arg) in __stm32_exti_isr_2_3() argument
274 __stm32_exti_isr(2, 4, arg); in __stm32_exti_isr_2_3()
277 static inline void __stm32_exti_isr_4_15(const void *arg) in __stm32_exti_isr_4_15() argument
279 __stm32_exti_isr(4, 16, arg); in __stm32_exti_isr_4_15()
283 static inline void __stm32_exti_isr_0(const void *arg) in __stm32_exti_isr_0() argument
285 __stm32_exti_isr(0, 1, arg); in __stm32_exti_isr_0()
288 static inline void __stm32_exti_isr_1(const void *arg) in __stm32_exti_isr_1() argument
290 __stm32_exti_isr(1, 2, arg); in __stm32_exti_isr_1()
[all …]
Dintc_vexriscv_litex.c74 ite->isr(ite->arg); in vexriscv_litex_irq_handler()
81 ite->isr(ite->arg); in vexriscv_litex_irq_handler()
88 ite->isr(ite->arg); in vexriscv_litex_irq_handler()
95 ite->isr(ite->arg); in vexriscv_litex_irq_handler()
99 ite->isr(ite->arg); in vexriscv_litex_irq_handler()
105 ite->isr(ite->arg); in vexriscv_litex_irq_handler()
/Zephyr-Core-2.7.6/soc/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-Core-2.7.6/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-Core-2.7.6/soc/xtensa/intel_s1000/include/
D_soc_inthandlers.h86 e->isr(e->arg); in _xtensa_handle_one_int1()
92 e->isr(e->arg); in _xtensa_handle_one_int1()
99 e->isr(e->arg); in _xtensa_handle_one_int1()
105 e->isr(e->arg); in _xtensa_handle_one_int1()
118 e->isr(e->arg); in _xtensa_handle_one_int2()
124 e->isr(e->arg); in _xtensa_handle_one_int2()
131 e->isr(e->arg); in _xtensa_handle_one_int2()
137 e->isr(e->arg); in _xtensa_handle_one_int2()
150 e->isr(e->arg); in _xtensa_handle_one_int3()
156 e->isr(e->arg); in _xtensa_handle_one_int3()
[all …]
/Zephyr-Core-2.7.6/boards/posix/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-Core-2.7.6/drivers/can/
Dcan_shell.c18 char *arg = argv[pos]; in read_config_options() local
20 if (arg[0] != '-') { in read_config_options()
24 for (arg = &arg[1]; *arg; arg++) { in read_config_options()
25 switch (*arg) { in read_config_options()
28 shell_error(shell, "unknown option %c", *arg); in read_config_options()
35 shell_error(shell, "unknown option %c", *arg); in read_config_options()
41 shell_error(shell, "unknown option %c", *arg); in read_config_options()
52 char *arg = argv[pos]; in read_frame_options() local
54 if (arg[0] != '-') { in read_frame_options()
58 for (arg = &arg[1]; *arg; arg++) { in read_frame_options()
[all …]
/Zephyr-Core-2.7.6/tests/drivers/can/api/src/
Dmain.c234 static void tx_std_isr_1(int error, void *arg) in tx_std_isr_1() argument
236 const struct zcan_frame *msg = (const struct zcan_frame *)arg; in tx_std_isr_1()
243 static void tx_std_isr_2(int error, void *arg) in tx_std_isr_2() argument
245 const struct zcan_frame *msg = (const struct zcan_frame *)arg; in tx_std_isr_2()
252 static void tx_ext_isr_1(int error, void *arg) in tx_ext_isr_1() argument
254 const struct zcan_frame *msg = (const struct zcan_frame *)arg; in tx_ext_isr_1()
261 static void tx_ext_isr_2(int error, void *arg) in tx_ext_isr_2() argument
263 const struct zcan_frame *msg = (const struct zcan_frame *)arg; in tx_ext_isr_2()
270 static void rx_std_isr_1(struct zcan_frame *msg, void *arg) in rx_std_isr_1() argument
273 zassert_equal_ptr(arg, &test_std_filter_1, "arg does not match"); in rx_std_isr_1()
[all …]
/Zephyr-Core-2.7.6/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()
Dtimer.c14 void Timer1_Callback(void const *arg);
15 void Timer2_Callback(void const *arg);
23 void Timer1_Callback(void const *arg) in Timer1_Callback() argument
25 uint32_t Tmr = *(uint32_t *)arg; in Timer1_Callback()
32 void Timer2_Callback(void const *arg) in Timer2_Callback() argument
34 uint32_t Tmr = *(uint32_t *)arg; in Timer2_Callback()
Dmutex.c91 void tThread_entry_lock_timeout(void const *arg) in tThread_entry_lock_timeout() argument
98 status = osMutexWait((osMutexId)arg, 0); in tThread_entry_lock_timeout()
101 status = osMutexWait((osMutexId)arg, TIMEOUT - 100); in tThread_entry_lock_timeout()
107 status = osMutexRelease((osMutexId)arg); in tThread_entry_lock_timeout()
118 status = osMutexWait((osMutexId)arg, TIMEOUT); in tThread_entry_lock_timeout()
120 osMutexRelease((osMutexId)arg); in tThread_entry_lock_timeout()
/Zephyr-Core-2.7.6/tests/drivers/can/canfd/src/
Dmain.c126 static void tx_std_isr_1(int error, void *arg) in tx_std_isr_1() argument
128 const struct zcan_frame *msg = (const struct zcan_frame *)arg; in tx_std_isr_1()
135 static void tx_std_isr_2(int error, void *arg) in tx_std_isr_2() argument
137 const struct zcan_frame *msg = (const struct zcan_frame *)arg; in tx_std_isr_2()
144 static void rx_std_isr_1(struct zcan_frame *msg, void *arg) in rx_std_isr_1() argument
147 zassert_equal_ptr(arg, &test_std_filter_1, "arg does not match"); in rx_std_isr_1()
151 static void rx_std_isr_2(struct zcan_frame *msg, void *arg) in rx_std_isr_2() argument
154 zassert_equal_ptr(arg, &test_std_filter_2, "arg does not match"); in rx_std_isr_2()
158 static void rx_std_isr_fd_1(struct zcan_frame *msg, void *arg) in rx_std_isr_fd_1() argument
161 zassert_equal_ptr(arg, &test_std_filter_1, "arg does not match"); in rx_std_isr_fd_1()
[all …]
/Zephyr-Core-2.7.6/soc/arm/nuvoton_npcx/common/ecst/
Decst_args.py119 for arg in vars(argument_list):
120 if (arg == "input") & (argument_list.input is not None):
123 elif (arg == "output") & (argument_list.output is not None):
126 elif (arg == "chip") & (argument_list.chip is not None):
130 elif (arg == "verbose") & argument_list.verbose:
133 elif (arg == "super_verbose") & argument_list.super_verbose:
136 elif (arg == "spi_flash_maximum_clock") & \
141 elif (arg == "spi_flash_clock_ratio") & \
149 elif (arg == "firmware_header_crc") &\
153 elif (arg == "firmware_crc") & argument_list.firmware_crc:
[all …]
/Zephyr-Core-2.7.6/arch/x86/core/intel64/
Dirq.c32 static void irq_spurious(const void *arg) in irq_spurious() argument
34 LOG_ERR("Spurious interrupt, vector %d\n", (uint32_t)(uint64_t)arg); in irq_spurious()
85 void (*func)(const void *arg), in z_x86_irq_connect_on_vector() argument
86 const void *arg, uint32_t flags) in z_x86_irq_connect_on_vector()
91 x86_irq_args[vector - IV_IRQS] = arg; in z_x86_irq_connect_on_vector()
101 void (*func)(const void *arg), in arch_irq_connect_dynamic() argument
102 const void *arg, uint32_t flags) in arch_irq_connect_dynamic()
113 z_x86_irq_connect_on_vector(irq, vector, func, arg, flags); in arch_irq_connect_dynamic()
/Zephyr-Core-2.7.6/subsys/mgmt/mcumgr/
Dserial_util.c163 mcumgr_serial_tx_cb cb, void *arg) in mcumgr_serial_tx_small() argument
173 return cb(b64, 4, arg); in mcumgr_serial_tx_small()
194 uint16_t crc, mcumgr_serial_tx_cb cb, void *arg, in mcumgr_serial_tx_frame() argument
213 rc = cb(&u16, sizeof(u16), arg); in mcumgr_serial_tx_frame()
226 rc = mcumgr_serial_tx_small(raw, 3, cb, arg); in mcumgr_serial_tx_frame()
248 rc = mcumgr_serial_tx_small(raw, 2, cb, arg); in mcumgr_serial_tx_frame()
261 rc = mcumgr_serial_tx_small(raw, 3, cb, arg); in mcumgr_serial_tx_frame()
274 rc = mcumgr_serial_tx_small(raw, 3, cb, arg); in mcumgr_serial_tx_frame()
280 rc = mcumgr_serial_tx_small(raw, 1, cb, arg); in mcumgr_serial_tx_frame()
289 rc = mcumgr_serial_tx_small(raw, 3, cb, arg); in mcumgr_serial_tx_frame()
[all …]
Dsmp.c34 zephyr_smp_alloc_rsp(const void *req, void *arg) in zephyr_smp_alloc_rsp() argument
39 struct zephyr_smp_transport *zst = arg; in zephyr_smp_alloc_rsp()
61 zephyr_smp_trim_front(void *buf, size_t len, void *arg) in zephyr_smp_trim_front() argument
108 zephyr_smp_split_frag(struct net_buf **nb, void *arg, uint16_t mtu) in zephyr_smp_split_frag() argument
119 frag = zephyr_smp_alloc_rsp(src, arg); in zephyr_smp_split_frag()
135 zephyr_smp_reset_buf(void *buf, void *arg) in zephyr_smp_reset_buf() argument
142 const void *data, size_t len, void *arg) in zephyr_smp_write_at() argument
168 zephyr_smp_tx_rsp(struct smp_streamer *ns, void *rsp, void *arg) in zephyr_smp_tx_rsp() argument
177 zst = arg; in zephyr_smp_tx_rsp()
204 zephyr_smp_free_buf(void *buf, void *arg) in zephyr_smp_free_buf() argument
[all …]
/Zephyr-Core-2.7.6/include/debug/
Dcoredump.h133 void *arg);
135 void *arg);
159 int coredump_query(enum coredump_query_id query_id, void *arg);
160 int coredump_cmd(enum coredump_cmd_id cmd_id, void *arg);
177 int coredump_query(enum coredump_query_id query_id, void *arg) in coredump_query() argument
182 int coredump_cmd(enum coredump_cmd_id query_id, void *arg) in coredump_cmd() argument
/Zephyr-Core-2.7.6/tests/subsys/portability/cmsis_rtos_v2/src/
Dsemaphore.c14 void thread_sema(void *arg) in thread_sema() argument
19 status = osSemaphoreAcquire((osSemaphoreId_t)arg, 0); in thread_sema()
24 status = osSemaphoreAcquire((osSemaphoreId_t)arg, TIMEOUT_TICKS - 5); in thread_sema()
36 status = osSemaphoreAcquire((osSemaphoreId_t)arg, 0); in thread_sema()
39 zassert_true(osSemaphoreRelease((osSemaphoreId_t)arg) == osOK, in thread_sema()
44 osSemaphoreRelease((osSemaphoreId_t)arg) == osErrorResource, in thread_sema()
Dmutex.c109 void tThread_entry_lock_timeout(void *arg) in tThread_entry_lock_timeout() argument
117 status = osMutexAcquire((osMutexId_t)arg, 0); in tThread_entry_lock_timeout()
120 status = osMutexAcquire((osMutexId_t)arg, TIMEOUT_TICKS - 5); in tThread_entry_lock_timeout()
123 status = osMutexRelease((osMutexId_t)arg); in tThread_entry_lock_timeout()
126 id = osMutexGetOwner((osMutexId_t)arg); in tThread_entry_lock_timeout()
138 status = osMutexAcquire((osMutexId_t)arg, TIMEOUT_TICKS); in tThread_entry_lock_timeout()
140 osMutexRelease((osMutexId_t)arg); in tThread_entry_lock_timeout()
/Zephyr-Core-2.7.6/arch/arm64/core/
Dsmp.c36 void *arg; member
58 arch_cpustart_t fn, void *arg) in arch_start_cpu() argument
89 arm64_cpu_boot_params.arg = arg; in arch_start_cpu()
119 void *arg; in z_arm64_secondary_start() local
141 arg = arm64_cpu_boot_params.arg; in z_arm64_secondary_start()
153 fn(arg); in z_arm64_secondary_start()
/Zephyr-Core-2.7.6/tests/subsys/fs/fcb/src/
Dfcb_test.h36 int fcb_test_empty_walk_cb(struct fcb_entry_ctx *entry_ctx, void *arg);
38 int fcb_test_data_walk_cb(struct fcb_entry_ctx *entry_ctx, void *arg);
39 int fcb_test_cnt_elems_cb(struct fcb_entry_ctx *entry_ctx, void *arg);
/Zephyr-Core-2.7.6/arch/arc/core/
Darc_smp.c28 void *arg; member
49 arch_cpustart_t fn, void *arg) in arch_start_cpu() argument
53 arc_cpu_init[cpu_num].arg = arg; in arch_start_cpu()
112 fn(arc_cpu_init[cpu_num].arg); in z_arc_slave_start()

12345678910>>...15