Home
last modified time | relevance | path

Searched refs:lock (Results 176 – 200 of 483) sorted by relevance

12345678910>>...20

/Zephyr-latest/subsys/net/lib/sockets/
Dsockets.c23 struct k_mutex *lock; \
27 obj = get_sock_vtable(sock, &vtable, &lock); \
38 (void)k_mutex_lock(lock, K_FOREVER); \
42 k_mutex_unlock(lock); \
49 struct k_mutex **lock) in get_sock_vtable() argument
55 lock); in get_sock_vtable()
161 struct k_mutex *lock; in z_vrfy_zsock_close() local
164 ctx = get_sock_vtable(sock, &vtable, &lock); in z_vrfy_zsock_close()
178 struct k_mutex *lock; in z_impl_zsock_shutdown() local
184 ctx = get_sock_vtable(sock, &vtable, &lock); in z_impl_zsock_shutdown()
[all …]
Dsockets_service.c25 static K_MUTEX_DEFINE(lock);
59 k_mutex_lock(&lock, K_FOREVER); in z_impl_net_socket_service_register()
62 (void)k_condvar_wait(&wait_start, &lock, K_FOREVER); in z_impl_net_socket_service_register()
96 k_mutex_unlock(&lock); in z_impl_net_socket_service_register()
224 k_mutex_lock(&lock, K_FOREVER); in socket_service_thread()
233 k_mutex_unlock(&lock); in socket_service_thread()
/Zephyr-latest/drivers/mfd/
Dmfd_bd8lb600fs.c39 struct k_mutex lock; member
166 k_mutex_lock(&data->lock, K_FOREVER); in mfd_bd8lb600fs_set_outputs()
169 k_mutex_unlock(&data->lock); in mfd_bd8lb600fs_set_outputs()
180 k_mutex_lock(&data->lock, K_FOREVER); in mfd_bd8lb600fs_get_output_diagnostics()
184 k_mutex_unlock(&data->lock); in mfd_bd8lb600fs_get_output_diagnostics()
204 int result = k_mutex_init(&data->lock); in bd8lb600fs_init()
/Zephyr-latest/drivers/i2c/
Di2c_mcux.c38 struct k_sem lock; member
83 k_sem_take(&data->lock, K_FOREVER); in i2c_mcux_configure()
85 k_sem_give(&data->lock); in i2c_mcux_configure()
153 k_sem_take(&data->lock, K_FOREVER); in i2c_mcux_transfer()
208 k_sem_give(&data->lock); in i2c_mcux_transfer()
228 k_sem_give(&data->lock); in i2c_mcux_async_done()
281 int res = k_sem_take(&data->lock, K_NO_WAIT); in i2c_mcux_transfer_cb()
319 k_sem_init(&data->lock, 1, 1); in i2c_mcux_init()
Di2c_tca954x.c24 struct k_mutex lock; member
87 res = k_mutex_lock(&data->lock, K_MSEC(5000)); in tca954x_transfer()
100 k_mutex_unlock(&data->lock); in tca954x_transfer()
191 .lock = Z_MUTEX_INITIALIZER(tca##n##a_data_##inst.lock), \
Di2c_sc18im704.c29 struct k_mutex lock; member
37 return k_mutex_lock(&data->lock, K_FOREVER); in sc18im704_claim()
44 return k_mutex_unlock(&data->lock); in sc18im704_release()
55 ret = k_mutex_lock(&data->lock, K_FOREVER); in sc18im704_transfer()
86 k_mutex_unlock(&data->lock); in sc18im704_transfer()
250 k_mutex_init(&data->lock); in i2c_sc18im_init()
Di2c_numaker.c71 struct k_sem lock; member
285 k_sem_take(&data->lock, K_FOREVER); in i2c_numaker_configure()
304 k_sem_give(&data->lock); in i2c_numaker_configure()
317 k_sem_take(&data->lock, K_FOREVER); in i2c_numaker_get_config()
319 k_sem_give(&data->lock); in i2c_numaker_get_config()
341 k_sem_take(&data->lock, K_FOREVER); in i2c_numaker_transfer()
400 k_sem_give(&data->lock); in i2c_numaker_transfer()
423 k_sem_take(&data->lock, K_FOREVER); in i2c_numaker_slave_register()
447 k_sem_give(&data->lock); in i2c_numaker_slave_register()
464 k_sem_take(&data->lock, K_FOREVER); in i2c_numaker_slave_unregister()
[all …]
/Zephyr-latest/drivers/gpio/
Dgpio_pca95xx.c95 struct k_sem lock; member
493 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca95xx_config()
510 k_sem_give(&drv_data->lock); in gpio_pca95xx_config()
526 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca95xx_port_get_raw()
536 k_sem_give(&drv_data->lock); in gpio_pca95xx_port_get_raw()
553 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca95xx_port_set_masked_raw()
560 k_sem_give(&drv_data->lock); in gpio_pca95xx_port_set_masked_raw()
590 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca95xx_port_toggle_bits()
597 k_sem_give(&drv_data->lock); in gpio_pca95xx_port_toggle_bits()
631 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca95xx_interrupt_worker()
[all …]
Dgpio_nct38xx_alert.c23 struct k_sem *lock; member
64 k_sem_take(mfd->lock, K_FOREVER); in nct38xx_alert_is_active()
85 k_sem_give(mfd->lock); in nct38xx_alert_is_active()
131 data->mfd[i].lock = mfd_nct38xx_get_lock_reference(config->nct38xx_dev[i]); in nct38xx_alert_init()
/Zephyr-latest/drivers/rtc/
Drtc_smartbond.c98 struct k_mutex lock; member
229 k_mutex_lock(&data->lock, K_FOREVER); in rtc_smartbond_set_time()
255 k_mutex_unlock(&data->lock); in rtc_smartbond_set_time()
273 k_mutex_lock(&data->lock, K_FOREVER); in rtc_smartbond_get_time()
281 k_mutex_unlock(&data->lock); in rtc_smartbond_get_time()
437 k_mutex_lock(&data->lock, K_FOREVER); in rtc_smartbond_alarm_set_time()
467 k_mutex_unlock(&data->lock); in rtc_smartbond_alarm_set_time()
491 k_mutex_lock(&data->lock, K_FOREVER); in rtc_smartbond_alarm_get_time()
497 k_mutex_unlock(&data->lock); in rtc_smartbond_alarm_get_time()
533 k_mutex_lock(&data->lock, K_FOREVER); in rtc_smartbond_alarm_set_callback()
[all …]
Drtc_ll_stm32.c135 struct k_mutex lock; member
353 k_mutex_init(&data->lock); in rtc_stm32_init()
393 k_mutex_lock(&data->lock, K_FOREVER); in rtc_stm32_init()
396 k_mutex_unlock(&data->lock); in rtc_stm32_init()
420 err = k_mutex_lock(&data->lock, K_NO_WAIT); in rtc_stm32_set_time()
461 k_mutex_unlock(&data->lock); in rtc_stm32_set_time()
491 int err = k_mutex_lock(&data->lock, K_NO_WAIT); in rtc_stm32_get_time()
502 k_mutex_unlock(&data->lock); in rtc_stm32_get_time()
522 k_mutex_unlock(&data->lock); in rtc_stm32_get_time()
724 k_mutex_lock(&data->lock, K_FOREVER); in rtc_stm32_alarm_get_time()
[all …]
/Zephyr-latest/subsys/logging/frontends/
Dlog_frontend_stmesp.c52 static struct k_spinlock lock; variable
384 k_spinlock_key_t key = k_spin_lock(&lock); in log_frontend_msg()
389 k_spin_unlock(&lock, key); in log_frontend_msg()
401 k_spin_unlock(&lock, key); in log_frontend_msg()
438 key = k_spin_lock(&lock); in log_frontend_msg()
447 k_spin_unlock(&lock, key); in log_frontend_msg()
505 key = k_spin_lock(&lock); in log_frontend_simple_0()
508 k_spin_unlock(&lock, key); in log_frontend_simple_0()
533 key = k_spin_lock(&lock); in log_frontend_simple_1()
537 k_spin_unlock(&lock, key); in log_frontend_simple_1()
[all …]
/Zephyr-latest/drivers/ieee802154/
Dieee802154_cc13xx_cc26xx_subg.c420 if (k_sem_take(&drv_data->lock, LOCK_TIMEOUT)) { in cmd_prop_rx_adv_callback()
425 k_sem_give(&drv_data->lock); in cmd_prop_rx_adv_callback()
458 if (k_sem_take(&drv_data->lock, LOCK_TIMEOUT)) { in ieee802154_cc13xx_cc26xx_subg_cca()
513 k_sem_give(&drv_data->lock); in ieee802154_cc13xx_cc26xx_subg_cca()
586 if (k_sem_take(&drv_data->lock, LOCK_TIMEOUT)) { in ieee802154_cc13xx_cc26xx_subg_set_channel()
618 k_sem_give(&drv_data->lock); in ieee802154_cc13xx_cc26xx_subg_set_channel()
657 if (k_sem_take(&drv_data->lock, LOCK_TIMEOUT)) { in ieee802154_cc13xx_cc26xx_subg_set_txpower()
665 k_sem_give(&drv_data->lock); in ieee802154_cc13xx_cc26xx_subg_set_txpower()
689 if (k_sem_take(&drv_data->lock, K_FOREVER)) { in ieee802154_cc13xx_cc26xx_subg_tx()
733 k_sem_give(&drv_data->lock); in ieee802154_cc13xx_cc26xx_subg_tx()
[all …]
/Zephyr-latest/drivers/stepper/step_dir/
Dstep_dir_stepper_common.c170 K_SPINLOCK(&data->lock) { in stepper_handle_timing_signal()
236 K_SPINLOCK(&data->lock) { in step_dir_stepper_common_move_by()
262 K_SPINLOCK(&data->lock) { in step_dir_stepper_common_set_max_velocity()
274 K_SPINLOCK(&data->lock) { in step_dir_stepper_common_set_reference_position()
285 K_SPINLOCK(&data->lock) { in step_dir_stepper_common_get_actual_position()
302 K_SPINLOCK(&data->lock) { in step_dir_stepper_common_move_to()
327 K_SPINLOCK(&data->lock) { in step_dir_stepper_common_run()
/Zephyr-latest/subsys/sd/
Dsdio.c796 ret = k_mutex_lock(&func->card->lock, K_MSEC(CONFIG_SD_DATA_TIMEOUT)); in sdio_read_byte()
802 k_mutex_unlock(&func->card->lock); in sdio_read_byte()
826 ret = k_mutex_lock(&func->card->lock, K_MSEC(CONFIG_SD_DATA_TIMEOUT)); in sdio_write_byte()
833 k_mutex_unlock(&func->card->lock); in sdio_write_byte()
859 ret = k_mutex_lock(&func->card->lock, K_MSEC(CONFIG_SD_DATA_TIMEOUT)); in sdio_rw_byte()
866 k_mutex_unlock(&func->card->lock); in sdio_rw_byte()
893 ret = k_mutex_lock(&func->card->lock, K_MSEC(CONFIG_SD_DATA_TIMEOUT)); in sdio_read_fifo()
900 k_mutex_unlock(&func->card->lock); in sdio_read_fifo()
927 ret = k_mutex_lock(&func->card->lock, K_MSEC(CONFIG_SD_DATA_TIMEOUT)); in sdio_write_fifo()
934 k_mutex_unlock(&func->card->lock); in sdio_write_fifo()
[all …]
/Zephyr-latest/tests/benchmarks/sched/src/
Dmain.c61 static struct k_spinlock lock; variable
93 k_spinlock_key_t key = k_spin_lock(&lock); in partner_fn()
95 z_pend_curr(&lock, key, &waitq, K_FOREVER); in partner_fn()
/Zephyr-latest/drivers/timer/
Dite_it8xxx2_timer.c76 static struct k_spinlock lock; variable
231 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
246 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
279 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
292 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
301 k_spin_unlock(&lock, key); in sys_clock_elapsed()
/Zephyr-latest/subsys/net/lib/dns/
Ddispatcher.c21 static K_MUTEX_DEFINE(lock);
134 k_mutex_lock(&dispatcher->lock, K_FOREVER); in recv_data()
182 k_mutex_unlock(&dispatcher->lock); in recv_data()
205 k_mutex_lock(&lock, K_FOREVER); in dns_dispatcher_register()
324 k_mutex_unlock(&lock); in dns_dispatcher_register()
333 k_mutex_lock(&lock, K_FOREVER); in dns_dispatcher_unregister()
352 k_mutex_unlock(&lock); in dns_dispatcher_unregister()
/Zephyr-latest/soc/intel/intel_adsp/common/
Dclk.c18 static struct k_spinlock lock; variable
66 k = k_spin_lock(&lock); in adsp_clock_set_cpu_freq()
76 k_spin_unlock(&lock, k); in adsp_clock_set_cpu_freq()
/Zephyr-latest/drivers/counter/
Dcounter_cmos.c76 static struct k_spinlock lock; in read_register() local
80 k = k_spin_lock(&lock); in read_register()
83 k_spin_unlock(&lock, k); in read_register()
/Zephyr-latest/tests/subsys/rtio/rtio_api/src/
Drtio_iodev_test.h30 struct k_spinlock lock; member
36 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtio_iodev_test_next()
59 k_spin_unlock(&data->lock, key); in rtio_iodev_test_next()
/Zephyr-latest/drivers/flash/
Dflash_sam.c50 struct k_spinlock lock; member
223 key = k_spin_lock(&sam_data->lock); in sam_flash_read()
225 k_spin_unlock(&sam_data->lock, key); in sam_flash_read()
288 key = k_spin_lock(&sam_data->lock); in sam_flash_write()
290 k_spin_unlock(&sam_data->lock, key); in sam_flash_write()
294 k_spin_unlock(&sam_data->lock, key); in sam_flash_write()
436 key = k_spin_lock(&sam_data->lock); in sam_flash_erase()
442 k_spin_unlock(&sam_data->lock, key); in sam_flash_erase()
446 k_spin_unlock(&sam_data->lock, key); in sam_flash_erase()
/Zephyr-latest/drivers/pwm/
Dpwm_mcux_qtmr.c32 struct k_mutex lock; member
68 k_mutex_lock(&data->lock, K_FOREVER); in mcux_qtmr_pwm_set_cycles()
108 k_mutex_unlock(&data->lock); in mcux_qtmr_pwm_set_cycles()
140 k_mutex_init(&data->lock); in mcux_qtmr_pwm_init()
/Zephyr-latest/drivers/w1/
Dw1_ds2482-800.h12 int ds2482_change_bus_lock_impl(const struct device *dev, bool lock);
/Zephyr-latest/drivers/entropy/
Dentropy_cc13xx_cc26xx.c31 struct k_sem lock; member
113 k_sem_take(&data->lock, K_FOREVER); in entropy_cc13xx_cc26xx_get_entropy()
115 k_sem_give(&data->lock); in entropy_cc13xx_cc26xx_get_entropy()
343 .lock = Z_SEM_INITIALIZER(entropy_cc13xx_cc26xx_data.lock, 1, 1),

12345678910>>...20