/Zephyr-latest/doc/kernel/services/synchronization/ |
D | mutexes.rst | 23 * A **lock count** that indicates the number of times the mutex has been locked 24 by the thread that has locked it. A count of zero indicates that the mutex 27 * An **owning thread** that identifies the thread that has locked the mutex, 28 when it is locked. 34 to access it by **locking** the associated mutex. If the mutex is already locked 44 Any number of threads may wait on a locked mutex simultaneously. 45 When the mutex becomes unlocked it is then locked by the highest-priority 54 A thread is permitted to lock a mutex it has already locked. 56 in its execution when the mutex may or may not already be locked. 58 A mutex that is repeatedly locked by a thread must be unlocked an equal number [all …]
|
/Zephyr-latest/tests/kernel/spinlock/src/ |
D | main.c | 47 zassert_true(!z_spin_is_locked(&l), "Spinlock initialized to locked"); in ZTEST() 61 int i, locked; in bounce_once() local 67 locked = 0; in bounce_once() 81 locked = 1; in bounce_once() 89 if (!locked && bounce_done) { in bounce_once() 93 zassert_true(locked, "Other cpu did not get lock in 10000 tries"); in bounce_once() 101 zassert_true(bounce_owner == id, "Locked data changed"); in bounce_once() 170 /* check irq has not locked */ in ZTEST() 172 "irq should be first locked!"); in ZTEST() 175 * We make irq locked nested to check if interrupt in ZTEST() [all …]
|
/Zephyr-latest/tests/kernel/interrupt/src/ |
D | prevent_irq.c | 33 * serviced while interrupts are locked; in addition, this test also verifies 47 /* Start the timer and busy-wait for a bit with IRQs locked. The in ZTEST() 49 * locked -- but since they are, check_lock_new isn't updated. in ZTEST() 54 "timer interrupt was serviced while interrupts are locked"); in ZTEST()
|
/Zephyr-latest/include/zephyr/sys/ |
D | mutex.h | 30 * that can be locked/unlocked with atomic ops if there is no 85 * This routine locks @a mutex. If the mutex is locked by another thread, 89 * A thread is permitted to lock a mutex it has already locked. The operation 96 * @retval 0 Mutex locked. 111 * This routine unlocks @a mutex. The mutex must already be locked by the 115 * the calling thread as many times as it was previously locked by that 122 * locked
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | csip.h | 74 /** Service is already locked */ 76 /** Service is not locked */ 108 * @param locked Whether the lock was locked or released. 113 bool locked); 291 /** Whether or not the set can be locked on this device */ 368 * @param locked Whether the lock is locked or release. 373 struct bt_csip_set_coordinator_csis_inst *inst, bool locked); 390 * in the locked state, this will be called with @p locked true and @p member 391 * will be the locked member, and the ordered access procedure is cancelled. 396 * @param locked Whether the lock is locked or release. [all …]
|
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/ |
D | csip_set_member.c | 26 bool locked) in csip_lock_changed_cb() argument 28 printk("Client %p %s the lock\n", conn, locked ? "locked" : "released"); in csip_lock_changed_cb()
|
/Zephyr-latest/samples/bluetooth/hap_ha/src/ |
D | csip_set_member.c | 22 bool locked) in csip_lock_changed_cb() argument 24 printk("Client %p %s the lock\n", conn, locked ? "locked" : "released"); in csip_lock_changed_cb()
|
/Zephyr-latest/soc/nxp/imxrt/imxrt6xx/cm33/ |
D | flash_clock_setup.c | 41 /* Need to wait DLL locked if DLL enabled */ in flash_init() 55 /* Wait slave delay line locked and slave reference delay line locked. */ in flash_init() 59 /* Locked */ in flash_init() 71 * to ensure the DLL is locked. in flash_init()
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_nrf_auxpll.c | 38 bool locked; in clock_control_nrf_auxpll_on() local 46 locked = nrf_auxpll_mode_locked_check(config->auxpll); in clock_control_nrf_auxpll_on() 47 if (!locked) { in clock_control_nrf_auxpll_on() 51 } while (wait < AUXPLL_LOCK_TIME_MAX_MS && !locked); in clock_control_nrf_auxpll_on() 53 return locked ? 0 : -ETIMEDOUT; in clock_control_nrf_auxpll_on()
|
/Zephyr-latest/tests/kernel/sched/schedule_api/src/ |
D | test_sched_is_preempt_thread.c | 26 /** TESTPOINT: The thread has locked the scheduler. */ in tpreempt_ctx() 29 /** TESTPOINT: The thread has not locked the scheduler. */ in tpreempt_ctx() 45 /** TESTPOINT: The thread has locked the scheduler. */ in tcoop_ctx() 48 /** TESTPOINT: The thread has not locked the scheduler. */ in tcoop_ctx()
|
/Zephyr-latest/scripts/native_simulator/native/src/include/ |
D | nsi_cpu0_interrupts.h | 14 * This interrupt will awake the CPU if IRQs are not locked, 19 * This interrupt will awake the CPU even if IRQs are locked,
|
/Zephyr-latest/subsys/net/lib/tls_credentials/ |
D | tls_internal.h | 44 * Note, that to assure thread safety, credential access should be locked with 52 * Note, that to assure thread safety, credential access should be locked with 76 * Note, that to assure thread safety, credential access should be locked with
|
/Zephyr-latest/soc/nxp/imxrt/imxrt5xx/cm33/ |
D | flash_clock_setup.c | 45 /* Need to wait DLL locked if DLL enabled */ in flash_init() 49 /* Wait slave delay line locked and slave reference delay line locked. */ in flash_init() 54 /* Locked */ in flash_init() 66 * the DLL is locked. in flash_init()
|
/Zephyr-latest/arch/arm/core/ |
D | irq_offload.c | 28 /* ARMv6-M HardFault if you make a SVC call with interrupts locked. in arch_irq_offload() 30 __ASSERT(__get_PRIMASK() == 0U, "irq_offload called with interrupts locked\n"); in arch_irq_offload()
|
/Zephyr-latest/boards/native/native_posix/ |
D | board_soc.h | 31 * This interrupt will awake the CPU if IRQs are not locked, 36 * This interrupt will awake the CPU even if IRQs are locked,
|
/Zephyr-latest/dts/bindings/pinctrl/ |
D | nuvoton,npcx-pinctrl.yaml | 15 - pinmux-locked: Lock pinmux configuration for peripheral device 33 pinmux-locked; /* Lock pinmuxing */ 78 pinmux-locked:
|
/Zephyr-latest/include/zephyr/drivers/interrupt_controller/ |
D | riscv_plic.h | 67 * @note Should be called with interrupt locked 76 * @note Should be called with interrupt locked
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_csis.c | 102 bool locked) in lock_changed_cb() argument 104 LOG_DBG("%s", locked ? "locked" : "unlocked"); in lock_changed_cb()
|
/Zephyr-latest/include/zephyr/drivers/flash/ |
D | stm32_flash_api_extensions.h | 38 * This operation causes option register to be locked until next boot. 46 * This operation causes control register to be locked until next boot.
|
/Zephyr-latest/include/zephyr/ |
D | spinlock.h | 65 atomic_t locked; 206 while (!atomic_cas(&l->locked, 0, 1)) { in k_spin_lock() 240 * So in theory k_spin_trylock can lock an already locked spinlock. in k_spin_trylock() 252 * CPU instructions (which execute with interrupt locked, in k_spin_trylock() 261 if (!atomic_cas(&l->locked, 0, 1)) { in k_spin_trylock() 289 * be made on the lock object most recently locked using 328 (void)atomic_clear(&l->locked); in k_spin_unlock() 353 return l->locked; in z_spin_is_locked() 369 (void)atomic_clear(&l->locked); in k_spin_release()
|
/Zephyr-latest/tests/kernel/mutex/mutex_api/src/ |
D | test_mutex_apis.c | 41 "access locked resource from spawn thread"); in tThread_entry_lock_forever() 48 TC_PRINT("bypass locked resource from spawn thread\n"); in tThread_entry_lock_no_wait() 55 TC_PRINT("bypass locked resource from spawn thread\n"); in tThread_entry_lock_timeout_fail() 120 "access locked resource from spawn thread T1"); in tThread_T1_priority_inheritance() 169 "access locked resource from spawn thread T2"); in tThread_T2_priority_inheritance() 187 "access locked resource from spawn thread"); in tThread_lock_with_time_period() 261 * @details To verify that getting a lock of a mutex already locked will 289 "waiter thread should block on the recursively locked mutex"); in ZTEST_USER() 295 "waiter thread should still block on the locked mutex"); in ZTEST_USER()
|
/Zephyr-latest/tests/arch/arm/arm_interrupt/src/ |
D | arm_interrupt.c | 391 /* Confirm IRQs are not locked */ in z_impl_test_arm_user_interrupt_syscall() 405 /* Verify that IRQs were not already locked */ in z_impl_test_arm_user_interrupt_syscall() 406 zassert_false(key, "IRQs locked in system call\n"); in z_impl_test_arm_user_interrupt_syscall() 409 /* Confirm IRQs are still locked */ in z_impl_test_arm_user_interrupt_syscall() 433 zassert_false(lock, "IRQs shown locked in user mode\n"); in ZTEST_USER() 442 /* The first system call has left the IRQs locked. in ZTEST_USER() 446 * with interrupts locked, so we skip this part of the in ZTEST_USER() 451 /* Verify that thread is not able to infer that IRQs are locked. */ in ZTEST_USER() 452 zassert_false(irq_lock(), "IRQs are shown to be locked\n"); in ZTEST_USER()
|
/Zephyr-latest/drivers/hwspinlock/ |
D | sqn_hwspinlock.c | 54 * core has already locked the HW spinlock. in sqn_hwspinlock_trylock() 56 * whether it is locked. in sqn_hwspinlock_trylock() 84 * which we check whether we've locked by reading the register value in sqn_hwspinlock_lock()
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | csip_notify_server_test.c | 43 bool locked) in csip_set_member_lock_changed_cb() argument 45 printk("Client %p %s the lock\n", conn, locked ? "locked" : "released"); in csip_set_member_lock_changed_cb()
|
/Zephyr-latest/boards/nuvoton/npcx4m8f_evb/ |
D | npcx4m8f_evb-pinctrl.dtsi | 11 pinmux-locked; /* Lock pinmuxing */
|