/Zephyr-latest/subsys/net/lib/prometheus/ |
D | formatter.c | 256 k_mutex_lock(&collector->lock, K_FOREVER); in prometheus_format_exposition() 281 k_mutex_unlock(&collector->lock); in prometheus_format_exposition()
|
/Zephyr-latest/subsys/usb/device/class/ |
D | cdc_acm.c | 525 unsigned int lock; in cdc_acm_fifo_fill() local 531 lock = irq_lock(); in cdc_acm_fifo_fill() 533 irq_unlock(lock); in cdc_acm_fifo_fill() 1029 unsigned int lock; in cdc_acm_poll_out() local 1035 lock = irq_lock(); in cdc_acm_poll_out() 1037 irq_unlock(lock); in cdc_acm_poll_out()
|
/Zephyr-latest/drivers/dai/intel/ssp/ |
D | ssp.c | 349 key = k_spin_lock(&mp->lock); in dai_ssp_mn_set_mclk() 369 k_spin_unlock(&mp->lock, key); in dai_ssp_mn_set_mclk() 388 key = k_spin_lock(&mp->lock); in dai_ssp_mn_release_mclk() 411 k_spin_unlock(&mp->lock, key); in dai_ssp_mn_release_mclk() 674 key = k_spin_lock(&mp->lock); in dai_ssp_mn_set_bclk() 705 k_spin_unlock(&mp->lock, key); in dai_ssp_mn_set_bclk() 716 key = k_spin_lock(&mp->lock); in dai_ssp_mn_release_bclk() 725 k_spin_unlock(&mp->lock, key); in dai_ssp_mn_release_bclk() 733 key = k_spin_lock(&mp->lock); in dai_ssp_mn_reset_bclk_divider() 738 k_spin_unlock(&mp->lock, key); in dai_ssp_mn_reset_bclk_divider() [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | bitarray.h | 43 struct k_spinlock lock; member
|
D | p4wq.h | 56 struct k_spinlock lock; member
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_renesas_cpg_mssr.h | 40 struct k_spinlock lock; member
|
D | clock_control_litex.c | 251 timeout = ldev->timeout.lock; in litex_clk_wait() 691 uint64_t lock; in litex_clk_set_lock() local 695 lock = litex_clk_lookup_lock(mul); in litex_clk_set_lock() 701 lock_reg = (lock >> 20) & 0x3FF; in litex_clk_set_lock() 707 lock_reg = (((lock >> 30) & 0x1F) << 10) | in litex_clk_set_lock() 708 (lock & 0x3FF); in litex_clk_set_lock() 714 lock_reg = (((lock >> 35) & 0x1F) << 10) | in litex_clk_set_lock() 715 ((lock >> 10) & 0x3FF); in litex_clk_set_lock() 1624 timeout->lock = LOCK_TIMEOUT; in litex_clk_dts_timeout_read() 1625 if (timeout->lock < 1) { in litex_clk_dts_timeout_read()
|
/Zephyr-latest/include/zephyr/ |
D | kernel.h | 1958 struct k_spinlock lock; member 1973 .lock = { }, \ 2261 struct k_spinlock lock; member 2330 struct k_spinlock lock; member 2871 struct k_spinlock lock; member 4555 struct k_spinlock lock; member 4869 struct k_spinlock lock; member 5001 struct k_spinlock lock; /**< Synchronization lock */ member 5031 .lock = {}, \ 5213 struct k_spinlock lock; member [all …]
|
/Zephyr-latest/doc/kernel/services/threads/ |
D | workqueue.rst | 422 If the selected lock mechanism can :ref:`api_term_sleep` then allowing the 424 make progress in order to get the lock released. Work handlers should try to 425 take the lock with its no-wait path. For example: 434 if (k_mutex_lock(&parent->lock, K_NO_WAIT) != 0) { 440 /* do stuff under lock */ 441 k_mutex_unlock(&parent->lock); 442 /* do stuff without lock */ 445 Be aware that if the lock is held by a thread with a lower priority than the 446 work queue the resubmission may starve the thread that would release the lock, 449 non-zero delay to allow the thread holding the lock to make progress. [all …]
|
/Zephyr-latest/drivers/fpga/ |
D | fpga_ice40_bitbang.c | 157 key = k_spin_lock(&data->lock); in fpga_ice40_load() 235 k_spin_unlock(&data->lock, key); in fpga_ice40_load()
|
/Zephyr-latest/doc/services/pm/ |
D | system.rst | 31 lock [label="Lock interruptions"] 45 lock -> config_pm 68 pm_system_resume:e -> lock:e [constraint=false lhed="cluster_0"]
|
/Zephyr-latest/kernel/ |
D | Kconfig.smp | 117 bool "Ticket spinlocks for lock acquisition fairness [EXPERIMENTAL]" 124 in a live-lock. 125 Ticket spinlocks provide a FIFO order of lock acquisition
|
/Zephyr-latest/drivers/sensor/grow_r502a/ |
D | grow_r502a.h | 217 struct k_mutex lock; member
|
/Zephyr-latest/include/zephyr/drivers/firmware/scmi/ |
D | transport.h | 52 struct k_mutex lock; member
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_csis.c | 45 err = bt_csip_set_member_lock(csis_svc_inst, cp->lock, cp->force); in csis_set_member_lock()
|
/Zephyr-latest/lib/posix/options/ |
D | mutex.c | 19 static SYS_SEM_DEFINE(lock, 1, 1); 117 SYS_SEM_LOCK(&lock) { in acquire_mutex()
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | sockets_can.c | 145 if (ctx->cond.lock) { in zcan_received_cb() 146 (void)k_mutex_lock(ctx->cond.lock, K_FOREVER); in zcan_received_cb() 177 if (ctx->cond.lock) { in zcan_received_cb() 178 k_mutex_unlock(ctx->cond.lock); in zcan_received_cb()
|
/Zephyr-latest/drivers/hwspinlock/ |
D | sqn_hwspinlock.c | 128 .lock = sqn_hwspinlock_lock,
|
/Zephyr-latest/boards/silabs/dev_kits/sltb010a/ |
D | sltb010a.dts | 49 dpll-lock = "phase";
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | csip.h | 265 bool lock, bool force);
|
/Zephyr-latest/drivers/flash/ |
D | flash_mspi_atxp032.c | 73 struct k_sem lock; member 179 k_sem_take(&data->lock, K_FOREVER); in acquire() 203 k_sem_give(&data->lock); in release() 854 .lock = Z_SEM_INITIALIZER(flash_mspi_atxp032_data_##n.lock, 0, 1), \
|
/Zephyr-latest/drivers/timer/ |
D | Kconfig | 62 This option should be selected by drivers implementing a lock free 63 cycle count accessor. This is needed for instrumenting spin lock
|
/Zephyr-latest/boards/nxp/s32z2xxdc2/support/ |
D | startup.cmm | 18 ; - lockstep set to "yes" to start the core in lock-step mode * 59 ; select lock-step or split-lock mode (CFG_CORE.SPLT_LCK bit) 120 ; Set reset value for split-lock mode
|
/Zephyr-latest/include/zephyr/drivers/serial/ |
D | uart_async_to_irq.h | 221 struct k_spinlock lock; member
|
/Zephyr-latest/doc/kernel/services/smp/ |
D | smp.rst | 50 also atomically validates that a shared lock variable has been 52 needed to wait for the other CPU to exit the lock. The default Zephyr 59 earlier API was naturally recursive: the lock was global, so it was 60 legal to acquire a nested lock inside of a critical section. 64 used recursively. Code that holds a specific lock must not try to 70 (the atomic lock variable) is unnecessary and elided. Except for the 84 can hold the lock at any time, that it is released on context switch, 85 and that it is re-acquired when necessary to restore the lock state 93 IRQ lock is global, means that code expecting to be run in an SMP 223 involve severe lock contention) for new threads. The expectation is
|