Searched refs:lock (Results 1 - 25 of 949) sorted by relevance

1234567891011>>

/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/
H A Dspinlock.h12 #define spin_lock_irqsave(lock, flags) do { local_irq_save(flags); spin_lock(lock); } while (0)
13 #define spin_lock_irq(lock) do { local_irq_disable(); spin_lock(lock); } while (0)
14 #define spin_lock_bh(lock) do { local_bh_disable(); spin_lock(lock); } while (0)
16 #define read_lock_irqsave(lock, flags) do { local_irq_save(flags); read_lock(lock); } while (0)
17 #define read_lock_irq(lock) do { local_irq_disable(); read_lock(lock); } whil
88 volatile unsigned long lock; member in struct:__anon11454
103 volatile unsigned long lock; member in struct:__anon11455
147 spinlock_t lock; member in union:__anon11458
154 spinlock_t lock; member in struct:__anon11459
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/
H A Dspinlock.h12 #define spin_lock_irqsave(lock, flags) do { local_irq_save(flags); spin_lock(lock); } while (0)
13 #define spin_lock_irq(lock) do { local_irq_disable(); spin_lock(lock); } while (0)
14 #define spin_lock_bh(lock) do { local_bh_disable(); spin_lock(lock); } while (0)
16 #define read_lock_irqsave(lock, flags) do { local_irq_save(flags); read_lock(lock); } while (0)
17 #define read_lock_irq(lock) do { local_irq_disable(); read_lock(lock); } whil
88 volatile unsigned long lock; member in struct:__anon7040
103 volatile unsigned long lock; member in struct:__anon7041
147 spinlock_t lock; member in union:__anon7044
154 spinlock_t lock; member in struct:__anon7045
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-mips64/
H A Dspinlock.h17 volatile unsigned int lock; member in struct:__anon10503
22 #define spin_lock_init(x) do { (x)->lock = 0; } while(0)
24 #define spin_is_locked(x) ((x)->lock != 0)
25 #define spin_unlock_wait(x) do { barrier(); } while ((x)->lock)
28 * Simple spin lock operations. There are two variants, one clears IRQ's
34 static inline void spin_lock(spinlock_t *lock) argument
47 : "=m" (lock->lock), "=&r" (tmp)
48 : "m" (lock->lock)
52 spin_unlock(spinlock_t *lock) argument
64 spin_trylock(spinlock_t *lock) argument
93 volatile unsigned int lock; member in struct:__anon10504
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-mips64/
H A Dspinlock.h17 volatile unsigned int lock; member in struct:__anon6087
22 #define spin_lock_init(x) do { (x)->lock = 0; } while(0)
24 #define spin_is_locked(x) ((x)->lock != 0)
25 #define spin_unlock_wait(x) do { barrier(); } while ((x)->lock)
28 * Simple spin lock operations. There are two variants, one clears IRQ's
34 static inline void spin_lock(spinlock_t *lock) argument
47 : "=m" (lock->lock), "=&r" (tmp)
48 : "m" (lock->lock)
52 spin_unlock(spinlock_t *lock) argument
64 spin_trylock(spinlock_t *lock) argument
93 volatile unsigned int lock; member in struct:__anon6088
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-alpha/
H A Dspinlock.h11 * Simple spin lock operations. There are two variants, one clears IRQ's
18 volatile unsigned int lock /*__attribute__((aligned(32))) */; member in struct:__anon7741
31 ((x)->lock = 0, (x)->on_cpu = -1, (x)->previous = 0, (x)->task = 0)
34 #define spin_lock_init(x) ((x)->lock = 0)
37 #define spin_is_locked(x) ((x)->lock != 0)
38 #define spin_unlock_wait(x) ({ do { barrier(); } while ((x)->lock); })
41 extern void spin_unlock(spinlock_t * lock);
42 extern void debug_spin_lock(spinlock_t * lock, const char *, int);
43 extern int debug_spin_trylock(spinlock_t * lock, const char *, int);
50 if (!((LOCK)->lock
57 spin_unlock(spinlock_t * lock) argument
63 spin_lock(spinlock_t * lock) argument
104 write_lock(rwlock_t * lock) argument
124 read_lock(rwlock_t * lock) argument
145 write_unlock(rwlock_t * lock) argument
151 read_unlock(rwlock_t * lock) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-alpha/
H A Dspinlock.h11 * Simple spin lock operations. There are two variants, one clears IRQ's
18 volatile unsigned int lock /*__attribute__((aligned(32))) */; member in struct:__anon3325
31 ((x)->lock = 0, (x)->on_cpu = -1, (x)->previous = 0, (x)->task = 0)
34 #define spin_lock_init(x) ((x)->lock = 0)
37 #define spin_is_locked(x) ((x)->lock != 0)
38 #define spin_unlock_wait(x) ({ do { barrier(); } while ((x)->lock); })
41 extern void spin_unlock(spinlock_t * lock);
42 extern void debug_spin_lock(spinlock_t * lock, const char *, int);
43 extern int debug_spin_trylock(spinlock_t * lock, const char *, int);
50 if (!((LOCK)->lock
57 spin_unlock(spinlock_t * lock) argument
63 spin_lock(spinlock_t * lock) argument
104 write_lock(rwlock_t * lock) argument
124 read_lock(rwlock_t * lock) argument
145 write_unlock(rwlock_t * lock) argument
151 read_unlock(rwlock_t * lock) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-mips/
H A Dspinlock.h17 volatile unsigned int lock; member in struct:__anon10400
22 #define spin_lock_init(x) do { (x)->lock = 0; } while(0)
24 #define spin_is_locked(x) ((x)->lock != 0)
25 #define spin_unlock_wait(x) do { barrier(); } while ((x)->lock)
28 * Simple spin lock operations. There are two variants, one clears IRQ's
34 static inline void spin_lock(spinlock_t *lock) argument
47 : "=m" (lock->lock), "=&r" (tmp)
48 : "m" (lock->lock)
52 spin_unlock(spinlock_t *lock) argument
76 volatile unsigned int lock; member in struct:__anon10401
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-mips/
H A Dspinlock.h17 volatile unsigned int lock; member in struct:__anon5984
22 #define spin_lock_init(x) do { (x)->lock = 0; } while(0)
24 #define spin_is_locked(x) ((x)->lock != 0)
25 #define spin_unlock_wait(x) do { barrier(); } while ((x)->lock)
28 * Simple spin lock operations. There are two variants, one clears IRQ's
34 static inline void spin_lock(spinlock_t *lock) argument
47 : "=m" (lock->lock), "=&r" (tmp)
48 : "m" (lock->lock)
52 spin_unlock(spinlock_t *lock) argument
76 volatile unsigned int lock; member in struct:__anon5985
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm/
H A Dspinlock.h17 volatile unsigned int lock; member in struct:__anon7665
22 #define spin_lock_init(x) do { (x)->lock = 0; } while(0)
24 #define spin_is_locked(x) ((x)->lock != 0)
25 #define spin_unlock_wait(x) do { barrier(); } while ((x)->lock)
28 * Simple spin lock operations. There are two variants, one clears IRQ's
34 static inline void spin_lock(spinlock_t *lock) argument
47 : "=m" (lock->lock), "=&r" (tmp)
48 : "m" (lock->lock)
52 spin_unlock(spinlock_t *lock) argument
76 volatile unsigned int lock; member in struct:__anon7666
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/net/irda/
H A Dirmod.h35 * Those function basically return false if the lock is already in the
37 #define irda_lock(lock) (! test_and_set_bit(0, (void *) (lock)))
38 #define irda_unlock(lock) (test_and_clear_bit(0, (void *) (lock)))
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/net/irda/
H A Dirmod.h35 * Those function basically return false if the lock is already in the
37 #define irda_lock(lock) (! test_and_set_bit(0, (void *) (lock)))
38 #define irda_unlock(lock) (test_and_clear_bit(0, (void *) (lock)))
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm/
H A Dspinlock.h17 volatile unsigned int lock; member in struct:__anon3249
22 #define spin_lock_init(x) do { (x)->lock = 0; } while(0)
24 #define spin_is_locked(x) ((x)->lock != 0)
25 #define spin_unlock_wait(x) do { barrier(); } while ((x)->lock)
28 * Simple spin lock operations. There are two variants, one clears IRQ's
34 static inline void spin_lock(spinlock_t *lock) argument
47 : "=m" (lock->lock), "=&r" (tmp)
48 : "m" (lock->lock)
52 spin_unlock(spinlock_t *lock) argument
76 volatile unsigned int lock; member in struct:__anon3250
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/ppc/lib/
H A Dlocks.c29 * a lock.
31 static unsigned long __spin_trylock(volatile unsigned long *lock) argument
44 : "r"(lock), "r"(1)
50 void _spin_lock(spinlock_t *lock) argument
54 while (__spin_trylock(&lock->lock)) {
55 while ((unsigned volatile long)lock->lock != 0) {
59 lock, cpu, __builtin_return_address(0),
60 lock
71 spin_trylock(spinlock_t *lock) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-sparc/
H A Dspinlock.h25 unsigned char lock; member in struct:_spinlock_debug
32 #define spin_is_locked(lp) (*((volatile unsigned char *)(&((lp)->lock))) != 0)
33 #define spin_unlock_wait(lp) do { barrier(); } while(*(volatile unsigned char *)(&(lp)->lock))
35 extern void _do_spin_lock(spinlock_t *lock, char *str);
36 extern int _spin_trylock(spinlock_t *lock);
37 extern void _do_spin_unlock(spinlock_t *lock);
40 #define spin_lock(lock) _do_spin_lock(lock, "spin_lock")
41 #define spin_unlock(lock) _do_spin_unlock(lock)
44 volatile unsigned int lock; member in struct:_rwlock_debug
100 spin_lock(spinlock_t *lock) argument
120 spin_trylock(spinlock_t *lock) argument
130 spin_unlock(spinlock_t *lock) argument
135 typedef struct { volatile unsigned int lock; } rwlock_t; member in struct:__anon10866
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-sparc/
H A Dspinlock.h25 unsigned char lock; member in struct:_spinlock_debug
32 #define spin_is_locked(lp) (*((volatile unsigned char *)(&((lp)->lock))) != 0)
33 #define spin_unlock_wait(lp) do { barrier(); } while(*(volatile unsigned char *)(&(lp)->lock))
35 extern void _do_spin_lock(spinlock_t *lock, char *str);
36 extern int _spin_trylock(spinlock_t *lock);
37 extern void _do_spin_unlock(spinlock_t *lock);
40 #define spin_lock(lock) _do_spin_lock(lock, "spin_lock")
41 #define spin_unlock(lock) _do_spin_unlock(lock)
44 volatile unsigned int lock; member in struct:_rwlock_debug
100 spin_lock(spinlock_t *lock) argument
120 spin_trylock(spinlock_t *lock) argument
130 spin_unlock(spinlock_t *lock) argument
135 typedef struct { volatile unsigned int lock; } rwlock_t; member in struct:__anon6450
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/alpha/lib/
H A Ddec_and_lock.c34 atomic_dec_and_lock_1(atomic_t *atomic, spinlock_t *lock) argument
37 spin_lock(lock);
40 spin_unlock(lock);
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-s390/
H A Dspinlock.h15 * Simple spin lock operations. There are two variants, one clears IRQ's
22 volatile unsigned long lock; member in struct:__anon10710
26 #define spin_lock_init(lp) do { (lp)->lock = 0; } while(0)
27 #define spin_unlock_wait(lp) do { barrier(); } while(((volatile spinlock_t *)(lp))->lock)
28 #define spin_is_locked(x) ((x)->lock != 0)
39 : "a" (&lp->lock) : "cc", "memory" );
49 : "a" (&lp->lock) : "cc", "memory" );
57 : : "a" (&lp->lock) : "memory", "cc" );
67 * irq-safe write-lock, but readers can get non-irqsafe
71 volatile unsigned long lock; member in struct:__anon10711
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-s390/
H A Dspinlock.h15 * Simple spin lock operations. There are two variants, one clears IRQ's
22 volatile unsigned long lock; member in struct:__anon6294
26 #define spin_lock_init(lp) do { (lp)->lock = 0; } while(0)
27 #define spin_unlock_wait(lp) do { barrier(); } while(((volatile spinlock_t *)(lp))->lock)
28 #define spin_is_locked(x) ((x)->lock != 0)
39 : "a" (&lp->lock) : "cc", "memory" );
49 : "a" (&lp->lock) : "cc", "memory" );
57 : : "a" (&lp->lock) : "memory", "cc" );
67 * irq-safe write-lock, but readers can get non-irqsafe
71 volatile unsigned long lock; member in struct:__anon6295
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-sparc64/
H A Dspinlock.h36 #define spin_lock_init(lock) (*((unsigned char *)(lock)) = 0)
37 #define spin_is_locked(lock) (*((volatile unsigned char *)(lock)) != 0)
39 #define spin_unlock_wait(lock) \
41 } while(*((volatile unsigned char *)lock))
43 extern __inline__ void spin_lock(spinlock_t *lock) argument
56 : "r" (lock)
60 extern __inline__ int spin_trylock(spinlock_t *lock) argument
66 : "r" (lock)
71 spin_unlock(spinlock_t *lock) argument
83 unsigned char lock; member in struct:__anon10929
129 unsigned long lock; member in struct:__anon10930
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-sparc64/
H A Dspinlock.h36 #define spin_lock_init(lock) (*((unsigned char *)(lock)) = 0)
37 #define spin_is_locked(lock) (*((volatile unsigned char *)(lock)) != 0)
39 #define spin_unlock_wait(lock) \
41 } while(*((volatile unsigned char *)lock))
43 extern __inline__ void spin_lock(spinlock_t *lock) argument
56 : "r" (lock)
60 extern __inline__ int spin_trylock(spinlock_t *lock) argument
66 : "r" (lock)
71 spin_unlock(spinlock_t *lock) argument
83 unsigned char lock; member in struct:__anon6513
129 unsigned long lock; member in struct:__anon6514
[all...]
/asus-wl-520gu-7.0.1.45/src/router/samba/source/tests/
H A Dfcntl_lock64.c32 /* lock a byte range in a open file */
35 struct flock64 lock; local
45 lock.l_type = F_WRLCK;
46 lock.l_whence = SEEK_SET;
47 lock.l_start = 0;
48 lock.l_len = 4;
49 lock.l_pid = getpid();
51 lock.l_type = F_WRLCK;
53 /* check if a lock applies */
54 ret = fcntl(fd,F_GETLK64,&lock);
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-ppc64/
H A Dspinlock.h5 * Simple spin lock operations.
18 volatile unsigned int lock; member in struct:__anon10616
24 #define spin_is_locked(x) ((x)->lock != 0)
26 static __inline__ int spin_trylock(spinlock_t *lock) argument
40 : "r"(&lock->lock)
46 static __inline__ void spin_lock(spinlock_t *lock) argument
64 : "r"(&lock->lock), "r"(1)
68 static __inline__ void spin_unlock(spinlock_t *lock) argument
85 volatile signed int lock; member in struct:__anon10617
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-ppc64/
H A Dspinlock.h5 * Simple spin lock operations.
18 volatile unsigned int lock; member in struct:__anon6200
24 #define spin_is_locked(x) ((x)->lock != 0)
26 static __inline__ int spin_trylock(spinlock_t *lock) argument
40 : "r"(&lock->lock)
46 static __inline__ void spin_lock(spinlock_t *lock) argument
64 : "r"(&lock->lock), "r"(1)
68 static __inline__ void spin_unlock(spinlock_t *lock) argument
85 volatile signed int lock; member in struct:__anon6201
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/sparc/lib/
H A Ddebuglocks.c18 /* Some notes on how these debugging routines work. When a lock is acquired
19 * an extra debugging member lock->owner_pc is set to the caller of the lock
20 * acquisition routine. Right before releasing a lock, the debugging program
29 static inline void show(char *str, spinlock_t *lock, unsigned long caller) argument
34 lock, cpu, caller, lock->owner_pc & ~3, lock->owner_pc & 3);
37 static inline void show_read(char *str, rwlock_t *lock, unsigned long caller) argument
42 lock, cp
45 show_write(char *str, rwlock_t *lock, unsigned long caller) argument
62 _do_spin_lock(spinlock_t *lock, char *str) argument
86 _spin_trylock(spinlock_t *lock) argument
102 _do_spin_unlock(spinlock_t *lock) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-parisc/
H A Dspinlock.h13 #define spin_lock_init(x) do { (x)->lock = 1; } while(0)
15 #define spin_is_locked(x) ((x)->lock == 0)
17 #define spin_unlock_wait(x) do { barrier(); } while(((volatile spinlock_t *)(x))->lock == 0)
20 while (__ldcw (&(x)->lock) == 0) \
21 while (((x)->lock) == 0) ; } while (0)
25 do { (x)->lock = 1; } while(0)
27 #define spin_trylock(x) (__ldcw(&(x)->lock) != 0)
34 spinlock_t lock; member in struct:__anon10527
48 spin_lock_irqsave(&rw->lock, flags);
52 spin_unlock_irqrestore(&rw->lock, flag
[all...]

Completed in 297 milliseconds

1234567891011>>