Home
last modified time | relevance | path

Searched refs:lock (Results 326 – 350 of 483) sorted by relevance

1...<<11121314151617181920

/Zephyr-latest/subsys/net/lib/prometheus/
Dformatter.c256 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/
Dcdc_acm.c525 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/
Dssp.c349 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/
Dbitarray.h43 struct k_spinlock lock; member
Dp4wq.h56 struct k_spinlock lock; member
/Zephyr-latest/drivers/clock_control/
Dclock_control_renesas_cpg_mssr.h40 struct k_spinlock lock; member
Dclock_control_litex.c251 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/
Dkernel.h1958 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/
Dworkqueue.rst422 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/
Dfpga_ice40_bitbang.c157 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/
Dsystem.rst31 lock [label="Lock interruptions"]
45 lock -> config_pm
68 pm_system_resume:e -> lock:e [constraint=false lhed="cluster_0"]
/Zephyr-latest/kernel/
DKconfig.smp117 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/
Dgrow_r502a.h217 struct k_mutex lock; member
/Zephyr-latest/include/zephyr/drivers/firmware/scmi/
Dtransport.h52 struct k_mutex lock; member
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_csis.c45 err = bt_csip_set_member_lock(csis_svc_inst, cp->lock, cp->force); in csis_set_member_lock()
/Zephyr-latest/lib/posix/options/
Dmutex.c19 static SYS_SEM_DEFINE(lock, 1, 1);
117 SYS_SEM_LOCK(&lock) { in acquire_mutex()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_can.c145 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/
Dsqn_hwspinlock.c128 .lock = sqn_hwspinlock_lock,
/Zephyr-latest/boards/silabs/dev_kits/sltb010a/
Dsltb010a.dts49 dpll-lock = "phase";
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dcsip.h265 bool lock, bool force);
/Zephyr-latest/drivers/flash/
Dflash_mspi_atxp032.c73 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/
DKconfig62 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/
Dstartup.cmm18 ; - 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/
Duart_async_to_irq.h221 struct k_spinlock lock; member
/Zephyr-latest/doc/kernel/services/smp/
Dsmp.rst50 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

1...<<11121314151617181920