Searched refs:rw (Results 1 - 25 of 147) sorted by relevance

123456

/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-i386/
H A Drwlock.h3 * Helpers used by both rw spinlocks and rw semaphores.
23 #define __build_read_lock_ptr(rw, helper) \
31 ::"a" (rw) : "memory")
33 #define __build_read_lock_const(rw, helper) \
44 :"=m" (*(volatile int *)rw) : : "memory")
46 #define __build_read_lock(rw, helper) do { \
47 if (__builtin_constant_p(rw)) \
48 __build_read_lock_const(rw, helper); \
50 __build_read_lock_ptr(rw, helpe
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-x86_64/
H A Drwlock.h3 * Helpers used by both rw spinlocks and rw semaphores.
26 #define __build_read_lock_ptr(rw, helper) \
34 ::"a" (rw) : "memory")
36 #define __build_read_lock_const(rw, helper) \
47 :"=m" (*((volatile int *)rw))::"memory")
49 #define __build_read_lock(rw, helper) do { \
50 if (__builtin_constant_p(rw)) \
51 __build_read_lock_const(rw, helper); \
53 __build_read_lock_ptr(rw, helpe
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-x86_64/
H A Drwlock.h3 * Helpers used by both rw spinlocks and rw semaphores.
26 #define __build_read_lock_ptr(rw, helper) \
34 ::"a" (rw) : "memory")
36 #define __build_read_lock_const(rw, helper) \
47 :"=m" (*((volatile int *)rw))::"memory")
49 #define __build_read_lock(rw, helper) do { \
50 if (__builtin_constant_p(rw)) \
51 __build_read_lock_const(rw, helper); \
53 __build_read_lock_ptr(rw, helpe
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-i386/
H A Drwlock.h3 * Helpers used by both rw spinlocks and rw semaphores.
23 #define __build_read_lock_ptr(rw, helper) \
31 ::"a" (rw) : "memory")
33 #define __build_read_lock_const(rw, helper) \
44 :"=m" (*(volatile int *)rw) : : "memory")
46 #define __build_read_lock(rw, helper) do { \
47 if (__builtin_constant_p(rw)) \
48 __build_read_lock_const(rw, helper); \
50 __build_read_lock_ptr(rw, helpe
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-ppc/
H A Dspinlock.h110 extern void _read_lock(rwlock_t *rw);
111 extern void _read_unlock(rwlock_t *rw);
112 extern void _write_lock(rwlock_t *rw);
113 extern void _write_unlock(rwlock_t *rw);
115 #define read_lock(rw) _read_lock(rw)
116 #define write_lock(rw) _write_lock(rw)
117 #define write_unlock(rw) _write_unlock(rw)
122 read_lock(rwlock_t *rw) argument
142 read_unlock(rwlock_t *rw) argument
157 write_lock(rwlock_t *rw) argument
177 write_unlock(rwlock_t *rw) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-ppc/
H A Dspinlock.h110 extern void _read_lock(rwlock_t *rw);
111 extern void _read_unlock(rwlock_t *rw);
112 extern void _write_lock(rwlock_t *rw);
113 extern void _write_unlock(rwlock_t *rw);
115 #define read_lock(rw) _read_lock(rw)
116 #define write_lock(rw) _write_lock(rw)
117 #define write_unlock(rw) _write_unlock(rw)
122 read_lock(rwlock_t *rw) argument
142 read_unlock(rwlock_t *rw) argument
157 write_lock(rwlock_t *rw) argument
177 write_unlock(rwlock_t *rw) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-parisc/
H A Dspinlock.h45 static inline void read_lock(rwlock_t *rw) argument
48 spin_lock_irqsave(&rw->lock, flags);
50 rw->counter++;
52 spin_unlock_irqrestore(&rw->lock, flags);
55 static inline void read_unlock(rwlock_t *rw) argument
58 spin_lock_irqsave(&rw->lock, flags);
60 rw->counter--;
62 spin_unlock_irqrestore(&rw->lock, flags);
74 static inline void write_lock(rwlock_t *rw) argument
77 spin_lock(&rw
93 write_unlock(rwlock_t *rw) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-parisc/
H A Dspinlock.h45 static inline void read_lock(rwlock_t *rw) argument
48 spin_lock_irqsave(&rw->lock, flags);
50 rw->counter++;
52 spin_unlock_irqrestore(&rw->lock, flags);
55 static inline void read_unlock(rwlock_t *rw) argument
58 spin_lock_irqsave(&rw->lock, flags);
60 rw->counter--;
62 spin_unlock_irqrestore(&rw->lock, flags);
74 static inline void write_lock(rwlock_t *rw) argument
77 spin_lock(&rw
93 write_unlock(rwlock_t *rw) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/ppc/lib/
H A Dlocks.c101 void _read_lock(rwlock_t *rw) argument
108 atomic_inc((atomic_t *) &(rw)->lock);
109 if ( (signed long)((rw)->lock) < 0) /* someone has a write lock */
112 atomic_dec((atomic_t *) &(rw)->lock);
114 while ((signed long)((rw)->lock) < 0)
118 printk("_read_lock(%p) CPU#%d\n", rw, cpu);
128 void _read_unlock(rwlock_t *rw) argument
130 if ( rw->lock == 0 )
133 rw->lock);
135 atomic_dec((atomic_t *) &(rw)
138 _write_lock(rwlock_t *rw) argument
178 _write_unlock(rwlock_t *rw) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-s390/
H A Dspinlock.h79 #define read_lock(rw) \
87 : : "a" (&(rw)->lock) : "2", "3", "cc", "memory" )
89 #define read_unlock(rw) \
97 : : "a" (&(rw)->lock) : "2", "3", "cc", "memory" )
99 #define write_lock(rw) \
107 : : "a" (&(rw)->lock) : "2", "3", "cc", "memory" )
109 #define write_unlock(rw) \
117 : : "a" (&(rw)->lock) : "2", "3", "cc", "memory" )
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-s390/
H A Dspinlock.h79 #define read_lock(rw) \
87 : : "a" (&(rw)->lock) : "2", "3", "cc", "memory" )
89 #define read_unlock(rw) \
97 : : "a" (&(rw)->lock) : "2", "3", "cc", "memory" )
99 #define write_lock(rw) \
107 : : "a" (&(rw)->lock) : "2", "3", "cc", "memory" )
109 #define write_unlock(rw) \
117 : : "a" (&(rw)->lock) : "2", "3", "cc", "memory" )
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-ppc64/
H A Dspinlock.h90 static __inline__ int read_trylock(rwlock_t *rw) argument
106 : "r"(&rw->lock)
112 static __inline__ void read_lock(rwlock_t *rw) argument
131 : "r"(&rw->lock)
135 static __inline__ void read_unlock(rwlock_t *rw) argument
146 : "r"(&rw->lock)
150 static __inline__ int write_trylock(rwlock_t *rw) argument
165 : "r"(&rw->lock), "r"(-1)
171 static __inline__ void write_lock(rwlock_t *rw) argument
189 : "r"(&rw
193 write_unlock(rwlock_t *rw) argument
199 is_read_locked(rwlock_t *rw) argument
204 is_write_locked(rwlock_t *rw) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-ppc64/
H A Dspinlock.h90 static __inline__ int read_trylock(rwlock_t *rw) argument
106 : "r"(&rw->lock)
112 static __inline__ void read_lock(rwlock_t *rw) argument
131 : "r"(&rw->lock)
135 static __inline__ void read_unlock(rwlock_t *rw) argument
146 : "r"(&rw->lock)
150 static __inline__ int write_trylock(rwlock_t *rw) argument
165 : "r"(&rw->lock), "r"(-1)
171 static __inline__ void write_lock(rwlock_t *rw) argument
189 : "r"(&rw
193 write_unlock(rwlock_t *rw) argument
199 is_read_locked(rwlock_t *rw) argument
204 is_write_locked(rwlock_t *rw) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-mips/
H A Dspinlock.h83 static inline void read_lock(rwlock_t *rw) argument
96 : "=m" (rw->lock), "=&r" (tmp)
97 : "m" (rw->lock)
104 static inline void read_unlock(rwlock_t *rw) argument
116 : "=m" (rw->lock), "=&r" (tmp)
117 : "m" (rw->lock)
121 static inline void write_lock(rwlock_t *rw) argument
134 : "=m" (rw->lock), "=&r" (tmp)
135 : "m" (rw->lock)
139 static inline void write_unlock(rwlock_t *rw) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-mips64/
H A Dspinlock.h100 static inline void read_lock(rwlock_t *rw) argument
113 : "=m" (rw->lock), "=&r" (tmp)
114 : "m" (rw->lock)
121 static inline void read_unlock(rwlock_t *rw) argument
133 : "=m" (rw->lock), "=&r" (tmp)
134 : "m" (rw->lock)
138 static inline void write_lock(rwlock_t *rw) argument
151 : "=m" (rw->lock), "=&r" (tmp)
152 : "m" (rw->lock)
156 static inline void write_unlock(rwlock_t *rw) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-mips/
H A Dspinlock.h83 static inline void read_lock(rwlock_t *rw) argument
96 : "=m" (rw->lock), "=&r" (tmp)
97 : "m" (rw->lock)
104 static inline void read_unlock(rwlock_t *rw) argument
116 : "=m" (rw->lock), "=&r" (tmp)
117 : "m" (rw->lock)
121 static inline void write_lock(rwlock_t *rw) argument
134 : "=m" (rw->lock), "=&r" (tmp)
135 : "m" (rw->lock)
139 static inline void write_unlock(rwlock_t *rw) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-mips64/
H A Dspinlock.h100 static inline void read_lock(rwlock_t *rw) argument
113 : "=m" (rw->lock), "=&r" (tmp)
114 : "m" (rw->lock)
121 static inline void read_unlock(rwlock_t *rw) argument
133 : "=m" (rw->lock), "=&r" (tmp)
134 : "m" (rw->lock)
138 static inline void write_lock(rwlock_t *rw) argument
151 : "=m" (rw->lock), "=&r" (tmp)
152 : "m" (rw->lock)
156 static inline void write_unlock(rwlock_t *rw) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm/
H A Dspinlock.h83 static inline void read_lock(rwlock_t *rw) argument
96 : "=m" (rw->lock), "=&r" (tmp)
97 : "m" (rw->lock)
104 static inline void read_unlock(rwlock_t *rw) argument
116 : "=m" (rw->lock), "=&r" (tmp)
117 : "m" (rw->lock)
121 static inline void write_lock(rwlock_t *rw) argument
134 : "=m" (rw->lock), "=&r" (tmp)
135 : "m" (rw->lock)
139 static inline void write_unlock(rwlock_t *rw) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm/
H A Dspinlock.h83 static inline void read_lock(rwlock_t *rw) argument
96 : "=m" (rw->lock), "=&r" (tmp)
97 : "m" (rw->lock)
104 static inline void read_unlock(rwlock_t *rw) argument
116 : "=m" (rw->lock), "=&r" (tmp)
117 : "m" (rw->lock)
121 static inline void write_lock(rwlock_t *rw) argument
134 : "=m" (rw->lock), "=&r" (tmp)
135 : "m" (rw->lock)
139 static inline void write_unlock(rwlock_t *rw) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-sparc64/
H A Dkernprof.h18 struct reg_window *rw; member in struct:frame_info
29 * so we need this first frame to be "magic". rw is set to NULL.
35 frame->rw = NULL;
43 p->rw = (struct reg_window *)(regs->u_regs[UREG_FP] + STACK_BIAS);
48 (((char *)(p)->rw) < ((char *)current) || \
49 ((char *)(p)->rw) >= ((char *)current + (2 * PAGE_SIZE) - TRACEREG_SZ - REGWIN_SZ))
53 if (p->rw == NULL) {
57 p->rw = (struct reg_window *)(reg + STACK_BIAS);
67 p->pc = (p->rw)->ins[7];
69 p->rw
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-sparc64/
H A Dkernprof.h18 struct reg_window *rw; member in struct:frame_info
29 * so we need this first frame to be "magic". rw is set to NULL.
35 frame->rw = NULL;
43 p->rw = (struct reg_window *)(regs->u_regs[UREG_FP] + STACK_BIAS);
48 (((char *)(p)->rw) < ((char *)current) || \
49 ((char *)(p)->rw) >= ((char *)current + (2 * PAGE_SIZE) - TRACEREG_SZ - REGWIN_SZ))
53 if (p->rw == NULL) {
57 p->rw = (struct reg_window *)(reg + STACK_BIAS);
67 p->pc = (p->rw)->ins[7];
69 p->rw
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/sparc/lib/
H A Ddebuglocks.c109 void _do_read_lock(rwlock_t *rw, char *str) argument
119 __asm__ __volatile__("ldstub [%1 + 3], %0" : "=r" (val) : "r" (&(rw->lock)));
121 while(rw->lock & 0xff) {
123 show_read(str, rw, caller);
131 rw->reader_pc[cpu] = caller;
133 rw->lock++;
136 void _do_read_unlock(rwlock_t *rw, char *str) argument
146 __asm__ __volatile__("ldstub [%1 + 3], %0" : "=r" (val) : "r" (&(rw->lock)));
148 while(rw->lock & 0xff) {
150 show_read(str, rw, calle
163 _do_write_lock(rwlock_t *rw, char *str) argument
196 _do_write_unlock(rwlock_t *rw) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-s390x/
H A Dspinlock.h94 #define read_lock(rw) \
102 : : "a" (&(rw)->lock), "i" (__DIAG44_OPERAND) \
105 #define read_unlock(rw) \
113 : : "a" (&(rw)->lock), "i" (__DIAG44_OPERAND) \
116 #define write_lock(rw) \
123 : : "a" (&(rw)->lock), "i" (__DIAG44_OPERAND) \
126 #define write_unlock(rw) \
133 : : "a" (&(rw)->lock), "i" (__DIAG44_OPERAND) \
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-s390x/
H A Dspinlock.h94 #define read_lock(rw) \
102 : : "a" (&(rw)->lock), "i" (__DIAG44_OPERAND) \
105 #define read_unlock(rw) \
113 : : "a" (&(rw)->lock), "i" (__DIAG44_OPERAND) \
116 #define write_lock(rw) \
123 : : "a" (&(rw)->lock), "i" (__DIAG44_OPERAND) \
126 #define write_unlock(rw) \
133 : : "a" (&(rw)->lock), "i" (__DIAG44_OPERAND) \
/asus-wl-520gu-7.0.1.45/src/router/LPRng/src/include/
H A Dfileopen.h23 int Checkwrite( const char *file, struct stat *statb, int rw, int create,
26 const char *file, struct stat *statb, int rw, int create, int nodelay );

Completed in 192 milliseconds

123456