Home
last modified time | relevance | path

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

12345678910>>...14

/include/linux/
Dvt_buffer.h29 static inline void scr_memsetw(u16 *s, u16 c, unsigned int count) in scr_memsetw() argument
32 count /= 2; in scr_memsetw()
33 while (count--) in scr_memsetw()
36 memset16(s, c, count / 2); in scr_memsetw()
42 static inline void scr_memcpyw(u16 *d, const u16 *s, unsigned int count) in scr_memcpyw() argument
45 count /= 2; in scr_memcpyw()
46 while (count--) in scr_memcpyw()
49 memcpy(d, s, count); in scr_memcpyw()
55 static inline void scr_memmovew(u16 *d, const u16 *s, unsigned int count) in scr_memmovew() argument
59 scr_memcpyw(d, s, count); in scr_memmovew()
[all …]
Dregset.h57 unsigned int pos, unsigned int count,
78 unsigned int pos, unsigned int count,
254 static inline int user_regset_copyout(unsigned int *pos, unsigned int *count, in user_regset_copyout() argument
259 if (*count == 0) in user_regset_copyout()
263 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyout()
264 : min(*count, end_pos - *pos)); in user_regset_copyout()
274 *count -= copy; in user_regset_copyout()
279 static inline int user_regset_copyin(unsigned int *pos, unsigned int *count, in user_regset_copyin() argument
284 if (*count == 0) in user_regset_copyin()
288 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyin()
[all …]
Dnvram.h81 static inline ssize_t nvram_read_bytes(char *buf, size_t count, loff_t *ppos) in nvram_read_bytes() argument
89 for (i = *ppos; count > 0 && i < nvram_size; ++i, ++p, --count) in nvram_read_bytes()
95 static inline ssize_t nvram_write_bytes(char *buf, size_t count, loff_t *ppos) in nvram_write_bytes() argument
103 for (i = *ppos; count > 0 && i < nvram_size; ++i, ++p, --count) in nvram_write_bytes()
109 static inline ssize_t nvram_read(char *buf, size_t count, loff_t *ppos) in nvram_read() argument
113 return ppc_md.nvram_read(buf, count, ppos); in nvram_read()
116 return arch_nvram_ops.read(buf, count, ppos); in nvram_read()
118 return nvram_read_bytes(buf, count, ppos); in nvram_read()
121 static inline ssize_t nvram_write(char *buf, size_t count, loff_t *ppos) in nvram_write() argument
125 return ppc_md.nvram_write(buf, count, ppos); in nvram_write()
[all …]
Ddynamic_queue_limits.h73 static inline void dql_queued(struct dql *dql, unsigned int count) in dql_queued() argument
75 BUG_ON(count > DQL_MAX_OBJECT); in dql_queued()
77 dql->last_obj_cnt = count; in dql_queued()
86 dql->num_queued += count; in dql_queued()
96 void dql_completed(struct dql *dql, unsigned int count);
Dpercpu_counter.h22 s64 count; member
71 return fbc->count; in percpu_counter_read()
82 s64 ret = READ_ONCE(fbc->count); in percpu_counter_read_positive()
97 s64 count; member
103 fbc->count = amount; in percpu_counter_init()
113 fbc->count = amount; in percpu_counter_set()
118 if (fbc->count > rhs) in percpu_counter_compare()
120 else if (fbc->count < rhs) in percpu_counter_compare()
136 fbc->count += amount; in percpu_counter_add()
148 return fbc->count; in percpu_counter_read()
[all …]
Dlogic_pio.h35 size_t dwidth, unsigned int count);
37 size_t dwidth, unsigned int count);
50 void logic_insb(unsigned long addr, void *buffer, unsigned int count);
51 void logic_insl(unsigned long addr, void *buffer, unsigned int count);
52 void logic_insw(unsigned long addr, void *buffer, unsigned int count);
53 void logic_outsb(unsigned long addr, const void *buffer, unsigned int count);
54 void logic_outsw(unsigned long addr, const void *buffer, unsigned int count);
55 void logic_outsl(unsigned long addr, const void *buffer, unsigned int count);
Duio.h38 size_t count; member
110 .iov_len = min(iter->count, in iov_iter_iovec()
217 unsigned long nr_segs, size_t count);
219 unsigned long nr_segs, size_t count);
221 unsigned long nr_segs, size_t count);
223 size_t count);
224 void iov_iter_discard(struct iov_iter *i, unsigned int direction, size_t count);
235 return i->count; in iov_iter_count()
244 static inline void iov_iter_truncate(struct iov_iter *i, u64 count) in iov_iter_truncate() argument
252 if (i->count > count) in iov_iter_truncate()
[all …]
Dpage_ref.h164 static inline int page_ref_freeze(struct page *page, int count) in page_ref_freeze() argument
166 int ret = likely(atomic_cmpxchg(&page->_refcount, count, 0) == count); in page_ref_freeze()
169 __page_ref_freeze(page, count, ret); in page_ref_freeze()
173 static inline void page_ref_unfreeze(struct page *page, int count) in page_ref_unfreeze() argument
176 VM_BUG_ON(count == 0); in page_ref_unfreeze()
178 atomic_set_release(&page->_refcount, count); in page_ref_unfreeze()
180 __page_ref_unfreeze(page, count); in page_ref_unfreeze()
Dpercpu-refcount.h96 atomic_long_t count; member
194 atomic_long_add(nr, &ref->count); in percpu_ref_get_many()
232 ret = atomic_long_inc_not_zero(&ref->count); in percpu_ref_tryget()
266 ret = atomic_long_inc_not_zero(&ref->count); in percpu_ref_tryget_live()
292 else if (unlikely(atomic_long_sub_and_test(nr, &ref->count))) in percpu_ref_put_many()
340 return !atomic_long_read(&ref->count); in percpu_ref_is_zero()
Dnsproxy.h32 atomic_t count; member
78 if (atomic_dec_and_test(&ns->count)) { in put_nsproxy()
85 atomic_inc(&ns->count); in get_nsproxy()
Dseq_file.h20 size_t count; member
53 return m->count == m->size; in seq_has_overflowed()
66 BUG_ON(m->count > m->size); in seq_get_buf()
67 if (m->count < m->size) in seq_get_buf()
68 *bufp = m->buf + m->count; in seq_get_buf()
72 return m->size - m->count; in seq_get_buf()
87 m->count = m->size; in seq_commit()
89 BUG_ON(m->count + num > m->size); in seq_commit()
90 m->count += num; in seq_commit()
104 m->pad_until = m->count + size; in seq_setwidth()
Dcounter.h158 struct counter_count *count, void *priv, char *buf);
160 struct counter_count *count, void *priv,
228 int (*get)(struct counter_device *counter, struct counter_count *count,
230 int (*set)(struct counter_device *counter, struct counter_count *count,
360 struct counter_count *count,
363 struct counter_count *count,
366 struct counter_count *count, size_t *function);
368 struct counter_count *count, size_t function);
370 struct counter_count *count,
373 struct counter_count *count,
Dcrash_dump.h21 extern ssize_t elfcorehdr_read(char *buf, size_t count, u64 *ppos);
22 extern ssize_t elfcorehdr_read_notes(char *buf, size_t count, u64 *ppos);
120 ssize_t read_from_oldmem(char *buf, size_t count,
124 static inline ssize_t read_from_oldmem(char *buf, size_t count, in read_from_oldmem() argument
/include/trace/events/
Dcma.h14 unsigned int count, unsigned int align),
16 TP_ARGS(pfn, page, count, align),
21 __field(unsigned int, count)
28 __entry->count = count;
35 __entry->count,
42 unsigned int count),
44 TP_ARGS(pfn, page, count),
49 __field(unsigned int, count)
55 __entry->count = count;
61 __entry->count)
Dtegra_apb_dma.h28 TP_PROTO(struct dma_chan *dc, int count, void *ptr),
29 TP_ARGS(dc, count, ptr),
32 __field(int, count)
37 __entry->count = count;
41 __get_str(chan), __entry->count, __entry->ptr)
/include/xen/
Dmem-reservation.h29 void __xenmem_reservation_va_mapping_update(unsigned long count,
33 void __xenmem_reservation_va_mapping_reset(unsigned long count,
37 static inline void xenmem_reservation_va_mapping_update(unsigned long count, in xenmem_reservation_va_mapping_update() argument
43 __xenmem_reservation_va_mapping_update(count, pages, frames); in xenmem_reservation_va_mapping_update()
47 static inline void xenmem_reservation_va_mapping_reset(unsigned long count, in xenmem_reservation_va_mapping_reset() argument
52 __xenmem_reservation_va_mapping_reset(count, pages); in xenmem_reservation_va_mapping_reset()
56 int xenmem_reservation_increase(int count, xen_pfn_t *frames);
58 int xenmem_reservation_decrease(int count, xen_pfn_t *frames);
/include/asm-generic/
Dide_iops.h9 static __inline__ void __ide_mm_insw(void __iomem *port, void *addr, u32 count) in __ide_mm_insw() argument
11 while (count--) { in __ide_mm_insw()
17 static __inline__ void __ide_mm_insl(void __iomem *port, void *addr, u32 count) in __ide_mm_insl() argument
19 while (count--) { in __ide_mm_insl()
25 static __inline__ void __ide_mm_outsw(void __iomem *port, void *addr, u32 count) in __ide_mm_outsw() argument
27 while (count--) { in __ide_mm_outsw()
33 static __inline__ void __ide_mm_outsl(void __iomem * port, void *addr, u32 count) in __ide_mm_outsl() argument
35 while (count--) { in __ide_mm_outsl()
Dio.h318 unsigned int count) in readsb() argument
320 if (count) { in readsb()
326 } while (--count); in readsb()
334 unsigned int count) in readsw() argument
336 if (count) { in readsw()
342 } while (--count); in readsw()
350 unsigned int count) in readsl() argument
352 if (count) { in readsl()
358 } while (--count); in readsl()
367 unsigned int count) in readsq() argument
[all …]
Diomap.h82 extern void ioread8_rep(void __iomem *port, void *buf, unsigned long count);
83 extern void ioread16_rep(void __iomem *port, void *buf, unsigned long count);
84 extern void ioread32_rep(void __iomem *port, void *buf, unsigned long count);
86 extern void iowrite8_rep(void __iomem *port, const void *buf, unsigned long count);
87 extern void iowrite16_rep(void __iomem *port, const void *buf, unsigned long count);
88 extern void iowrite32_rep(void __iomem *port, const void *buf, unsigned long count);
/include/crypto/
Dsha512_base.h33 sctx->count[0] = sctx->count[1] = 0; in sha384_base_init()
50 sctx->count[0] = sctx->count[1] = 0; in sha512_base_init()
61 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_update()
63 sctx->count[0] += len; in sha512_base_do_update()
64 if (sctx->count[0] < len) in sha512_base_do_update()
65 sctx->count[1]++; in sha512_base_do_update()
101 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_finalize()
112 bits[0] = cpu_to_be64(sctx->count[1] << 3 | sctx->count[0] >> 61); in sha512_base_do_finalize()
113 bits[1] = cpu_to_be64(sctx->count[0] << 3); in sha512_base_do_finalize()
/include/drm/
Ddrm_debugfs.h84 int count, struct dentry *root,
87 int count, struct drm_minor *minor);
90 int count, struct dentry *root, in drm_debugfs_create_files() argument
97 int count, struct drm_minor *minor) in drm_debugfs_remove_files() argument
/include/uapi/xen/
Dgntdev.h57 __u32 count; member
79 __u32 count; member
105 __u32 count; member
120 __u32 count; member
195 unsigned int count; member
242 __u32 count; member
285 __u32 count; member
/include/crypto/internal/
Dsimd.h24 int simd_register_skciphers_compat(struct skcipher_alg *algs, int count,
27 void simd_unregister_skciphers(struct skcipher_alg *algs, int count,
42 int simd_register_aeads_compat(struct aead_alg *algs, int count,
45 void simd_unregister_aeads(struct aead_alg *algs, int count,
/include/sound/
Drawmidi.h149 const unsigned char *buffer, int count);
152 unsigned char *buffer, int count);
153 int snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream, int count);
155 unsigned char *buffer, int count);
157 unsigned char *buffer, int count);
159 int count);
176 unsigned char *buf, long count);
178 const unsigned char *buf, long count);
/include/linux/mfd/da9150/
Dcore.h71 void da9150_read_qif(struct da9150 *da9150, u8 addr, int count, u8 *buf);
72 void da9150_write_qif(struct da9150 *da9150, u8 addr, int count, const u8 *buf);
78 void da9150_bulk_read(struct da9150 *da9150, u16 reg, int count, u8 *buf);
79 void da9150_bulk_write(struct da9150 *da9150, u16 reg, int count, const u8 *buf);

12345678910>>...14