Home
last modified time | relevance | path

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

/Linux-v6.6/kernel/locking/
Dspinlock_debug.c26 lock->raw_lock = (arch_spinlock_t)__ARCH_SPIN_LOCK_UNLOCKED; in __raw_spin_lock_init()
45 lock->raw_lock = (arch_rwlock_t) __ARCH_RW_LOCK_UNLOCKED; in __rwlock_init()
115 arch_spin_lock(&lock->raw_lock); in do_raw_spin_lock()
122 int ret = arch_spin_trylock(&lock->raw_lock); in do_raw_spin_trylock()
141 arch_spin_unlock(&lock->raw_lock); in do_raw_spin_unlock()
161 arch_read_lock(&lock->raw_lock); in do_raw_read_lock()
166 int ret = arch_read_trylock(&lock->raw_lock); in do_raw_read_trylock()
180 arch_read_unlock(&lock->raw_lock); in do_raw_read_unlock()
210 arch_write_lock(&lock->raw_lock); in do_raw_write_lock()
216 int ret = arch_write_trylock(&lock->raw_lock); in do_raw_write_trylock()
[all …]
Dspinlock.c76 arch_##op##_relax(&lock->raw_lock); \
92 arch_##op##_relax(&lock->raw_lock); \
/Linux-v6.6/include/linux/
Drwlock.h39 # define do_raw_read_lock(rwlock) do {__acquire(lock); arch_read_lock(&(rwlock)->raw_lock); } while…
40 # define do_raw_read_trylock(rwlock) arch_read_trylock(&(rwlock)->raw_lock)
41 # define do_raw_read_unlock(rwlock) do {arch_read_unlock(&(rwlock)->raw_lock); __release(lock); } w…
42 # define do_raw_write_lock(rwlock) do {__acquire(lock); arch_write_lock(&(rwlock)->raw_lock); } whi…
43 # define do_raw_write_trylock(rwlock) arch_write_trylock(&(rwlock)->raw_lock)
44 # define do_raw_write_unlock(rwlock) do {arch_write_unlock(&(rwlock)->raw_lock); __release(lock); }…
124 arch_rwlock_is_contended(&(lock)->raw_lock)
Drwlock_types.h26 arch_rwlock_t raw_lock; member
40 (rwlock_t) { .raw_lock = __ARCH_RW_LOCK_UNLOCKED, \
47 (rwlock_t) { .raw_lock = __ARCH_RW_LOCK_UNLOCKED, \
Dspinlock_types_raw.h15 arch_spinlock_t raw_lock; member
64 .raw_lock = __ARCH_SPIN_LOCK_UNLOCKED, \
Dspinlock.h116 #define raw_spin_is_locked(lock) arch_spin_is_locked(&(lock)->raw_lock)
119 #define raw_spin_is_contended(lock) arch_spin_is_contended(&(lock)->raw_lock)
187 arch_spin_lock(&lock->raw_lock); in do_raw_spin_lock()
193 int ret = arch_spin_trylock(&(lock)->raw_lock); in do_raw_spin_trylock()
204 arch_spin_unlock(&lock->raw_lock); in do_raw_spin_unlock()
Dspinlock_types.h33 .raw_lock = __ARCH_SPIN_LOCK_UNLOCKED, \
/Linux-v6.6/net/ieee802154/
Dsocket.c171 static DEFINE_RWLOCK(raw_lock);
175 write_lock_bh(&raw_lock); in raw_hash()
177 write_unlock_bh(&raw_lock); in raw_hash()
185 write_lock_bh(&raw_lock); in raw_unhash()
188 write_unlock_bh(&raw_lock); in raw_unhash()
366 read_lock(&raw_lock); in ieee802154_raw_deliver()
379 read_unlock(&raw_lock); in ieee802154_raw_deliver()
/Linux-v6.6/arch/parisc/include/asm/
Dmmu_context.h58 mtctl(__pa(__ldcw_align(&pgd_lock->rlock.raw_lock)), 28); in switch_mm_irqs_off()
/Linux-v6.6/arch/powerpc/kvm/
Dbook3s_hv_rm_mmu.c248 arch_spin_lock(&kvm->mmu_lock.rlock.raw_lock); in kvmppc_do_h_enter()
263 arch_spin_unlock(&kvm->mmu_lock.rlock.raw_lock); in kvmppc_do_h_enter()
277 arch_spin_unlock(&kvm->mmu_lock.rlock.raw_lock); in kvmppc_do_h_enter()
938 arch_spin_lock(&kvm->mmu_lock.rlock.raw_lock); in kvmppc_do_h_page_init_zero()
950 arch_spin_unlock(&kvm->mmu_lock.rlock.raw_lock); in kvmppc_do_h_page_init_zero()
966 arch_spin_lock(&kvm->mmu_lock.rlock.raw_lock); in kvmppc_do_h_page_init_copy()
981 arch_spin_unlock(&kvm->mmu_lock.rlock.raw_lock); in kvmppc_do_h_page_init_copy()
/Linux-v6.6/lib/
Dlockref.c16 while (likely(arch_spin_value_unlocked(old.lock.rlock.raw_lock))) { \
/Linux-v6.6/kernel/bpf/
Dhashtab.c80 raw_spinlock_t raw_lock; member
142 raw_spin_lock_init(&htab->buckets[i].raw_lock); in htab_init_buckets()
143 lockdep_set_class(&htab->buckets[i].raw_lock, in htab_init_buckets()
164 raw_spin_lock_irqsave(&b->raw_lock, flags); in htab_lock_bucket()
175 raw_spin_unlock_irqrestore(&b->raw_lock, flags); in htab_unlock_bucket()