Home
last modified time | relevance | path

Searched refs:spin_lock (Results 1 – 12 of 12) sorted by relevance

/hal_rpi_pico-latest/src/common/pico_sync/
Dsem.c28 uint32_t save = spin_lock_blocking(sem->core.spin_lock); in __time_critical_func()
31 spin_unlock(sem->core.spin_lock, save); in __time_critical_func()
48 uint32_t save = spin_lock_blocking(sem->core.spin_lock); in __time_critical_func()
51 spin_unlock(sem->core.spin_lock, save); in __time_critical_func()
61 uint32_t save = spin_lock_blocking(sem->core.spin_lock); in __time_critical_func()
64 spin_unlock(sem->core.spin_lock, save); in __time_critical_func()
67 spin_unlock(sem->core.spin_lock, save); in __time_critical_func()
73 uint32_t save = spin_lock_blocking(sem->core.spin_lock); in __time_critical_func()
80 spin_unlock(sem->core.spin_lock, save); in __time_critical_func()
87 uint32_t save = spin_lock_blocking(sem->core.spin_lock); in __time_critical_func()
[all …]
Dmutex.c25 if (l->spin_lock) { in runtime_init_mutex()
26 assert(1 == (uintptr_t)l->spin_lock); // indicator for a recursive mutex in runtime_init_mutex()
71 uint32_t save = spin_lock_blocking(mtx->core.spin_lock); in __time_critical_func()
74 spin_unlock(mtx->core.spin_lock, save); in __time_critical_func()
84 uint32_t save = spin_lock_blocking(mtx->core.spin_lock); in __time_critical_func()
88 spin_unlock(mtx->core.spin_lock, save); in __time_critical_func()
104 uint32_t save = spin_lock_blocking(mtx->core.spin_lock); in __time_critical_func()
112 spin_unlock(mtx->core.spin_lock, save); in __time_critical_func()
130 uint32_t save = spin_lock_blocking(mtx->core.spin_lock); in __time_critical_func()
140 spin_unlock(mtx->core.spin_lock, save); in __time_critical_func()
[all …]
Dcritical_section.c18 crit_sec->spin_lock = spin_lock_instance(lock_num); in critical_section_init_with_lock_num()
23 spin_lock_unclaim(spin_lock_get_num(crit_sec->spin_lock)); in critical_section_deinit()
24 crit_sec->spin_lock = NULL; in critical_section_deinit()
Dlock_core.c11 core->spin_lock = spin_lock_instance(lock_num); in lock_init()
/hal_rpi_pico-latest/src/common/pico_sync/include/pico/
Dcritical_section.h30 spin_lock_t *spin_lock; member
62 crit_sec->save = spin_lock_blocking(crit_sec->spin_lock); in critical_section_enter_blocking()
71 spin_unlock(crit_sec->spin_lock, crit_sec->save); in critical_section_exit()
92 return crit_sec->spin_lock != 0; in critical_section_is_initialized()
Dlock_core.h55 spin_lock_t *spin_lock; member
128 #define lock_internal_spin_unlock_with_wait(lock, save) spin_unlock((lock)->spin_lock, save), __wfe…
151 #define lock_internal_spin_unlock_with_notify(lock, save) spin_unlock((lock)->spin_lock, save), __s…
178 spin_unlock((lock)->spin_lock, save); \
Dmutex.h249 return mtx->core.spin_lock != 0; in mutex_is_initialized()
259 return mtx->core.spin_lock != 0; in recursive_mutex_is_initialized()
306 …bute__((section(".mutex_array"))) recursive_mutex_t name = { .core = { .spin_lock = (spin_lock_t *…
/hal_rpi_pico-latest/src/common/pico_util/
Dqueue.c46 uint32_t save = spin_lock_blocking(q->core.spin_lock); in queue_add_internal()
56 spin_unlock(q->core.spin_lock, save); in queue_add_internal()
64 uint32_t save = spin_lock_blocking(q->core.spin_lock); in queue_remove_internal()
76 spin_unlock(q->core.spin_lock, save); in queue_remove_internal()
84 uint32_t save = spin_lock_blocking(q->core.spin_lock); in queue_peek_internal()
95 spin_unlock(q->core.spin_lock, save); in queue_peek_internal()
/hal_rpi_pico-latest/src/common/pico_util/include/pico/util/
Dqueue.h98 uint32_t save = spin_lock_blocking(q->core.spin_lock); in queue_get_level()
100 spin_unlock(q->core.spin_lock, save); in queue_get_level()
124 uint32_t save = spin_lock_blocking(q->core.spin_lock); in queue_reset_max_level()
126 spin_unlock(q->core.spin_lock, save); in queue_reset_max_level()
/hal_rpi_pico-latest/src/rp2_common/hardware_sync_spin_lock/
DBUILD.bazel7 hdrs = ["include/hardware/sync/spin_lock.h"],
/hal_rpi_pico-latest/src/rp2_common/pico_stdio_usb/
Dstdio_usb.c270 spin_lock_unclaim(spin_lock_get_num(one_shot_timer_crit_sec.spin_lock)); in stdio_usb_deinit()
/hal_rpi_pico-latest/src/common/pico_time/
Dtime.c386 uint32_t save = spin_lock_blocking(sleep_notifier.spin_lock); in sleep_until_callback()
409 uint32_t save = spin_lock_blocking(sleep_notifier.spin_lock); in sleep_until()