Home
last modified time | relevance | path

Searched refs:sig (Results 1 – 25 of 58) sorted by relevance

123

/Zephyr-latest/tests/posix/signals/src/
Dmain.c19 for (int i = 0; i < ARRAY_SIZE(set.sig); i++) { in ZTEST()
20 set.sig[i] = -1; in ZTEST()
25 for (int i = 0; i < ARRAY_SIZE(set.sig); i++) { in ZTEST()
26 zassert_equal(set.sig[i], 0u, "set.sig[%d] is not empty: 0x%lx", i, set.sig[i]); in ZTEST()
36 for (int i = 0; i < ARRAY_SIZE(set.sig); i++) { in ZTEST()
37 zassert_equal(set.sig[i], -1, "set.sig[%d] is not filled: 0x%lx", i, set.sig[i]); in ZTEST()
63 WRITE_BIT(target.sig[0], signo, 1); in ZTEST()
64 for (int i = 0; i < ARRAY_SIZE(set.sig); i++) { in ZTEST()
65 zassert_equal(set.sig[i], target.sig[i], in ZTEST()
67 ARRAY_SIZE(set.sig) - 1, set.sig[i], target.sig[i]); in ZTEST()
[all …]
/Zephyr-latest/samples/drivers/virtualization/ivshmem/doorbell/src/
Divshmem.c66 APP_A_BSS static struct k_poll_signal *sig; variable
77 sig), in wait_for_int()
87 k_poll_signal_check(sig, &irq.signaled, &irq.result); in wait_for_int()
89 sig, irq.signaled, irq.result); in wait_for_int()
91 k_poll_signal_reset(sig); in wait_for_int()
169 sig = k_malloc(sizeof(*sig)); in setup_ivshmem()
170 if (sig == NULL) { in setup_ivshmem()
174 k_poll_signal_init(sig); in setup_ivshmem()
178 ret = ivshmem_register_handler(shmem_ctx.dev, sig, i); in setup_ivshmem()
210 k_object_free(sig); in ivshmem_sample_doorbell()
[all …]
/Zephyr-latest/lib/posix/options/
Dsignal.c37 for (int i = 0; i < ARRAY_SIZE(set->sig); i++) { in sigfillset()
38 set->sig[i] = -1; in sigfillset()
51 WRITE_BIT(set->sig[SIGNO_WORD_IDX(signo)], SIGNO_WORD_BIT(signo), 1); in sigaddset()
63 WRITE_BIT(set->sig[SIGNO_WORD_IDX(signo)], SIGNO_WORD_BIT(signo), 0); in sigdelset()
75 return 1 & (set->sig[SIGNO_WORD_IDX(signo)] >> SIGNO_WORD_BIT(signo)); in sigismember()
133 int kill(pid_t pid, int sig) in kill() argument
136 ARG_UNUSED(sig); in kill()
150 int sigaction(int sig, const struct sigaction *ZRESTRICT act, struct sigaction *ZRESTRICT oact) in sigaction() argument
152 ARG_UNUSED(sig); in sigaction()
173 int sigwait(const sigset_t *ZRESTRICT set, int *ZRESTRICT sig) in sigwait() argument
[all …]
/Zephyr-latest/tests/posix/common/src/
Dtimer.c35 struct sigevent sig = {0}; in test_timer() local
41 sig.sigev_notify = sigev_notify; in test_timer()
42 sig.sigev_notify_function = handler; in test_timer()
43 sig.sigev_value.sival_int = TEST_SIGNAL_VAL; in test_timer()
46 zassert_ok(timer_create(clock_id, &sig, &timerid)); in test_timer()
107 struct sigevent sig = {0}; in ZTEST() local
110 sig.sigev_notify = SIGEV_NONE; in ZTEST()
112 zassert_ok(timer_create(CLOCK_MONOTONIC, &sig, &timerid)); in ZTEST()
127 struct sigevent sig = {0}; in ZTEST() local
131 sig.sigev_notify = SIGEV_SIGNAL; in ZTEST()
[all …]
/Zephyr-latest/kernel/
Dpoll.c480 void z_impl_k_poll_signal_init(struct k_poll_signal *sig) in z_impl_k_poll_signal_init() argument
482 sys_dlist_init(&sig->poll_events); in z_impl_k_poll_signal_init()
483 sig->signaled = 0U; in z_impl_k_poll_signal_init()
485 k_object_init(sig); in z_impl_k_poll_signal_init()
487 SYS_PORT_TRACING_FUNC(k_poll_api, signal_init, sig); in z_impl_k_poll_signal_init()
491 static inline void z_vrfy_k_poll_signal_init(struct k_poll_signal *sig) in z_vrfy_k_poll_signal_init() argument
493 K_OOPS(K_SYSCALL_OBJ_INIT(sig, K_OBJ_POLL_SIGNAL)); in z_vrfy_k_poll_signal_init()
494 z_impl_k_poll_signal_init(sig); in z_vrfy_k_poll_signal_init()
499 void z_impl_k_poll_signal_reset(struct k_poll_signal *sig) in z_impl_k_poll_signal_reset() argument
501 sig->signaled = 0U; in z_impl_k_poll_signal_reset()
[all …]
/Zephyr-latest/lib/utils/
Dnotify.c51 struct k_poll_signal *sig = NULL; in sys_notify_finalize() local
66 sig = notify->method.signal; in sys_notify_finalize()
79 if (IS_ENABLED(CONFIG_POLL) && (sig != NULL)) { in sys_notify_finalize()
80 k_poll_signal_raise(sig, res); in sys_notify_finalize()
/Zephyr-latest/tests/crypto/tinycrypt/src/
Decc_dsa.c88 unsigned int sig[2 * NUM_ECC_WORDS]; in sign_vectors() local
139 uECC_vli_bytesToNative(sig, sig_bytes, NUM_ECC_BYTES); in sign_vectors()
140 uECC_vli_bytesToNative(sig + NUM_ECC_WORDS, sig_bytes + NUM_ECC_BYTES, NUM_ECC_BYTES); in sign_vectors()
142 result = check_ecc_result(i, "sig.r", exp_r, sig, NUM_ECC_WORDS, verbose); in sign_vectors()
147 result = check_ecc_result(i, "sig.s", exp_s, sig + NUM_ECC_WORDS, NUM_ECC_WORDS, verbose); in sign_vectors()
349 unsigned int sig[2 * NUM_ECC_WORDS]; in vrfy_vectors() local
365 string2scalar(sig, NUM_ECC_WORDS, r_vec[i]); in vrfy_vectors()
366 string2scalar(sig + NUM_ECC_WORDS, NUM_ECC_WORDS, s_vec[i]); in vrfy_vectors()
400 uECC_vli_nativeToBytes(sig_bytes, NUM_ECC_BYTES, sig); in vrfy_vectors()
402 sig + NUM_ECC_WORDS); in vrfy_vectors()
[all …]
/Zephyr-latest/drivers/ipm/
Dipm_ivshmem.c36 struct k_poll_signal sig; in ivshmem_ipm_event_loop_thread() local
40 &sig), in ivshmem_ipm_event_loop_thread()
47 k_poll_signal_init(&sig); in ivshmem_ipm_event_loop_thread()
48 int ret = ivshmem_register_handler(dev_cfg->ivshmem_dev, &sig, 0); in ivshmem_ipm_event_loop_thread()
59 k_poll_signal_check(&sig, &poll_signaled, &ivshmem_vector_rx); in ivshmem_ipm_event_loop_thread()
61 k_poll_signal_reset(&sig); in ivshmem_ipm_event_loop_thread()
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/
Dthread_flags.c59 int sig, key; in osThreadFlagsClear() local
75 sig = tid->signal_results; in osThreadFlagsClear()
79 return sig; in osThreadFlagsClear()
90 uint32_t sig; in osThreadFlagsWait() local
172 sig = tid->signal_results; in osThreadFlagsWait()
181 return sig; in osThreadFlagsWait()
Devent_flags.c88 uint32_t sig; in osEventFlagsClear() local
95 sig = events->signal_results; in osEventFlagsClear()
99 return sig; in osEventFlagsClear()
110 uint32_t sig; in osEventFlagsWait() local
149 sig = events->signal_results; in osEventFlagsWait()
205 return sig; in osEventFlagsWait()
/Zephyr-latest/drivers/mbox/
Dmbox_ivshmem.c37 struct k_poll_signal sig; in ivshmem_mbox_event_loop_thread() local
39 K_POLL_EVENT_INITIALIZER(K_POLL_TYPE_SIGNAL, K_POLL_MODE_NOTIFY_ONLY, &sig), in ivshmem_mbox_event_loop_thread()
46 k_poll_signal_init(&sig); in ivshmem_mbox_event_loop_thread()
47 int ret = ivshmem_register_handler(dev_cfg->ivshmem_dev, &sig, 0); in ivshmem_mbox_event_loop_thread()
58 k_poll_signal_check(&sig, &poll_signaled, &ivshmem_vector_rx); in ivshmem_mbox_event_loop_thread()
60 k_poll_signal_reset(&sig); in ivshmem_mbox_event_loop_thread()
/Zephyr-latest/subsys/portability/cmsis_rtos_v1/
Dcmsis_signal.c22 int sig, key; in osSignalSet() local
34 sig = thread_def->signal_results; in osSignalSet()
40 return sig; in osSignalSet()
48 int sig, key; in osSignalClear() local
60 sig = thread_def->signal_results; in osSignalClear()
64 return sig; in osSignalClear()
/Zephyr-latest/drivers/spi/
Dspi_signal.c23 struct k_poll_signal *sig = userdata; in z_spi_transfer_signal_cb() local
25 k_poll_signal_raise(sig, result); in z_spi_transfer_signal_cb()
/Zephyr-latest/samples/bluetooth/encrypted_advertising/include/
Dcommon.h23 static inline void await_signal(struct k_poll_signal *sig) in await_signal() argument
26 K_POLL_EVENT_INITIALIZER(K_POLL_TYPE_SIGNAL, K_POLL_MODE_NOTIFY_ONLY, sig), in await_signal()
/Zephyr-latest/subsys/jwt/
Djwt.c190 unsigned char sig[JWT_SIGNATURE_LEN]; in jwt_sign() local
192 ret = jwt_sign_impl(builder, der_key, der_key_len, sig, sizeof(sig)); in jwt_sign()
198 base64_append_bytes(sig, sizeof(sig), builder); in jwt_sign()
Djwt_legacy_rsa.c29 unsigned char *sig, size_t sig_size) in jwt_sign_impl() argument
53 res = mbedtls_pk_sign(&ctx, MBEDTLS_MD_SHA256, hash, sizeof(hash), sig, sig_size, in jwt_sign_impl()
Djwt_psa.c18 unsigned char *sig, size_t sig_size) in jwt_sign_impl() argument
45 sig, sig_size, &sig_len_out); in jwt_sign_impl()
/Zephyr-latest/tests/lib/notify/src/
Dmain.c102 struct k_poll_signal sig; in ZTEST() local
112 k_poll_signal_init(&sig); in ZTEST()
113 k_poll_signal_check(&sig, &rc, &res); in ZTEST()
117 sys_notify_init_signal(&notify, &sig); in ZTEST()
124 sys_notify_init_signal(&notify, &sig); in ZTEST()
134 zassert_equal(notify.method.signal, &sig, in ZTEST()
156 k_poll_signal_check(&sig, &rc, &res); in ZTEST()
/Zephyr-latest/drivers/lora/
Dsx12xx_common.c103 struct k_poll_signal *sig = dev_data.operation_done; in sx12xx_ev_rx_done() local
153 k_poll_signal_raise(sig, 0); in sx12xx_ev_rx_done()
158 struct k_poll_signal *sig = dev_data.operation_done; in sx12xx_ev_tx_done() local
162 if (sig) { in sx12xx_ev_tx_done()
163 k_poll_signal_raise(sig, 0); in sx12xx_ev_tx_done()
176 struct k_poll_signal *sig = dev_data.operation_done; in sx12xx_ev_rx_error() local
189 if (sig) { in sx12xx_ev_rx_error()
190 k_poll_signal_raise(sig, -EIO); in sx12xx_ev_rx_error()
/Zephyr-latest/samples/bluetooth/hci_uart_async/src/
Dhci_uart_async.c56 struct k_poll_signal *sig = &uart_c2h_tx_sig; in uart_c2h_tx() local
58 K_POLL_EVENT_INITIALIZER(K_POLL_TYPE_SIGNAL, K_POLL_MODE_NOTIFY_ONLY, sig), in uart_c2h_tx()
61 k_poll_signal_reset(sig); in uart_c2h_tx()
124 struct k_poll_signal *sig = &uart_h2c_rx_sig; in uart_h2c_rx() local
126 K_POLL_EVENT_INITIALIZER(K_POLL_TYPE_SIGNAL, K_POLL_MODE_NOTIFY_ONLY, sig), in uart_h2c_rx()
129 k_poll_signal_reset(sig); in uart_h2c_rx()
138 return sig->result; in uart_h2c_rx()
/Zephyr-latest/samples/sensor/qdec/boards/
Desp32s3_devkitm_procpu.overlay36 sig-pos-mode = <2>;
37 sig-neg-mode = <1>;
Desp32s3_luatos_core_procpu.overlay36 sig-pos-mode = <2>;
37 sig-neg-mode = <1>;
Desp32s3_luatos_core_procpu_usb.overlay36 sig-pos-mode = <2>;
37 sig-neg-mode = <1>;
/Zephyr-latest/tests/posix/headers/src/
Dsignal_h.c168 zassert_not_equal(((sigset_t){.sig[0] = 0}).sig[0], ((sigset_t){.sig[0] = -1}).sig[0]); in ZTEST()
/Zephyr-latest/scripts/coredump/gdbstubs/arch/
Dx86.py121 sig = self.GDB_SIGNAL_DEFAULT
125 sig = self.GDB_SIGNAL_DEFAULT
129 sig = self.GDB_SIGNAL_MAPPING[vector]
131 self.gdb_signal = sig

123