/Zephyr-latest/drivers/dai/intel/dmic/ |
D | dmic.c | 498 key = k_spin_lock(&dmic->lock); in dai_dmic_gain_ramp() 553 k_spin_unlock(&dmic->lock, key); in dai_dmic_gain_ramp() 565 key = k_spin_lock(&dmic->lock); in dai_dmic_start() 646 k_spin_unlock(&dmic->lock, key); in dai_dmic_start() 660 key = k_spin_lock(&dmic->lock); in dai_dmic_stop() 694 k_spin_unlock(&dmic->lock, key); in dai_dmic_stop() 793 key = k_spin_lock(&dmic->lock); in dai_dmic_set_config() 815 k_spin_unlock(&dmic->lock, key); in dai_dmic_set_config() 825 key = k_spin_lock(&dmic->lock); in dai_dmic_probe_wrapper() 835 k_spin_unlock(&dmic->lock, key); in dai_dmic_probe_wrapper() [all …]
|
/Zephyr-latest/drivers/misc/devmux/ |
D | devmux.c | 22 struct k_spinlock lock; member 86 K_SPINLOCK(&data->lock) in z_impl_devmux_select_get() 115 K_SPINLOCK(&data->lock) in z_impl_devmux_select_set()
|
/Zephyr-latest/doc/kernel/data_structures/ |
D | spsc_lockfree.rst | 6 A :dfn:`Single Producer Single Consumer Lock Free Queue (SPSC)` is a lock free
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_common.c | 346 api->lock(dev); in udc_ep_try_config() 409 api->lock(dev); in udc_ep_enable() 455 api->lock(dev); in udc_ep_disable() 476 api->lock(dev); in udc_ep_set_halt() 513 api->lock(dev); in udc_ep_clear_halt() 576 api->lock(dev); in udc_ep_enqueue() 618 api->lock(dev); in udc_ep_dequeue() 659 api->lock(dev); in udc_ep_buf_alloc() 697 api->lock(dev); in udc_ep_buf_free() 709 api->lock(dev); in udc_device_speed() [all …]
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_mcux_lpi2c.c | 63 struct k_sem lock; member 113 ret = k_sem_take(&data->lock, K_FOREVER); in mcux_lpi2c_configure() 119 k_sem_give(&data->lock); in mcux_lpi2c_configure() 162 ret = k_sem_take(&data->lock, K_FOREVER); in mcux_lpi2c_transfer() 228 k_sem_give(&data->lock); in mcux_lpi2c_transfer() 278 k_sem_take(&data->lock, K_FOREVER); in mcux_lpi2c_recover_bus() 310 k_sem_give(&data->lock); in mcux_lpi2c_recover_bus() 508 k_sem_init(&data->lock, 1, 1); in mcux_lpi2c_init()
|
D | i2c_cc13xx_cc26xx.c | 29 struct k_sem lock; member 198 k_sem_take(&data->lock, K_FOREVER); in i2c_cc13xx_cc26xx_transfer() 224 k_sem_give(&data->lock); in i2c_cc13xx_cc26xx_transfer() 438 .lock = Z_SEM_INITIALIZER(i2c_cc13xx_cc26xx_data.lock, 1, 1),
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_tle9104.c | 115 struct k_mutex lock; member 290 k_mutex_lock(&data->lock, K_FOREVER); in tle9104_write_state() 292 k_mutex_unlock(&data->lock); in tle9104_write_state() 368 k_mutex_lock(&data->lock, K_FOREVER); in tle9104_get_diagnostics() 370 k_mutex_unlock(&data->lock); in tle9104_get_diagnostics() 407 k_mutex_lock(&data->lock, K_FOREVER); in tle9104_clear_diagnostics() 409 k_mutex_unlock(&data->lock); in tle9104_clear_diagnostics() 428 result = k_mutex_init(&data->lock); in tle9104_init()
|
/Zephyr-latest/doc/kernel/services/synchronization/ |
D | mutexes.rst | 23 * A **lock count** that indicates the number of times the mutex has been locked 30 A mutex must be initialized before it can be used. This sets its lock count 39 for as long as needed; however, it is considered good practice to hold the lock 54 A thread is permitted to lock a mutex it has already locked. 79 lock. Each time a higher priority thread waits on a mutex, the kernel adjusts 80 the owning thread's priority. When the owning thread releases the lock (or if 88 that a thread lock only a single mutex at a time when multiple mutexes are 137 printf("Cannot lock XYZ display\n");
|
/Zephyr-latest/tests/lib/mpsc_pbuf/src/ |
D | concurrent.c | 20 static struct k_spinlock lock; variable 59 k_spinlock_key_t key = k_spin_lock(&lock); in track_produce() 66 k_spin_unlock(&lock, key); in track_produce() 71 k_spinlock_key_t key = k_spin_lock(&lock); in track_consume() 111 k_spin_unlock(&lock, key); in track_consume()
|
/Zephyr-latest/drivers/eeprom/ |
D | eeprom_at2x.c | 64 struct k_mutex lock; member 108 k_mutex_lock(&data->lock, K_FOREVER); in eeprom_at2x_read() 113 k_mutex_unlock(&data->lock); in eeprom_at2x_read() 122 k_mutex_unlock(&data->lock); in eeprom_at2x_read() 172 k_mutex_lock(&data->lock, K_FOREVER); in eeprom_at2x_write() 178 k_mutex_unlock(&data->lock); in eeprom_at2x_write() 190 k_mutex_unlock(&data->lock); in eeprom_at2x_write() 208 k_mutex_unlock(&data->lock); in eeprom_at2x_write() 568 k_mutex_init(&data->lock); in eeprom_at2x_init()
|
/Zephyr-latest/drivers/w1/ |
D | w1_handlers.c | 72 static inline int z_vrfy_w1_change_bus_lock(const struct device *dev, bool lock) in z_vrfy_w1_change_bus_lock() argument 76 return z_impl_w1_change_bus_lock((const struct device *)dev, lock); in z_vrfy_w1_change_bus_lock()
|
/Zephyr-latest/subsys/net/ip/ |
D | net_context.c | 607 k_mutex_init(&contexts[i].lock); in net_context_get() 654 k_mutex_lock(&context->lock, K_FOREVER); in net_context_unref() 672 k_mutex_unlock(&context->lock); in net_context_unref() 687 k_mutex_lock(&context->lock, K_FOREVER); in net_context_put() 707 k_mutex_unlock(&context->lock); in net_context_put() 921 k_mutex_lock(&context->lock, K_FOREVER); in net_context_bind() 929 k_mutex_unlock(&context->lock); in net_context_bind() 962 k_mutex_unlock(&context->lock); in net_context_bind() 1028 k_mutex_lock(&context->lock, K_FOREVER); in net_context_bind() 1036 k_mutex_unlock(&context->lock); in net_context_bind() [all …]
|
/Zephyr-latest/drivers/dai/intel/hda/ |
D | hda.h | 33 struct k_spinlock lock; member
|
/Zephyr-latest/drivers/mbox/ |
D | mbox_andes_plic_sw.c | 20 struct k_spinlock lock; member 62 k_spinlock_key_t key = k_spin_lock(&data->lock); in mbox_plic_register_callback() 67 k_spin_unlock(&data->lock, key); in mbox_plic_register_callback()
|
/Zephyr-latest/drivers/fpga/ |
D | fpga_slg471x5.c | 41 struct k_spinlock lock; member 57 key = k_spin_lock(&data->lock); in fpga_slg471x5_get_status() 65 k_spin_unlock(&data->lock, key); in fpga_slg471x5_get_status()
|
/Zephyr-latest/kernel/include/ |
D | ksched.h | 55 int z_pend_curr(struct k_spinlock *lock, k_spinlock_key_t key, 59 void z_reschedule(struct k_spinlock *lock, k_spinlock_key_t key); 287 int z_sched_wait(struct k_spinlock *lock, k_spinlock_key_t key,
|
/Zephyr-latest/drivers/misc/mcux_flexio/ |
D | mcux_flexio.c | 31 struct k_mutex lock; member 125 k_mutex_init(&data->lock); in mcux_flexio_init() 152 k_mutex_lock(&data->lock, K_FOREVER); in nxp_flexio_lock() 159 k_mutex_unlock(&data->lock); in nxp_flexio_unlock()
|
/Zephyr-latest/include/zephyr/pm/ |
D | device.h | 170 struct k_sem lock; member 190 struct k_spinlock lock; member 202 .lock = Z_SEM_INITIALIZER(obj.lock, 1, 1), \
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_r8a7795_cpg_mssr.c | 140 key = k_spin_lock(&data->cmn.lock); in r8a7795_cpg_core_clock_endisable() 142 k_spin_unlock(&data->cmn.lock, key); in r8a7795_cpg_core_clock_endisable() 161 key = k_spin_lock(&data->cmn.lock); in r8a7795_cpg_mssr_start_stop() 163 k_spin_unlock(&data->cmn.lock, key); in r8a7795_cpg_mssr_start_stop()
|
/Zephyr-latest/include/zephyr/drivers/usb/ |
D | udc.h | 252 int (*lock)(const struct device *dev); member 455 api->lock(dev); in udc_set_address() 488 api->lock(dev); in udc_test_mode() 517 api->lock(dev); in udc_host_wakeup()
|
/Zephyr-latest/boards/olimex/olimexino_stm32/support/ |
D | openocd.cfg | 1 source [find interface/ftdi/jtag-lock-pick_tiny_2.cfg]
|
/Zephyr-latest/drivers/wifi/esp_at/ |
D | esp.h | 170 struct k_mutex lock; member 364 k_mutex_lock(&sock->lock, K_FOREVER); in esp_socket_work_submit() 369 k_mutex_unlock(&sock->lock); in esp_socket_work_submit() 379 k_mutex_lock(&sock->lock, K_FOREVER); in esp_socket_queue_tx() 385 k_mutex_unlock(&sock->lock); in esp_socket_queue_tx()
|
/Zephyr-latest/drivers/interrupt_controller/ |
D | intc_miwu.c | 87 struct k_spinlock lock; member 187 key = k_spin_lock(&data->lock); in npcx_miwu_irq_enable() 196 k_spin_unlock(&data->lock, key); in npcx_miwu_irq_enable() 245 key = k_spin_lock(&data->lock); in npcx_miwu_irq_get_and_clear_pending() 252 k_spin_unlock(&data->lock, key); in npcx_miwu_irq_get_and_clear_pending() 277 key = k_spin_lock(&data->lock); in npcx_miwu_interrupt_configure() 345 k_spin_unlock(&data->lock, key); in npcx_miwu_interrupt_configure()
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_ambiq.c | 33 struct k_spinlock lock; member 419 k_spinlock_key_t key = k_spin_lock(&data->lock); in ambiq_gpio_pin_interrupt_configure() 424 k_spin_unlock(&data->lock, key); in ambiq_gpio_pin_interrupt_configure() 448 k_spinlock_key_t key = k_spin_lock(&data->lock); in ambiq_gpio_pin_interrupt_configure() 453 k_spin_unlock(&data->lock, key); in ambiq_gpio_pin_interrupt_configure() 466 k_spinlock_key_t key = k_spin_lock(&data->lock); in ambiq_gpio_pin_interrupt_configure() 473 k_spin_unlock(&data->lock, key); in ambiq_gpio_pin_interrupt_configure() 499 k_spinlock_key_t key = k_spin_lock(&data->lock); in ambiq_gpio_pin_interrupt_configure() 506 k_spin_unlock(&data->lock, key); in ambiq_gpio_pin_interrupt_configure()
|
/Zephyr-latest/drivers/dai/intel/ssp/ |
D | ssp.h | 113 struct k_spinlock lock; /**< lock mechanism */ member 166 struct k_spinlock lock; /**< locking mechanism */ member
|