Lines Matching +full:lock +full:- +full:mode
6 * SPDX-License-Identifier: Apache-2.0
29 #define MAX_TICKS ((k_ticks_t)(UINT32_MAX / CYC_PER_TICK) - 1)
31 static struct k_spinlock lock; variable
61 k_spinlock_key_t key = k_spin_lock(&lock); in ti_dmtimer_isr()
64 uint32_t delta_cycles = curr_cycle - last_cycle; in ti_dmtimer_isr()
79 k_spin_unlock(&lock, key); in ti_dmtimer_isr()
95 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
103 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
108 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_32()
112 k_spin_unlock(&lock, key); in sys_clock_cycle_get_32()
124 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
127 uint32_t delta_cycles = curr_cycle - last_cycle; in sys_clock_elapsed()
130 k_spin_unlock(&lock, key); in sys_clock_elapsed()
144 /* Select autoreload mode */ in sys_clock_driver_init()
159 /* Enable compare mode */ in sys_clock_driver_init()