/Zephyr-latest/lib/mem_blocks/ |
D | mem_blocks.c | 23 k_spinlock_key_t key = k_spin_lock(&mem_block->lock); in alloc_blocks() 30 k_spin_unlock(&mem_block->lock, key); in alloc_blocks() 43 k_spin_unlock(&mem_block->lock, key); in alloc_blocks() 73 k_spinlock_key_t key = k_spin_lock(&mem_block->lock); in free_blocks() 82 k_spin_unlock(&mem_block->lock, key); in free_blocks() 218 k_spinlock_key_t key = k_spin_lock(&mem_block->lock); in sys_mem_blocks_get() 226 k_spin_unlock(&mem_block->lock, key); in sys_mem_blocks_get() 239 k_spin_unlock(&mem_block->lock, key); in sys_mem_blocks_get() 468 key = k_spin_lock(&block->lock); in sys_mem_blocks_stats_raw() 472 k_spin_unlock(&block->lock, key); in sys_mem_blocks_stats_raw() [all …]
|
/Zephyr-latest/drivers/rtc/ |
D | rtc_am1805.c | 102 struct k_mutex lock; member 124 k_mutex_lock(&data->lock, K_FOREVER); in am1805_set_time() 155 k_mutex_unlock(&data->lock); in am1805_set_time() 170 k_mutex_lock(&data->lock, K_FOREVER); in am1805_get_time() 202 k_mutex_unlock(&data->lock); in am1805_get_time() 255 k_mutex_lock(&data->lock, K_FOREVER); in am1805_set_calibration() 271 k_mutex_unlock(&data->lock); in am1805_set_calibration() 286 k_mutex_lock(&data->lock, K_FOREVER); in am1805_get_calibration() 311 k_mutex_unlock(&data->lock); in am1805_get_calibration() 334 k_mutex_lock(&data->lock, K_FOREVER); in am1805_alarm_get_time() [all …]
|
D | rtc_sam.c | 52 struct k_spinlock lock; member 104 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_sam_set_time() 127 k_spin_unlock(&data->lock, key); in rtc_sam_set_time() 136 k_spin_unlock(&data->lock, key); in rtc_sam_set_time() 369 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_sam_alarm_set_time() 384 k_spin_unlock(&data->lock, key); in rtc_sam_alarm_set_time() 402 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_sam_alarm_get_time() 407 k_spin_unlock(&data->lock, key); in rtc_sam_alarm_get_time() 426 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_sam_alarm_is_pending() 429 k_spin_unlock(&data->lock, key); in rtc_sam_alarm_is_pending() [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_sx1509b.c | 68 struct k_sem lock; member 197 k_sem_take(&drv_data->lock, K_FOREVER); in sx1509b_handle_interrupt() 212 k_sem_give(&drv_data->lock); in sx1509b_handle_interrupt() 293 k_sem_take(&drv_data->lock, K_FOREVER); in sx1509b_config() 378 k_sem_give(&drv_data->lock); in sx1509b_config() 395 k_sem_take(&drv_data->lock, K_FOREVER); in port_get() 409 k_sem_give(&drv_data->lock); in port_get() 430 k_sem_take(&drv_data->lock, K_FOREVER); in port_write() 439 k_sem_give(&drv_data->lock); in port_write() 503 k_sem_take(&drv_data->lock, K_FOREVER); in pin_interrupt_configure() [all …]
|
D | gpio_nct38xx.c | 37 struct k_sem *lock; member 57 k_sem_take(data->lock, K_FOREVER); in nct38xx_init_interrupt() 90 k_sem_give(data->lock); in nct38xx_init_interrupt() 105 data->lock = mfd_nct38xx_get_lock_reference(config->mfd); in nct38xx_gpio_init()
|
D | gpio_adp5585.c | 102 k_sem_take(&parent_data->lock, K_FOREVER); in gpio_adp5585_config() 170 k_sem_give(&parent_data->lock); in gpio_adp5585_config() 193 k_sem_take(&parent_data->lock, K_FOREVER); in gpio_adp5585_port_read() 209 k_sem_give(&parent_data->lock); in gpio_adp5585_port_read() 233 k_sem_take(&parent_data->lock, K_FOREVER); in gpio_adp5585_port_write() 250 k_sem_give(&parent_data->lock); in gpio_adp5585_port_write() 308 k_sem_take(&parent_data->lock, K_FOREVER); in gpio_adp5585_pin_interrupt_configure() 333 k_sem_give(&parent_data->lock); in gpio_adp5585_pin_interrupt_configure() 356 k_sem_take(&parent_data->lock, K_FOREVER); in gpio_adp5585_irq_handler() 367 k_sem_give(&parent_data->lock); in gpio_adp5585_irq_handler() [all …]
|
/Zephyr-latest/drivers/wifi/esp_at/ |
D | esp_offload.c | 46 k_mutex_lock(&sock->lock, K_FOREVER); in _sock_connect() 49 k_mutex_unlock(&sock->lock); in _sock_connect() 142 k_mutex_lock(&sock->lock, K_FOREVER); in esp_connect_work() 146 k_mutex_unlock(&sock->lock); in esp_connect_work() 169 k_mutex_lock(&sock->lock, K_FOREVER); in esp_bind() 171 k_mutex_unlock(&sock->lock); in esp_bind() 203 k_mutex_lock(&sock->lock, K_FOREVER); in esp_connect() 207 k_mutex_unlock(&sock->lock); in esp_connect() 289 k_mutex_lock(&sock->lock, K_FOREVER); in _sock_send() 291 k_mutex_unlock(&sock->lock); in _sock_send() [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_smartbond.c | 100 struct k_spinlock lock; member 161 k_spinlock_key_t key = k_spin_lock(&data->lock); in uart_smartbond_poll_in() 167 k_spin_unlock(&data->lock, key); in uart_smartbond_poll_in() 174 k_spin_unlock(&data->lock, key); in uart_smartbond_poll_in() 183 k_spinlock_key_t key = k_spin_lock(&data->lock); in uart_smartbond_poll_out() 195 k_spin_unlock(&data->lock, key); in uart_smartbond_poll_out() 204 key = k_spin_lock(&data->lock); in apply_runtime_config() 230 k_spin_unlock(&data->lock, key); in apply_runtime_config() 481 k_spinlock_key_t key = k_spin_lock(&data->lock); in uart_smartbond_fifo_fill() 494 k_spin_unlock(&data->lock, key); in uart_smartbond_fifo_fill() [all …]
|
D | uart_rzt2m.c | 30 struct k_spinlock lock; member 46 k_spinlock_key_t key = k_spin_lock(&data->lock); in rzt2m_poll_in() 49 k_spin_unlock(&data->lock, key); in rzt2m_poll_in() 59 k_spin_unlock(&data->lock, key); in rzt2m_poll_in() 72 k_spinlock_key_t key = k_spin_lock(&data->lock); in rzt2m_poll_out() 85 k_spin_unlock(&data->lock, key); in rzt2m_poll_out() 116 k_spinlock_key_t key = k_spin_lock(&data->lock); in rzt2m_fifo_fill() 122 k_spin_unlock(&data->lock, key); in rzt2m_fifo_fill() 131 k_spinlock_key_t key = k_spin_lock(&data->lock); in rzt2m_fifo_read() 138 k_spin_unlock(&data->lock, key); in rzt2m_fifo_read() [all …]
|
/Zephyr-latest/subsys/net/lib/coap/ |
D | coap_server.c | 40 static K_MUTEX_DEFINE(lock); 158 (void)k_mutex_lock(&lock, K_FOREVER); in coap_server_process() 251 (void)k_mutex_unlock(&lock); in coap_server_process() 263 (void)k_mutex_lock(&lock, K_FOREVER); in coap_server_retransmit() 299 (void)k_mutex_unlock(&lock); in coap_server_retransmit() 383 k_mutex_lock(&lock, K_FOREVER); in coap_service_start() 460 k_mutex_unlock(&lock); in coap_service_start() 472 k_mutex_unlock(&lock); in coap_service_start() 486 k_mutex_lock(&lock, K_FOREVER); in coap_service_stop() 489 k_mutex_unlock(&lock); in coap_service_stop() [all …]
|
/Zephyr-latest/subsys/logging/backends/ |
D | log_backend_efi_console.c | 16 static struct k_spinlock lock; variable 48 k_spinlock_key_t key = k_spin_lock(&lock); in process() 52 k_spin_unlock(&lock, key); in process()
|
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/ |
D | kernel.c | 72 int32_t osKernelRestoreLock(int32_t lock) in osKernelRestoreLock() argument 74 arch_current_thread()->base.sched_locked = lock; in osKernelRestoreLock() 80 if (lock < 0) { in osKernelRestoreLock()
|
/Zephyr-latest/drivers/sensor/grow_r502a/ |
D | grow_r502a.c | 231 k_mutex_lock(&drv_data->lock, K_FOREVER); in r502a_read_sys_param() 275 k_mutex_unlock(&drv_data->lock); in r502a_read_sys_param() 391 k_mutex_lock(&drv_data->lock, K_FOREVER); in fps_read_template_table() 424 k_mutex_unlock(&drv_data->lock); in fps_read_template_table() 552 k_mutex_lock(&drv_data->lock, K_FOREVER); in fps_store_model() 575 k_mutex_unlock(&drv_data->lock); in fps_store_model() 593 k_mutex_lock(&drv_data->lock, K_FOREVER); in fps_delete_model() 612 k_mutex_unlock(&drv_data->lock); in fps_delete_model() 628 k_mutex_lock(&drv_data->lock, K_FOREVER); in fps_empty_db() 649 k_mutex_unlock(&drv_data->lock); in fps_empty_db() [all …]
|
/Zephyr-latest/drivers/fpga/ |
D | fpga_ice40_common.c | 37 key = k_spin_lock(&data->lock); in fpga_ice40_get_status() 45 k_spin_unlock(&data->lock, key); in fpga_ice40_get_status() 57 key = k_spin_lock(&data->lock); in fpga_ice40_on_off() 68 k_spin_unlock(&data->lock, key); in fpga_ice40_on_off()
|
/Zephyr-latest/drivers/retained_mem/ |
D | retained_mem_nrf_gpregret.c | 21 struct k_mutex lock; member 35 k_mutex_lock(&data->lock, K_FOREVER); in nrf_gpregret_lock_take() 46 k_mutex_unlock(&data->lock); in nrf_gpregret_lock_release() 57 k_mutex_init(&data->lock); in nrf_gpregret_init()
|
D | retained_mem_zephyr_ram.c | 21 struct k_mutex lock; member 35 k_mutex_lock(&data->lock, K_FOREVER); in zephyr_retained_mem_ram_lock_take() 46 k_mutex_unlock(&data->lock); in zephyr_retained_mem_ram_lock_release() 57 k_mutex_init(&data->lock); in zephyr_retained_mem_ram_init()
|
/Zephyr-latest/drivers/usb/uhc/ |
D | uhc_common.c | 106 api->lock(dev); in uhc_xfer_alloc() 169 api->lock(dev); in uhc_xfer_free() 192 api->lock(dev); in uhc_xfer_buf_add() 209 api->lock(dev); in uhc_ep_enqueue() 234 api->lock(dev); in uhc_ep_dequeue() 256 api->lock(dev); in uhc_enable() 285 api->lock(dev); in uhc_disable() 311 api->lock(dev); in uhc_init() 339 api->lock(dev); in uhc_shutdown()
|
/Zephyr-latest/arch/x86/core/ |
D | efi.c | 119 static struct k_spinlock lock; in efi_console_putchar() local 139 k_spinlock_key_t key = k_spin_lock(&lock); in efi_console_putchar() 166 k_spin_unlock(&lock, key); in efi_console_putchar()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_rtio.c | 57 k_sem_init(&ctx->lock, 1, 1); in i2c_rtio_init() 132 k_sem_take(&ctx->lock, K_FOREVER); in i2c_rtio_transfer() 153 k_sem_give(&ctx->lock); in i2c_rtio_transfer() 165 k_sem_take(&ctx->lock, K_FOREVER); in i2c_rtio_configure() 185 k_sem_give(&ctx->lock); in i2c_rtio_configure() 197 k_sem_take(&ctx->lock, K_FOREVER); in i2c_rtio_recover() 216 k_sem_give(&ctx->lock); in i2c_rtio_recover()
|
/Zephyr-latest/drivers/timer/ |
D | hpet.c | 228 static __pinned_bss struct k_spinlock lock; variable 280 k_spinlock_key_t key = k_spin_lock(&lock); in hpet_isr() 318 k_spin_unlock(&lock, key); in hpet_isr() 369 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout() 373 k_spin_unlock(&lock, key); in sys_clock_set_timeout() 384 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed() 389 k_spin_unlock(&lock, key); in sys_clock_elapsed()
|
/Zephyr-latest/drivers/regulator/ |
D | regulator_common.c | 22 (void)k_mutex_init(&data->lock); in regulator_common_data_init() 123 (void)k_mutex_lock(&data->lock, K_FOREVER); in regulator_enable() 138 k_mutex_unlock(&data->lock); in regulator_enable() 154 (void)k_mutex_lock(&data->lock, K_FOREVER); in regulator_is_enabled() 158 k_mutex_unlock(&data->lock); in regulator_is_enabled() 183 (void)k_mutex_lock(&data->lock, K_FOREVER); in regulator_disable() 198 k_mutex_unlock(&data->lock); in regulator_disable()
|
/Zephyr-latest/drivers/gnss/ |
D | gnss_u_blox_m8.c | 79 struct k_spinlock lock; member 273 key = k_spin_lock(&data->lock); in ubx_m8_ubx_cfg_rate() 286 k_spin_unlock(&data->lock, key); in ubx_m8_ubx_cfg_rate() 299 key = k_spin_lock(&data->lock); in ubx_m8_ubx_cfg_prt_set() 319 k_spin_unlock(&data->lock, key); in ubx_m8_ubx_cfg_prt_set() 331 key = k_spin_lock(&data->lock); in ubx_m8_ubx_cfg_rst() 355 k_spin_unlock(&data->lock, key); in ubx_m8_ubx_cfg_rst() 368 key = k_spin_lock(&data->lock); in ubx_m8_set_uart_baudrate() 386 k_spin_unlock(&data->lock, key); in ubx_m8_set_uart_baudrate() 470 key = k_spin_lock(&data->lock); in ubx_m8_configure_messages() [all …]
|
/Zephyr-latest/subsys/net/lib/prometheus/ |
D | collector.c | 36 k_mutex_lock(&collector->lock, K_FOREVER); in prometheus_collector_register_metric() 43 k_mutex_unlock(&collector->lock); in prometheus_collector_register_metric() 124 k_mutex_lock(&collector->lock, K_FOREVER); in prometheus_collector_get_metric() 137 k_mutex_unlock(&collector->lock); in prometheus_collector_get_metric() 173 k_mutex_lock(&ctx->collector->lock, K_FOREVER); in prometheus_collector_walk_metrics() 229 k_mutex_unlock(&ctx->collector->lock); in prometheus_collector_walk_metrics()
|
/Zephyr-latest/boards/qemu/cortex_m0/ |
D | nrf_timer_timer.c | 27 static struct k_spinlock lock; variable 220 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed() 223 k_spin_unlock(&lock, key); in sys_clock_elapsed() 229 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_32() 232 k_spin_unlock(&lock, key); in sys_clock_cycle_get_32()
|
/Zephyr-latest/lib/os/ |
D | printk.c | 33 static struct k_spinlock lock; variable 128 k_spinlock_key_t key = k_spin_lock(&lock); in vprintk() 140 k_spin_unlock(&lock, key); in vprintk() 150 k_spinlock_key_t key = k_spin_lock(&lock); in z_impl_k_str_out() 158 k_spin_unlock(&lock, key); in z_impl_k_str_out()
|