Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 25 of 37) sorted by relevance

12

/include/linux/
A Dpage_counter.h60 counter->max = PAGE_COUNTER_MAX; in page_counter_init()
61 counter->parent = parent; in page_counter_init()
62 counter->protection_support = protection_support; in page_counter_init()
63 counter->track_failcnt = false; in page_counter_init()
68 return atomic_long_read(&counter->usage); in page_counter_read()
83 WRITE_ONCE(counter->high, nr_pages); in page_counter_set_high()
92 unsigned long usage = page_counter_read(counter); in page_counter_reset_watermark()
98 counter->local_watermark = usage; in page_counter_reset_watermark()
99 counter->watermark = usage; in page_counter_reset_watermark()
104 struct page_counter *counter,
[all …]
A Dcounter.h158 int (*action_read)(struct counter_device *counter,
163 int (*count_u8_read)(struct counter_device *counter,
165 int (*signal_u8_read)(struct counter_device *counter,
192 int (*action_write)(struct counter_device *counter,
326 int (*signal_read)(struct counter_device *counter,
329 int (*count_read)(struct counter_device *counter,
331 int (*count_write)(struct counter_device *counter,
333 int (*function_read)(struct counter_device *counter,
339 int (*action_read)(struct counter_device *counter,
343 int (*action_write)(struct counter_device *counter,
[all …]
A Datomic.h28 #define atomic_cond_read_acquire(v, c) smp_cond_load_acquire(&(v)->counter, (c))
29 #define atomic_cond_read_relaxed(v, c) smp_cond_load_relaxed(&(v)->counter, (c))
31 #define atomic64_cond_read_acquire(v, c) smp_cond_load_acquire(&(v)->counter, (c))
32 #define atomic64_cond_read_relaxed(v, c) smp_cond_load_relaxed(&(v)->counter, (c))
A Dalloc_tag.h140 struct alloc_tag_counters *counter; in alloc_tag_read() local
144 counter = per_cpu_ptr(tag->counters, cpu); in alloc_tag_read()
145 v.bytes += counter->bytes; in alloc_tag_read()
146 v.calls += counter->calls; in alloc_tag_read()
A Dtypes.h182 int counter; member
189 s64 counter; member
A Dsrcutree.h249 this_cpu_inc(scp->srcu_locks.counter); /* Y */ in __srcu_read_lock_fast()
275 this_cpu_inc(scp->srcu_unlocks.counter); /* Z */ in __srcu_read_unlock_fast()
A Dquota.h267 struct percpu_counter counter[_DQST_DQSTAT_LAST]; member
274 percpu_counter_inc(&dqstats.counter[type]); in dqstats_inc()
279 percpu_counter_dec(&dqstats.counter[type]); in dqstats_dec()
/include/asm-generic/
A Datomic.h24 c = v->counter; \
25 while ((old = arch_cmpxchg(&v->counter, c, c c_op i)) != c) \
34 c = v->counter; \
35 while ((old = arch_cmpxchg(&v->counter, c, c c_op i)) != c) \
46 c = v->counter; \
47 while ((old = arch_cmpxchg(&v->counter, c, c c_op i)) != c) \
63 v->counter = v->counter c_op i; \
74 ret = (v->counter = v->counter c_op i); \
87 ret = v->counter; \
88 v->counter = v->counter c_op i; \
[all …]
A Dqspinlock.h73 return !lock.val.counter; in queued_spin_value_unlocked()
A Dticket_spinlock.h73 u32 val = lock.val.counter; in ticket_spin_value_unlocked()
A Datomic64.h13 s64 counter; member
/include/linux/comedi/
A Dcomedi_8254.h116 unsigned int counter);
117 unsigned int comedi_8254_read(struct comedi_8254 *i8254, unsigned int counter);
119 unsigned int counter, unsigned int val);
122 unsigned int counter, unsigned int mode);
124 unsigned int counter, unsigned int val, unsigned int mode);
136 unsigned int counter, bool busy);
/include/linux/mlx5/
A Dfs.h171 struct mlx5_fc *counter; member
308 void mlx5_fc_destroy(struct mlx5_core_dev *dev, struct mlx5_fc *counter);
310 void mlx5_fc_local_destroy(struct mlx5_fc *counter);
311 u64 mlx5_fc_query_lastuse(struct mlx5_fc *counter);
312 void mlx5_fc_query_cached(struct mlx5_fc *counter,
314 void mlx5_fc_query_cached_raw(struct mlx5_fc *counter,
316 int mlx5_fc_query(struct mlx5_core_dev *dev, struct mlx5_fc *counter,
318 u32 mlx5_fc_id(struct mlx5_fc *counter);
/include/soc/amlogic/
A Dmeson_ddr_pmu.h44 struct dmc_counter *counter);
46 struct dmc_counter *counter);
/include/sound/
A Dsoundfont.h26 int counter; member
36 int counter; member
/include/vdso/
A Dgetrandom.h57 extern void __arch_chacha20_blocks_nostack(u8 *dst_bytes, const u32 *key, u32 *counter, size_t nblo…
/include/rdma/
A Dib_pma.h57 __be32 counter[15]; member
64 __be64 counter[15]; member
A Drdma_counter.h56 int rdma_counter_query_stats(struct rdma_counter *counter);
/include/net/netfilter/
A Dnf_conntrack_acct.h20 struct nf_conn_counter counter[IP_CT_DIR_MAX]; member
/include/trace/events/
A Drcu.h482 TP_PROTO(const char *polarity, long oldnesting, long newnesting, int counter),
484 TP_ARGS(polarity, oldnesting, newnesting, counter),
490 __field(int, counter)
497 __entry->counter = counter;
502 __entry->counter & 0xfff)
/include/linux/atomic/
A Datomic-arch-fallback.h479 ret = smp_load_acquire(&(v)->counter); in raw_atomic_read_acquire()
524 smp_store_release(&(v)->counter, i); in raw_atomic_set_release()
1921 return raw_xchg(&v->counter, new); in raw_atomic_xchg()
1948 return raw_xchg_acquire(&v->counter, new); in raw_atomic_xchg_acquire()
1974 return raw_xchg_release(&v->counter, new); in raw_atomic_xchg_release()
1997 return raw_xchg_relaxed(&v->counter, new); in raw_atomic_xchg_relaxed()
2026 return raw_cmpxchg(&v->counter, old, new); in raw_atomic_cmpxchg()
2605 ret = smp_load_acquire(&(v)->counter); in raw_atomic64_read_acquire()
2650 smp_store_release(&(v)->counter, i); in raw_atomic64_set_release()
4047 return raw_xchg(&v->counter, new); in raw_atomic64_xchg()
[all …]
/include/linux/platform_data/
A Dmlxreg.h199 int counter; member
/include/linux/netfilter/ipset/
A Dip_set.h506 ip_set_init_counter(struct ip_set_counter *counter, in ip_set_init_counter() argument
510 atomic64_set(&(counter)->bytes, (long long)(ext->bytes)); in ip_set_init_counter()
512 atomic64_set(&(counter)->packets, (long long)(ext->packets)); in ip_set_init_counter()
/include/uapi/drm/
A Dv3d_drm.h757 __u8 counter; member
/include/linux/mlx4/
A Ddevice.h812 #define ASSIGN_32BIT_COUNTER(counter, value) do { \ argument
814 counter = cpu_to_be32(U32_MAX); \
816 counter = cpu_to_be32(value); \
836 int counter; member

Completed in 64 milliseconds

12