Home
last modified time | relevance | path

Searched refs:lock (Results 101 – 125 of 483) sorted by relevance

12345678910>>...20

/Zephyr-latest/drivers/timer/
Dmcux_os_timer.c31 static struct k_spinlock lock; variable
52 k_spinlock_key_t key = k_spin_lock(&lock); in mcux_lpc_ostick_isr()
70 k_spin_unlock(&lock, key); in mcux_lpc_ostick_isr()
201 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
220 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
230 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
234 k_spin_unlock(&lock, key); in sys_clock_elapsed()
Driscv_machine_timer.c108 static struct k_spinlock lock; variable
171 k_spinlock_key_t key = k_spin_lock(&lock); in timer_isr()
187 k_spin_unlock(&lock, key); in timer_isr()
199 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
212 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
221 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
227 k_spin_unlock(&lock, key); in sys_clock_elapsed()
Dcc13xx_cc26xx_rtc_timer.c62 static struct k_spinlock lock; variable
109 k_spinlock_key_t key = k_spin_lock(&lock); in rtc_isr()
114 k_spin_unlock(&lock, key); in rtc_isr()
199 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
215 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
Dapic_tsc.c90 static struct k_spinlock lock; variable
132 k_spinlock_key_t key = k_spin_lock(&lock); in isr()
147 k_spin_unlock(&lock, key); in isr()
159 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
184 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
193 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
199 k_spin_unlock(&lock, key); in sys_clock_elapsed()
Dstm32_lptim_timer.c83 static struct k_spinlock lock; variable
136 k_spinlock_key_t key = k_spin_lock(&lock); in lptim_irq_handler()
148 k_spin_unlock(&lock, key); in lptim_irq_handler()
284 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
297 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
329 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
361 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
365 k_spin_unlock(&lock, key); in sys_clock_elapsed()
379 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_32()
388 k_spin_unlock(&lock, key); in sys_clock_cycle_get_32()
/Zephyr-latest/drivers/gpio/
Dgpio_pca953x.c56 struct k_sem lock; member
119 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca953x_handle_interrupt()
145 k_sem_give(&drv_data->lock); in gpio_pca953x_handle_interrupt()
212 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca953x_config()
247 k_sem_give(&drv_data->lock); in gpio_pca953x_config()
264 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca953x_port_read()
276 k_sem_give(&drv_data->lock); in gpio_pca953x_port_read()
297 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca953x_port_write()
308 k_sem_give(&drv_data->lock); in gpio_pca953x_port_write()
358 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca953x_pin_interrupt_configure()
[all …]
Dgpio_fxl6408.c55 struct k_sem lock; member
275 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_fxl6408_pin_config()
290 k_sem_give(&drv_data->lock); in gpio_fxl6408_pin_config()
306 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_fxl6408_port_get_raw()
315 k_sem_give(&drv_data->lock); in gpio_fxl6408_port_get_raw()
332 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_fxl6408_port_set_masked_raw()
339 k_sem_give(&drv_data->lock); in gpio_fxl6408_port_set_masked_raw()
369 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_fxl6408_port_toggle_bits()
375 k_sem_give(&drv_data->lock); in gpio_fxl6408_port_toggle_bits()
391 k_sem_init(&drv_data->lock, 1, 1); in gpio_fxl6408_init()
/Zephyr-latest/kernel/
Dqueue.c61 queue->lock = (struct k_spinlock) {}; in z_impl_k_queue_init()
101 k_spinlock_key_t key = k_spin_lock(&queue->lock); in z_impl_k_queue_cancel_wait()
111 z_reschedule(&queue->lock, key); in z_impl_k_queue_cancel_wait()
127 k_spinlock_key_t key = k_spin_lock(&queue->lock); in queue_insert()
140 z_reschedule(&queue->lock, key); in queue_insert()
153 k_spin_unlock(&queue->lock, key); in queue_insert()
171 z_reschedule(&queue->lock, key); in queue_insert()
258 k_spinlock_key_t key = k_spin_lock(&queue->lock); in k_queue_append_list()
278 z_reschedule(&queue->lock, key); in k_queue_append_list()
319 k_spinlock_key_t key = k_spin_lock(&queue->lock); in z_impl_k_queue_get()
[all …]
/Zephyr-latest/drivers/eeprom/
Deeprom_mb85rcxx.c29 struct k_mutex lock; member
77 k_mutex_init(&data->lock); in mb85rcxx_init()
114 k_mutex_lock(&data->lock, K_FOREVER); in mb85rcxx_read()
124 k_mutex_unlock(&data->lock); in mb85rcxx_read()
133 k_mutex_unlock(&data->lock); in mb85rcxx_read()
179 k_mutex_lock(&data->lock, K_FOREVER); in mb85rcxx_write()
188 k_mutex_unlock(&data->lock); in mb85rcxx_write()
197 k_mutex_unlock(&data->lock); in mb85rcxx_write()
/Zephyr-latest/drivers/i3c/
Di3c_rtio.c61 k_sem_init(&ctx->lock, 1, 1); in i3c_rtio_init()
135 k_sem_take(&ctx->lock, K_FOREVER); in i3c_rtio_transfer()
156 k_sem_give(&ctx->lock); in i3c_rtio_transfer()
168 k_sem_take(&ctx->lock, K_FOREVER); in i3c_rtio_configure()
189 k_sem_give(&ctx->lock); in i3c_rtio_configure()
201 k_sem_take(&ctx->lock, K_FOREVER); in i3c_rtio_ccc()
221 k_sem_give(&ctx->lock); in i3c_rtio_ccc()
233 k_sem_take(&ctx->lock, K_FOREVER); in i3c_rtio_recover()
252 k_sem_give(&ctx->lock); in i3c_rtio_recover()
/Zephyr-latest/subsys/net/ip/
Dicmp.c44 static K_MUTEX_DEFINE(lock);
66 k_mutex_lock(&lock, K_FOREVER); in net_icmp_init_ctx()
70 k_mutex_unlock(&lock); in net_icmp_init_ctx()
84 k_mutex_lock(&lock, K_FOREVER); in set_offload_handler()
97 k_mutex_unlock(&lock); in set_offload_handler()
106 k_mutex_lock(&lock, K_FOREVER); in net_icmp_cleanup_ctx()
110 k_mutex_unlock(&lock); in net_icmp_cleanup_ctx()
394 k_mutex_lock(&lock, K_FOREVER); in get_offloaded_ping_handler()
408 k_mutex_unlock(&lock); in get_offloaded_ping_handler()
511 k_mutex_lock(&lock, K_FOREVER); in icmp_call_handlers()
[all …]
Dipv4_acd.c28 static K_MUTEX_DEFINE(lock);
220 k_mutex_lock(&lock, K_FOREVER); in ipv4_acd_timeout()
233 k_mutex_unlock(&lock); in ipv4_acd_timeout()
272 k_mutex_lock(&lock, K_FOREVER); in net_ipv4_acd_input()
312 k_mutex_unlock(&lock); in net_ipv4_acd_input()
318 k_mutex_unlock(&lock); in net_ipv4_acd_input()
391 k_mutex_lock(&lock, K_FOREVER); in net_ipv4_acd_start()
399 k_mutex_unlock(&lock); in net_ipv4_acd_start()
414 k_mutex_lock(&lock, K_FOREVER); in net_ipv4_acd_cancel()
419 k_mutex_unlock(&lock); in net_ipv4_acd_cancel()
/Zephyr-latest/tests/posix/common/src/
Dpthread.c29 static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; variable
71 pthread_mutex_lock(&lock); in thread_top_exec()
73 if (!pthread_mutex_trylock(&lock)) { in thread_top_exec()
78 pthread_mutex_unlock(&lock); in thread_top_exec()
82 pthread_mutex_lock(&lock); in thread_top_exec()
90 zassert_equal(0, pthread_cond_wait(&cvar0, &lock), ""); in thread_top_exec()
92 pthread_mutex_unlock(&lock); in thread_top_exec()
94 pthread_mutex_lock(&lock); in thread_top_exec()
106 pthread_mutex_unlock(&lock); in thread_top_exec()
114 pthread_mutex_unlock(&lock); in thread_top_exec()
[all …]
/Zephyr-latest/drivers/dma/
Ddma_emul.c64 struct k_spinlock lock; member
214 key = k_spin_lock(&data->lock); in dma_emul_work_handler()
221 k_spin_unlock(&data->lock, key); in dma_emul_work_handler()
228 key = k_spin_lock(&data->lock); in dma_emul_work_handler()
237 k_spin_unlock(&data->lock, key); in dma_emul_work_handler()
245 key = k_spin_lock(&data->lock); in dma_emul_work_handler()
247 k_spin_unlock(&data->lock, key); in dma_emul_work_handler()
272 key = k_spin_lock(&data->lock); in dma_emul_work_handler()
274 k_spin_unlock(&data->lock, key); in dma_emul_work_handler()
365 key = k_spin_lock(&data->lock); in dma_emul_configure()
[all …]
/Zephyr-latest/lib/os/
Dmpsc_pbuf.c301 key = k_spin_lock(&buffer->lock); in mpsc_pbuf_put_word()
324 k_spin_unlock(&buffer->lock, key); in mpsc_pbuf_put_word()
357 key = k_spin_lock(&buffer->lock); in mpsc_pbuf_alloc()
379 k_spin_unlock(&buffer->lock, key); in mpsc_pbuf_alloc()
381 key = k_spin_lock(&buffer->lock); in mpsc_pbuf_alloc()
388 k_spin_unlock(&buffer->lock, key); in mpsc_pbuf_alloc()
415 k_spinlock_key_t key = k_spin_lock(&buffer->lock); in mpsc_pbuf_commit()
420 k_spin_unlock(&buffer->lock, key); in mpsc_pbuf_commit()
440 key = k_spin_lock(&buffer->lock); in mpsc_pbuf_put_word_ext()
468 k_spin_unlock(&buffer->lock, key); in mpsc_pbuf_put_word_ext()
[all …]
/Zephyr-latest/drivers/retained_mem/
Dretained_mem_zephyr_reg.c22 struct k_mutex lock; member
36 k_mutex_lock(&data->lock, K_FOREVER); in zephyr_retained_mem_reg_lock_take()
47 k_mutex_unlock(&data->lock); in zephyr_retained_mem_reg_lock_release()
58 k_mutex_init(&data->lock); in zephyr_retained_mem_reg_init()
/Zephyr-latest/tests/kernel/spinlock/src/
Dspinlock_fairness.c24 static struct k_spinlock lock; variable
55 k_spinlock_key_t spinlock_key = k_spin_lock(&lock); in test_thread()
58 k_spin_unlock(&lock, spinlock_key); in test_thread()
73 k_spin_unlock(&lock, spinlock_key); in test_thread()
/Zephyr-latest/drivers/serial/
Duart_renesas_ra.c41 struct k_spinlock lock; member
233 k_spinlock_key_t key = k_spin_lock(&data->lock); in uart_ra_poll_in()
248 k_spin_unlock(&data->lock, key); in uart_ra_poll_in()
257 k_spinlock_key_t key = k_spin_lock(&data->lock); in uart_ra_poll_out()
275 k_spin_unlock(&data->lock, key); in uart_ra_poll_out()
286 key = k_spin_lock(&data->lock); in uart_ra_err_check()
304 k_spin_unlock(&data->lock, key); in uart_ra_err_check()
321 key = k_spin_lock(&data->lock); in uart_ra_configure()
361 k_spin_unlock(&data->lock, key); in uart_ra_configure()
436 key = k_spin_lock(&data->lock); in uart_ra_fifo_fill()
[all …]
Duart_ns16550.c363 struct k_spinlock lock; member
580 k_spinlock_key_t key = k_spin_lock(&dev_data->lock);
727 k_spin_unlock(&dev_data->lock, key);
899 k_spinlock_key_t key = k_spin_lock(&data->lock);
903 k_spin_unlock(&data->lock, key);
925 k_spinlock_key_t key = k_spin_lock(&data->lock);
932 k_spin_unlock(&data->lock, key);
947 k_spinlock_key_t key = k_spin_lock(&data->lock);
950 k_spin_unlock(&data->lock, key);
973 k_spinlock_key_t key = k_spin_lock(&data->lock);
[all …]
/Zephyr-latest/drivers/counter/
Drtc_mcp7940n.c57 struct k_sem lock; member
351 k_sem_take(&data->lock, K_FOREVER); in mcp7940n_handle_interrupt()
370 k_sem_give(&data->lock); in mcp7940n_handle_interrupt()
409 k_sem_take(&data->lock, K_FOREVER); in mcp7940n_rtc_set_time()
427 k_sem_give(&data->lock); in mcp7940n_rtc_set_time()
437 k_sem_take(&data->lock, K_FOREVER); in mcp7940n_counter_start()
444 k_sem_give(&data->lock); in mcp7940n_counter_start()
454 k_sem_take(&data->lock, K_FOREVER); in mcp7940n_counter_stop()
461 k_sem_give(&data->lock); in mcp7940n_counter_stop()
473 k_sem_take(&data->lock, K_FOREVER); in mcp7940n_counter_get_value()
[all …]
/Zephyr-latest/include/zephyr/net/prometheus/
Dcollector.h56 struct k_mutex lock; member
80 .lock = Z_MUTEX_INITIALIZER(_name.lock), \
/Zephyr-latest/arch/common/
Dshared_irq.c38 static struct k_spinlock lock; variable
60 key = k_spin_lock(&lock); in z_isr_install()
73 k_spin_unlock(&lock, key); in z_isr_install()
103 k_spin_unlock(&lock, key); in z_isr_install()
180 key = k_spin_lock(&lock); in z_isr_uninstall()
207 k_spin_unlock(&lock, key); in z_isr_uninstall()
/Zephyr-latest/subsys/sd/
Dsd.c249 ret = k_mutex_init(&card->lock); in sd_init()
254 ret = k_mutex_lock(&card->lock, K_MSEC(CONFIG_SD_INIT_TIMEOUT)); in sd_init()
263 k_mutex_unlock(&card->lock); in sd_init()
286 k_mutex_unlock(&card->lock); in sd_init()
292 k_mutex_unlock(&card->lock); in sd_init()
297 k_mutex_unlock(&card->lock); in sd_init()
304 ret = k_mutex_unlock(&card->lock); in sd_init()
/Zephyr-latest/arch/arc/core/
Dthread.c24 static struct k_spinlock lock; variable
309 k_spinlock_key_t key = k_spin_lock(&lock); in arc_dsp_disable()
314 k_spin_unlock(&lock, key); in arc_dsp_disable()
320 k_spinlock_key_t key = k_spin_lock(&lock); in arc_dsp_enable()
325 k_spin_unlock(&lock, key); in arc_dsp_enable()
335 key = k_spin_lock(&lock); in arc_vpx_lock()
341 k_spin_unlock(&lock, key); in arc_vpx_lock()
356 key = k_spin_lock(&lock); in arc_vpx_unlock()
361 k_spin_unlock(&lock, key); in arc_vpx_unlock()
/Zephyr-latest/drivers/stepper/
Dgpio_stepper_controller.c33 struct k_spinlock lock; member
166 K_SPINLOCK(&data->lock) { in stepper_work_step_handler()
194 K_SPINLOCK(&data->lock) { in gpio_stepper_move_by()
207 K_SPINLOCK(&data->lock) { in gpio_stepper_set_reference_position()
217 K_SPINLOCK(&data->lock) { in gpio_stepper_get_actual_position()
236 K_SPINLOCK(&data->lock) { in gpio_stepper_move_to()
268 K_SPINLOCK(&data->lock) { in gpio_stepper_set_max_velocity()
285 K_SPINLOCK(&data->lock) { in gpio_stepper_run()
303 K_SPINLOCK(&data->lock) { in gpio_stepper_set_micro_step_res()
330 K_SPINLOCK(&data->lock) { in gpio_stepper_set_event_callback()
[all …]

12345678910>>...20