Home
last modified time | relevance | path

Searched refs:rw (Results 1 – 25 of 144) sorted by relevance

123456

/arch/arc/include/asm/
Dspinlock.h79 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock() argument
101 : [rwlock] "r" (&(rw->counter)), in arch_read_lock()
109 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock() argument
125 : [rwlock] "r" (&(rw->counter)), in arch_read_trylock()
134 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
158 : [rwlock] "r" (&(rw->counter)), in arch_write_lock()
167 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock() argument
183 : [rwlock] "r" (&(rw->counter)), in arch_write_trylock()
193 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock() argument
209 : [rwlock] "r" (&(rw->counter)) in arch_read_unlock()
[all …]
/arch/parisc/include/asm/
Dspinlock.h79 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock() argument
85 arch_spin_lock(&(rw->lock_mutex)); in arch_read_trylock()
91 if (rw->counter > 0) { in arch_read_trylock()
92 rw->counter--; in arch_read_trylock()
96 arch_spin_unlock(&(rw->lock_mutex)); in arch_read_trylock()
103 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock() argument
109 arch_spin_lock(&(rw->lock_mutex)); in arch_write_trylock()
117 if (rw->counter == __ARCH_RW_LOCK_UNLOCKED__) { in arch_write_trylock()
118 rw->counter = 0; in arch_write_trylock()
121 arch_spin_unlock(&(rw->lock_mutex)); in arch_write_trylock()
[all …]
/arch/s390/include/asm/
Dspinlock.h99 #define arch_read_relax(rw) barrier() argument
100 #define arch_write_relax(rw) barrier() argument
105 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock() argument
109 old = __atomic_add(1, &rw->cnts); in arch_read_lock()
111 arch_read_lock_wait(rw); in arch_read_lock()
114 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock() argument
116 __atomic_add_const_barrier(-1, &rw->cnts); in arch_read_unlock()
119 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
121 if (!__atomic_cmpxchg_bool(&rw->cnts, 0, 0x30000)) in arch_write_lock()
122 arch_write_lock_wait(rw); in arch_write_lock()
[all …]
/arch/sh/include/asm/
Dspinlock-cas.h52 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock() argument
55 do old = rw->lock; in arch_read_lock()
56 while (!old || __sl_cas(&rw->lock, old, old-1) != old); in arch_read_lock()
59 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock() argument
62 do old = rw->lock; in arch_read_unlock()
63 while (__sl_cas(&rw->lock, old, old+1) != old); in arch_read_unlock()
66 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
68 while (__sl_cas(&rw->lock, RW_LOCK_BIAS, 0) != RW_LOCK_BIAS); in arch_write_lock()
71 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock() argument
73 __sl_cas(&rw->lock, 0, RW_LOCK_BIAS); in arch_write_unlock()
[all …]
Dspinlock-llsc.h90 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock() argument
103 : "r" (&rw->lock) in arch_read_lock()
108 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock() argument
119 : "r" (&rw->lock) in arch_read_unlock()
124 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
137 : "r" (&rw->lock), "r" (RW_LOCK_BIAS) in arch_write_lock()
142 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock() argument
147 : "r" (&rw->lock), "r" (RW_LOCK_BIAS) in arch_write_unlock()
152 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock() argument
168 : "r" (&rw->lock) in arch_read_trylock()
[all …]
/arch/powerpc/include/asm/
Dsimple_spinlock.h159 static inline long __arch_read_trylock(arch_rwlock_t *rw) in __arch_read_trylock() argument
173 : "r" (&rw->lock), [eh] "n" (eh) in __arch_read_trylock()
183 static inline long __arch_write_trylock(arch_rwlock_t *rw) in __arch_write_trylock() argument
197 : "r" (token), "r" (&rw->lock), [eh] "n" (eh) in __arch_write_trylock()
203 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock() argument
206 if (likely(__arch_read_trylock(rw) > 0)) in arch_read_lock()
211 splpar_rw_yield(rw); in arch_read_lock()
212 } while (unlikely(rw->lock < 0)); in arch_read_lock()
217 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
220 if (likely(__arch_write_trylock(rw) == 0)) in arch_write_lock()
[all …]
/arch/arm/include/asm/
Dspinlock.h139 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
143 prefetchw(&rw->lock); in arch_write_lock()
152 : "r" (&rw->lock), "r" (0x80000000) in arch_write_lock()
158 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock() argument
162 prefetchw(&rw->lock); in arch_write_trylock()
170 : "r" (&rw->lock), "r" (0x80000000) in arch_write_trylock()
182 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock() argument
189 : "r" (&rw->lock), "r" (0) in arch_write_unlock()
207 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock() argument
211 prefetchw(&rw->lock); in arch_read_lock()
[all …]
/arch/sparc/include/asm/
Dspinlock_32.h79 static inline void __arch_read_lock(arch_rwlock_t *rw) in __arch_read_lock() argument
82 lp = rw; in __arch_read_lock()
99 static inline void __arch_read_unlock(arch_rwlock_t *rw) in __arch_read_unlock() argument
102 lp = rw; in __arch_read_unlock()
119 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
122 lp = rw; in arch_write_lock()
142 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock() argument
148 : "r" (&rw->lock) in arch_write_trylock()
152 val = rw->lock & ~0xff; in arch_write_trylock()
154 ((volatile u8*)&rw->lock)[3] = 0; in arch_write_trylock()
[all …]
/arch/sparc/kernel/
Dprocess_32.c118 struct reg_window32 *rw = (struct reg_window32 *) r->u_regs[14]; in show_regs() local
134 rw->locals[0], rw->locals[1], rw->locals[2], rw->locals[3], in show_regs()
135 rw->locals[4], rw->locals[5], rw->locals[6], rw->locals[7]); in show_regs()
137 rw->ins[0], rw->ins[1], rw->ins[2], rw->ins[3], in show_regs()
138 rw->ins[4], rw->ins[5], rw->ins[6], rw->ins[7]); in show_regs()
149 struct reg_window32 *rw; in show_stack() local
165 rw = (struct reg_window32 *) fp; in show_stack()
166 pc = rw->ins[7]; in show_stack()
169 fp = rw->ins[6]; in show_stack()
372 struct reg_window32 *rw; local
[all …]
Dprocess_64.c108 struct reg_window32 __user *rw; in show_regwindow32() local
112 rw = compat_ptr((unsigned int)regs->u_regs[14]); in show_regwindow32()
113 if (copy_from_user (&r_w, rw, sizeof(r_w))) { in show_regwindow32()
132 struct reg_window __user *rw; in show_regwindow() local
138 rw = (struct reg_window __user *) in show_regwindow()
143 if (copy_from_user (&r_w, rw, sizeof(r_w))) { in show_regwindow()
206 struct reg_window *rw; in __global_reg_self() local
208 rw = (struct reg_window *) in __global_reg_self()
210 if (kstack_valid(tp, (unsigned long) rw)) { in __global_reg_self()
211 rp->i7 = rw->ins[7]; in __global_reg_self()
[all …]
Dtraps_32.c72 struct reg_window32 *rw = (struct reg_window32 *)regs->u_regs[UREG_FP]; in die_if_kernel() local
78 while(rw && in die_if_kernel()
80 (((unsigned long) rw) >= PAGE_OFFSET) && in die_if_kernel()
81 !(((unsigned long) rw) & 0x7)) { in die_if_kernel()
82 printk("Caller[%08lx]: %pS\n", rw->ins[7], in die_if_kernel()
83 (void *) rw->ins[7]); in die_if_kernel()
84 rw = (struct reg_window32 *)rw->ins[6]; in die_if_kernel()
/arch/s390/lib/
Dspinlock.c269 void arch_read_lock_wait(arch_rwlock_t *rw) in arch_read_lock_wait() argument
272 while (READ_ONCE(rw->cnts) & 0x10000) in arch_read_lock_wait()
278 __atomic_add_const(-1, &rw->cnts); in arch_read_lock_wait()
280 arch_spin_lock(&rw->wait); in arch_read_lock_wait()
282 __atomic_add_const(1, &rw->cnts); in arch_read_lock_wait()
284 while (READ_ONCE(rw->cnts) & 0x10000) in arch_read_lock_wait()
286 arch_spin_unlock(&rw->wait); in arch_read_lock_wait()
290 void arch_write_lock_wait(arch_rwlock_t *rw) in arch_write_lock_wait() argument
295 __atomic_add(0x20000, &rw->cnts); in arch_write_lock_wait()
298 arch_spin_lock(&rw->wait); in arch_write_lock_wait()
[all …]
/arch/ia64/include/asm/
Dspinlock.h157 #define arch_read_lock(rw) \ argument
159 arch_rwlock_t *__read_lock_ptr = (rw); \
170 #define arch_read_unlock(rw) \ argument
172 arch_rwlock_t *__read_lock_ptr = (rw); \
205 #define arch_write_trylock(rw) \ argument
213 : "=r"(result) : "r"(rw) : "ar.ccv", "r29", "memory"); \
237 #define arch_write_trylock(rw) \ argument
241 ia64_val = ia64_cmpxchg4_acq((__u32 *)(rw), ia64_set_val, 0); \
/arch/riscv/include/asm/
Dbarrier.h28 #define __smp_mb() RISCV_FENCE(rw,rw)
35 RISCV_FENCE(rw,w); \
43 RISCV_FENCE(r,rw); \
/arch/powerpc/lib/
Dlocks.c46 void splpar_rw_yield(arch_rwlock_t *rw) in splpar_rw_yield() argument
51 lock_value = rw->lock; in splpar_rw_yield()
61 if (rw->lock != lock_value) in splpar_rw_yield()
/arch/sh/drivers/pci/
Dcommon.c33 #define EARLY_PCI_OP(rw, size, type) \ argument
34 int __init early_##rw##_config_##size(struct pci_channel *hose, \
37 return pci_##rw##_config_##size( \
/arch/x86/kvm/
Dtrace.h159 TP_PROTO(unsigned int rw, unsigned int port, unsigned int size,
161 TP_ARGS(rw, port, size, count, data),
164 __field( unsigned int, rw )
172 __entry->rw = rw;
185 __entry->rw ? "write" : "read",
259 TP_PROTO(unsigned int rw, unsigned int reg, u64 val),
260 TP_ARGS(rw, reg, val),
263 __field( unsigned int, rw )
269 __entry->rw = rw;
275 __entry->rw ? "write" : "read",
[all …]
/arch/x86/mm/pat/
Dset_memory.c623 bool nx, bool rw) in verify_rwx() argument
646 if (!rw || nx) in verify_rwx()
669 unsigned int *level, bool *nx, bool *rw) in lookup_address_in_pgd_attr() argument
677 *rw = true; in lookup_address_in_pgd_attr()
683 *rw &= pgd_flags(*pgd) & _PAGE_RW; in lookup_address_in_pgd_attr()
694 *rw &= p4d_flags(*p4d) & _PAGE_RW; in lookup_address_in_pgd_attr()
705 *rw &= pud_flags(*pud) & _PAGE_RW; in lookup_address_in_pgd_attr()
716 *rw &= pmd_flags(*pmd) & _PAGE_RW; in lookup_address_in_pgd_attr()
730 bool nx, rw; in lookup_address_in_pgd() local
732 return lookup_address_in_pgd_attr(pgd, address, level, &nx, &rw); in lookup_address_in_pgd()
[all …]
/arch/xtensa/boot/dts/
Dkc705_nommu.dts9 …arlycon=uart8250,mmio32,0x9d050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug";
Dkc705.dts9 …o32native,0xfd050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug memmap=0x38000…
/arch/arm/boot/dts/microchip/
Dusb_a9g20_common.dtsi13 bootargs = "mem=64M root=/dev/mtdblock5 rw rootfstype=ubifs";
Dusb_a9260.dts16 bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs";
/arch/arm/boot/dts/nxp/vf/
Dvf610m4-colibri.dts16 bootargs = "clk_ignore_unused init=/linuxrc rw";
/arch/arm/boot/dts/aspeed/
Daspeed-bmc-facebook-galaxy100.dts13 bootargs = "console=ttyS0,9600n8 root=/dev/ram rw";
Daspeed-bmc-facebook-wedge100.dts13 bootargs = "console=ttyS2,9600n8 root=/dev/ram rw";

123456