Searched refs:count (Results 1 - 25 of 246) sorted by relevance

12345678910

/include/asm-generic/
H A Dmutex-null.h13 #define __mutex_fastpath_lock(count, fail_fn) fail_fn(count)
14 #define __mutex_fastpath_lock_retval(count) (-1)
15 #define __mutex_fastpath_unlock(count, fail_fn) fail_fn(count)
16 #define __mutex_fastpath_trylock(count, fail_fn) fail_fn(count)
H A Dmutex-dec.h11 * __mutex_fastpath_lock - try to take the lock by moving the count
13 * @count: pointer of type atomic_t
16 * Change the count from 1 to a value lower than 1, and call <fail_fn> if
21 __mutex_fastpath_lock(atomic_t *count, void (*fail_fn)(atomic_t *)) argument
23 if (unlikely(atomic_dec_return(count) < 0))
24 fail_fn(count);
28 * __mutex_fastpath_lock_retval - try to take the lock by moving the count
30 * @count: pointer of type atomic_t
32 * Change the count from 1 to a value lower than 1. This function returns 0
36 __mutex_fastpath_lock_retval(atomic_t *count) argument
57 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *)) argument
81 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) argument
[all...]
H A Dmutex-xchg.h16 * __mutex_fastpath_lock - try to take the lock by moving the count
18 * @count: pointer of type atomic_t
21 * Change the count from 1 to a value lower than 1, and call <fail_fn> if it
26 __mutex_fastpath_lock(atomic_t *count, void (*fail_fn)(atomic_t *)) argument
28 if (unlikely(atomic_xchg(count, 0) != 1))
34 if (likely(atomic_xchg(count, -1) != 1))
35 fail_fn(count);
39 * __mutex_fastpath_lock_retval - try to take the lock by moving the count
41 * @count: pointer of type atomic_t
43 * Change the count fro
47 __mutex_fastpath_lock_retval(atomic_t *count) argument
68 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *)) argument
92 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) argument
[all...]
H A Dide_iops.h8 static __inline__ void __ide_mm_insw(void __iomem *port, void *addr, u32 count) argument
10 while (count--) {
16 static __inline__ void __ide_mm_insl(void __iomem *port, void *addr, u32 count) argument
18 while (count--) {
24 static __inline__ void __ide_mm_outsw(void __iomem *port, void *addr, u32 count) argument
26 while (count--) {
32 static __inline__ void __ide_mm_outsl(void __iomem * port, void *addr, u32 count) argument
34 while (count--) {
H A Drwsem.h36 if (unlikely(atomic_long_inc_return((atomic_long_t *)&sem->count) <= 0))
44 while ((tmp = sem->count) >= 0) {
45 if (tmp == cmpxchg(&sem->count, tmp,
61 (atomic_long_t *)&sem->count);
75 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE,
87 tmp = atomic_long_dec_return((atomic_long_t *)&sem->count);
98 (atomic_long_t *)&sem->count) < 0))
107 atomic_long_add(delta, (atomic_long_t *)&sem->count);
118 (atomic_long_t *)&sem->count);
128 return atomic_long_add_return(delta, (atomic_long_t *)&sem->count);
[all...]
H A Diomap.h51 extern void ioread8_rep(void __iomem *port, void *buf, unsigned long count);
52 extern void ioread16_rep(void __iomem *port, void *buf, unsigned long count);
53 extern void ioread32_rep(void __iomem *port, void *buf, unsigned long count);
55 extern void iowrite8_rep(void __iomem *port, const void *buf, unsigned long count);
56 extern void iowrite16_rep(void __iomem *port, const void *buf, unsigned long count);
57 extern void iowrite32_rep(void __iomem *port, const void *buf, unsigned long count);
H A Dio.h165 static inline void insb(unsigned long addr, void *buffer, int count) argument
167 if (count) {
172 } while (--count);
178 static inline void insw(unsigned long addr, void *buffer, int count) argument
180 if (count) {
185 } while (--count);
191 static inline void insl(unsigned long addr, void *buffer, int count) argument
193 if (count) {
198 } while (--count);
204 static inline void outsb(unsigned long addr, const void *buffer, int count) argument
216 outsw(unsigned long addr, const void *buffer, int count) argument
228 outsl(unsigned long addr, const void *buffer, int count) argument
[all...]
/include/linux/
H A Dvt_buffer.h31 static inline void scr_memsetw(u16 *s, u16 c, unsigned int count) argument
33 count /= 2;
34 while (count--)
40 static inline void scr_memcpyw(u16 *d, const u16 *s, unsigned int count) argument
42 count /= 2;
43 while (count--)
49 static inline void scr_memmovew(u16 *d, const u16 *s, unsigned int count) argument
52 scr_memcpyw(d, s, count);
54 count /= 2;
55 d += count;
[all...]
H A Dregset.h47 * @count: amount of data to copy, in bytes
52 * are usual failure returns. The @pos and @count values are in
60 unsigned int pos, unsigned int count,
68 * @count: amount of data to copy, in bytes
73 * are usual failure returns. The @pos and @count values are in
81 unsigned int pos, unsigned int count,
134 * The @pos argument must be aligned according to @align; the @count
220 static inline int user_regset_copyout(unsigned int *pos, unsigned int *count, argument
225 if (*count == 0)
229 unsigned int copy = (end_pos < 0 ? *count
[all...]
H A Ddynamic_queue_limits.h72 static inline void dql_queued(struct dql *dql, unsigned int count) argument
74 BUG_ON(count > DQL_MAX_OBJECT);
76 dql->last_obj_cnt = count;
85 dql->num_queued += count;
95 void dql_completed(struct dql *dql, unsigned int count);
H A Dlockref.h13 * both the lock and the count word, or using memory transactions, for
31 unsigned int count; member in struct:lockref::__anon481::__anon482
47 return ((int)l->count < 0);
H A Duio.h31 size_t count; member in struct:iov_iter
60 .iov_len = min(iter->count,
68 (iter).count && \
88 unsigned long nr_segs, size_t count);
97 return i->count;
106 static inline void iov_iter_truncate(struct iov_iter *i, u64 count) argument
109 * count doesn't have to fit in size_t - comparison extends both
112 * values of size_t, including old i->count.
114 if (i->count > count)
122 iov_iter_reexpand(struct iov_iter *i, size_t count) argument
[all...]
H A Dnsproxy.h21 * 'count' is the number of tasks holding a reference.
22 * The count for each namespace, then, will be the number
30 atomic_t count; member in struct:nsproxy
75 if (atomic_dec_and_test(&ns->count)) {
82 atomic_inc(&ns->count);
H A Dcma.h28 extern struct page *cma_alloc(struct cma *cma, int count, unsigned int align);
29 extern bool cma_release(struct cma *cma, struct page *pages, int count);
H A Dpercpu_counter.h21 s64 count; member in struct:percpu_counter
64 return fbc->count;
74 s64 ret = fbc->count;
76 barrier(); /* Prevent reloads of fbc->count */
90 s64 count; member in struct:percpu_counter
96 fbc->count = amount;
106 fbc->count = amount;
111 if (fbc->count > rhs)
113 else if (fbc->count < rhs)
123 fbc->count
[all...]
H A Dfs_pin.h4 atomic_long_t count; member in struct:fs_pin
H A Dpti.h38 void pti_writedata(struct pti_masterchannel *mc, u8 *buf, int count);
/include/uapi/linux/netfilter/
H A Dxt_multiport.h17 __u8 count; /* Number of ports */ member in struct:xt_multiport
23 __u8 count; /* Number of ports */ member in struct:xt_multiport_v1
/include/linux/raid/
H A Dxor.h6 extern void xor_blocks(unsigned int count, unsigned int bytes,
/include/uapi/linux/
H A Divtvfb.h32 int count; member in struct:ivtvfb_dma_frame
H A Dkeychord.h46 __u16 count; member in struct:input_keychord
/include/uapi/xen/
H A Dgntdev.h53 uint32_t count; member in struct:ioctl_gntdev_map_grant_ref
59 /* Array of grant references, of size @count. */
75 uint32_t count; member in struct:ioctl_gntdev_unmap_grant_ref
84 * @vaddr is returned in @count.
101 uint32_t count; member in struct:ioctl_gntdev_get_offset_for_vaddr
116 uint32_t count; member in struct:ioctl_gntdev_set_max_grants
H A Dgntalloc.h26 uint32_t count; member in struct:ioctl_gntalloc_alloc_gref
31 /* Variable size, depending on count */
48 uint32_t count; member in struct:ioctl_gntalloc_dealloc_gref
/include/sound/
H A Dseq_midi_event.h47 long snd_midi_event_encode(struct snd_midi_event *dev, unsigned char *buf, long count,
51 long snd_midi_event_decode(struct snd_midi_event *dev, unsigned char *buf, long count,
/include/xen/
H A Dgrant_table.h58 u16 count; member in struct:gnttab_free_callback
94 int gnttab_alloc_grant_references(u16 count, grant_ref_t *pprivate_head);
108 void (*fn)(void *), void *arg, u16 count);
156 unsigned int count; member in struct:grant_frames
168 struct page **pages, unsigned int count);
171 struct page **pages, unsigned int count);
182 void gnttab_batch_map(struct gnttab_map_grant_ref *batch, unsigned count);
183 void gnttab_batch_copy(struct gnttab_copy *batch, unsigned count);

Completed in 343 milliseconds

12345678910