Home
last modified time | relevance | path

Searched refs:atomic_t (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/linux-2.4.37.9/include/asm-s390/
Datomic.h23 typedef struct { volatile int counter; } __attribute__ ((aligned (4))) atomic_t; typedef
40 static __inline__ void atomic_add(int i, atomic_t *v) in atomic_add()
46 static __inline__ int atomic_add_return (int i, atomic_t *v) in atomic_add_return()
53 static __inline__ int atomic_add_negative(int i, atomic_t *v) in atomic_add_negative()
60 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub()
66 static __inline__ void atomic_inc(volatile atomic_t *v) in atomic_inc()
72 static __inline__ int atomic_inc_return(volatile atomic_t *v) in atomic_inc_return()
79 static __inline__ int atomic_inc_and_test(volatile atomic_t *v) in atomic_inc_and_test()
86 static __inline__ void atomic_dec(volatile atomic_t *v) in atomic_dec()
92 static __inline__ int atomic_dec_return(volatile atomic_t *v) in atomic_dec_return()
[all …]
/linux-2.4.37.9/include/asm-s390x/
Datomic.h23 typedef struct { volatile int counter; } __attribute__ ((aligned (4))) atomic_t; typedef
40 static __inline__ void atomic_add(int i, atomic_t *v) in atomic_add()
46 static __inline__ int atomic_add_return (int i, atomic_t *v) in atomic_add_return()
53 static __inline__ int atomic_add_negative(int i, atomic_t *v) in atomic_add_negative()
60 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub()
66 static __inline__ void atomic_inc(volatile atomic_t *v) in atomic_inc()
72 static __inline__ int atomic_inc_return(volatile atomic_t *v) in atomic_inc_return()
79 static __inline__ int atomic_inc_and_test(volatile atomic_t *v) in atomic_inc_and_test()
86 static __inline__ void atomic_dec(volatile atomic_t *v) in atomic_dec()
92 static __inline__ int atomic_dec_return(volatile atomic_t *v) in atomic_dec_return()
[all …]
/linux-2.4.37.9/drivers/char/drm-4.0/
DdrmP.h368 atomic_t total;
370 atomic_t queued_to_dispatched[DRM_DMA_HISTOGRAM_SLOTS];
371 atomic_t dispatched_to_completed[DRM_DMA_HISTOGRAM_SLOTS];
372 atomic_t completed_to_freed[DRM_DMA_HISTOGRAM_SLOTS];
374 atomic_t queued_to_completed[DRM_DMA_HISTOGRAM_SLOTS];
375 atomic_t queued_to_freed[DRM_DMA_HISTOGRAM_SLOTS];
377 atomic_t dma[DRM_DMA_HISTOGRAM_SLOTS];
378 atomic_t schedule[DRM_DMA_HISTOGRAM_SLOTS];
379 atomic_t ctx[DRM_DMA_HISTOGRAM_SLOTS];
380 atomic_t lacq[DRM_DMA_HISTOGRAM_SLOTS];
[all …]
/linux-2.4.37.9/include/asm-cris/
Datomic.h19 typedef struct { int counter; } atomic_t; typedef
28 extern __inline__ void atomic_add(int i, volatile atomic_t *v) in atomic_add()
37 extern __inline__ void atomic_sub(int i, volatile atomic_t *v) in atomic_sub()
46 extern __inline__ int atomic_add_return(int i, volatile atomic_t *v) in atomic_add_return()
57 extern __inline__ int atomic_sub_return(int i, volatile atomic_t *v) in atomic_sub_return()
68 extern __inline__ int atomic_sub_and_test(int i, volatile atomic_t *v) in atomic_sub_and_test()
79 extern __inline__ void atomic_inc(volatile atomic_t *v) in atomic_inc()
88 extern __inline__ void atomic_dec(volatile atomic_t *v) in atomic_dec()
97 extern __inline__ int atomic_inc_return(volatile atomic_t *v) in atomic_inc_return()
108 extern __inline__ int atomic_dec_return(volatile atomic_t *v) in atomic_dec_return()
[all …]
/linux-2.4.37.9/include/asm-ppc64/
Datomic.h18 typedef struct { volatile int counter; } atomic_t; typedef
25 static __inline__ void atomic_add(int a, atomic_t *v) in atomic_add()
39 static __inline__ int atomic_add_return(int a, atomic_t *v) in atomic_add_return()
56 static __inline__ void atomic_sub(int a, atomic_t *v) in atomic_sub()
70 static __inline__ int atomic_sub_return(int a, atomic_t *v) in atomic_sub_return()
87 static __inline__ void atomic_inc(atomic_t *v) in atomic_inc()
101 static __inline__ int atomic_inc_return(atomic_t *v) in atomic_inc_return()
118 static __inline__ void atomic_dec(atomic_t *v) in atomic_dec()
132 static __inline__ int atomic_dec_return(atomic_t *v) in atomic_dec_return()
156 static __inline__ int atomic_dec_if_positive(atomic_t *v) in atomic_dec_if_positive()
Drwsem.h76 if (atomic_inc_return((atomic_t *)(&sem->count)) >= 0) in __down_read()
104 (atomic_t *)(&sem->count)); in __down_write()
129 tmp = atomic_dec_return((atomic_t *)(&sem->count)); in __up_read()
141 (atomic_t *)(&sem->count)) < 0) in __up_write()
150 atomic_add(delta, (atomic_t *)(&sem->count)); in rwsem_atomic_add()
159 return atomic_add_return(delta, (atomic_t *)(&sem->count)); in rwsem_atomic_update()
/linux-2.4.37.9/include/asm-ppc/
Datomic.h8 typedef struct { volatile int counter; } atomic_t; typedef
35 static __inline__ void atomic_add(int a, atomic_t *v) in atomic_add()
50 static __inline__ int atomic_add_return(int a, atomic_t *v) in atomic_add_return()
68 static __inline__ void atomic_sub(int a, atomic_t *v) in atomic_sub()
83 static __inline__ int atomic_sub_return(int a, atomic_t *v) in atomic_sub_return()
101 static __inline__ void atomic_inc(atomic_t *v) in atomic_inc()
116 static __inline__ int atomic_inc_return(atomic_t *v) in atomic_inc_return()
134 static __inline__ void atomic_dec(atomic_t *v) in atomic_dec()
149 static __inline__ int atomic_dec_return(atomic_t *v) in atomic_dec_return()
174 static __inline__ int atomic_dec_if_positive(atomic_t *v) in atomic_dec_if_positive()
Drwsem.h71 if (atomic_inc_return((atomic_t *)(&sem->count)) >= 0) in __down_read()
99 (atomic_t *)(&sem->count)); in __down_write()
124 tmp = atomic_dec_return((atomic_t *)(&sem->count)); in __up_read()
136 (atomic_t *)(&sem->count)) < 0) in __up_write()
145 atomic_add(delta, (atomic_t *)(&sem->count)); in rwsem_atomic_add()
154 return atomic_add_return(delta, (atomic_t *)(&sem->count)); in rwsem_atomic_update()
Dpgalloc.h46 extern atomic_t zero_sz; /* # currently pre-zero'd pages */
47 extern atomic_t zeropage_hits; /* # zero'd pages request that we've done */
48 extern atomic_t zeropage_calls; /* # zero'd pages request that've been made */
49 extern atomic_t zerototal; /* # pages zero'd over time */
/linux-2.4.37.9/include/asm-x86_64/
Datomic.h24 typedef struct { volatile int counter; } atomic_t; typedef
55 static __inline__ void atomic_add(int i, atomic_t *v) in atomic_add()
71 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub()
89 static __inline__ int atomic_sub_and_test(int i, atomic_t *v) in atomic_sub_and_test()
107 static __inline__ void atomic_inc(atomic_t *v) in atomic_inc()
122 static __inline__ void atomic_dec(atomic_t *v) in atomic_dec()
139 static __inline__ int atomic_dec_and_test(atomic_t *v) in atomic_dec_and_test()
159 static __inline__ int atomic_inc_and_test(atomic_t *v) in atomic_inc_and_test()
180 static __inline__ int atomic_add_negative(int i, atomic_t *v) in atomic_add_negative()
/linux-2.4.37.9/include/asm-i386/
Datomic.h22 typedef struct { volatile int counter; } atomic_t; typedef
53 static __inline__ void atomic_add(int i, atomic_t *v) in atomic_add()
69 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub()
87 static __inline__ int atomic_sub_and_test(int i, atomic_t *v) in atomic_sub_and_test()
105 static __inline__ void atomic_inc(atomic_t *v) in atomic_inc()
120 static __inline__ void atomic_dec(atomic_t *v) in atomic_dec()
137 static __inline__ int atomic_dec_and_test(atomic_t *v) in atomic_dec_and_test()
157 static __inline__ int atomic_inc_and_test(atomic_t *v) in atomic_inc_and_test()
178 static __inline__ int atomic_add_negative(int i, atomic_t *v) in atomic_add_negative()
/linux-2.4.37.9/drivers/s390/net/
Dqeth.h522 atomic_t status;
804 atomic_t is_startlaned; /* card did not get a stoplan */
814 atomic_t inbound_buffer_refcnt[QDIO_MAX_BUFFERS_PER_Q];
827 atomic_t requeue_position;
828 atomic_t requeue_counter;
833 atomic_t outbound_used_buffers[QETH_MAX_QUEUES];
839 atomic_t outbound_ringbuffer_lock[QETH_MAX_QUEUES];
840 atomic_t last_pci_pos[QETH_MAX_QUEUES];
870 atomic_t is_registered; /* card registered as netdev? */
871 atomic_t is_hardsetup; /* card has gone through hardsetup */
[all …]
/linux-2.4.37.9/include/asm-sh/
Datomic.h10 typedef struct { volatile int counter; } atomic_t; typedef
12 #define ATOMIC_INIT(i) ( (atomic_t) { (i) } )
25 static __inline__ void atomic_add(int i, atomic_t * v) in atomic_add()
34 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub()
43 static __inline__ int atomic_add_return(int i, atomic_t * v) in atomic_add_return()
56 static __inline__ int atomic_sub_return(int i, atomic_t * v) in atomic_sub_return()
78 static __inline__ void atomic_clear_mask(unsigned int mask, atomic_t *v) in atomic_clear_mask()
87 static __inline__ void atomic_set_mask(unsigned int mask, atomic_t *v) in atomic_set_mask()
/linux-2.4.37.9/include/asm-sh64/
Datomic.h10 typedef struct { volatile int counter; } atomic_t; typedef
12 #define ATOMIC_INIT(i) ( (atomic_t) { (i) } )
25 static __inline__ void atomic_add(int i, atomic_t * v) in atomic_add()
34 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub()
43 static __inline__ int atomic_add_return(int i, atomic_t * v) in atomic_add_return()
56 static __inline__ int atomic_sub_return(int i, atomic_t * v) in atomic_sub_return()
78 static __inline__ void atomic_clear_mask(unsigned int mask, atomic_t *v) in atomic_clear_mask()
87 static __inline__ void atomic_set_mask(unsigned int mask, atomic_t *v) in atomic_set_mask()
/linux-2.4.37.9/include/asm-mips/
Datomic.h19 typedef struct { volatile int counter; } atomic_t; typedef
58 static __inline__ void atomic_add(int i, atomic_t * v) in atomic_add()
75 static __inline__ void atomic_sub(int i, atomic_t * v) in atomic_sub()
84 static __inline__ int atomic_add_return(int i, atomic_t * v) in atomic_add_return()
98 static __inline__ int atomic_sub_return(int i, atomic_t * v) in atomic_sub_return()
127 static __inline__ void atomic_add(int i, atomic_t * v) in atomic_add()
148 static __inline__ void atomic_sub(int i, atomic_t * v) in atomic_sub()
164 static __inline__ int atomic_add_return(int i, atomic_t * v) in atomic_add_return()
185 static __inline__ int atomic_sub_return(int i, atomic_t * v) in atomic_sub_return()
/linux-2.4.37.9/include/asm-arm/
Datomic.h25 typedef struct { volatile int counter; } atomic_t; typedef
35 static inline void atomic_add(int i, volatile atomic_t *v) in atomic_add()
44 static inline void atomic_sub(int i, volatile atomic_t *v) in atomic_sub()
53 static inline void atomic_inc(volatile atomic_t *v) in atomic_inc()
62 static inline void atomic_dec(volatile atomic_t *v) in atomic_dec()
71 static inline int atomic_dec_and_test(volatile atomic_t *v) in atomic_dec_and_test()
84 static inline int atomic_add_negative(int i, volatile atomic_t *v) in atomic_add_negative()
/linux-2.4.37.9/drivers/char/drm/
DdrmP.h415 atomic_t total;
417 atomic_t queued_to_dispatched[DRM_DMA_HISTOGRAM_SLOTS];
418 atomic_t dispatched_to_completed[DRM_DMA_HISTOGRAM_SLOTS];
419 atomic_t completed_to_freed[DRM_DMA_HISTOGRAM_SLOTS];
421 atomic_t queued_to_completed[DRM_DMA_HISTOGRAM_SLOTS];
422 atomic_t queued_to_freed[DRM_DMA_HISTOGRAM_SLOTS];
424 atomic_t dma[DRM_DMA_HISTOGRAM_SLOTS];
425 atomic_t schedule[DRM_DMA_HISTOGRAM_SLOTS];
426 atomic_t ctx[DRM_DMA_HISTOGRAM_SLOTS];
427 atomic_t lacq[DRM_DMA_HISTOGRAM_SLOTS];
[all …]
/linux-2.4.37.9/include/asm-m68k/
Datomic.h13 typedef struct { int counter; } atomic_t; typedef
19 static __inline__ void atomic_add(int i, atomic_t *v) in atomic_add()
24 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub()
29 static __inline__ void atomic_inc(volatile atomic_t *v) in atomic_inc()
34 static __inline__ void atomic_dec(volatile atomic_t *v) in atomic_dec()
39 static __inline__ int atomic_dec_and_test(volatile atomic_t *v) in atomic_dec_and_test()
/linux-2.4.37.9/include/asm-ia64/
Datomic.h23 typedef struct { volatile __s32 counter; } atomic_t; typedef
25 #define ATOMIC_INIT(i) ((atomic_t) { (i) })
31 ia64_atomic_add (int i, atomic_t *v) in ia64_atomic_add()
40 } while (ia64_cmpxchg("acq", v, old, old + i, sizeof(atomic_t)) != old); in ia64_atomic_add()
45 ia64_atomic_sub (int i, atomic_t *v) in ia64_atomic_sub()
54 } while (ia64_cmpxchg("acq", v, old, new, sizeof(atomic_t)) != old); in ia64_atomic_sub()
63 atomic_add_negative (int i, atomic_t *v) in atomic_add_negative()
/linux-2.4.37.9/include/linux/
Dif_wanpipe_common.h31 atomic_t packet_sent;
32 atomic_t receive_block;
33 atomic_t command;
34 atomic_t disconnect;
35 atomic_t driver_busy;
/linux-2.4.37.9/include/asm-alpha/
Datomic.h18 typedef struct { volatile int counter; } atomic_t; typedef
20 #define ATOMIC_INIT(i) ( (atomic_t) { (i) } )
31 static __inline__ void atomic_add(int i, atomic_t * v) in atomic_add()
46 static __inline__ void atomic_sub(int i, atomic_t * v) in atomic_sub()
64 static __inline__ long atomic_add_return(int i, atomic_t * v) in atomic_add_return()
82 static __inline__ long atomic_sub_return(int i, atomic_t * v) in atomic_sub_return()
/linux-2.4.37.9/include/asm-sparc64/
Datomic.h13 typedef struct { volatile int counter; } atomic_t; typedef
19 extern void atomic_add(int, atomic_t *);
20 extern void atomic_sub(int, atomic_t *);
22 extern int atomic_add_ret(int, atomic_t *);
23 extern int atomic_sub_ret(int, atomic_t *);
/linux-2.4.37.9/include/asm-mips64/
Datomic.h19 typedef struct { volatile int counter; } atomic_t; typedef
43 static __inline__ void atomic_add(int i, volatile atomic_t * v) in atomic_add()
64 static __inline__ void atomic_sub(int i, volatile atomic_t * v) in atomic_sub()
80 static __inline__ int atomic_add_return(int i, atomic_t * v) in atomic_add_return()
100 static __inline__ int atomic_sub_return(int i, atomic_t * v) in atomic_sub_return()
/linux-2.4.37.9/include/asm-sparc/
Datomic.h12 typedef struct { volatile int counter; } atomic_t; typedef
38 static __inline__ int atomic_read(atomic_t *v) in atomic_read()
51 static inline int __atomic_add(int i, atomic_t *v) in __atomic_add()
73 static inline int __atomic_sub(int i, atomic_t *v) in __atomic_sub()
/linux-2.4.37.9/arch/sparc/lib/
Datomic.S59 ld [%g1], %g7 ! Load locked atomic_t
62 sll %g2, 8, %g7 ! Transpose back to atomic_t
65 ld [%g1], %g7 ! Load locked atomic_t
85 ld [%g1], %g7 ! Load locked atomic_t
88 sll %g2, 8, %g7 ! Transpose back to atomic_t
91 ld [%g1], %g7 ! Load locked atomic_t

12345678910>>...14