counter            30 arch/alpha/include/asm/atomic.h #define atomic_read(v)		READ_ONCE((v)->counter)
counter            31 arch/alpha/include/asm/atomic.h #define atomic64_read(v)	READ_ONCE((v)->counter)
counter            33 arch/alpha/include/asm/atomic.h #define atomic_set(v,i)		WRITE_ONCE((v)->counter, (i))
counter            34 arch/alpha/include/asm/atomic.h #define atomic64_set(v,i)	WRITE_ONCE((v)->counter, (i))
counter            54 arch/alpha/include/asm/atomic.h 	:"=&r" (temp), "=m" (v->counter)				\
counter            55 arch/alpha/include/asm/atomic.h 	:"Ir" (i), "m" (v->counter));					\
counter            71 arch/alpha/include/asm/atomic.h 	:"=&r" (temp), "=m" (v->counter), "=&r" (result)		\
counter            72 arch/alpha/include/asm/atomic.h 	:"Ir" (i), "m" (v->counter) : "memory");			\
counter            89 arch/alpha/include/asm/atomic.h 	:"=&r" (temp), "=m" (v->counter), "=&r" (result)		\
counter            90 arch/alpha/include/asm/atomic.h 	:"Ir" (i), "m" (v->counter) : "memory");			\
counter           107 arch/alpha/include/asm/atomic.h 	:"=&r" (temp), "=m" (v->counter)				\
counter           108 arch/alpha/include/asm/atomic.h 	:"Ir" (i), "m" (v->counter));					\
counter           124 arch/alpha/include/asm/atomic.h 	:"=&r" (temp), "=m" (v->counter), "=&r" (result)		\
counter           125 arch/alpha/include/asm/atomic.h 	:"Ir" (i), "m" (v->counter) : "memory");			\
counter           142 arch/alpha/include/asm/atomic.h 	:"=&r" (temp), "=m" (v->counter), "=&r" (result)		\
counter           143 arch/alpha/include/asm/atomic.h 	:"Ir" (i), "m" (v->counter) : "memory");			\
counter           202 arch/alpha/include/asm/atomic.h #define atomic64_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new))
counter           203 arch/alpha/include/asm/atomic.h #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
counter           205 arch/alpha/include/asm/atomic.h #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new))
counter           206 arch/alpha/include/asm/atomic.h #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
counter            33 arch/alpha/include/asm/local.h 	:"=&r" (temp), "=m" (l->a.counter), "=&r" (result)
counter            34 arch/alpha/include/asm/local.h 	:"Ir" (i), "m" (l->a.counter) : "memory");
counter            50 arch/alpha/include/asm/local.h 	:"=&r" (temp), "=m" (l->a.counter), "=&r" (result)
counter            51 arch/alpha/include/asm/local.h 	:"Ir" (i), "m" (l->a.counter) : "memory");
counter            56 arch/alpha/include/asm/local.h 	(cmpxchg_local(&((l)->a.counter), (o), (n)))
counter            57 arch/alpha/include/asm/local.h #define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n)))
counter            97 arch/alpha/include/asm/local.h #define __local_inc(l)		((l)->a.counter++)
counter            98 arch/alpha/include/asm/local.h #define __local_dec(l)		((l)->a.counter++)
counter            99 arch/alpha/include/asm/local.h #define __local_add(i,l)	((l)->a.counter+=(i))
counter           100 arch/alpha/include/asm/local.h #define __local_sub(i,l)	((l)->a.counter-=(i))
counter           132 arch/alpha/oprofile/op_model_ev67.c op_add_pm(unsigned long pc, int kern, unsigned long counter,
counter           136 arch/alpha/oprofile/op_model_ev67.c 	if (counter == 1)
counter            21 arch/arc/include/asm/atomic.h #define atomic_read(v)  READ_ONCE((v)->counter)
counter            25 arch/arc/include/asm/atomic.h #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i))
counter            38 arch/arc/include/asm/atomic.h 	: [ctr]	"r"	(&v->counter), /* Not "m": llock only supports reg direct addr mode */	\
counter            60 arch/arc/include/asm/atomic.h 	: [ctr]	"r"	(&v->counter),					\
counter            87 arch/arc/include/asm/atomic.h 	: [ctr]	"r"	(&v->counter),					\
counter           101 arch/arc/include/asm/atomic.h #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i))
counter           119 arch/arc/include/asm/atomic.h 	WRITE_ONCE(v->counter, i);
counter           138 arch/arc/include/asm/atomic.h 	v->counter c_op i;						\
counter           152 arch/arc/include/asm/atomic.h 	temp = v->counter;						\
counter           154 arch/arc/include/asm/atomic.h 	v->counter = temp;						\
counter           170 arch/arc/include/asm/atomic.h 	orig = v->counter;						\
counter           171 arch/arc/include/asm/atomic.h 	v->counter c_op i;						\
counter           209 arch/arc/include/asm/atomic.h 	: "r"(&v->counter)
counter           219 arch/arc/include/asm/atomic.h 	: "r"(i), "r"(&v->counter)
counter           231 arch/arc/include/asm/atomic.h 	: "r"(i), "r"(&v->counter), "i"(asm_op)				\
counter           249 arch/arc/include/asm/atomic.h 	: "r"(&v->counter), "i"(asm_op)					\
counter           273 arch/arc/include/asm/atomic.h 	: "r"(&v->counter), "i"(asm_op)					\
counter           324 arch/arc/include/asm/atomic.h 	s64 __aligned(8) counter;
counter           336 arch/arc/include/asm/atomic.h 	: "r"(&v->counter));
counter           357 arch/arc/include/asm/atomic.h 	: "r"(a), "r"(&v->counter)
counter           374 arch/arc/include/asm/atomic.h 	: "r"(&v->counter), "ir"(a)					\
counter           393 arch/arc/include/asm/atomic.h 	: "r"(&v->counter), "ir"(a)					\
counter           416 arch/arc/include/asm/atomic.h 	: "r"(&v->counter), "ir"(a)					\
counter           510 arch/arc/include/asm/atomic.h 	: "r"(&v->counter)
counter           545 arch/arc/include/asm/atomic.h 	: "r"(&v->counter), "r"(a), "r"(u)
counter           104 arch/arc/include/asm/cmpxchg.h #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
counter           222 arch/arc/include/asm/cmpxchg.h #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
counter           101 arch/arc/include/asm/spinlock.h 	: [rwlock]	"r"	(&(rw->counter)),
counter           125 arch/arc/include/asm/spinlock.h 	: [rwlock]	"r"	(&(rw->counter)),
counter           158 arch/arc/include/asm/spinlock.h 	: [rwlock]	"r"	(&(rw->counter)),
counter           183 arch/arc/include/asm/spinlock.h 	: [rwlock]	"r"	(&(rw->counter)),
counter           209 arch/arc/include/asm/spinlock.h 	: [rwlock]	"r"	(&(rw->counter))
counter           217 arch/arc/include/asm/spinlock.h 	WRITE_ONCE(rw->counter, __ARCH_RW_LOCK_UNLOCKED__);
counter           316 arch/arc/include/asm/spinlock.h 	if (rw->counter > 0) {
counter           317 arch/arc/include/asm/spinlock.h 		rw->counter--;
counter           342 arch/arc/include/asm/spinlock.h 	if (rw->counter == __ARCH_RW_LOCK_UNLOCKED__) {
counter           343 arch/arc/include/asm/spinlock.h 		rw->counter = 0;
counter           370 arch/arc/include/asm/spinlock.h 	rw->counter++;
counter           381 arch/arc/include/asm/spinlock.h 	rw->counter = __ARCH_RW_LOCK_UNLOCKED__;
counter            25 arch/arc/include/asm/spinlock_types.h 	volatile unsigned int	counter;
counter            32 arch/arc/include/asm/spinlock_types.h #define __ARCH_RW_LOCK_UNLOCKED		{ .counter = __ARCH_RW_LOCK_UNLOCKED__ }
counter            27 arch/arm/include/asm/atomic.h #define atomic_read(v)	READ_ONCE((v)->counter)
counter            28 arch/arm/include/asm/atomic.h #define atomic_set(v,i)	WRITE_ONCE(((v)->counter), (i))
counter            44 arch/arm/include/asm/atomic.h 	prefetchw(&v->counter);						\
counter            51 arch/arm/include/asm/atomic.h 	: "=&r" (result), "=&r" (tmp), "+Qo" (v->counter)		\
counter            52 arch/arm/include/asm/atomic.h 	: "r" (&v->counter), "Ir" (i)					\
counter            62 arch/arm/include/asm/atomic.h 	prefetchw(&v->counter);						\
counter            70 arch/arm/include/asm/atomic.h 	: "=&r" (result), "=&r" (tmp), "+Qo" (v->counter)		\
counter            71 arch/arm/include/asm/atomic.h 	: "r" (&v->counter), "Ir" (i)					\
counter            83 arch/arm/include/asm/atomic.h 	prefetchw(&v->counter);						\
counter            91 arch/arm/include/asm/atomic.h 	: "=&r" (result), "=&r" (val), "=&r" (tmp), "+Qo" (v->counter)	\
counter            92 arch/arm/include/asm/atomic.h 	: "r" (&v->counter), "Ir" (i)					\
counter           113 arch/arm/include/asm/atomic.h 	prefetchw(&ptr->counter);
counter           121 arch/arm/include/asm/atomic.h 		    : "=&r" (res), "=&r" (oldval), "+Qo" (ptr->counter)
counter           122 arch/arm/include/asm/atomic.h 		    : "r" (&ptr->counter), "Ir" (old), "r" (new)
counter           136 arch/arm/include/asm/atomic.h 	prefetchw(&v->counter);
counter           147 arch/arm/include/asm/atomic.h 	: "=&r" (oldval), "=&r" (newval), "=&r" (tmp), "+Qo" (v->counter)
counter           148 arch/arm/include/asm/atomic.h 	: "r" (&v->counter), "r" (u), "r" (a)
counter           170 arch/arm/include/asm/atomic.h 	v->counter c_op i;						\
counter           181 arch/arm/include/asm/atomic.h 	v->counter c_op i;						\
counter           182 arch/arm/include/asm/atomic.h 	val = v->counter;						\
counter           195 arch/arm/include/asm/atomic.h 	val = v->counter;						\
counter           196 arch/arm/include/asm/atomic.h 	v->counter c_op i;						\
counter           208 arch/arm/include/asm/atomic.h 	ret = v->counter;
counter           210 arch/arm/include/asm/atomic.h 		v->counter = new;
counter           245 arch/arm/include/asm/atomic.h #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
counter           249 arch/arm/include/asm/atomic.h 	s64 counter;
counter           262 arch/arm/include/asm/atomic.h 	: "r" (&v->counter), "Qo" (v->counter)
counter           272 arch/arm/include/asm/atomic.h 	: "=Qo" (v->counter)
counter           273 arch/arm/include/asm/atomic.h 	: "r" (&v->counter), "r" (i)
counter           284 arch/arm/include/asm/atomic.h 	: "r" (&v->counter), "Qo" (v->counter)
counter           294 arch/arm/include/asm/atomic.h 	prefetchw(&v->counter);
counter           300 arch/arm/include/asm/atomic.h 	: "=&r" (tmp), "=Qo" (v->counter)
counter           301 arch/arm/include/asm/atomic.h 	: "r" (&v->counter), "r" (i)
counter           312 arch/arm/include/asm/atomic.h 	prefetchw(&v->counter);						\
counter           320 arch/arm/include/asm/atomic.h 	: "=&r" (result), "=&r" (tmp), "+Qo" (v->counter)		\
counter           321 arch/arm/include/asm/atomic.h 	: "r" (&v->counter), "r" (i)					\
counter           332 arch/arm/include/asm/atomic.h 	prefetchw(&v->counter);						\
counter           341 arch/arm/include/asm/atomic.h 	: "=&r" (result), "=&r" (tmp), "+Qo" (v->counter)		\
counter           342 arch/arm/include/asm/atomic.h 	: "r" (&v->counter), "r" (i)					\
counter           355 arch/arm/include/asm/atomic.h 	prefetchw(&v->counter);						\
counter           364 arch/arm/include/asm/atomic.h 	: "=&r" (result), "=&r" (val), "=&r" (tmp), "+Qo" (v->counter)	\
counter           365 arch/arm/include/asm/atomic.h 	: "r" (&v->counter), "r" (i)					\
counter           411 arch/arm/include/asm/atomic.h 	prefetchw(&ptr->counter);
counter           420 arch/arm/include/asm/atomic.h 		: "=&r" (res), "=&r" (oldval), "+Qo" (ptr->counter)
counter           421 arch/arm/include/asm/atomic.h 		: "r" (&ptr->counter), "r" (old), "r" (new)
counter           434 arch/arm/include/asm/atomic.h 	prefetchw(&ptr->counter);
counter           441 arch/arm/include/asm/atomic.h 	: "=&r" (result), "=&r" (tmp), "+Qo" (ptr->counter)
counter           442 arch/arm/include/asm/atomic.h 	: "r" (&ptr->counter), "r" (new)
counter           455 arch/arm/include/asm/atomic.h 	prefetchw(&v->counter);
counter           467 arch/arm/include/asm/atomic.h 	: "=&r" (result), "=&r" (tmp), "+Qo" (v->counter)
counter           468 arch/arm/include/asm/atomic.h 	: "r" (&v->counter)
counter           483 arch/arm/include/asm/atomic.h 	prefetchw(&v->counter);
counter           496 arch/arm/include/asm/atomic.h 	: "=&r" (oldval), "=&r" (newval), "=&r" (tmp), "+Qo" (v->counter)
counter           497 arch/arm/include/asm/atomic.h 	: "r" (&v->counter), "r" (u), "r" (a)
counter            27 arch/arm/include/asm/mmu.h #define ASID(mm)	((unsigned int)((mm)->context.id.counter & ~ASID_MASK))
counter            22 arch/arm/include/asm/xen/events.h 							    counter), (val))
counter           122 arch/arm/kernel/asm-offsets.c   DEFINE(MM_CONTEXT_ID,		offsetof(struct mm_struct, context.id.counter));
counter           220 arch/arm/kernel/perf_event_v6.c 				  enum armv6_counters counter)
counter           224 arch/arm/kernel/perf_event_v6.c 	if (ARMV6_CYCLE_COUNTER == counter)
counter           226 arch/arm/kernel/perf_event_v6.c 	else if (ARMV6_COUNTER0 == counter)
counter           228 arch/arm/kernel/perf_event_v6.c 	else if (ARMV6_COUNTER1 == counter)
counter           231 arch/arm/kernel/perf_event_v6.c 		WARN_ONCE(1, "invalid counter number (%d)\n", counter);
counter           239 arch/arm/kernel/perf_event_v6.c 	int counter = hwc->idx;
counter           242 arch/arm/kernel/perf_event_v6.c 	if (ARMV6_CYCLE_COUNTER == counter)
counter           244 arch/arm/kernel/perf_event_v6.c 	else if (ARMV6_COUNTER0 == counter)
counter           246 arch/arm/kernel/perf_event_v6.c 	else if (ARMV6_COUNTER1 == counter)
counter           249 arch/arm/kernel/perf_event_v6.c 		WARN_ONCE(1, "invalid counter number (%d)\n", counter);
counter           257 arch/arm/kernel/perf_event_v6.c 	int counter = hwc->idx;
counter           259 arch/arm/kernel/perf_event_v6.c 	if (ARMV6_CYCLE_COUNTER == counter)
counter           261 arch/arm/kernel/perf_event_v6.c 	else if (ARMV6_COUNTER0 == counter)
counter           263 arch/arm/kernel/perf_event_v6.c 	else if (ARMV6_COUNTER1 == counter)
counter           266 arch/arm/kernel/perf_event_v6.c 		WARN_ONCE(1, "invalid counter number (%d)\n", counter);
counter           741 arch/arm/kernel/perf_event_v7.c 	u32 counter = ARMV7_IDX_TO_COUNTER(idx);
counter           742 arch/arm/kernel/perf_event_v7.c 	asm volatile("mcr p15, 0, %0, c9, c12, 5" : : "r" (counter));
counter           792 arch/arm/kernel/perf_event_v7.c 	u32 counter = ARMV7_IDX_TO_COUNTER(idx);
counter           793 arch/arm/kernel/perf_event_v7.c 	asm volatile("mcr p15, 0, %0, c9, c12, 1" : : "r" (BIT(counter)));
counter           798 arch/arm/kernel/perf_event_v7.c 	u32 counter = ARMV7_IDX_TO_COUNTER(idx);
counter           799 arch/arm/kernel/perf_event_v7.c 	asm volatile("mcr p15, 0, %0, c9, c12, 2" : : "r" (BIT(counter)));
counter           804 arch/arm/kernel/perf_event_v7.c 	u32 counter = ARMV7_IDX_TO_COUNTER(idx);
counter           805 arch/arm/kernel/perf_event_v7.c 	asm volatile("mcr p15, 0, %0, c9, c14, 1" : : "r" (BIT(counter)));
counter           810 arch/arm/kernel/perf_event_v7.c 	u32 counter = ARMV7_IDX_TO_COUNTER(idx);
counter           811 arch/arm/kernel/perf_event_v7.c 	asm volatile("mcr p15, 0, %0, c9, c14, 2" : : "r" (BIT(counter)));
counter           814 arch/arm/kernel/perf_event_v7.c 	asm volatile("mcr p15, 0, %0, c9, c12, 3" : : "r" (BIT(counter)));
counter           123 arch/arm/kernel/perf_event_xscale.c 					enum xscale_counters counter)
counter           127 arch/arm/kernel/perf_event_xscale.c 	switch (counter) {
counter           138 arch/arm/kernel/perf_event_xscale.c 		WARN_ONCE(1, "invalid counter number (%d)\n", counter);
counter           328 arch/arm/kernel/perf_event_xscale.c 	int counter = hwc->idx;
counter           331 arch/arm/kernel/perf_event_xscale.c 	switch (counter) {
counter           349 arch/arm/kernel/perf_event_xscale.c 	int counter = hwc->idx;
counter           351 arch/arm/kernel/perf_event_xscale.c 	switch (counter) {
counter           469 arch/arm/kernel/perf_event_xscale.c 					enum xscale_counters counter)
counter           473 arch/arm/kernel/perf_event_xscale.c 	switch (counter) {
counter           490 arch/arm/kernel/perf_event_xscale.c 		WARN_ONCE(1, "invalid counter number (%d)\n", counter);
counter           691 arch/arm/kernel/perf_event_xscale.c 	int counter = hwc->idx;
counter           694 arch/arm/kernel/perf_event_xscale.c 	switch (counter) {
counter           718 arch/arm/kernel/perf_event_xscale.c 	int counter = hwc->idx;
counter           720 arch/arm/kernel/perf_event_xscale.c 	switch (counter) {
counter            59 arch/arm/mm/context.c 	context_id = mm->context.id.counter;
counter            67 arch/arm/mm/context.c 		asid = per_cpu(active_asids, cpu).counter;
counter            53 arch/arm64/include/asm/arm_dsu_pmu.h static inline void __dsu_pmu_select_counter(int counter)
counter            55 arch/arm64/include/asm/arm_dsu_pmu.h 	write_sysreg_s(counter, CLUSTERPMSELR_EL1);
counter            59 arch/arm64/include/asm/arm_dsu_pmu.h static inline u64 __dsu_pmu_read_counter(int counter)
counter            61 arch/arm64/include/asm/arm_dsu_pmu.h 	__dsu_pmu_select_counter(counter);
counter            65 arch/arm64/include/asm/arm_dsu_pmu.h static inline void __dsu_pmu_write_counter(int counter, u64 val)
counter            67 arch/arm64/include/asm/arm_dsu_pmu.h 	__dsu_pmu_select_counter(counter);
counter            72 arch/arm64/include/asm/arm_dsu_pmu.h static inline void __dsu_pmu_set_event(int counter, u32 event)
counter            74 arch/arm64/include/asm/arm_dsu_pmu.h 	__dsu_pmu_select_counter(counter);
counter            90 arch/arm64/include/asm/arm_dsu_pmu.h static inline void __dsu_pmu_disable_counter(int counter)
counter            92 arch/arm64/include/asm/arm_dsu_pmu.h 	write_sysreg_s(BIT(counter), CLUSTERPMCNTENCLR_EL1);
counter            96 arch/arm64/include/asm/arm_dsu_pmu.h static inline void __dsu_pmu_enable_counter(int counter)
counter            98 arch/arm64/include/asm/arm_dsu_pmu.h 	write_sysreg_s(BIT(counter), CLUSTERPMCNTENSET_EL1);
counter           102 arch/arm64/include/asm/arm_dsu_pmu.h static inline void __dsu_pmu_counter_interrupt_enable(int counter)
counter           104 arch/arm64/include/asm/arm_dsu_pmu.h 	write_sysreg_s(BIT(counter), CLUSTERPMINTENSET_EL1);
counter           108 arch/arm64/include/asm/arm_dsu_pmu.h static inline void __dsu_pmu_counter_interrupt_disable(int counter)
counter           110 arch/arm64/include/asm/arm_dsu_pmu.h 	write_sysreg_s(BIT(counter), CLUSTERPMINTENCLR_EL1);
counter           104 arch/arm64/include/asm/atomic.h #define arch_atomic_read(v)			READ_ONCE((v)->counter)
counter           105 arch/arm64/include/asm/atomic.h #define arch_atomic_set(v, i)			WRITE_ONCE(((v)->counter), (i))
counter           148 arch/arm64/include/asm/atomic.h 	arch_xchg_relaxed(&((v)->counter), (new))
counter           150 arch/arm64/include/asm/atomic.h 	arch_xchg_acquire(&((v)->counter), (new))
counter           152 arch/arm64/include/asm/atomic.h 	arch_xchg_release(&((v)->counter), (new))
counter           154 arch/arm64/include/asm/atomic.h 	arch_xchg(&((v)->counter), (new))
counter           157 arch/arm64/include/asm/atomic.h 	arch_cmpxchg_relaxed(&((v)->counter), (old), (new))
counter           159 arch/arm64/include/asm/atomic.h 	arch_cmpxchg_acquire(&((v)->counter), (old), (new))
counter           161 arch/arm64/include/asm/atomic.h 	arch_cmpxchg_release(&((v)->counter), (old), (new))
counter           163 arch/arm64/include/asm/atomic.h 	arch_cmpxchg(&((v)->counter), (old), (new))
counter            52 arch/arm64/include/asm/atomic_ll_sc.h 	: "=&r" (result), "=&r" (tmp), "+Q" (v->counter)		\
counter            71 arch/arm64/include/asm/atomic_ll_sc.h 	: "=&r" (result), "=&r" (tmp), "+Q" (v->counter)		\
counter            93 arch/arm64/include/asm/atomic_ll_sc.h 	: "=&r" (result), "=&r" (val), "=&r" (tmp), "+Q" (v->counter)	\
counter           151 arch/arm64/include/asm/atomic_ll_sc.h 	: "=&r" (result), "=&r" (tmp), "+Q" (v->counter)		\
counter           170 arch/arm64/include/asm/atomic_ll_sc.h 	: "=&r" (result), "=&r" (tmp), "+Q" (v->counter)		\
counter           192 arch/arm64/include/asm/atomic_ll_sc.h 	: "=&r" (result), "=&r" (val), "=&r" (tmp), "+Q" (v->counter)	\
counter           252 arch/arm64/include/asm/atomic_ll_sc.h 	: "=&r" (result), "=&r" (tmp), "+Q" (v->counter)
counter            19 arch/arm64/include/asm/atomic_lse.h 	: [i] "+r" (i), [v] "+Q" (v->counter)				\
counter            36 arch/arm64/include/asm/atomic_lse.h 	: [i] "+r" (i), [v] "+Q" (v->counter)				\
counter            66 arch/arm64/include/asm/atomic_lse.h 	: [i] "+r" (i), [v] "+Q" (v->counter), [tmp] "=&r" (tmp)	\
counter            86 arch/arm64/include/asm/atomic_lse.h 	: [i] "+&r" (i), [v] "+Q" (v->counter)
counter            97 arch/arm64/include/asm/atomic_lse.h 	: [i] "+&r" (i), [v] "+Q" (v->counter)				\
counter           117 arch/arm64/include/asm/atomic_lse.h 	: [i] "+&r" (i), [v] "+Q" (v->counter)
counter           131 arch/arm64/include/asm/atomic_lse.h 	: [i] "+&r" (i), [v] "+Q" (v->counter), [tmp] "=&r" (tmp)	\
counter           152 arch/arm64/include/asm/atomic_lse.h 	: [i] "+&r" (i), [v] "+Q" (v->counter)				\
counter           172 arch/arm64/include/asm/atomic_lse.h 	: [i] "+r" (i), [v] "+Q" (v->counter)				\
counter           189 arch/arm64/include/asm/atomic_lse.h 	: [i] "+r" (i), [v] "+Q" (v->counter)				\
counter           219 arch/arm64/include/asm/atomic_lse.h 	: [i] "+r" (i), [v] "+Q" (v->counter), [tmp] "=&r" (tmp)	\
counter           239 arch/arm64/include/asm/atomic_lse.h 	: [i] "+&r" (i), [v] "+Q" (v->counter)
counter           250 arch/arm64/include/asm/atomic_lse.h 	: [i] "+&r" (i), [v] "+Q" (v->counter)				\
counter           270 arch/arm64/include/asm/atomic_lse.h 	: [i] "+&r" (i), [v] "+Q" (v->counter)
counter           284 arch/arm64/include/asm/atomic_lse.h 	: [i] "+&r" (i), [v] "+Q" (v->counter), [tmp] "=&r" (tmp)	\
counter           305 arch/arm64/include/asm/atomic_lse.h 	: [i] "+&r" (i), [v] "+Q" (v->counter)				\
counter           333 arch/arm64/include/asm/atomic_lse.h 	: [ret] "+&r" (v), [v] "+Q" (v->counter), [tmp] "=&r" (tmp)
counter            30 arch/arm64/include/asm/mmu.h #define ASID(mm)	((mm)->context.id.counter & 0xffff)
counter            74 arch/arm64/kernel/asm-offsets.c   DEFINE(MM_CONTEXT_ID,		offsetof(struct mm_struct, context.id.counter));
counter           402 arch/arm64/kernel/perf_event.c 	u32 counter = ARMV8_IDX_TO_COUNTER(idx);
counter           403 arch/arm64/kernel/perf_event.c 	write_sysreg(counter, pmselr_el0);
counter           514 arch/arm64/kernel/perf_event.c 	u32 counter = ARMV8_IDX_TO_COUNTER(idx);
counter           515 arch/arm64/kernel/perf_event.c 	write_sysreg(BIT(counter), pmcntenset_el0);
counter           540 arch/arm64/kernel/perf_event.c 	u32 counter = ARMV8_IDX_TO_COUNTER(idx);
counter           541 arch/arm64/kernel/perf_event.c 	write_sysreg(BIT(counter), pmcntenclr_el0);
counter           567 arch/arm64/kernel/perf_event.c 	u32 counter = ARMV8_IDX_TO_COUNTER(idx);
counter           568 arch/arm64/kernel/perf_event.c 	write_sysreg(BIT(counter), pmintenset_el1);
counter           579 arch/arm64/kernel/perf_event.c 	u32 counter = ARMV8_IDX_TO_COUNTER(idx);
counter           580 arch/arm64/kernel/perf_event.c 	write_sysreg(BIT(counter), pmintenclr_el1);
counter           583 arch/arm64/kernel/perf_event.c 	write_sysreg(BIT(counter), pmovsclr_el0);
counter           137 arch/arm64/kvm/pmu.c 	u32 counter;
counter           139 arch/arm64/kvm/pmu.c 	for_each_set_bit(counter, &events, 32) {
counter           140 arch/arm64/kvm/pmu.c 		typer = kvm_vcpu_pmu_read_evtype_direct(counter);
counter           142 arch/arm64/kvm/pmu.c 		kvm_vcpu_pmu_write_evtype_direct(counter, typer);
counter           152 arch/arm64/kvm/pmu.c 	u32 counter;
counter           154 arch/arm64/kvm/pmu.c 	for_each_set_bit(counter, &events, 32) {
counter           155 arch/arm64/kvm/pmu.c 		typer = kvm_vcpu_pmu_read_evtype_direct(counter);
counter           157 arch/arm64/kvm/pmu.c 		kvm_vcpu_pmu_write_evtype_direct(counter, typer);
counter            29 arch/csky/include/asm/atomic.h 		: "r" (a), "r"(&v->counter), "r"(u)
counter            49 arch/csky/include/asm/atomic.h 		: "r" (i), "r"(&v->counter)				\
counter            66 arch/csky/include/asm/atomic.h 		: "r" (i), "r"(&v->counter)				\
counter            86 arch/csky/include/asm/atomic.h 		: "r" (i), "r"(&v->counter)				\
counter           113 arch/csky/include/asm/atomic.h 		: "r" (a), "r"(&v->counter), "r"(u)
counter           133 arch/csky/include/asm/atomic.h 		: "r" (i), "r"(&v->counter)				\
counter           152 arch/csky/include/asm/atomic.h 		: "r" (i), "r"(&v->counter)				\
counter           173 arch/csky/include/asm/atomic.h 		: "r" (i), "r"(&v->counter)				\
counter            45 arch/csky/include/asm/mmu_context.h 	write_mmu_entryhi(next->context.asid.counter);
counter            17 arch/h8300/include/asm/atomic.h #define atomic_read(v)		READ_ONCE((v)->counter)
counter            18 arch/h8300/include/asm/atomic.h #define atomic_set(v, i)	WRITE_ONCE(((v)->counter), (i))
counter            27 arch/h8300/include/asm/atomic.h 	ret = v->counter c_op i;				\
counter            39 arch/h8300/include/asm/atomic.h 	ret = v->counter;					\
counter            40 arch/h8300/include/asm/atomic.h 	v->counter c_op i;					\
counter            51 arch/h8300/include/asm/atomic.h 	v->counter c_op i;					\
counter            78 arch/h8300/include/asm/atomic.h 	ret = v->counter;
counter            80 arch/h8300/include/asm/atomic.h 		v->counter = new;
counter            91 arch/h8300/include/asm/atomic.h 	ret = v->counter;
counter            93 arch/h8300/include/asm/atomic.h 		v->counter += a;
counter            64 arch/h8300/include/asm/cmpxchg.h #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
counter            26 arch/hexagon/include/asm/atomic.h 		: "r" (&v->counter), "r" (new)
counter            39 arch/hexagon/include/asm/atomic.h #define atomic_read(v)		READ_ONCE((v)->counter)
counter            46 arch/hexagon/include/asm/atomic.h #define atomic_xchg(v, new)	(xchg(&((v)->counter), (new)))
counter            78 arch/hexagon/include/asm/atomic.h 		: "r" (&v->counter), "r" (old), "r" (new)
counter            96 arch/hexagon/include/asm/atomic.h 		: "r" (&v->counter), "r" (i)				\
counter           112 arch/hexagon/include/asm/atomic.h 		: "r" (&v->counter), "r" (i)				\
counter           129 arch/hexagon/include/asm/atomic.h 		: "r" (&v->counter), "r" (i)				\
counter           191 arch/hexagon/kernel/traps.c 		int counter;
counter           194 arch/hexagon/kernel/traps.c 		.counter = 0
counter           202 arch/hexagon/kernel/traps.c 	printk(KERN_EMERG "Oops: %s[#%d]:\n", str, ++die.counter);
counter            25 arch/ia64/include/asm/atomic.h #define atomic_read(v)		READ_ONCE((v)->counter)
counter            26 arch/ia64/include/asm/atomic.h #define atomic64_read(v)	READ_ONCE((v)->counter)
counter            28 arch/ia64/include/asm/atomic.h #define atomic_set(v,i)		WRITE_ONCE(((v)->counter), (i))
counter            29 arch/ia64/include/asm/atomic.h #define atomic64_set(v,i)	WRITE_ONCE(((v)->counter), (i))
counter            82 arch/ia64/include/asm/atomic.h 		? ia64_fetch_and_add(__ia64_aar_i, &(v)->counter)	\
counter            90 arch/ia64/include/asm/atomic.h 		? ia64_fetch_and_add(-__ia64_asr_i, &(v)->counter)	\
counter            98 arch/ia64/include/asm/atomic.h 		? ia64_fetchadd(__ia64_aar_i, &(v)->counter, acq)	\
counter           106 arch/ia64/include/asm/atomic.h 		? ia64_fetchadd(-__ia64_asr_i, &(v)->counter, acq)	\
counter           167 arch/ia64/include/asm/atomic.h 		? ia64_fetch_and_add(__ia64_aar_i, &(v)->counter)	\
counter           175 arch/ia64/include/asm/atomic.h 		? ia64_fetch_and_add(-__ia64_asr_i, &(v)->counter)	\
counter           183 arch/ia64/include/asm/atomic.h 		? ia64_fetchadd(__ia64_aar_i, &(v)->counter, acq)	\
counter           191 arch/ia64/include/asm/atomic.h 		? ia64_fetchadd(-__ia64_asr_i, &(v)->counter, acq)	\
counter           211 arch/ia64/include/asm/atomic.h #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new))
counter           212 arch/ia64/include/asm/atomic.h #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
counter           215 arch/ia64/include/asm/atomic.h 	(cmpxchg(&((v)->counter), old, new))
counter           216 arch/ia64/include/asm/atomic.h #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
counter           214 arch/m68k/fpsp040/fpsp.h 	.set	EXC_PC,6		| exception frame program counter
counter            21 arch/m68k/include/asm/atomic.h #define atomic_read(v)		READ_ONCE((v)->counter)
counter            22 arch/m68k/include/asm/atomic.h #define atomic_set(v, i)	WRITE_ONCE(((v)->counter), (i))
counter            81 arch/m68k/include/asm/atomic.h 	t = (v->counter c_op i);					\
counter            94 arch/m68k/include/asm/atomic.h 	t = v->counter;							\
counter            95 arch/m68k/include/asm/atomic.h 	v->counter c_op i;						\
counter           165 arch/m68k/include/asm/atomic.h #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
counter           166 arch/m68k/include/asm/atomic.h #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
counter            40 arch/m68k/include/asm/intersil.h 	struct intersil_dt counter;
counter           289 arch/m68k/math-emu/fp_decode.h | addressing mode: address register/programm counter indirect
counter           345 arch/m68k/math-emu/fp_decode.h 	| addressing mode: address register/programm counter indirect
counter           355 arch/m68k/math-emu/fp_decode.h 3:	| addressing mode: address register/programm counter memory indirect
counter            32 arch/m68k/sun3/intersil.c         todintersil = (struct intersil_dt *) &intersil_clock->counter;
counter            19 arch/microblaze/include/asm/atomic.h 	res = v->counter - 1;
counter            21 arch/microblaze/include/asm/atomic.h 		v->counter = res;
counter            29 arch/microblaze/include/asm/module.h typedef struct { volatile int counter; } module_t;
counter           169 arch/mips/cavium-octeon/executive/cvmx-l2c.c void cvmx_l2c_config_perf(uint32_t counter, enum cvmx_l2c_event event,
counter           177 arch/mips/cavium-octeon/executive/cvmx-l2c.c 		switch (counter) {
counter           212 arch/mips/cavium-octeon/executive/cvmx-l2c.c 		switch (counter) {
counter           233 arch/mips/cavium-octeon/executive/cvmx-l2c.c uint64_t cvmx_l2c_read_perf(uint32_t counter)
counter           235 arch/mips/cavium-octeon/executive/cvmx-l2c.c 	switch (counter) {
counter           240 arch/mips/cavium-octeon/executive/cvmx-l2c.c 			uint64_t counter = 0;
counter           244 arch/mips/cavium-octeon/executive/cvmx-l2c.c 				counter += cvmx_read_csr(CVMX_L2C_TADX_PFC0(tad));
counter           245 arch/mips/cavium-octeon/executive/cvmx-l2c.c 			return counter;
counter           251 arch/mips/cavium-octeon/executive/cvmx-l2c.c 			uint64_t counter = 0;
counter           255 arch/mips/cavium-octeon/executive/cvmx-l2c.c 				counter += cvmx_read_csr(CVMX_L2C_TADX_PFC1(tad));
counter           256 arch/mips/cavium-octeon/executive/cvmx-l2c.c 			return counter;
counter           262 arch/mips/cavium-octeon/executive/cvmx-l2c.c 			uint64_t counter = 0;
counter           266 arch/mips/cavium-octeon/executive/cvmx-l2c.c 				counter += cvmx_read_csr(CVMX_L2C_TADX_PFC2(tad));
counter           267 arch/mips/cavium-octeon/executive/cvmx-l2c.c 			return counter;
counter           274 arch/mips/cavium-octeon/executive/cvmx-l2c.c 			uint64_t counter = 0;
counter           278 arch/mips/cavium-octeon/executive/cvmx-l2c.c 				counter += cvmx_read_csr(CVMX_L2C_TADX_PFC3(tad));
counter           279 arch/mips/cavium-octeon/executive/cvmx-l2c.c 			return counter;
counter            44 arch/mips/include/asm/atomic.h #define atomic_read(v)		READ_ONCE((v)->counter)
counter            53 arch/mips/include/asm/atomic.h #define atomic_set(v, i)	WRITE_ONCE((v)->counter, (i))
counter            70 arch/mips/include/asm/atomic.h 		: "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (v->counter)	      \
counter            76 arch/mips/include/asm/atomic.h 		v->counter c_op i;					      \
counter           100 arch/mips/include/asm/atomic.h 		  "+" GCC_OFF_SMALL_ASM() (v->counter)			      \
counter           106 arch/mips/include/asm/atomic.h 		result = v->counter;					      \
counter           108 arch/mips/include/asm/atomic.h 		v->counter = result;					      \
counter           134 arch/mips/include/asm/atomic.h 		  "+" GCC_OFF_SMALL_ASM() (v->counter)			      \
counter           140 arch/mips/include/asm/atomic.h 		result = v->counter;					      \
counter           141 arch/mips/include/asm/atomic.h 		v->counter c_op i;					      \
counter           212 arch/mips/include/asm/atomic.h 		  "+" GCC_OFF_SMALL_ASM() (v->counter)
counter           218 arch/mips/include/asm/atomic.h 		result = v->counter;
counter           221 arch/mips/include/asm/atomic.h 			v->counter = result;
counter           230 arch/mips/include/asm/atomic.h #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
counter           231 arch/mips/include/asm/atomic.h #define atomic_xchg(v, new) (xchg(&((v)->counter), (new)))
counter           248 arch/mips/include/asm/atomic.h #define atomic64_read(v)	READ_ONCE((v)->counter)
counter           255 arch/mips/include/asm/atomic.h #define atomic64_set(v, i)	WRITE_ONCE((v)->counter, (i))
counter           272 arch/mips/include/asm/atomic.h 		: "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (v->counter)	      \
counter           278 arch/mips/include/asm/atomic.h 		v->counter c_op i;					      \
counter           302 arch/mips/include/asm/atomic.h 		  "+" GCC_OFF_SMALL_ASM() (v->counter)			      \
counter           308 arch/mips/include/asm/atomic.h 		result = v->counter;					      \
counter           310 arch/mips/include/asm/atomic.h 		v->counter = result;					      \
counter           336 arch/mips/include/asm/atomic.h 		  "+" GCC_OFF_SMALL_ASM() (v->counter)			      \
counter           342 arch/mips/include/asm/atomic.h 		result = v->counter;					      \
counter           343 arch/mips/include/asm/atomic.h 		v->counter c_op i;					      \
counter           411 arch/mips/include/asm/atomic.h 		  "+" GCC_OFF_SMALL_ASM() (v->counter)
counter           417 arch/mips/include/asm/atomic.h 		result = v->counter;
counter           420 arch/mips/include/asm/atomic.h 			v->counter = result;
counter           430 arch/mips/include/asm/atomic.h 	((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
counter           431 arch/mips/include/asm/atomic.h #define atomic64_xchg(v, new) (xchg(&((v)->counter), (new)))
counter            46 arch/mips/include/asm/local.h 		: "=&r" (result), "=&r" (temp), "=m" (l->a.counter)
counter            47 arch/mips/include/asm/local.h 		: "Ir" (i), "m" (l->a.counter)
counter            61 arch/mips/include/asm/local.h 		: "=&r" (result), "=&r" (temp), "=m" (l->a.counter)
counter            62 arch/mips/include/asm/local.h 		: "Ir" (i), "m" (l->a.counter)
counter            68 arch/mips/include/asm/local.h 		result = l->a.counter;
counter            70 arch/mips/include/asm/local.h 		l->a.counter = result;
counter            93 arch/mips/include/asm/local.h 		: "=&r" (result), "=&r" (temp), "=m" (l->a.counter)
counter            94 arch/mips/include/asm/local.h 		: "Ir" (i), "m" (l->a.counter)
counter           108 arch/mips/include/asm/local.h 		: "=&r" (result), "=&r" (temp), "=m" (l->a.counter)
counter           109 arch/mips/include/asm/local.h 		: "Ir" (i), "m" (l->a.counter)
counter           115 arch/mips/include/asm/local.h 		result = l->a.counter;
counter           117 arch/mips/include/asm/local.h 		l->a.counter = result;
counter           125 arch/mips/include/asm/local.h 	((long)cmpxchg_local(&((l)->a.counter), (o), (n)))
counter           197 arch/mips/include/asm/local.h #define __local_inc(l)		((l)->a.counter++)
counter           198 arch/mips/include/asm/local.h #define __local_dec(l)		((l)->a.counter++)
counter           199 arch/mips/include/asm/local.h #define __local_add(i, l)	((l)->a.counter+=(i))
counter           200 arch/mips/include/asm/local.h #define __local_sub(i, l)	((l)->a.counter-=(i))
counter           171 arch/mips/include/asm/mips-gic.h GIC_ACCESSOR_RW(64, 0x010, counter)
counter          1308 arch/mips/include/asm/mipsregs.h #define read_r10k_perf_cntr(counter)				\
counter          1314 arch/mips/include/asm/mipsregs.h 	: "i" (counter));					\
counter          1319 arch/mips/include/asm/mipsregs.h #define write_r10k_perf_cntr(counter,val)			\
counter          1324 arch/mips/include/asm/mipsregs.h 	: "r" (val), "i" (counter));				\
counter          1327 arch/mips/include/asm/mipsregs.h #define read_r10k_perf_event(counter)				\
counter          1333 arch/mips/include/asm/mipsregs.h 	: "i" (counter));					\
counter          1338 arch/mips/include/asm/mipsregs.h #define write_r10k_perf_cntl(counter,val)			\
counter          1343 arch/mips/include/asm/mipsregs.h 	: "r" (val), "i" (counter));				\
counter           169 arch/mips/include/asm/octeon/cvmx-l2c.h void cvmx_l2c_config_perf(uint32_t counter, enum cvmx_l2c_event event,
counter           180 arch/mips/include/asm/octeon/cvmx-l2c.h uint64_t cvmx_l2c_read_perf(uint32_t counter);
counter          1386 arch/mips/kernel/perf_event_mipsxx.c 	u64 counter;
counter          1412 arch/mips/kernel/perf_event_mipsxx.c 		counter = mipspmu.read_counter(n);
counter          1413 arch/mips/kernel/perf_event_mipsxx.c 		if (!(counter & mipspmu.overflow))
counter           108 arch/mips/oprofile/op_model_loongson2.c 	uint64_t counter, counter1, counter2;
counter           120 arch/mips/oprofile/op_model_loongson2.c 	counter = read_c0_perfcnt();
counter           121 arch/mips/oprofile/op_model_loongson2.c 	counter1 = counter & 0xffffffff;
counter           122 arch/mips/oprofile/op_model_loongson2.c 	counter2 = counter >> 32;
counter           130 arch/mips/oprofile/op_model_mipsxx.c 	unsigned int counter[4];
counter           143 arch/mips/oprofile/op_model_mipsxx.c 		reg.counter[i] = 0;
counter           158 arch/mips/oprofile/op_model_mipsxx.c 		reg.counter[i] = 0x80000000 - ctr[i].count;
counter           174 arch/mips/oprofile/op_model_mipsxx.c 		w_c0_perfcntr3(reg.counter[3]);
counter           178 arch/mips/oprofile/op_model_mipsxx.c 		w_c0_perfcntr2(reg.counter[2]);
counter           182 arch/mips/oprofile/op_model_mipsxx.c 		w_c0_perfcntr1(reg.counter[1]);
counter           186 arch/mips/oprofile/op_model_mipsxx.c 		w_c0_perfcntr0(reg.counter[0]);
counter           240 arch/mips/oprofile/op_model_mipsxx.c 	unsigned int counter;
counter           251 arch/mips/oprofile/op_model_mipsxx.c 		counter = r_c0_perfcntr ## n();				\
counter           253 arch/mips/oprofile/op_model_mipsxx.c 		    (counter & M_COUNTER_OVERFLOW)) {			\
counter           255 arch/mips/oprofile/op_model_mipsxx.c 			w_c0_perfcntr ## n(reg.counter[n]);		\
counter            27 arch/openrisc/include/asm/atomic.h 		: "r"(&v->counter), "r"(i)				\
counter            44 arch/openrisc/include/asm/atomic.h 		: "r"(&v->counter), "r"(i)				\
counter            63 arch/openrisc/include/asm/atomic.h 		: "r"(&v->counter), "r"(i)				\
counter           117 arch/openrisc/include/asm/atomic.h 		: "r"(&v->counter), "r"(a), "r"(u)
counter            64 arch/parisc/include/asm/atomic.h 	v->counter = i;
counter            73 arch/parisc/include/asm/atomic.h 	return READ_ONCE((v)->counter);
counter            77 arch/parisc/include/asm/atomic.h #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
counter            78 arch/parisc/include/asm/atomic.h #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
counter            86 arch/parisc/include/asm/atomic.h 	v->counter c_op i;						\
counter            97 arch/parisc/include/asm/atomic.h 	ret = (v->counter c_op i);					\
counter           110 arch/parisc/include/asm/atomic.h 	ret = v->counter;						\
counter           111 arch/parisc/include/asm/atomic.h 	v->counter c_op i;						\
counter           151 arch/parisc/include/asm/atomic.h 	v->counter c_op i;						\
counter           162 arch/parisc/include/asm/atomic.h 	ret = (v->counter c_op i);					\
counter           175 arch/parisc/include/asm/atomic.h 	ret = v->counter;						\
counter           176 arch/parisc/include/asm/atomic.h 	v->counter c_op i;						\
counter           210 arch/parisc/include/asm/atomic.h 	v->counter = i;
counter           218 arch/parisc/include/asm/atomic.h 	return READ_ONCE((v)->counter);
counter           223 arch/parisc/include/asm/atomic.h 	((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
counter           224 arch/parisc/include/asm/atomic.h #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
counter            78 arch/parisc/include/asm/spinlock.h 	rw->counter++;
counter            90 arch/parisc/include/asm/spinlock.h 	rw->counter--;
counter           103 arch/parisc/include/asm/spinlock.h 		rw->counter++;
counter           111 arch/parisc/include/asm/spinlock.h 	if (rw->counter < 0)
counter           115 arch/parisc/include/asm/spinlock.h 	while (arch_spin_is_locked(&rw->lock) && rw->counter >= 0)
counter           130 arch/parisc/include/asm/spinlock.h 	if (rw->counter != 0) {
counter           134 arch/parisc/include/asm/spinlock.h 		while (rw->counter != 0)
counter           140 arch/parisc/include/asm/spinlock.h 	rw->counter = -1; /* mark as write-locked */
counter           147 arch/parisc/include/asm/spinlock.h 	rw->counter = 0;
counter           160 arch/parisc/include/asm/spinlock.h 		if (rw->counter == 0) {
counter           161 arch/parisc/include/asm/spinlock.h 			rw->counter = -1;
counter            17 arch/parisc/include/asm/spinlock_types.h 	volatile int counter;
counter            32 arch/powerpc/include/asm/atomic.h 	__asm__ __volatile__("lwz%U1%X1 %0,%1" : "=r"(t) : "m"(v->counter));
counter            39 arch/powerpc/include/asm/atomic.h 	__asm__ __volatile__("stw%U0%X0 %1,%0" : "=m"(v->counter) : "r"(i));
counter            53 arch/powerpc/include/asm/atomic.h 	: "=&r" (t), "+m" (v->counter)					\
counter            54 arch/powerpc/include/asm/atomic.h 	: "r" (a), "r" (&v->counter)					\
counter            69 arch/powerpc/include/asm/atomic.h 	: "=&r" (t), "+m" (v->counter)					\
counter            70 arch/powerpc/include/asm/atomic.h 	: "r" (a), "r" (&v->counter)					\
counter            87 arch/powerpc/include/asm/atomic.h 	: "=&r" (res), "=&r" (t), "+m" (v->counter)			\
counter            88 arch/powerpc/include/asm/atomic.h 	: "r" (a), "r" (&v->counter)					\
counter           136 arch/powerpc/include/asm/atomic.h 	: "=&r" (t), "+m" (v->counter)
counter           137 arch/powerpc/include/asm/atomic.h 	: "r" (&v->counter)
counter           152 arch/powerpc/include/asm/atomic.h 	: "=&r" (t), "+m" (v->counter)
counter           153 arch/powerpc/include/asm/atomic.h 	: "r" (&v->counter)
counter           169 arch/powerpc/include/asm/atomic.h 	: "=&r" (t), "+m" (v->counter)
counter           170 arch/powerpc/include/asm/atomic.h 	: "r" (&v->counter)
counter           185 arch/powerpc/include/asm/atomic.h 	: "=&r" (t), "+m" (v->counter)
counter           186 arch/powerpc/include/asm/atomic.h 	: "r" (&v->counter)
counter           195 arch/powerpc/include/asm/atomic.h #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
counter           197 arch/powerpc/include/asm/atomic.h 	cmpxchg_relaxed(&((v)->counter), (o), (n))
counter           199 arch/powerpc/include/asm/atomic.h 	cmpxchg_acquire(&((v)->counter), (o), (n))
counter           201 arch/powerpc/include/asm/atomic.h #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
counter           202 arch/powerpc/include/asm/atomic.h #define atomic_xchg_relaxed(v, new) xchg_relaxed(&((v)->counter), (new))
counter           230 arch/powerpc/include/asm/atomic.h 	: "r" (&v->counter), "r" (a), "r" (u)
counter           261 arch/powerpc/include/asm/atomic.h 	: "r" (&v->counter)
counter           289 arch/powerpc/include/asm/atomic.h 	: "r" (&v->counter)
counter           304 arch/powerpc/include/asm/atomic.h 	__asm__ __volatile__("ld%U1%X1 %0,%1" : "=r"(t) : "m"(v->counter));
counter           311 arch/powerpc/include/asm/atomic.h 	__asm__ __volatile__("std%U0%X0 %1,%0" : "=m"(v->counter) : "r"(i));
counter           324 arch/powerpc/include/asm/atomic.h 	: "=&r" (t), "+m" (v->counter)					\
counter           325 arch/powerpc/include/asm/atomic.h 	: "r" (a), "r" (&v->counter)					\
counter           340 arch/powerpc/include/asm/atomic.h 	: "=&r" (t), "+m" (v->counter)					\
counter           341 arch/powerpc/include/asm/atomic.h 	: "r" (a), "r" (&v->counter)					\
counter           358 arch/powerpc/include/asm/atomic.h 	: "=&r" (res), "=&r" (t), "+m" (v->counter)			\
counter           359 arch/powerpc/include/asm/atomic.h 	: "r" (a), "r" (&v->counter)					\
counter           406 arch/powerpc/include/asm/atomic.h 	: "=&r" (t), "+m" (v->counter)
counter           407 arch/powerpc/include/asm/atomic.h 	: "r" (&v->counter)
counter           421 arch/powerpc/include/asm/atomic.h 	: "=&r" (t), "+m" (v->counter)
counter           422 arch/powerpc/include/asm/atomic.h 	: "r" (&v->counter)
counter           437 arch/powerpc/include/asm/atomic.h 	: "=&r" (t), "+m" (v->counter)
counter           438 arch/powerpc/include/asm/atomic.h 	: "r" (&v->counter)
counter           452 arch/powerpc/include/asm/atomic.h 	: "=&r" (t), "+m" (v->counter)
counter           453 arch/powerpc/include/asm/atomic.h 	: "r" (&v->counter)
counter           480 arch/powerpc/include/asm/atomic.h 	: "r" (&v->counter)
counter           487 arch/powerpc/include/asm/atomic.h #define atomic64_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
counter           489 arch/powerpc/include/asm/atomic.h 	cmpxchg_relaxed(&((v)->counter), (o), (n))
counter           491 arch/powerpc/include/asm/atomic.h 	cmpxchg_acquire(&((v)->counter), (o), (n))
counter           493 arch/powerpc/include/asm/atomic.h #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
counter           494 arch/powerpc/include/asm/atomic.h #define atomic64_xchg_relaxed(v, new) xchg_relaxed(&((v)->counter), (new))
counter           521 arch/powerpc/include/asm/atomic.h 	: "r" (&v->counter), "r" (a), "r" (u)
counter           551 arch/powerpc/include/asm/atomic.h 	: "r" (&v->counter)
counter          2291 arch/powerpc/kernel/traps.c 				       (u32 *)&entries[i].val.counter);
counter          2525 arch/powerpc/xmon/xmon.c 		DUMP(p, dont_stop.counter, "%#-*x");
counter            32 arch/riscv/include/asm/atomic.h 	return READ_ONCE(v->counter);
counter            36 arch/riscv/include/asm/atomic.h 	WRITE_ONCE(v->counter, i);
counter            43 arch/riscv/include/asm/atomic.h 	return READ_ONCE(v->counter);
counter            47 arch/riscv/include/asm/atomic.h 	WRITE_ONCE(v->counter, i);
counter            62 arch/riscv/include/asm/atomic.h 		: "+A" (v->counter)					\
counter            98 arch/riscv/include/asm/atomic.h 		: "+A" (v->counter), "=r" (ret)				\
counter           109 arch/riscv/include/asm/atomic.h 		: "+A" (v->counter), "=r" (ret)				\
counter           214 arch/riscv/include/asm/atomic.h 		: [p]"=&r" (prev), [rc]"=&r" (rc), [c]"+A" (v->counter)
counter           235 arch/riscv/include/asm/atomic.h 		: [p]"=&r" (prev), [rc]"=&r" (rc), [c]"+A" (v->counter)
counter           251 arch/riscv/include/asm/atomic.h 	return __xchg_relaxed(&(v->counter), n, size);			\
counter           256 arch/riscv/include/asm/atomic.h 	return __xchg_acquire(&(v->counter), n, size);			\
counter           261 arch/riscv/include/asm/atomic.h 	return __xchg_release(&(v->counter), n, size);			\
counter           266 arch/riscv/include/asm/atomic.h 	return __xchg(&(v->counter), n, size);				\
counter           272 arch/riscv/include/asm/atomic.h 	return __cmpxchg_relaxed(&(v->counter), o, n, size);		\
counter           278 arch/riscv/include/asm/atomic.h 	return __cmpxchg_acquire(&(v->counter), o, n, size);		\
counter           284 arch/riscv/include/asm/atomic.h 	return __cmpxchg_release(&(v->counter), o, n, size);		\
counter           289 arch/riscv/include/asm/atomic.h 	return __cmpxchg(&(v->counter), o, n, size);			\
counter           327 arch/riscv/include/asm/atomic.h 		: [p]"=&r" (prev), [rc]"=&r" (rc), [c]"+A" (v->counter)
counter           349 arch/riscv/include/asm/atomic.h 		: [p]"=&r" (prev), [rc]"=&r" (rc), [c]"+A" (v->counter)
counter           705 arch/s390/crypto/prng.c 	u64 counter;
counter           710 arch/s390/crypto/prng.c 		counter = prng_data->prnows.stream_bytes;
counter           712 arch/s390/crypto/prng.c 		counter = prng_data->prngws.byte_counter;
counter           715 arch/s390/crypto/prng.c 	return snprintf(buf, PAGE_SIZE, "%llu\n", counter);
counter            26 arch/s390/include/asm/atomic.h 		: "=d" (c) : "Q" (v->counter));
counter            34 arch/s390/include/asm/atomic.h 		: "=Q" (v->counter) : "d" (i));
counter            39 arch/s390/include/asm/atomic.h 	return __atomic_add_barrier(i, &v->counter) + i;
counter            44 arch/s390/include/asm/atomic.h 	return __atomic_add_barrier(i, &v->counter);
counter            51 arch/s390/include/asm/atomic.h 		__atomic_add_const(i, &v->counter);
counter            55 arch/s390/include/asm/atomic.h 	__atomic_add(i, &v->counter);
counter            65 arch/s390/include/asm/atomic.h 	__atomic_##op(i, &v->counter);					\
counter            69 arch/s390/include/asm/atomic.h 	return __atomic_##op##_barrier(i, &v->counter);			\
counter            78 arch/s390/include/asm/atomic.h #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
counter            82 arch/s390/include/asm/atomic.h 	return __atomic_cmpxchg(&v->counter, old, new);
counter            93 arch/s390/include/asm/atomic.h 		: "=d" (c) : "Q" (v->counter));
counter           101 arch/s390/include/asm/atomic.h 		: "=Q" (v->counter) : "d" (i));
counter           106 arch/s390/include/asm/atomic.h 	return __atomic64_add_barrier(i, (long *)&v->counter) + i;
counter           111 arch/s390/include/asm/atomic.h 	return __atomic64_add_barrier(i, (long *)&v->counter);
counter           118 arch/s390/include/asm/atomic.h 		__atomic64_add_const(i, (long *)&v->counter);
counter           122 arch/s390/include/asm/atomic.h 	__atomic64_add(i, (long *)&v->counter);
counter           125 arch/s390/include/asm/atomic.h #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
counter           129 arch/s390/include/asm/atomic.h 	return __atomic64_cmpxchg((long *)&v->counter, old, new);
counter           135 arch/s390/include/asm/atomic.h 	__atomic64_##op(i, (long *)&v->counter);			\
counter           139 arch/s390/include/asm/atomic.h 	return __atomic64_##op##_barrier(i, (long *)&v->counter);	\
counter           386 arch/s390/include/asm/cpacf.h 			      const u8 *src, long src_len, u8 *counter)
counter           393 arch/s390/include/asm/cpacf.h 	register unsigned long r6 asm("6") = (unsigned long) counter;
counter            19 arch/s390/kernel/diag.c 	unsigned int counter[NR_DIAG_STAT];
counter            77 arch/s390/kernel/diag.c 			seq_printf(m, " %10u", stat->counter[n-1]);
counter           131 arch/s390/kernel/diag.c 	this_cpu_inc(diag_stat.counter[nr]);
counter           138 arch/s390/kernel/diag.c 	this_cpu_inc(diag_stat.counter[nr]);
counter            65 arch/s390/mm/cmm.c static long cmm_alloc_pages(long nr, long *counter,
counter            98 arch/s390/mm/cmm.c 		(*counter)++;
counter           105 arch/s390/mm/cmm.c static long cmm_free_pages(long nr, long *counter, struct cmm_page_array **list)
counter           122 arch/s390/mm/cmm.c 		(*counter)--;
counter            73 arch/s390/pci/pci_debug.c 	atomic64_t *counter = &zdev->allocated_pages;
counter            76 arch/s390/pci/pci_debug.c 	for (i = 0; i < ARRAY_SIZE(pci_sw_names); i++, counter++)
counter            78 arch/s390/pci/pci_debug.c 			   atomic64_read(counter));
counter            19 arch/sh/include/asm/atomic-irq.h 	v->counter c_op i;						\
counter            29 arch/sh/include/asm/atomic-irq.h 	temp = v->counter;						\
counter            31 arch/sh/include/asm/atomic-irq.h 	v->counter = temp;						\
counter            43 arch/sh/include/asm/atomic-irq.h 	temp = v->counter;						\
counter            44 arch/sh/include/asm/atomic-irq.h 	v->counter c_op i;						\
counter            30 arch/sh/include/asm/atomic-llsc.h 	: "r" (i), "r" (&v->counter)					\
counter            46 arch/sh/include/asm/atomic-llsc.h 	: "r" (i), "r" (&v->counter)					\
counter            65 arch/sh/include/asm/atomic-llsc.h 	: "r" (i), "r" (&v->counter)					\
counter            24 arch/sh/include/asm/atomic.h #define atomic_read(v)		READ_ONCE((v)->counter)
counter            25 arch/sh/include/asm/atomic.h #define atomic_set(v,i)		WRITE_ONCE((v)->counter, (i))
counter            35 arch/sh/include/asm/atomic.h #define atomic_xchg(v, new)		(xchg(&((v)->counter), new))
counter            36 arch/sh/include/asm/atomic.h #define atomic_cmpxchg(v, o, n)		(cmpxchg(&((v)->counter), (o), (n)))
counter            37 arch/sparc/include/asm/atomic_32.h #define atomic_read(v)          READ_ONCE((v)->counter)
counter            18 arch/sparc/include/asm/atomic_64.h #define atomic_read(v)		READ_ONCE((v)->counter)
counter            19 arch/sparc/include/asm/atomic_64.h #define atomic64_read(v)	READ_ONCE((v)->counter)
counter            21 arch/sparc/include/asm/atomic_64.h #define atomic_set(v, i)	WRITE_ONCE(((v)->counter), (i))
counter            22 arch/sparc/include/asm/atomic_64.h #define atomic64_set(v, i)	WRITE_ONCE(((v)->counter), (i))
counter            53 arch/sparc/include/asm/atomic_64.h #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
counter            57 arch/sparc/include/asm/atomic_64.h 	return xchg(&v->counter, new);
counter            61 arch/sparc/include/asm/atomic_64.h 	((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
counter            62 arch/sparc/include/asm/atomic_64.h #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
counter            18 arch/sparc/include/asm/cpudata_32.h 	unsigned int counter;
counter           213 arch/sparc/kernel/irq_32.c 		seq_printf(p, "%10u ", cpu_data(j).counter);
counter            38 arch/sparc/lib/atomic32.c 	ret = v->counter;						\
counter            39 arch/sparc/lib/atomic32.c 	v->counter c_op i;						\
counter            53 arch/sparc/lib/atomic32.c 	ret = (v->counter c_op i);					\
counter            76 arch/sparc/lib/atomic32.c 	ret = v->counter;
counter            77 arch/sparc/lib/atomic32.c 	v->counter = new;
counter            89 arch/sparc/lib/atomic32.c 	ret = v->counter;
counter            91 arch/sparc/lib/atomic32.c 		v->counter = new;
counter           104 arch/sparc/lib/atomic32.c 	ret = v->counter;
counter           106 arch/sparc/lib/atomic32.c 		v->counter += a;
counter           118 arch/sparc/lib/atomic32.c 	v->counter = i;
counter            52 arch/um/drivers/vector_transports.c 	uint32_t counter;
counter            70 arch/um/drivers/vector_transports.c 	uint32_t *counter;
counter            85 arch/um/drivers/vector_transports.c 		counter = (uint32_t *)(header + td->counter_offset);
counter            87 arch/um/drivers/vector_transports.c 			*counter = 0;
counter            89 arch/um/drivers/vector_transports.c 			td->counter++;
counter            90 arch/um/drivers/vector_transports.c 			*counter = cpu_to_be32(td->counter);
counter           320 arch/um/drivers/vector_transports.c 	td->counter = 0;
counter           858 arch/x86/crypto/aesni-intel_glue.c 	__be32 counter = cpu_to_be32(1);
counter           871 arch/x86/crypto/aesni-intel_glue.c 	*((__be32 *)(iv+12)) = counter;
counter           879 arch/x86/crypto/aesni-intel_glue.c 	__be32 counter = cpu_to_be32(1);
counter           898 arch/x86/crypto/aesni-intel_glue.c 	*((__be32 *)(iv+12)) = counter;
counter          1014 arch/x86/crypto/aesni-intel_glue.c 	__be32 counter = cpu_to_be32(1);
counter          1017 arch/x86/crypto/aesni-intel_glue.c 	*((__be32 *)(iv+12)) = counter;
counter          1025 arch/x86/crypto/aesni-intel_glue.c 	__be32 counter = cpu_to_be32(1);
counter          1032 arch/x86/crypto/aesni-intel_glue.c 	*((__be32 *)(iv+12)) = counter;
counter           584 arch/x86/events/amd/core.c 	u64 counter;
counter           592 arch/x86/events/amd/core.c 		rdmsrl(x86_pmu_event_addr(idx), counter);
counter           593 arch/x86/events/amd/core.c 		if (counter & (1ULL << (x86_pmu.cntval_bits - 1)))
counter           698 arch/x86/events/core.c 	int	counter;	/* counter index */
counter           759 arch/x86/events/core.c 	clear_bit(sched->state.counter++, sched->state.used);
counter           790 arch/x86/events/core.c 	idx = sched->state.counter;
counter           803 arch/x86/events/core.c 	sched->state.counter = idx;
counter           845 arch/x86/events/core.c 	sched->state.counter = 0;	/* start with first counter */
counter           864 arch/x86/events/core.c 			assign[sched.state.event] = sched.state.counter;
counter           196 arch/x86/events/intel/uncore_nhmex.c DEFINE_UNCORE_FORMAT_ATTR(counter, counter, "config:6-7");
counter            31 arch/x86/include/asm/atomic.h 	return READ_ONCE((v)->counter);
counter            43 arch/x86/include/asm/atomic.h 	WRITE_ONCE(v->counter, i);
counter            56 arch/x86/include/asm/atomic.h 		     : "+m" (v->counter)
counter            70 arch/x86/include/asm/atomic.h 		     : "+m" (v->counter)
counter            85 arch/x86/include/asm/atomic.h 	return GEN_BINARY_RMWcc(LOCK_PREFIX "subl", v->counter, e, "er", i);
counter            98 arch/x86/include/asm/atomic.h 		     : "+m" (v->counter) :: "memory");
counter           111 arch/x86/include/asm/atomic.h 		     : "+m" (v->counter) :: "memory");
counter           125 arch/x86/include/asm/atomic.h 	return GEN_UNARY_RMWcc(LOCK_PREFIX "decl", v->counter, e);
counter           139 arch/x86/include/asm/atomic.h 	return GEN_UNARY_RMWcc(LOCK_PREFIX "incl", v->counter, e);
counter           154 arch/x86/include/asm/atomic.h 	return GEN_BINARY_RMWcc(LOCK_PREFIX "addl", v->counter, s, "er", i);
counter           167 arch/x86/include/asm/atomic.h 	return i + xadd(&v->counter, i);
counter           184 arch/x86/include/asm/atomic.h 	return xadd(&v->counter, i);
counter           189 arch/x86/include/asm/atomic.h 	return xadd(&v->counter, -i);
counter           194 arch/x86/include/asm/atomic.h 	return arch_cmpxchg(&v->counter, old, new);
counter           200 arch/x86/include/asm/atomic.h 	return try_cmpxchg(&v->counter, old, new);
counter           205 arch/x86/include/asm/atomic.h 	return arch_xchg(&v->counter, new);
counter           211 arch/x86/include/asm/atomic.h 			: "+m" (v->counter)
counter           228 arch/x86/include/asm/atomic.h 			: "+m" (v->counter)
counter           245 arch/x86/include/asm/atomic.h 			: "+m" (v->counter)
counter            12 arch/x86/include/asm/atomic64_32.h 	s64 __aligned(8) counter;
counter            76 arch/x86/include/asm/atomic64_32.h 	return arch_cmpxchg64(&v->counter, o, n);
counter            22 arch/x86/include/asm/atomic64_64.h 	return READ_ONCE((v)->counter);
counter            34 arch/x86/include/asm/atomic64_64.h 	WRITE_ONCE(v->counter, i);
counter            47 arch/x86/include/asm/atomic64_64.h 		     : "=m" (v->counter)
counter            48 arch/x86/include/asm/atomic64_64.h 		     : "er" (i), "m" (v->counter) : "memory");
counter            61 arch/x86/include/asm/atomic64_64.h 		     : "=m" (v->counter)
counter            62 arch/x86/include/asm/atomic64_64.h 		     : "er" (i), "m" (v->counter) : "memory");
counter            76 arch/x86/include/asm/atomic64_64.h 	return GEN_BINARY_RMWcc(LOCK_PREFIX "subq", v->counter, e, "er", i);
counter            89 arch/x86/include/asm/atomic64_64.h 		     : "=m" (v->counter)
counter            90 arch/x86/include/asm/atomic64_64.h 		     : "m" (v->counter) : "memory");
counter           103 arch/x86/include/asm/atomic64_64.h 		     : "=m" (v->counter)
counter           104 arch/x86/include/asm/atomic64_64.h 		     : "m" (v->counter) : "memory");
counter           118 arch/x86/include/asm/atomic64_64.h 	return GEN_UNARY_RMWcc(LOCK_PREFIX "decq", v->counter, e);
counter           132 arch/x86/include/asm/atomic64_64.h 	return GEN_UNARY_RMWcc(LOCK_PREFIX "incq", v->counter, e);
counter           147 arch/x86/include/asm/atomic64_64.h 	return GEN_BINARY_RMWcc(LOCK_PREFIX "addq", v->counter, s, "er", i);
counter           160 arch/x86/include/asm/atomic64_64.h 	return i + xadd(&v->counter, i);
counter           170 arch/x86/include/asm/atomic64_64.h 	return xadd(&v->counter, i);
counter           175 arch/x86/include/asm/atomic64_64.h 	return xadd(&v->counter, -i);
counter           180 arch/x86/include/asm/atomic64_64.h 	return arch_cmpxchg(&v->counter, old, new);
counter           186 arch/x86/include/asm/atomic64_64.h 	return try_cmpxchg(&v->counter, old, new);
counter           191 arch/x86/include/asm/atomic64_64.h 	return arch_xchg(&v->counter, new);
counter           197 arch/x86/include/asm/atomic64_64.h 			: "+m" (v->counter)
counter           214 arch/x86/include/asm/atomic64_64.h 			: "+m" (v->counter)
counter           231 arch/x86/include/asm/atomic64_64.h 			: "+m" (v->counter)
counter           453 arch/x86/include/asm/kvm_host.h 	u64 counter;
counter            22 arch/x86/include/asm/local.h 		     : "+m" (l->a.counter));
counter            28 arch/x86/include/asm/local.h 		     : "+m" (l->a.counter));
counter            34 arch/x86/include/asm/local.h 		     : "+m" (l->a.counter)
counter            41 arch/x86/include/asm/local.h 		     : "+m" (l->a.counter)
counter            56 arch/x86/include/asm/local.h 	return GEN_BINARY_RMWcc(_ASM_SUB, l->a.counter, e, "er", i);
counter            69 arch/x86/include/asm/local.h 	return GEN_UNARY_RMWcc(_ASM_DEC, l->a.counter, e);
counter            82 arch/x86/include/asm/local.h 	return GEN_UNARY_RMWcc(_ASM_INC, l->a.counter, e);
counter            96 arch/x86/include/asm/local.h 	return GEN_BINARY_RMWcc(_ASM_ADD, l->a.counter, s, "er", i);
counter           110 arch/x86/include/asm/local.h 		     : "+r" (i), "+m" (l->a.counter)
counter           124 arch/x86/include/asm/local.h 	(cmpxchg_local(&((l)->a.counter), (o), (n)))
counter           126 arch/x86/include/asm/local.h #define local_xchg(l, n) (xchg(&((l)->a.counter), (n)))
counter           246 arch/x86/include/asm/msr.h static inline unsigned long long native_read_pmc(int counter)
counter           250 arch/x86/include/asm/msr.h 	asm volatile("rdpmc" : EAX_EDX_RET(val, low, high) : "c" (counter));
counter           252 arch/x86/include/asm/msr.h 		do_trace_rdpmc(counter, EAX_EDX_VAL(val, low, high), 0);
counter           310 arch/x86/include/asm/msr.h #define rdpmc(counter, low, high)			\
counter           312 arch/x86/include/asm/msr.h 	u64 _l = native_read_pmc((counter));		\
counter           317 arch/x86/include/asm/msr.h #define rdpmcl(counter, val) ((val) = native_read_pmc(counter))
counter           223 arch/x86/include/asm/paravirt.h static inline unsigned long long paravirt_read_pmc(int counter)
counter           225 arch/x86/include/asm/paravirt.h 	return PVOP_CALL1(u64, cpu.read_pmc, counter);
counter           228 arch/x86/include/asm/paravirt.h #define rdpmc(counter, low, high)		\
counter           230 arch/x86/include/asm/paravirt.h 	u64 _l = paravirt_read_pmc(counter);	\
counter           235 arch/x86/include/asm/paravirt.h #define rdpmcl(counter, val) ((val) = paravirt_read_pmc(counter))
counter           162 arch/x86/include/asm/paravirt_types.h 	u64 (*read_pmc)(int counter);
counter            23 arch/x86/include/asm/qspinlock.h 	val = GEN_BINARY_RMWcc(LOCK_PREFIX "btsl", lock->val.counter, c,
counter            46 arch/x86/include/asm/refcount.h 		: [var] "+m" (r->refs.counter)
counter            55 arch/x86/include/asm/refcount.h 		: [var] "+m" (r->refs.counter)
counter            63 arch/x86/include/asm/refcount.h 		: [var] "+m" (r->refs.counter)
counter            72 arch/x86/include/asm/refcount.h 					 r->refs.counter, e, "er", i, "cx");
counter            86 arch/x86/include/asm/refcount.h 					 r->refs.counter, e, "cx");
counter           111 arch/x86/include/asm/refcount.h 				     : : [var] "m" (r->refs.counter)
counter           809 arch/x86/include/asm/uv/uv_bau.h 	short counter;
counter           820 arch/x86/include/asm/uv/uv_bau.h 	return v->counter;
counter           834 arch/x86/include/asm/uv/uv_bau.h 			: "+r" (i), "+m" (v->counter)
counter           273 arch/x86/include/asm/xen/interface.h 	uint64_t counter;
counter           101 arch/x86/kernel/cpu/perfctr-watchdog.c int avail_to_resrv_perfctr_nmi_bit(unsigned int counter)
counter           103 arch/x86/kernel/cpu/perfctr-watchdog.c 	BUG_ON(counter > NMI_MAX_COUNTER_BITS);
counter           105 arch/x86/kernel/cpu/perfctr-watchdog.c 	return !test_bit(counter, perfctr_nmi_owner);
counter           111 arch/x86/kernel/cpu/perfctr-watchdog.c 	unsigned int counter;
counter           113 arch/x86/kernel/cpu/perfctr-watchdog.c 	counter = nmi_perfctr_msr_to_bit(msr);
counter           115 arch/x86/kernel/cpu/perfctr-watchdog.c 	if (counter > NMI_MAX_COUNTER_BITS)
counter           118 arch/x86/kernel/cpu/perfctr-watchdog.c 	if (!test_and_set_bit(counter, perfctr_nmi_owner))
counter           126 arch/x86/kernel/cpu/perfctr-watchdog.c 	unsigned int counter;
counter           128 arch/x86/kernel/cpu/perfctr-watchdog.c 	counter = nmi_perfctr_msr_to_bit(msr);
counter           130 arch/x86/kernel/cpu/perfctr-watchdog.c 	if (counter > NMI_MAX_COUNTER_BITS)
counter           133 arch/x86/kernel/cpu/perfctr-watchdog.c 	clear_bit(counter, perfctr_nmi_owner);
counter           139 arch/x86/kernel/cpu/perfctr-watchdog.c 	unsigned int counter;
counter           141 arch/x86/kernel/cpu/perfctr-watchdog.c 	counter = nmi_evntsel_msr_to_bit(msr);
counter           143 arch/x86/kernel/cpu/perfctr-watchdog.c 	if (counter > NMI_MAX_COUNTER_BITS)
counter           146 arch/x86/kernel/cpu/perfctr-watchdog.c 	if (!test_and_set_bit(counter, evntsel_nmi_owner))
counter           154 arch/x86/kernel/cpu/perfctr-watchdog.c 	unsigned int counter;
counter           156 arch/x86/kernel/cpu/perfctr-watchdog.c 	counter = nmi_evntsel_msr_to_bit(msr);
counter           158 arch/x86/kernel/cpu/perfctr-watchdog.c 	if (counter > NMI_MAX_COUNTER_BITS)
counter           161 arch/x86/kernel/cpu/perfctr-watchdog.c 	clear_bit(counter, evntsel_nmi_owner);
counter           119 arch/x86/kvm/i8254.c 	int counter;
counter           129 arch/x86/kvm/i8254.c 		counter = (c->count - d) & 0xffff;
counter           133 arch/x86/kvm/i8254.c 		counter = c->count - (mod_64((2 * d), c->count));
counter           136 arch/x86/kvm/i8254.c 		counter = c->count - mod_64(d, c->count);
counter           139 arch/x86/kvm/i8254.c 	return counter;
counter           116 arch/x86/kvm/pmu.c 	attr.sample_period = (-pmc->counter) & pmc_bitmask(pmc);
counter            50 arch/x86/kvm/pmu.h 	u64 counter, enabled, running;
counter            52 arch/x86/kvm/pmu.h 	counter = pmc->counter;
counter            54 arch/x86/kvm/pmu.h 		counter += perf_event_read_value(pmc->perf_event,
counter            57 arch/x86/kvm/pmu.h 	return counter & pmc_bitmask(pmc);
counter            63 arch/x86/kvm/pmu.h 		pmc->counter = pmc_read_counter(pmc);
counter           242 arch/x86/kvm/pmu_amd.c 		pmc->counter += data - pmc_read_counter(pmc);
counter           300 arch/x86/kvm/pmu_amd.c 		pmc->counter = pmc->eventsel = 0;
counter           250 arch/x86/kvm/vmx/pmu_intel.c 				pmc->counter = data;
counter           252 arch/x86/kvm/vmx/pmu_intel.c 				pmc->counter = (s32)data;
counter           255 arch/x86/kvm/vmx/pmu_intel.c 			pmc->counter = data;
counter           358 arch/x86/kvm/vmx/pmu_intel.c 		pmc->counter = pmc->eventsel = 0;
counter           365 arch/x86/kvm/vmx/pmu_intel.c 		pmc->counter = 0;
counter           131 arch/x86/lib/msr.c void do_trace_rdpmc(unsigned counter, u64 val, int failed)
counter           133 arch/x86/lib/msr.c 	trace_rdpmc(counter, val, failed);
counter            59 arch/x86/oprofile/op_x86_model.h static inline void op_x86_warn_in_use(int counter)
counter            71 arch/x86/oprofile/op_x86_model.h 		   counter, smp_processor_id());
counter            74 arch/x86/oprofile/op_x86_model.h static inline void op_x86_warn_reserved(int counter)
counter            76 arch/x86/oprofile/op_x86_model.h 	pr_warning("oprofile: counter #%d is already reserved\n", counter);
counter           226 arch/x86/xen/pmu.c 			reg = &arch_cntr_pair[index].counter;
counter           337 arch/x86/xen/pmu.c static unsigned long long xen_amd_read_pmc(int counter)
counter           348 arch/x86/xen/pmu.c 		msr = amd_counters_base + (counter * amd_msr_step);
counter           354 arch/x86/xen/pmu.c 	return counter_regs[counter];
counter           357 arch/x86/xen/pmu.c static unsigned long long xen_intel_read_pmc(int counter)
counter           369 arch/x86/xen/pmu.c 		if (counter & (1 << INTEL_PMC_TYPE_SHIFT))
counter           370 arch/x86/xen/pmu.c 			msr = MSR_CORE_PERF_FIXED_CTR0 + (counter & 0xffff);
counter           372 arch/x86/xen/pmu.c 			msr = MSR_IA32_PERFCTR0 + counter;
counter           378 arch/x86/xen/pmu.c 	if (counter & (1 << INTEL_PMC_TYPE_SHIFT)) {
counter           380 arch/x86/xen/pmu.c 		return fixed_counters[counter & 0xffff];
counter           384 arch/x86/xen/pmu.c 	return arch_cntr_pair[counter].counter;
counter           387 arch/x86/xen/pmu.c unsigned long long xen_read_pmc(int counter)
counter           390 arch/x86/xen/pmu.c 		return xen_amd_read_pmc(counter);
counter           392 arch/x86/xen/pmu.c 		return xen_intel_read_pmc(counter);
counter            19 arch/x86/xen/pmu.h unsigned long long xen_read_pmc(int counter);
counter            48 arch/xtensa/include/asm/atomic.h #define atomic_read(v)		READ_ONCE((v)->counter)
counter            57 arch/xtensa/include/asm/atomic.h #define atomic_set(v,i)		WRITE_ONCE((v)->counter, (i))
counter           258 arch/xtensa/include/asm/atomic.h #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
counter           259 arch/xtensa/include/asm/atomic.h #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
counter           140 block/partitions/ibm.c 	int counter;
counter           156 block/partitions/ibm.c 	counter = 0;
counter           180 block/partitions/ibm.c 		if (counter >= state->limit)
counter           182 block/partitions/ibm.c 		put_partition(state, counter + 1, offset, size);
counter           183 block/partitions/ibm.c 		counter++;
counter           161 crypto/gcm.c   	__be32 counter = cpu_to_be32(1);
counter           166 crypto/gcm.c   	memcpy(pctx->iv + GCM_AES_IV_SIZE, &counter, 4);
counter           116 crypto/lrw.c   static int next_index(u32 *counter)
counter           121 crypto/lrw.c   		if (counter[i] + 1 != 0)
counter           122 crypto/lrw.c   			return res + ffz(counter[i]++);
counter           124 crypto/lrw.c   		counter[i] = 0;
counter           151 crypto/lrw.c   	u32 counter[4];
counter           165 crypto/lrw.c   	counter[0] = be32_to_cpu(iv[3]);
counter           166 crypto/lrw.c   	counter[1] = be32_to_cpu(iv[2]);
counter           167 crypto/lrw.c   	counter[2] = be32_to_cpu(iv[1]);
counter           168 crypto/lrw.c   	counter[3] = be32_to_cpu(iv[0]);
counter           183 crypto/lrw.c   			be128_xor(&t, &t, &ctx->mulinc[next_index(counter)]);
counter           187 crypto/lrw.c   			iv[0] = cpu_to_be32(counter[3]);
counter           188 crypto/lrw.c   			iv[1] = cpu_to_be32(counter[2]);
counter           189 crypto/lrw.c   			iv[2] = cpu_to_be32(counter[1]);
counter           190 crypto/lrw.c   			iv[3] = cpu_to_be32(counter[0]);
counter            24 drivers/acpi/acpi_lpit.c static int lpit_read_residency_counter_us(u64 *counter, bool io_mem)
counter            37 drivers/acpi/acpi_lpit.c 		*counter = div64_u64(count * 1000000ULL, residency_info_mem.frequency);
counter            41 drivers/acpi/acpi_lpit.c 	err = rdmsrl_safe(residency_info_ffh.gaddr.address, counter);
counter            47 drivers/acpi/acpi_lpit.c 		*counter &= mask;
counter            48 drivers/acpi/acpi_lpit.c 		*counter >>= residency_info_ffh.gaddr.bit_offset;
counter            49 drivers/acpi/acpi_lpit.c 		*counter = div64_u64(*counter * 1000000ULL, residency_info_ffh.frequency);
counter            60 drivers/acpi/acpi_lpit.c 	u64 counter;
counter            63 drivers/acpi/acpi_lpit.c 	ret = lpit_read_residency_counter_us(&counter, true);
counter            67 drivers/acpi/acpi_lpit.c 	return sprintf(buf, "%llu\n", counter);
counter            75 drivers/acpi/acpi_lpit.c 	u64 counter;
counter            78 drivers/acpi/acpi_lpit.c 	ret = lpit_read_residency_counter_us(&counter, false);
counter            82 drivers/acpi/acpi_lpit.c 	return sprintf(buf, "%llu\n", counter);
counter           231 drivers/ata/pata_ep93xx.c 	unsigned long counter = start;
counter           233 drivers/ata/pata_ep93xx.c 	while (!ep93xx_pata_check_iordy(base) && counter--)
counter           235 drivers/ata/pata_ep93xx.c 	return start - counter;
counter           474 drivers/ata/pata_pdc2027x.c 	long counter;
counter           486 drivers/ata/pata_pdc2027x.c 	counter = (bccrh << 15) | bccrl;
counter           502 drivers/ata/pata_pdc2027x.c 	return counter;
counter            62 drivers/atm/idt77105.c static u16 get_counter(struct atm_dev *dev, int counter)
counter            67 drivers/atm/idt77105.c         PUT(counter, CTRSEL);
counter          1106 drivers/block/floppy.c 	int counter;
counter          1110 drivers/block/floppy.c 	for (counter = 0; counter < 10000; counter++) {
counter           378 drivers/block/ps3vram.c 	static int counter;
counter           395 drivers/block/ps3vram.c 	i = (jiffies + (counter++)) % cache->page_count;
counter            62 drivers/block/rbd.c 	unsigned int counter;
counter            64 drivers/block/rbd.c 	counter = (unsigned int)atomic_fetch_add_unless(v, 1, 0);
counter            65 drivers/block/rbd.c 	if (counter <= (unsigned int)INT_MAX)
counter            66 drivers/block/rbd.c 		return (int)counter;
counter            76 drivers/block/rbd.c 	int counter;
counter            78 drivers/block/rbd.c 	counter = atomic_dec_return(v);
counter            79 drivers/block/rbd.c 	if (counter >= 0)
counter            80 drivers/block/rbd.c 		return counter;
counter          1683 drivers/block/rbd.c 	int counter;
counter          1688 drivers/block/rbd.c 	counter = atomic_dec_return_safe(&rbd_dev->parent_ref);
counter          1689 drivers/block/rbd.c 	if (counter > 0)
counter          1694 drivers/block/rbd.c 	if (!counter)
counter          1710 drivers/block/rbd.c 	int counter = 0;
counter          1717 drivers/block/rbd.c 		counter = atomic_inc_return_safe(&rbd_dev->parent_ref);
counter          1720 drivers/block/rbd.c 	if (counter < 0)
counter          1723 drivers/block/rbd.c 	return counter > 0;
counter           267 drivers/clk/mvebu/armada-37xx-periph.c PERIPH_CLK_FULL(counter, 23, 20, DIV_SEL0, 23, clk_table6);
counter           286 drivers/clk/mvebu/armada-37xx-periph.c 	REF_CLK_FULL(counter),
counter            63 drivers/clocksource/arm_global_timer.c 	u64 counter;
counter            74 drivers/clocksource/arm_global_timer.c 	counter = upper;
counter            75 drivers/clocksource/arm_global_timer.c 	counter <<= 32;
counter            76 drivers/clocksource/arm_global_timer.c 	counter |= lower;
counter            77 drivers/clocksource/arm_global_timer.c 	return counter;
counter            95 drivers/clocksource/arm_global_timer.c 	u64 counter = gt_counter_read();
counter            98 drivers/clocksource/arm_global_timer.c 	counter += delta;
counter           101 drivers/clocksource/arm_global_timer.c 	writel_relaxed(lower_32_bits(counter), gt_base + GT_COMP0);
counter           102 drivers/clocksource/arm_global_timer.c 	writel_relaxed(upper_32_bits(counter), gt_base + GT_COMP1);
counter            74 drivers/clocksource/timer-pistachio.c 	u32 counter, overflw;
counter            84 drivers/clocksource/timer-pistachio.c 	counter = gpt_readl(pcs->base, TIMER_CURRENT_VALUE, 0);
counter            87 drivers/clocksource/timer-pistachio.c 	return (u64)~counter;
counter            48 drivers/clocksource/timer-ti-32k.c 	void __iomem		*counter;
counter            61 drivers/clocksource/timer-ti-32k.c 	return (u64)readl_relaxed(ti->counter);
counter            92 drivers/clocksource/timer-ti-32k.c 	ti_32k_timer.counter = ti_32k_timer.base;
counter           103 drivers/clocksource/timer-ti-32k.c 		ti_32k_timer.counter += OMAP2_32KSYNCNT_CR_OFF_HIGH;
counter           105 drivers/clocksource/timer-ti-32k.c 		ti_32k_timer.counter += OMAP2_32KSYNCNT_CR_OFF_LOW;
counter            46 drivers/counter/104-quad-8.c 	struct counter_device counter;
counter           616 drivers/counter/104-quad-8.c static int quad8_signal_read(struct counter_device *counter,
counter           619 drivers/counter/104-quad-8.c 	const struct quad8_iio *const priv = counter->priv;
counter           637 drivers/counter/104-quad-8.c static int quad8_count_read(struct counter_device *counter,
counter           640 drivers/counter/104-quad-8.c 	struct quad8_iio *const priv = counter->priv;
counter           671 drivers/counter/104-quad-8.c static int quad8_count_write(struct counter_device *counter,
counter           674 drivers/counter/104-quad-8.c 	struct quad8_iio *const priv = counter->priv;
counter           733 drivers/counter/104-quad-8.c static int quad8_function_get(struct counter_device *counter,
counter           736 drivers/counter/104-quad-8.c 	struct quad8_iio *const priv = counter->priv;
counter           761 drivers/counter/104-quad-8.c static int quad8_function_set(struct counter_device *counter,
counter           764 drivers/counter/104-quad-8.c 	struct quad8_iio *const priv = counter->priv;
counter           817 drivers/counter/104-quad-8.c static void quad8_direction_get(struct counter_device *counter,
counter           820 drivers/counter/104-quad-8.c 	const struct quad8_iio *const priv = counter->priv;
counter           850 drivers/counter/104-quad-8.c static int quad8_action_get(struct counter_device *counter,
counter           854 drivers/counter/104-quad-8.c 	struct quad8_iio *const priv = counter->priv;
counter           870 drivers/counter/104-quad-8.c 	err = quad8_function_get(counter, count, &function);
counter           885 drivers/counter/104-quad-8.c 			quad8_direction_get(counter, count, &direction);
counter           914 drivers/counter/104-quad-8.c static int quad8_index_polarity_get(struct counter_device *counter,
counter           917 drivers/counter/104-quad-8.c 	const struct quad8_iio *const priv = counter->priv;
counter           925 drivers/counter/104-quad-8.c static int quad8_index_polarity_set(struct counter_device *counter,
counter           928 drivers/counter/104-quad-8.c 	struct quad8_iio *const priv = counter->priv;
counter           954 drivers/counter/104-quad-8.c static int quad8_synchronous_mode_get(struct counter_device *counter,
counter           957 drivers/counter/104-quad-8.c 	const struct quad8_iio *const priv = counter->priv;
counter           965 drivers/counter/104-quad-8.c static int quad8_synchronous_mode_set(struct counter_device *counter,
counter           968 drivers/counter/104-quad-8.c 	struct quad8_iio *const priv = counter->priv;
counter          1000 drivers/counter/104-quad-8.c static ssize_t quad8_count_floor_read(struct counter_device *counter,
counter          1007 drivers/counter/104-quad-8.c static int quad8_count_mode_get(struct counter_device *counter,
counter          1010 drivers/counter/104-quad-8.c 	const struct quad8_iio *const priv = counter->priv;
counter          1031 drivers/counter/104-quad-8.c static int quad8_count_mode_set(struct counter_device *counter,
counter          1034 drivers/counter/104-quad-8.c 	struct quad8_iio *const priv = counter->priv;
counter          1080 drivers/counter/104-quad-8.c static ssize_t quad8_count_direction_read(struct counter_device *counter,
counter          1085 drivers/counter/104-quad-8.c 	quad8_direction_get(counter, count, &dir);
counter          1090 drivers/counter/104-quad-8.c static ssize_t quad8_count_enable_read(struct counter_device *counter,
counter          1093 drivers/counter/104-quad-8.c 	const struct quad8_iio *const priv = counter->priv;
counter          1098 drivers/counter/104-quad-8.c static ssize_t quad8_count_enable_write(struct counter_device *counter,
counter          1101 drivers/counter/104-quad-8.c 	struct quad8_iio *const priv = counter->priv;
counter          1125 drivers/counter/104-quad-8.c static int quad8_error_noise_get(struct counter_device *counter,
counter          1128 drivers/counter/104-quad-8.c 	const struct quad8_iio *const priv = counter->priv;
counter          1142 drivers/counter/104-quad-8.c static ssize_t quad8_count_preset_read(struct counter_device *counter,
counter          1145 drivers/counter/104-quad-8.c 	const struct quad8_iio *const priv = counter->priv;
counter          1166 drivers/counter/104-quad-8.c static ssize_t quad8_count_preset_write(struct counter_device *counter,
counter          1169 drivers/counter/104-quad-8.c 	struct quad8_iio *const priv = counter->priv;
counter          1190 drivers/counter/104-quad-8.c static ssize_t quad8_count_ceiling_read(struct counter_device *counter,
counter          1193 drivers/counter/104-quad-8.c 	struct quad8_iio *const priv = counter->priv;
counter          1211 drivers/counter/104-quad-8.c static ssize_t quad8_count_ceiling_write(struct counter_device *counter,
counter          1214 drivers/counter/104-quad-8.c 	struct quad8_iio *const priv = counter->priv;
counter          1241 drivers/counter/104-quad-8.c static ssize_t quad8_count_preset_enable_read(struct counter_device *counter,
counter          1244 drivers/counter/104-quad-8.c 	const struct quad8_iio *const priv = counter->priv;
counter          1249 drivers/counter/104-quad-8.c static ssize_t quad8_count_preset_enable_write(struct counter_device *counter,
counter          1252 drivers/counter/104-quad-8.c 	struct quad8_iio *const priv = counter->priv;
counter          1436 drivers/counter/104-quad-8.c 	quad8iio->counter.name = dev_name(dev);
counter          1437 drivers/counter/104-quad-8.c 	quad8iio->counter.parent = dev;
counter          1438 drivers/counter/104-quad-8.c 	quad8iio->counter.ops = &quad8_ops;
counter          1439 drivers/counter/104-quad-8.c 	quad8iio->counter.counts = quad8_counts;
counter          1440 drivers/counter/104-quad-8.c 	quad8iio->counter.num_counts = ARRAY_SIZE(quad8_counts);
counter          1441 drivers/counter/104-quad-8.c 	quad8iio->counter.signals = quad8_signals;
counter          1442 drivers/counter/104-quad-8.c 	quad8iio->counter.num_signals = ARRAY_SIZE(quad8_signals);
counter          1443 drivers/counter/104-quad-8.c 	quad8iio->counter.priv = quad8iio;
counter          1479 drivers/counter/104-quad-8.c 	return devm_counter_register(dev, &quad8iio->counter);
counter            37 drivers/counter/counter.c ssize_t counter_signal_enum_read(struct counter_device *counter,
counter            48 drivers/counter/counter.c 	err = e->get(counter, signal, &index);
counter            59 drivers/counter/counter.c ssize_t counter_signal_enum_write(struct counter_device *counter,
counter            74 drivers/counter/counter.c 	err = e->set(counter, signal, index);
counter            82 drivers/counter/counter.c ssize_t counter_signal_enum_available_read(struct counter_device *counter,
counter           100 drivers/counter/counter.c ssize_t counter_count_enum_read(struct counter_device *counter,
counter           111 drivers/counter/counter.c 	err = e->get(counter, count, &index);
counter           122 drivers/counter/counter.c ssize_t counter_count_enum_write(struct counter_device *counter,
counter           137 drivers/counter/counter.c 	err = e->set(counter, count, index);
counter           145 drivers/counter/counter.c ssize_t counter_count_enum_available_read(struct counter_device *counter,
counter           163 drivers/counter/counter.c ssize_t counter_device_enum_read(struct counter_device *counter, void *priv,
counter           173 drivers/counter/counter.c 	err = e->get(counter, &index);
counter           184 drivers/counter/counter.c ssize_t counter_device_enum_write(struct counter_device *counter, void *priv,
counter           198 drivers/counter/counter.c 	err = e->set(counter, index);
counter           206 drivers/counter/counter.c ssize_t counter_device_enum_available_read(struct counter_device *counter,
counter           375 drivers/counter/counter.c 	struct counter_device *const counter = dev_get_drvdata(dev);
counter           382 drivers/counter/counter.c 	err = counter->ops->signal_read(counter, signal, &val);
counter           525 drivers/counter/counter.c 	const struct counter_device *const counter,
counter           542 drivers/counter/counter.c 	parm.show = (counter->ops->signal_read) ? counter_signal_show : NULL;
counter           570 drivers/counter/counter.c 	const struct counter_device *const counter)
counter           572 drivers/counter/counter.c 	const size_t num_signals = counter->num_signals;
counter           580 drivers/counter/counter.c 		signal = counter->signals + i;
counter           591 drivers/counter/counter.c 		err = counter_signal_attributes_create(groups_list + i, counter,
counter           624 drivers/counter/counter.c 	struct counter_device *const counter = dev_get_drvdata(dev);
counter           631 drivers/counter/counter.c 	err = counter->ops->action_get(counter, count, synapse, &action_index);
counter           652 drivers/counter/counter.c 	struct counter_device *const counter = dev_get_drvdata(dev);
counter           665 drivers/counter/counter.c 	err = counter->ops->action_set(counter, count, synapse, action_index);
counter           699 drivers/counter/counter.c 	const struct counter_device *const counter,
counter           735 drivers/counter/counter.c 		parm.show = (counter->ops->action_get) ? counter_action_show : NULL;
counter           736 drivers/counter/counter.c 		parm.store = (counter->ops->action_set) ? counter_action_store : NULL;
counter           786 drivers/counter/counter.c 	struct counter_device *const counter = dev_get_drvdata(dev);
counter           793 drivers/counter/counter.c 	err = counter->ops->count_read(counter, count, &val);
counter           804 drivers/counter/counter.c 	struct counter_device *const counter = dev_get_drvdata(dev);
counter           811 drivers/counter/counter.c 	err = counter->ops->count_write(counter, count, &val);
counter           833 drivers/counter/counter.c 	struct counter_device *const counter = dev_get_drvdata(dev);
counter           840 drivers/counter/counter.c 	err = counter->ops->function_get(counter, count, &func_index);
counter           861 drivers/counter/counter.c 	struct counter_device *const counter = dev_get_drvdata(dev);
counter           873 drivers/counter/counter.c 	err = counter->ops->function_set(counter, count, func_index);
counter           980 drivers/counter/counter.c 	const struct counter_device *const counter,
counter           999 drivers/counter/counter.c 	parm.show = (counter->ops->count_read) ? counter_count_show : NULL;
counter          1000 drivers/counter/counter.c 	parm.store = (counter->ops->count_write) ? counter_count_store : NULL;
counter          1020 drivers/counter/counter.c 	parm.show = (counter->ops->function_get) ? counter_function_show : NULL;
counter          1021 drivers/counter/counter.c 	parm.store = (counter->ops->function_set) ? counter_function_store : NULL;
counter          1070 drivers/counter/counter.c 	const struct counter_device *const counter)
counter          1078 drivers/counter/counter.c 	for (i = 0; i < counter->num_counts; i++) {
counter          1079 drivers/counter/counter.c 		count = counter->counts + i;
counter          1090 drivers/counter/counter.c 		err = counter_synapses_register(groups_list + i, counter, count,
counter          1096 drivers/counter/counter.c 		err = counter_count_attributes_create(groups_list + i, counter,
counter          1183 drivers/counter/counter.c 	struct counter_device *const counter)
counter          1191 drivers/counter/counter.c 	for (i = 0 ; i < counter->num_ext; i++) {
counter          1199 drivers/counter/counter.c 		ext_comp->ext = counter->ext + i;
counter          1204 drivers/counter/counter.c 		parm.name = counter->ext[i].name;
counter          1205 drivers/counter/counter.c 		parm.show = (counter->ext[i].read) ? counter_device_ext_show : NULL;
counter          1206 drivers/counter/counter.c 		parm.store = (counter->ext[i].write) ? counter_device_ext_store : NULL;
counter          1224 drivers/counter/counter.c 	struct counter_device *const counter)
counter          1229 drivers/counter/counter.c 	err = counter_name_attribute_create(group, counter->name);
counter          1234 drivers/counter/counter.c 	err = counter_size_attribute_create(group, counter->num_counts,
counter          1240 drivers/counter/counter.c 	err = counter_size_attribute_create(group, counter->num_signals,
counter          1246 drivers/counter/counter.c 	err = counter_device_ext_register(group, counter);
counter          1278 drivers/counter/counter.c 	struct counter_device *const counter)
counter          1281 drivers/counter/counter.c 		counter->num_signals + counter->num_counts + 1;
counter          1298 drivers/counter/counter.c 	err = counter_signals_register(groups_list, counter);
counter          1301 drivers/counter/counter.c 	num_groups += counter->num_signals;
counter          1304 drivers/counter/counter.c 	err = counter_counts_register(groups_list + num_groups, counter);
counter          1307 drivers/counter/counter.c 	num_groups += counter->num_counts;
counter          1310 drivers/counter/counter.c 	err = counter_global_attr_register(groups_list + num_groups, counter);
counter          1316 drivers/counter/counter.c 	counter->device_state->groups_list = groups_list;
counter          1317 drivers/counter/counter.c 	counter->device_state->num_groups = num_groups;
counter          1381 drivers/counter/counter.c 	struct counter_device *const counter = dev_get_drvdata(dev);
counter          1382 drivers/counter/counter.c 	struct counter_device_state *const device_state = counter->device_state;
counter          1408 drivers/counter/counter.c int counter_register(struct counter_device *const counter)
counter          1417 drivers/counter/counter.c 	counter->device_state = device_state;
counter          1429 drivers/counter/counter.c 	if (counter->parent) {
counter          1430 drivers/counter/counter.c 		device_state->dev.parent = counter->parent;
counter          1431 drivers/counter/counter.c 		device_state->dev.of_node = counter->parent->of_node;
counter          1435 drivers/counter/counter.c 	dev_set_drvdata(&device_state->dev, counter);
counter          1438 drivers/counter/counter.c 	err = counter_device_groups_list_prepare(counter);
counter          1473 drivers/counter/counter.c void counter_unregister(struct counter_device *const counter)
counter          1475 drivers/counter/counter.c 	if (counter)
counter          1476 drivers/counter/counter.c 		device_del(&counter->device_state->dev);
counter          1501 drivers/counter/counter.c 			  struct counter_device *const counter)
counter          1510 drivers/counter/counter.c 	ret = counter_register(counter);
counter          1512 drivers/counter/counter.c 		*ptr = counter;
counter          1542 drivers/counter/counter.c 			     struct counter_device *const counter)
counter          1547 drivers/counter/counter.c 			    counter);
counter            28 drivers/counter/ftm-quaddec.c 	struct counter_device counter;
counter           117 drivers/counter/ftm-quaddec.c static int ftm_quaddec_get_prescaler(struct counter_device *counter,
counter           121 drivers/counter/ftm-quaddec.c 	struct ftm_quaddec *ftm = counter->priv;
counter           131 drivers/counter/ftm-quaddec.c static int ftm_quaddec_set_prescaler(struct counter_device *counter,
counter           135 drivers/counter/ftm-quaddec.c 	struct ftm_quaddec *ftm = counter->priv;
counter           179 drivers/counter/ftm-quaddec.c static int ftm_quaddec_count_read(struct counter_device *counter,
counter           183 drivers/counter/ftm-quaddec.c 	struct ftm_quaddec *const ftm = counter->priv;
counter           193 drivers/counter/ftm-quaddec.c static int ftm_quaddec_count_write(struct counter_device *counter,
counter           197 drivers/counter/ftm-quaddec.c 	struct ftm_quaddec *const ftm = counter->priv;
counter           215 drivers/counter/ftm-quaddec.c static int ftm_quaddec_count_function_get(struct counter_device *counter,
counter           224 drivers/counter/ftm-quaddec.c static int ftm_quaddec_action_get(struct counter_device *counter,
counter           309 drivers/counter/ftm-quaddec.c 	ftm->counter.name = dev_name(&pdev->dev);
counter           310 drivers/counter/ftm-quaddec.c 	ftm->counter.parent = &pdev->dev;
counter           311 drivers/counter/ftm-quaddec.c 	ftm->counter.ops = &ftm_quaddec_cnt_ops;
counter           312 drivers/counter/ftm-quaddec.c 	ftm->counter.counts = &ftm_quaddec_counts;
counter           313 drivers/counter/ftm-quaddec.c 	ftm->counter.num_counts = 1;
counter           314 drivers/counter/ftm-quaddec.c 	ftm->counter.signals = ftm_quaddec_signals;
counter           315 drivers/counter/ftm-quaddec.c 	ftm->counter.num_signals = ARRAY_SIZE(ftm_quaddec_signals);
counter           316 drivers/counter/ftm-quaddec.c 	ftm->counter.priv = ftm;
counter           326 drivers/counter/ftm-quaddec.c 	ret = devm_counter_register(&pdev->dev, &ftm->counter);
counter            22 drivers/counter/stm32-lptimer-cnt.c 	struct counter_device counter;
counter           379 drivers/counter/stm32-lptimer-cnt.c static int stm32_lptim_cnt_read(struct counter_device *counter,
counter           383 drivers/counter/stm32-lptimer-cnt.c 	struct stm32_lptim_cnt *const priv = counter->priv;
counter           396 drivers/counter/stm32-lptimer-cnt.c static int stm32_lptim_cnt_function_get(struct counter_device *counter,
counter           400 drivers/counter/stm32-lptimer-cnt.c 	struct stm32_lptim_cnt *const priv = counter->priv;
counter           415 drivers/counter/stm32-lptimer-cnt.c static int stm32_lptim_cnt_function_set(struct counter_device *counter,
counter           419 drivers/counter/stm32-lptimer-cnt.c 	struct stm32_lptim_cnt *const priv = counter->priv;
counter           437 drivers/counter/stm32-lptimer-cnt.c static ssize_t stm32_lptim_cnt_enable_read(struct counter_device *counter,
counter           441 drivers/counter/stm32-lptimer-cnt.c 	struct stm32_lptim_cnt *const priv = counter->priv;
counter           451 drivers/counter/stm32-lptimer-cnt.c static ssize_t stm32_lptim_cnt_enable_write(struct counter_device *counter,
counter           456 drivers/counter/stm32-lptimer-cnt.c 	struct stm32_lptim_cnt *const priv = counter->priv;
counter           482 drivers/counter/stm32-lptimer-cnt.c static ssize_t stm32_lptim_cnt_ceiling_read(struct counter_device *counter,
counter           486 drivers/counter/stm32-lptimer-cnt.c 	struct stm32_lptim_cnt *const priv = counter->priv;
counter           491 drivers/counter/stm32-lptimer-cnt.c static ssize_t stm32_lptim_cnt_ceiling_write(struct counter_device *counter,
counter           496 drivers/counter/stm32-lptimer-cnt.c 	struct stm32_lptim_cnt *const priv = counter->priv;
counter           514 drivers/counter/stm32-lptimer-cnt.c static int stm32_lptim_cnt_action_get(struct counter_device *counter,
counter           519 drivers/counter/stm32-lptimer-cnt.c 	struct stm32_lptim_cnt *const priv = counter->priv;
counter           523 drivers/counter/stm32-lptimer-cnt.c 	err = stm32_lptim_cnt_function_get(counter, count, &function);
counter           543 drivers/counter/stm32-lptimer-cnt.c static int stm32_lptim_cnt_action_set(struct counter_device *counter,
counter           548 drivers/counter/stm32-lptimer-cnt.c 	struct stm32_lptim_cnt *const priv = counter->priv;
counter           555 drivers/counter/stm32-lptimer-cnt.c 	err = stm32_lptim_cnt_function_get(counter, count, &function);
counter           662 drivers/counter/stm32-lptimer-cnt.c 	priv->counter.name = dev_name(&pdev->dev);
counter           663 drivers/counter/stm32-lptimer-cnt.c 	priv->counter.parent = &pdev->dev;
counter           664 drivers/counter/stm32-lptimer-cnt.c 	priv->counter.ops = &stm32_lptim_cnt_ops;
counter           666 drivers/counter/stm32-lptimer-cnt.c 		priv->counter.counts = &stm32_lptim_enc_counts;
counter           667 drivers/counter/stm32-lptimer-cnt.c 		priv->counter.num_signals = ARRAY_SIZE(stm32_lptim_cnt_signals);
counter           669 drivers/counter/stm32-lptimer-cnt.c 		priv->counter.counts = &stm32_lptim_in1_counts;
counter           670 drivers/counter/stm32-lptimer-cnt.c 		priv->counter.num_signals = 1;
counter           672 drivers/counter/stm32-lptimer-cnt.c 	priv->counter.num_counts = 1;
counter           673 drivers/counter/stm32-lptimer-cnt.c 	priv->counter.signals = stm32_lptim_cnt_signals;
counter           674 drivers/counter/stm32-lptimer-cnt.c 	priv->counter.priv = priv;
counter           682 drivers/counter/stm32-lptimer-cnt.c 	return devm_counter_register(&pdev->dev, &priv->counter);
counter            24 drivers/counter/stm32-timer-cnt.c 	struct counter_device counter;
counter            50 drivers/counter/stm32-timer-cnt.c static int stm32_count_read(struct counter_device *counter,
counter            54 drivers/counter/stm32-timer-cnt.c 	struct stm32_timer_cnt *const priv = counter->priv;
counter            63 drivers/counter/stm32-timer-cnt.c static int stm32_count_write(struct counter_device *counter,
counter            67 drivers/counter/stm32-timer-cnt.c 	struct stm32_timer_cnt *const priv = counter->priv;
counter            81 drivers/counter/stm32-timer-cnt.c static int stm32_count_function_get(struct counter_device *counter,
counter            85 drivers/counter/stm32-timer-cnt.c 	struct stm32_timer_cnt *const priv = counter->priv;
counter           105 drivers/counter/stm32-timer-cnt.c static int stm32_count_function_set(struct counter_device *counter,
counter           109 drivers/counter/stm32-timer-cnt.c 	struct stm32_timer_cnt *const priv = counter->priv;
counter           147 drivers/counter/stm32-timer-cnt.c static ssize_t stm32_count_direction_read(struct counter_device *counter,
counter           151 drivers/counter/stm32-timer-cnt.c 	struct stm32_timer_cnt *const priv = counter->priv;
counter           161 drivers/counter/stm32-timer-cnt.c static ssize_t stm32_count_ceiling_read(struct counter_device *counter,
counter           165 drivers/counter/stm32-timer-cnt.c 	struct stm32_timer_cnt *const priv = counter->priv;
counter           173 drivers/counter/stm32-timer-cnt.c static ssize_t stm32_count_ceiling_write(struct counter_device *counter,
counter           178 drivers/counter/stm32-timer-cnt.c 	struct stm32_timer_cnt *const priv = counter->priv;
counter           194 drivers/counter/stm32-timer-cnt.c static ssize_t stm32_count_enable_read(struct counter_device *counter,
counter           198 drivers/counter/stm32-timer-cnt.c 	struct stm32_timer_cnt *const priv = counter->priv;
counter           206 drivers/counter/stm32-timer-cnt.c static ssize_t stm32_count_enable_write(struct counter_device *counter,
counter           211 drivers/counter/stm32-timer-cnt.c 	struct stm32_timer_cnt *const priv = counter->priv;
counter           264 drivers/counter/stm32-timer-cnt.c static int stm32_action_get(struct counter_device *counter,
counter           275 drivers/counter/stm32-timer-cnt.c 	err = stm32_count_function_get(counter, count, &function);
counter           359 drivers/counter/stm32-timer-cnt.c 	priv->counter.name = dev_name(dev);
counter           360 drivers/counter/stm32-timer-cnt.c 	priv->counter.parent = dev;
counter           361 drivers/counter/stm32-timer-cnt.c 	priv->counter.ops = &stm32_timer_cnt_ops;
counter           362 drivers/counter/stm32-timer-cnt.c 	priv->counter.counts = &stm32_counts;
counter           363 drivers/counter/stm32-timer-cnt.c 	priv->counter.num_counts = 1;
counter           364 drivers/counter/stm32-timer-cnt.c 	priv->counter.signals = stm32_signals;
counter           365 drivers/counter/stm32-timer-cnt.c 	priv->counter.num_signals = ARRAY_SIZE(stm32_signals);
counter           366 drivers/counter/stm32-timer-cnt.c 	priv->counter.priv = priv;
counter           369 drivers/counter/stm32-timer-cnt.c 	return devm_counter_register(dev, &priv->counter);
counter           261 drivers/crypto/amcc/crypto4xx_alg.c 	unsigned int counter = be32_to_cpup((__be32 *)(req->iv + iv_len - 4));
counter           271 drivers/crypto/amcc/crypto4xx_alg.c 	if (counter + nblks < counter) {
counter          1181 drivers/crypto/axis/artpec6_crypto.c 	unsigned int counter = be32_to_cpup((__be32 *)
counter          1192 drivers/crypto/axis/artpec6_crypto.c 	if (counter + nblks < counter) {
counter          1196 drivers/crypto/axis/artpec6_crypto.c 			 counter, counter + nblks);
counter          1851 drivers/crypto/ccree/cc_aead.c 	__be32 counter = cpu_to_be32(2);
counter          1860 drivers/crypto/ccree/cc_aead.c 	memcpy(req->iv + 12, &counter, 4);
counter          1863 drivers/crypto/ccree/cc_aead.c 	counter = cpu_to_be32(1);
counter          1864 drivers/crypto/ccree/cc_aead.c 	memcpy(req->iv + 12, &counter, 4);
counter            49 drivers/crypto/geode-aes.c 	u32 counter = AES_OP_TIMEOUT;
counter            61 drivers/crypto/geode-aes.c 	} while (!(status & AES_INTRA_PENDING) && --counter);
counter            65 drivers/crypto/geode-aes.c 	return counter ? 0 : 1;
counter           307 drivers/crypto/omap-aes-gcm.c 	__be32 counter = cpu_to_be32(1);
counter           311 drivers/crypto/omap-aes-gcm.c 	memcpy(rctx->iv + GCM_AES_IV_SIZE, &counter, 4);
counter           133 drivers/crypto/qat/qat_common/icp_qat_hw.h 	__be32 counter;
counter           318 drivers/crypto/qat/qat_common/qat_algs.c 	hash->sha.inner_setup.auth_counter.counter =
counter           405 drivers/crypto/qat/qat_common/qat_algs.c 	hash->sha.inner_setup.auth_counter.counter =
counter           147 drivers/devfreq/event/exynos-nocp.c 	unsigned int counter[4];
counter           151 drivers/devfreq/event/exynos-nocp.c 	ret = regmap_read(nocp->regmap, NOCP_COUNTERS_0_VAL, &counter[0]);
counter           155 drivers/devfreq/event/exynos-nocp.c 	ret = regmap_read(nocp->regmap, NOCP_COUNTERS_1_VAL, &counter[1]);
counter           159 drivers/devfreq/event/exynos-nocp.c 	ret = regmap_read(nocp->regmap, NOCP_COUNTERS_2_VAL, &counter[2]);
counter           163 drivers/devfreq/event/exynos-nocp.c 	ret = regmap_read(nocp->regmap, NOCP_COUNTERS_3_VAL, &counter[3]);
counter           167 drivers/devfreq/event/exynos-nocp.c 	edata->load_count = ((counter[1] << 16) | counter[0]);
counter           168 drivers/devfreq/event/exynos-nocp.c 	edata->total_count = ((counter[3] << 16) | counter[2]);
counter           361 drivers/dma/dmatest.c 		unsigned int counter, bool is_srcbuf, bool is_memset)
counter           364 drivers/dma/dmatest.c 	u8		expected = pattern | gen_inv_idx(counter, is_memset);
counter           383 drivers/dma/dmatest.c 		unsigned int end, unsigned int counter, u8 pattern,
counter           391 drivers/dma/dmatest.c 	unsigned int counter_orig = counter;
counter           394 drivers/dma/dmatest.c 		counter = counter_orig;
counter           397 drivers/dma/dmatest.c 			expected = pattern | gen_inv_idx(counter, is_memset);
counter           401 drivers/dma/dmatest.c 							 counter, is_srcbuf,
counter           405 drivers/dma/dmatest.c 			counter++;
counter           132 drivers/firmware/stratix10-rsu.c 	unsigned int *counter = (unsigned int *)data->kaddr1;
counter           135 drivers/firmware/stratix10-rsu.c 		priv->retry_counter = *counter;
counter          5437 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int i, j, k, counter, active_cu_number = 0;
counter          5451 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			counter = 0;
counter          5461 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 					if (counter < adev->gfx.config.max_cu_per_sh)
counter          5463 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 					counter++;
counter          5467 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			active_cu_number += counter;
counter          3575 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	int i, j, k, counter, active_cu_number = 0;
counter          3595 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 			counter = 0;
counter          3605 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 					if (counter < ao_cu_num)
counter          3607 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 					counter ++;
counter          3611 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 			active_cu_number += counter;
counter          5108 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	int i, j, k, counter, active_cu_number = 0;
counter          5128 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 			counter = 0;
counter          5138 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 					if (counter < ao_cu_num)
counter          5140 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 					counter ++;
counter          5144 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 			active_cu_number += counter;
counter          7130 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int i, j, k, counter, active_cu_number = 0;
counter          7150 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 			counter = 0;
counter          7160 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 					if (counter < ao_cu_num)
counter          7162 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 					counter ++;
counter          7166 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 			active_cu_number += counter;
counter          1494 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	uint32_t mask, cu_bitmap, counter;
counter          1508 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			counter = 0;
counter          1513 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 					if (counter == pg_always_on_cu_num)
counter          1515 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 					if (counter < always_on_cu_num)
counter          1519 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 					counter++;
counter          6453 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int i, j, k, counter, active_cu_number = 0;
counter          6476 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			counter = 0;
counter          6498 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 					if (counter < adev->gfx.config.max_cu_per_sh)
counter          6500 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 					counter ++;
counter          6504 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			active_cu_number += counter;
counter           275 drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c 	int counter;
counter           280 drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c 	for (counter = 0; counter < 100; counter++) {
counter           287 drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c 	if (counter == 100) {
counter           383 drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c 	uint32_t counter = 0;
counter           415 drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c 		++counter;
counter           416 drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c 	} while (counter < 2);
counter           401 drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c 	uint32_t counter = 0;
counter           416 drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c 		++counter;
counter           417 drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c 	} while (counter < 2);
counter          1142 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c 	uint8_t counter = 0;
counter          1154 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c 	while (counter < max_tries) {
counter          1162 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c 			++counter;
counter          1170 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c 			++counter;
counter          1174 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c 	if (counter == max_tries) {
counter           117 drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c 	uint32_t counter = 0;
counter           121 drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c 	while (counter < 1000) {
counter           129 drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c 		counter++;
counter           132 drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c 	if (counter == 1000) {
counter           297 drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c 	uint8_t counter = 0;
counter           301 drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c 	while (counter < 10) {
counter           309 drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c 		counter++;
counter           312 drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c 	if (counter == 10) {
counter          1402 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c 	int counter;
counter          1404 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c 	for (counter = 0; counter < 1000; counter++) {
counter          1411 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c 	if (counter == 1000) {
counter           401 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h 	int seed, counter, error;
counter           422 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h 	counter = 0;
counter           431 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h 		counter++;
counter           445 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h 		if (counter > 20) /*20 is already way too many iterations. If we dont have an answer by then, we never will*/
counter           775 drivers/gpu/drm/i810/i810_dma.c 		dev_priv->counter++;
counter           783 drivers/gpu/drm/i810/i810_dma.c 		OUT_RING(dev_priv->counter);
counter           951 drivers/gpu/drm/i810/i810_dma.c 	sarea_priv->last_enqueue = dev_priv->counter - 1;
counter          1058 drivers/gpu/drm/i810/i810_dma.c 	dev_priv->counter++;
counter          1059 drivers/gpu/drm/i810/i810_dma.c 	DRM_DEBUG("dispatch counter : %ld\n", dev_priv->counter);
counter          1110 drivers/gpu/drm/i810/i810_dma.c 	sarea_priv->last_enqueue = dev_priv->counter - 1;
counter            91 drivers/gpu/drm/i810/i810_drv.h 	unsigned long counter;
counter          1489 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 	unsigned int *counter = data;
counter          1491 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 	++*counter;
counter          1501 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 	unsigned int counter;
counter          1517 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 	counter = 0;
counter          1519 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 				   NULL, NULL, mock_barrier_task, &counter);
counter          1524 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 	if (counter == 0) {
counter          1530 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 	counter = 0;
counter          1535 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 				   &counter);
counter          1540 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 	if (counter == 0) {
counter          1553 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 	counter = 0;
counter          1556 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 				   NULL, NULL, mock_barrier_task, &counter);
counter          1562 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 	if (counter != 0) {
counter          1569 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 	counter = 0;
counter          1574 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 				   &counter);
counter          1580 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 	if (counter == 0) {
counter           107 drivers/gpu/drm/msm/adreno/a5xx_gpu.h 	uint64_t counter;
counter           252 drivers/gpu/drm/msm/adreno/a5xx_preempt.c 	ptr->counter = iova + A5XX_PREEMPT_RECORD_SIZE;
counter            73 drivers/gpu/drm/msm/adreno/a6xx_gpu.c static void get_stats_counter(struct msm_ringbuffer *ring, u32 counter,
counter            77 drivers/gpu/drm/msm/adreno/a6xx_gpu.c 	OUT_RING(ring, counter | (1 << 30) | (2 << 18));
counter          6565 drivers/gpu/drm/radeon/cik.c 	u32 mask, counter, cu_bitmap;
counter          6572 drivers/gpu/drm/radeon/cik.c 			counter = 0;
counter          6575 drivers/gpu/drm/radeon/cik.c 					if (counter < 2)
counter          6577 drivers/gpu/drm/radeon/cik.c 					counter ++;
counter          6582 drivers/gpu/drm/radeon/cik.c 			active_cu_number += counter;
counter          2629 drivers/gpu/drm/radeon/evergreen.c 	unsigned counter = 0;
counter          2649 drivers/gpu/drm/radeon/evergreen.c 	while (counter < 32 && stream_ctrl & EVERGREEN_DP_VID_STREAM_STATUS) {
counter          2651 drivers/gpu/drm/radeon/evergreen.c 		counter++;
counter          2655 drivers/gpu/drm/radeon/evergreen.c 	if (counter >= 32 )
counter          2656 drivers/gpu/drm/radeon/evergreen.c 		DRM_ERROR("counter exceeds %d\n", counter);
counter          5325 drivers/gpu/drm/radeon/si.c 	u32 mask, counter, cu_bitmap;
counter          5332 drivers/gpu/drm/radeon/si.c 			counter  = 0;
counter          5335 drivers/gpu/drm/radeon/si.c 					if (counter < 2)
counter          5337 drivers/gpu/drm/radeon/si.c 					counter++;
counter          5342 drivers/gpu/drm/radeon/si.c 			active_cu_number += counter;
counter           858 drivers/gpu/drm/stm/ltdc.c 	ldev->plane_fpsi[plane->index].counter++;
counter           898 drivers/gpu/drm/stm/ltdc.c 		   DIV_ROUND_CLOSEST(fpsi->counter * 1000, ms_since_last));
counter           901 drivers/gpu/drm/stm/ltdc.c 	fpsi->counter = 0;
counter            27 drivers/gpu/drm/stm/ltdc.h 	unsigned int counter;
counter           444 drivers/hid/hid-logitech-hidpp.c 					       struct hidpp_scroll_counter *counter,
counter           450 drivers/hid/hid-logitech-hidpp.c 	hi_res_value = hi_res_value * 120/counter->wheel_multiplier;
counter           453 drivers/hid/hid-logitech-hidpp.c 	remainder = counter->remainder;
counter           457 drivers/hid/hid-logitech-hidpp.c 	previous = counter->last_time;
counter           458 drivers/hid/hid-logitech-hidpp.c 	counter->last_time = now;
counter           465 drivers/hid/hid-logitech-hidpp.c 	if (now - previous > 1000000000 || direction != counter->direction)
counter           468 drivers/hid/hid-logitech-hidpp.c 	counter->direction = direction;
counter           488 drivers/hid/hid-logitech-hidpp.c 	counter->remainder = remainder;
counter          3195 drivers/hid/hid-logitech-hidpp.c 	struct hidpp_scroll_counter *counter;
counter          3200 drivers/hid/hid-logitech-hidpp.c 	counter = &hidpp->vertical_wheel_counter;
counter          3207 drivers/hid/hid-logitech-hidpp.c 	    || hidpp->input == NULL || counter->wheel_multiplier == 0)
counter          3210 drivers/hid/hid-logitech-hidpp.c 	hidpp_scroll_counter_handle_scroll(hidpp->input, counter, value);
counter           328 drivers/hwmon/ibmpex.c 			 int counter, int sensor, int func)
counter           339 drivers/hwmon/ibmpex.c 			counter, sensor_name_suffixes[func]);
counter           342 drivers/hwmon/ibmpex.c 			counter, sensor_name_suffixes[func]);
counter           398 drivers/hwmon/mlxreg-fan.c 	for (i = 0; i < pdata->counter; i++, data++) {
counter           232 drivers/hwtracing/coresight/coresight-etm4x.c 	int counter, rselector;
counter           270 drivers/hwtracing/coresight/coresight-etm4x.c 	counter = 1 << ctridx;
counter           287 drivers/hwtracing/coresight/coresight-etm4x.c 	      counter << 0;	  /* Counter to use */
counter           286 drivers/iio/light/si1133.c 	u8 counter;
counter           290 drivers/iio/light/si1133.c 	for (counter = 0; counter < num_coeff; counter++) {
counter           204 drivers/iio/proximity/sx9500.c static int sx9500_inc_users(struct sx9500_data *data, int *counter,
counter           207 drivers/iio/proximity/sx9500.c 	(*counter)++;
counter           208 drivers/iio/proximity/sx9500.c 	if (*counter != 1)
counter           215 drivers/iio/proximity/sx9500.c static int sx9500_dec_users(struct sx9500_data *data, int *counter,
counter           218 drivers/iio/proximity/sx9500.c 	(*counter)--;
counter           219 drivers/iio/proximity/sx9500.c 	if (*counter != 0)
counter           170 drivers/infiniband/core/cm.c 	atomic_long_t counter[CM_ATTR_COUNT];
counter          1804 drivers/infiniband/core/cm.c 			counter[CM_REQ_COUNTER]);
counter          2242 drivers/infiniband/core/cm.c 			counter[CM_REP_COUNTER]);
counter          2434 drivers/infiniband/core/cm.c 				counter[CM_RTU_COUNTER]);
counter          2621 drivers/infiniband/core/cm.c 				counter[CM_DREQ_COUNTER]);
counter          2649 drivers/infiniband/core/cm.c 				counter[CM_DREQ_COUNTER]);
counter          2665 drivers/infiniband/core/cm.c 				counter[CM_DREQ_COUNTER]);
counter          3044 drivers/infiniband/core/cm.c 						counter[CM_MRA_COUNTER]);
counter          3052 drivers/infiniband/core/cm.c 				counter[CM_MRA_COUNTER]);
counter          3258 drivers/infiniband/core/cm.c 				counter[CM_LAP_COUNTER]);
counter          3276 drivers/infiniband/core/cm.c 				counter[CM_LAP_COUNTER]);
counter          3584 drivers/infiniband/core/cm.c 				counter[CM_SIDR_REQ_COUNTER]);
counter          3802 drivers/infiniband/core/cm.c 			&port->counter_group[CM_XMIT].counter[attr_index]);
counter          3806 drivers/infiniband/core/cm.c 				counter[attr_index]);
counter          4046 drivers/infiniband/core/cm.c 			counter[attr_id - CM_ATTR_ID_OFFSET]);
counter          4260 drivers/infiniband/core/cm.c 		       atomic_long_read(&group->counter[cm_attr->index]));
counter            71 drivers/infiniband/core/counters.c 	struct rdma_counter *counter;
counter            77 drivers/infiniband/core/counters.c 	counter = kzalloc(sizeof(*counter), GFP_KERNEL);
counter            78 drivers/infiniband/core/counters.c 	if (!counter)
counter            81 drivers/infiniband/core/counters.c 	counter->device    = dev;
counter            82 drivers/infiniband/core/counters.c 	counter->port      = port;
counter            83 drivers/infiniband/core/counters.c 	counter->res.type  = RDMA_RESTRACK_COUNTER;
counter            84 drivers/infiniband/core/counters.c 	counter->stats     = dev->ops.counter_alloc_stats(counter);
counter            85 drivers/infiniband/core/counters.c 	if (!counter->stats)
counter           100 drivers/infiniband/core/counters.c 	counter->mode.mode = mode;
counter           101 drivers/infiniband/core/counters.c 	kref_init(&counter->kref);
counter           102 drivers/infiniband/core/counters.c 	mutex_init(&counter->lock);
counter           104 drivers/infiniband/core/counters.c 	return counter;
counter           108 drivers/infiniband/core/counters.c 	kfree(counter->stats);
counter           110 drivers/infiniband/core/counters.c 	kfree(counter);
counter           114 drivers/infiniband/core/counters.c static void rdma_counter_free(struct rdma_counter *counter)
counter           118 drivers/infiniband/core/counters.c 	port_counter = &counter->device->port_data[counter->port].port_counter;
counter           128 drivers/infiniband/core/counters.c 	rdma_restrack_del(&counter->res);
counter           129 drivers/infiniband/core/counters.c 	kfree(counter->stats);
counter           130 drivers/infiniband/core/counters.c 	kfree(counter);
counter           133 drivers/infiniband/core/counters.c static void auto_mode_init_counter(struct rdma_counter *counter,
counter           137 drivers/infiniband/core/counters.c 	struct auto_mode_param *param = &counter->mode.param;
counter           139 drivers/infiniband/core/counters.c 	counter->mode.mode = RDMA_COUNTER_MODE_AUTO;
counter           140 drivers/infiniband/core/counters.c 	counter->mode.mask = new_mask;
counter           146 drivers/infiniband/core/counters.c static bool auto_mode_match(struct ib_qp *qp, struct rdma_counter *counter,
counter           149 drivers/infiniband/core/counters.c 	struct auto_mode_param *param = &counter->mode.param;
counter           156 drivers/infiniband/core/counters.c 	if (task_pid_nr(counter->res.task) != task_pid_nr(qp->res.task))
counter           165 drivers/infiniband/core/counters.c static int __rdma_counter_bind_qp(struct rdma_counter *counter,
counter           170 drivers/infiniband/core/counters.c 	if (qp->counter)
counter           176 drivers/infiniband/core/counters.c 	mutex_lock(&counter->lock);
counter           177 drivers/infiniband/core/counters.c 	ret = qp->device->ops.counter_bind_qp(counter, qp);
counter           178 drivers/infiniband/core/counters.c 	mutex_unlock(&counter->lock);
counter           185 drivers/infiniband/core/counters.c 	struct rdma_counter *counter = qp->counter;
counter           191 drivers/infiniband/core/counters.c 	mutex_lock(&counter->lock);
counter           193 drivers/infiniband/core/counters.c 	mutex_unlock(&counter->lock);
counter           198 drivers/infiniband/core/counters.c static void counter_history_stat_update(const struct rdma_counter *counter)
counter           200 drivers/infiniband/core/counters.c 	struct ib_device *dev = counter->device;
counter           204 drivers/infiniband/core/counters.c 	port_counter = &dev->port_data[counter->port].port_counter;
counter           208 drivers/infiniband/core/counters.c 	for (i = 0; i < counter->stats->num_counters; i++)
counter           209 drivers/infiniband/core/counters.c 		port_counter->hstats->value[i] += counter->stats->value[i];
counter           222 drivers/infiniband/core/counters.c 	struct rdma_counter *counter = NULL;
counter           235 drivers/infiniband/core/counters.c 		counter = container_of(res, struct rdma_counter, res);
counter           236 drivers/infiniband/core/counters.c 		if ((counter->device != qp->device) || (counter->port != port))
counter           239 drivers/infiniband/core/counters.c 		if (auto_mode_match(qp, counter, port_counter->mode.mask))
counter           242 drivers/infiniband/core/counters.c 		counter = NULL;
counter           245 drivers/infiniband/core/counters.c 	if (counter && !kref_get_unless_zero(&counter->kref))
counter           246 drivers/infiniband/core/counters.c 		counter = NULL;
counter           249 drivers/infiniband/core/counters.c 	return counter;
counter           252 drivers/infiniband/core/counters.c static void rdma_counter_res_add(struct rdma_counter *counter,
counter           256 drivers/infiniband/core/counters.c 		rdma_restrack_set_task(&counter->res, qp->res.kern_name);
counter           257 drivers/infiniband/core/counters.c 		rdma_restrack_kadd(&counter->res);
counter           259 drivers/infiniband/core/counters.c 		rdma_restrack_attach_task(&counter->res, qp->res.task);
counter           260 drivers/infiniband/core/counters.c 		rdma_restrack_uadd(&counter->res);
counter           266 drivers/infiniband/core/counters.c 	struct rdma_counter *counter;
counter           268 drivers/infiniband/core/counters.c 	counter = container_of(kref, struct rdma_counter, kref);
counter           269 drivers/infiniband/core/counters.c 	counter_history_stat_update(counter);
counter           270 drivers/infiniband/core/counters.c 	counter->device->ops.counter_dealloc(counter);
counter           271 drivers/infiniband/core/counters.c 	rdma_counter_free(counter);
counter           282 drivers/infiniband/core/counters.c 	struct rdma_counter *counter;
counter           295 drivers/infiniband/core/counters.c 	counter = rdma_get_counter_auto_mode(qp, port);
counter           296 drivers/infiniband/core/counters.c 	if (counter) {
counter           297 drivers/infiniband/core/counters.c 		ret = __rdma_counter_bind_qp(counter, qp);
counter           299 drivers/infiniband/core/counters.c 			kref_put(&counter->kref, counter_release);
counter           303 drivers/infiniband/core/counters.c 		counter = rdma_counter_alloc(dev, port, RDMA_COUNTER_MODE_AUTO);
counter           304 drivers/infiniband/core/counters.c 		if (!counter)
counter           307 drivers/infiniband/core/counters.c 		auto_mode_init_counter(counter, qp, port_counter->mode.mask);
counter           309 drivers/infiniband/core/counters.c 		ret = __rdma_counter_bind_qp(counter, qp);
counter           311 drivers/infiniband/core/counters.c 			rdma_counter_free(counter);
counter           315 drivers/infiniband/core/counters.c 		rdma_counter_res_add(counter, qp);
counter           328 drivers/infiniband/core/counters.c 	struct rdma_counter *counter = qp->counter;
counter           331 drivers/infiniband/core/counters.c 	if (!counter)
counter           338 drivers/infiniband/core/counters.c 	kref_put(&counter->kref, counter_release);
counter           342 drivers/infiniband/core/counters.c int rdma_counter_query_stats(struct rdma_counter *counter)
counter           344 drivers/infiniband/core/counters.c 	struct ib_device *dev = counter->device;
counter           350 drivers/infiniband/core/counters.c 	mutex_lock(&counter->lock);
counter           351 drivers/infiniband/core/counters.c 	ret = dev->ops.counter_update_stats(counter);
counter           352 drivers/infiniband/core/counters.c 	mutex_unlock(&counter->lock);
counter           362 drivers/infiniband/core/counters.c 	struct rdma_counter *counter;
counter           374 drivers/infiniband/core/counters.c 		counter = container_of(res, struct rdma_counter, res);
counter           375 drivers/infiniband/core/counters.c 		if ((counter->device != dev) || (counter->port != port) ||
counter           376 drivers/infiniband/core/counters.c 		    rdma_counter_query_stats(counter))
counter           379 drivers/infiniband/core/counters.c 		sum += counter->stats->value[index];
counter           432 drivers/infiniband/core/counters.c static int rdma_counter_bind_qp_manual(struct rdma_counter *counter,
counter           435 drivers/infiniband/core/counters.c 	if ((counter->device != qp->device) || (counter->port != qp->port))
counter           438 drivers/infiniband/core/counters.c 	return __rdma_counter_bind_qp(counter, qp);
counter           445 drivers/infiniband/core/counters.c 	struct rdma_counter *counter;
counter           456 drivers/infiniband/core/counters.c 	counter = container_of(res, struct rdma_counter, res);
counter           457 drivers/infiniband/core/counters.c 	kref_get(&counter->kref);
counter           460 drivers/infiniband/core/counters.c 	return counter;
counter           470 drivers/infiniband/core/counters.c 	struct rdma_counter *counter;
counter           482 drivers/infiniband/core/counters.c 	counter = rdma_get_counter_by_id(dev, counter_id);
counter           483 drivers/infiniband/core/counters.c 	if (!counter) {
counter           488 drivers/infiniband/core/counters.c 	if (counter->res.task != qp->res.task) {
counter           493 drivers/infiniband/core/counters.c 	ret = rdma_counter_bind_qp_manual(counter, qp);
counter           501 drivers/infiniband/core/counters.c 	kref_put(&counter->kref, counter_release);
counter           515 drivers/infiniband/core/counters.c 	struct rdma_counter *counter;
counter           538 drivers/infiniband/core/counters.c 	counter = rdma_counter_alloc(dev, port, RDMA_COUNTER_MODE_MANUAL);
counter           539 drivers/infiniband/core/counters.c 	if (!counter) {
counter           544 drivers/infiniband/core/counters.c 	ret = rdma_counter_bind_qp_manual(counter, qp);
counter           549 drivers/infiniband/core/counters.c 		*counter_id = counter->id;
counter           551 drivers/infiniband/core/counters.c 	rdma_counter_res_add(counter, qp);
counter           557 drivers/infiniband/core/counters.c 	rdma_counter_free(counter);
counter           586 drivers/infiniband/core/counters.c 	if (!qp->counter || qp->counter->id != counter_id ||
counter           270 drivers/infiniband/core/cq.c 	static atomic_t counter;
counter           275 drivers/infiniband/core/cq.c 			atomic_inc_return(&counter) %
counter           652 drivers/infiniband/core/nldev.c 				  struct rdma_counter *counter)
counter           654 drivers/infiniband/core/nldev.c 	struct rdma_counter_mode *m = &counter->mode;
counter           687 drivers/infiniband/core/nldev.c 				 struct rdma_counter *counter)
counter           698 drivers/infiniband/core/nldev.c 	rt = &counter->device->res[RDMA_RESTRACK_QP];
counter           708 drivers/infiniband/core/nldev.c 		if (!qp->counter || (qp->counter->id != counter->id))
counter           751 drivers/infiniband/core/nldev.c 					struct rdma_counter *counter)
counter           753 drivers/infiniband/core/nldev.c 	struct rdma_hw_stats *st = counter->stats;
counter           777 drivers/infiniband/core/nldev.c 	struct rdma_counter *counter =
counter           780 drivers/infiniband/core/nldev.c 	if (port && port != counter->port)
counter           784 drivers/infiniband/core/nldev.c 	rdma_counter_query_stats(counter);
counter           786 drivers/infiniband/core/nldev.c 	if (nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, counter->port) ||
counter           787 drivers/infiniband/core/nldev.c 	    nla_put_u32(msg, RDMA_NLDEV_ATTR_STAT_COUNTER_ID, counter->id) ||
counter           788 drivers/infiniband/core/nldev.c 	    fill_res_name_pid(msg, &counter->res) ||
counter           789 drivers/infiniband/core/nldev.c 	    fill_stat_counter_mode(msg, counter) ||
counter           790 drivers/infiniband/core/nldev.c 	    fill_stat_counter_qps(msg, counter) ||
counter           791 drivers/infiniband/core/nldev.c 	    fill_stat_counter_hwcounters(msg, counter))
counter          1419 drivers/infiniband/core/nldev.c RES_GET_FUNCS(counter, RDMA_RESTRACK_COUNTER);
counter           229 drivers/infiniband/core/restrack.c 		struct rdma_counter *counter;
counter           231 drivers/infiniband/core/restrack.c 		counter = container_of(res, struct rdma_counter, res);
counter           232 drivers/infiniband/core/restrack.c 		ret = xa_insert(&rt->xa, counter->id, res, GFP_KERNEL);
counter           233 drivers/infiniband/core/restrack.c 		res->id = ret ? 0 : counter->id;
counter           175 drivers/infiniband/core/uverbs.h 	u32				       *counter;
counter           259 drivers/infiniband/core/uverbs_main.c 		if (event->counter) {
counter           260 drivers/infiniband/core/uverbs_main.c 			++(*event->counter);
counter           361 drivers/infiniband/core/uverbs_main.c 		if (entry->counter)
counter           387 drivers/infiniband/core/uverbs_main.c 		if (entry->counter)
counter           442 drivers/infiniband/core/uverbs_main.c 	entry->counter		   = &uobj->comp_events_reported;
counter           455 drivers/infiniband/core/uverbs_main.c 				    u32 *counter)
counter           475 drivers/infiniband/core/uverbs_main.c 	entry->counter               = counter;
counter          1688 drivers/infiniband/core/verbs.c 	if (!qp->counter && (attr_mask & IB_QP_PORT) &&
counter          1218 drivers/infiniband/hw/hfi1/chip.c #define RXE32_PORT_CNTR_ELEM(name, counter, flags) \
counter          1220 drivers/infiniband/hw/hfi1/chip.c 	  (counter * 8 + RCV_COUNTER_ARRAY32), \
counter          1224 drivers/infiniband/hw/hfi1/chip.c #define RXE32_DEV_CNTR_ELEM(name, counter, flags) \
counter          1226 drivers/infiniband/hw/hfi1/chip.c 	  (counter * 8 + RCV_COUNTER_ARRAY32), \
counter          1231 drivers/infiniband/hw/hfi1/chip.c #define RXE64_PORT_CNTR_ELEM(name, counter, flags) \
counter          1233 drivers/infiniband/hw/hfi1/chip.c 	  (counter * 8 + RCV_COUNTER_ARRAY64), \
counter          1237 drivers/infiniband/hw/hfi1/chip.c #define RXE64_DEV_CNTR_ELEM(name, counter, flags) \
counter          1239 drivers/infiniband/hw/hfi1/chip.c 	  (counter * 8 + RCV_COUNTER_ARRAY64), \
counter          1250 drivers/infiniband/hw/hfi1/chip.c #define TXE32_PORT_CNTR_ELEM(name, counter, flags) \
counter          1252 drivers/infiniband/hw/hfi1/chip.c 	  (counter * 8 + SEND_COUNTER_ARRAY32), \
counter          1257 drivers/infiniband/hw/hfi1/chip.c #define TXE64_PORT_CNTR_ELEM(name, counter, flags) \
counter          1259 drivers/infiniband/hw/hfi1/chip.c 	  (counter * 8 + SEND_COUNTER_ARRAY64), \
counter          1263 drivers/infiniband/hw/hfi1/chip.c # define TX64_DEV_CNTR_ELEM(name, counter, flags) \
counter          1265 drivers/infiniband/hw/hfi1/chip.c 	  counter * 8 + SEND_COUNTER_ARRAY64, \
counter          1271 drivers/infiniband/hw/hfi1/chip.c #define CCE_PERF_DEV_CNTR_ELEM(name, counter, flags) \
counter          1273 drivers/infiniband/hw/hfi1/chip.c 	  (counter * 8 + CCE_COUNTER_ARRAY32), \
counter          1277 drivers/infiniband/hw/hfi1/chip.c #define CCE_INT_DEV_CNTR_ELEM(name, counter, flags) \
counter          1279 drivers/infiniband/hw/hfi1/chip.c 	  (counter * 8 + CCE_INT_COUNTER_ARRAY32), \
counter          1284 drivers/infiniband/hw/hfi1/chip.c #define DC_PERF_CNTR(name, counter, flags) \
counter          1286 drivers/infiniband/hw/hfi1/chip.c 	  counter, \
counter          1291 drivers/infiniband/hw/hfi1/chip.c #define DC_PERF_CNTR_LCB(name, counter, flags) \
counter          1293 drivers/infiniband/hw/hfi1/chip.c 	  counter, \
counter          1582 drivers/infiniband/hw/hfi1/chip.c 	u64 *counter;
counter          1585 drivers/infiniband/hw/hfi1/chip.c 		counter = &ppd->port_xmit_discards;
counter          1587 drivers/infiniband/hw/hfi1/chip.c 		counter = &ppd->port_xmit_discards_vl[vl];
counter          1589 drivers/infiniband/hw/hfi1/chip.c 		counter = &zero;
counter          1591 drivers/infiniband/hw/hfi1/chip.c 	return read_write_sw(ppd->dd, counter, mode, data);
counter          1622 drivers/infiniband/hw/hfi1/chip.c 	u64 counter = 0;
counter          1625 drivers/infiniband/hw/hfi1/chip.c 		counter += *per_cpu_ptr(cntr, cpu);
counter          1626 drivers/infiniband/hw/hfi1/chip.c 	return counter;
counter          1294 drivers/infiniband/hw/mlx4/main.c 	struct counter_index *counter, *tmp_count;
counter          1297 drivers/infiniband/hw/mlx4/main.c 	list_for_each_entry_safe(counter, tmp_count, &ctr_table->counters_list,
counter          1299 drivers/infiniband/hw/mlx4/main.c 		if (counter->allocated)
counter          1300 drivers/infiniband/hw/mlx4/main.c 			mlx4_counter_free(ibdev->dev, counter->index);
counter          1301 drivers/infiniband/hw/mlx4/main.c 		list_del(&counter->list);
counter          1302 drivers/infiniband/hw/mlx4/main.c 		kfree(counter);
counter          5633 drivers/infiniband/hw/mlx5/main.c mlx5_ib_counter_alloc_stats(struct rdma_counter *counter)
counter          5635 drivers/infiniband/hw/mlx5/main.c 	struct mlx5_ib_dev *dev = to_mdev(counter->device);
counter          5637 drivers/infiniband/hw/mlx5/main.c 		get_counters(dev, counter->port - 1);
counter          5646 drivers/infiniband/hw/mlx5/main.c static int mlx5_ib_counter_update_stats(struct rdma_counter *counter)
counter          5648 drivers/infiniband/hw/mlx5/main.c 	struct mlx5_ib_dev *dev = to_mdev(counter->device);
counter          5650 drivers/infiniband/hw/mlx5/main.c 		get_counters(dev, counter->port - 1);
counter          5653 drivers/infiniband/hw/mlx5/main.c 					counter->stats, counter->id);
counter          5656 drivers/infiniband/hw/mlx5/main.c static int mlx5_ib_counter_bind_qp(struct rdma_counter *counter,
counter          5663 drivers/infiniband/hw/mlx5/main.c 	if (!counter->id) {
counter          5669 drivers/infiniband/hw/mlx5/main.c 		counter->id = cnt_set_id;
counter          5672 drivers/infiniband/hw/mlx5/main.c 	err = mlx5_ib_qp_set_counter(qp, counter);
counter          5680 drivers/infiniband/hw/mlx5/main.c 	counter->id = 0;
counter          5690 drivers/infiniband/hw/mlx5/main.c static int mlx5_ib_counter_dealloc(struct rdma_counter *counter)
counter          5692 drivers/infiniband/hw/mlx5/main.c 	struct mlx5_ib_dev *dev = to_mdev(counter->device);
counter          5694 drivers/infiniband/hw/mlx5/main.c 	return mlx5_core_dealloc_q_counter(dev->mdev, counter->id);
counter          1479 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_qp_set_counter(struct ib_qp *qp, struct rdma_counter *counter);
counter          3386 drivers/infiniband/hw/mlx5/qp.c 				    struct rdma_counter *counter)
counter          3394 drivers/infiniband/hw/mlx5/qp.c 	if (counter)
counter          3395 drivers/infiniband/hw/mlx5/qp.c 		set_id = counter->id;
counter          3622 drivers/infiniband/hw/mlx5/qp.c 		if (ibqp->counter)
counter          3623 drivers/infiniband/hw/mlx5/qp.c 			set_id = ibqp->counter->id;
counter          3734 drivers/infiniband/hw/mlx5/qp.c 		err = __mlx5_ib_qp_set_counter(ibqp, ibqp->counter);
counter          6508 drivers/infiniband/hw/mlx5/qp.c int mlx5_ib_qp_set_counter(struct ib_qp *qp, struct rdma_counter *counter)
counter          6516 drivers/infiniband/hw/mlx5/qp.c 		qp->counter = counter;
counter          6526 drivers/infiniband/hw/mlx5/qp.c 		err = __mlx5_ib_qp_set_counter(qp, counter);
counter          6528 drivers/infiniband/hw/mlx5/qp.c 			qp->counter = counter;
counter          6534 drivers/infiniband/hw/mlx5/qp.c 	qp->counter = counter;
counter           232 drivers/infiniband/hw/mthca/mthca_provider.h 	u16			counter;  /* Arbel only */
counter           221 drivers/infiniband/hw/mthca/mthca_srq.c 	srq->counter  = 0;
counter           628 drivers/infiniband/hw/mthca/mthca_srq.c 		srq->counter += nreq;
counter           635 drivers/infiniband/hw/mthca/mthca_srq.c 		*srq->db = cpu_to_be32(srq->counter);
counter           511 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQ_ERROR].counter));
counter           514 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQ_OVERRUN_ERROR].counter);
counter           517 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQ_QPCAT_ERROR].counter);
counter           520 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_QP_ACCESS_ERROR].counter);
counter           523 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_QP_COMM_EST_EVENT].counter);
counter           526 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_SQ_DRAINED_EVENT].counter);
counter           529 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_DEVICE_FATAL_EVENT].counter);
counter           532 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_SRQCAT_ERROR].counter);
counter           535 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_SRQ_LIMIT_EVENT].counter);
counter           538 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_QP_LAST_WQE_EVENT].counter);
counter           542 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_LOC_LEN_ERR].counter);
counter           545 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_LOC_QP_OP_ERR].counter);
counter           548 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_LOC_EEC_OP_ERR].counter);
counter           551 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_LOC_PROT_ERR].counter);
counter           554 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_WR_FLUSH_ERR].counter);
counter           557 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_MW_BIND_ERR].counter);
counter           560 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_BAD_RESP_ERR].counter);
counter           563 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_LOC_ACCESS_ERR].counter);
counter           566 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_REM_INV_REQ_ERR].counter);
counter           569 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_REM_ACCESS_ERR].counter);
counter           572 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_REM_OP_ERR].counter);
counter           575 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_RETRY_EXC_ERR].counter);
counter           578 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_RNR_RETRY_EXC_ERR].counter);
counter           581 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_LOC_RDD_VIOL_ERR].counter);
counter           584 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_REM_INV_RD_REQ_ERR].counter);
counter           587 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_REM_ABORT_ERR].counter);
counter           590 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_INV_EECN_ERR].counter);
counter           593 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_INV_EEC_STATE_ERR].counter);
counter           596 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_FATAL_ERR].counter);
counter           599 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_RESP_TIMEOUT_ERR].counter);
counter           602 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 				[OCRDMA_CQE_GENERAL_ERR].counter);
counter           502 drivers/infiniband/hw/qib/qib.h 	u64 counter;
counter          1302 drivers/infiniband/hw/qib/qib_mad.c 	return ppd->cong_stats.counter + delta;
counter          1372 drivers/infiniband/hw/qib/qib_mad.c 			ppd->cong_stats.counter =
counter          1380 drivers/infiniband/hw/qib/qib_mad.c 		p->counter[i] = cpu_to_be32(
counter          1414 drivers/infiniband/hw/qib/qib_mad.c 			ppd->cong_stats.counter =
counter          1422 drivers/infiniband/hw/qib/qib_mad.c 		p->counter[i] = cpu_to_be64(
counter          1785 drivers/infiniband/hw/qib/qib_mad.c 		ppd->cong_stats.counter = 0;
counter          2466 drivers/infiniband/hw/qib/qib_mad.c 	ppd->cong_stats.counter = xmit_wait_get_value_delta(ppd);
counter          2480 drivers/infiniband/hw/qib/qib_mad.c 	dd->pport[port_idx].cong_stats.counter = 0;
counter           415 drivers/infiniband/hw/qib/qib_sysfs.c 		.counter = offsetof(struct qib_ibport, rvp.n_##N) \
counter           421 drivers/infiniband/hw/qib/qib_sysfs.c 		.counter = offsetof(struct qib_ibport, rvp.z_##N) \
counter           426 drivers/infiniband/hw/qib/qib_sysfs.c 	size_t counter;
counter           470 drivers/infiniband/hw/qib/qib_sysfs.c 	u64 counter = 0;
counter           473 drivers/infiniband/hw/qib/qib_sysfs.c 		counter += *per_cpu_ptr(cntr, cpu);
counter           474 drivers/infiniband/hw/qib/qib_sysfs.c 	return counter;
counter           514 drivers/infiniband/hw/qib/qib_sysfs.c 				*(u32 *)((char *)qibp + dattr->counter));
counter           539 drivers/infiniband/hw/qib/qib_sysfs.c 		*(u32 *)((char *)qibp + dattr->counter) = val;
counter            79 drivers/infiniband/hw/qib/qib_user_sdma.c 	u32 counter;            /* sdma pkts queued counter for this entry */
counter           122 drivers/infiniband/hw/qib/qib_user_sdma.c 	u32 counter;
counter           192 drivers/infiniband/hw/qib/qib_user_sdma.c 	pq->counter = 0;
counter           818 drivers/infiniband/hw/qib/qib_user_sdma.c 	u32 counter = pq->counter;
counter           970 drivers/infiniband/hw/qib/qib_user_sdma.c 		pkt->counter = counter;
counter          1011 drivers/infiniband/hw/qib/qib_user_sdma.c 		counter++;
counter          1083 drivers/infiniband/hw/qib/qib_user_sdma.c 		u32 counter;
counter          1087 drivers/infiniband/hw/qib/qib_user_sdma.c 		counter = pkt->counter;
counter          1090 drivers/infiniband/hw/qib/qib_user_sdma.c 		qib_user_sdma_set_complete_counter(pq, counter);
counter          1428 drivers/infiniband/hw/qib/qib_user_sdma.c 				pq->counter += mxp;
counter          1461 drivers/infiniband/hw/qib/qib_user_sdma.c 	return pq ? pq->counter : 0;
counter            50 drivers/input/joystick/walkera0701.c 	int counter;
counter           134 drivers/input/joystick/walkera0701.c 		w->counter = NO_SYNC;
counter           138 drivers/input/joystick/walkera0701.c 	if (w->counter < NO_SYNC) {
counter           141 drivers/input/joystick/walkera0701.c 			w->buf[w->counter] = 8;
counter           144 drivers/input/joystick/walkera0701.c 			w->buf[w->counter] = 0;
counter           146 drivers/input/joystick/walkera0701.c 		if (w->counter == 24) {	/* full frame */
counter           148 drivers/input/joystick/walkera0701.c 			w->counter = NO_SYNC;
counter           150 drivers/input/joystick/walkera0701.c 				w->counter = 0;
counter           156 drivers/input/joystick/walkera0701.c 				w->buf[w->counter++] |= (pulse_time & 7);
counter           158 drivers/input/joystick/walkera0701.c 				w->counter = NO_SYNC;
counter           162 drivers/input/joystick/walkera0701.c 		w->counter = 0;
counter           293 drivers/input/keyboard/applespi.c 	u8		counter;
counter           838 drivers/input/keyboard/applespi.c 	message->counter = applespi->cmd_msg_cntr++ % (U8_MAX + 1);
counter           481 drivers/iommu/iova.c 	u64 counter = atomic64_read(&iovad->fq_flush_finish_cnt);
counter           488 drivers/iommu/iova.c 		if (fq->entries[idx].counter >= counter)
counter           576 drivers/iommu/iova.c 	fq->entries[idx].counter  = atomic64_read(&iovad->fq_flush_start_cnt);
counter           195 drivers/leds/leds-mlxreg.c 	for (i = 0; i < led_pdata->counter; i++, data++) {
counter           938 drivers/media/dvb-frontends/mb86a20s.c 	u32 counter, collect_rate;
counter           984 drivers/media/dvb-frontends/mb86a20s.c 	counter = rc << 8;
counter           991 drivers/media/dvb-frontends/mb86a20s.c 	counter |= rc;
counter           992 drivers/media/dvb-frontends/mb86a20s.c 	*count = counter * 204 * 8;
counter          1013 drivers/media/dvb-frontends/mb86a20s.c 	if (collect_rate != counter) {
counter           251 drivers/media/dvb-frontends/nxt200x.c 	u8 buf, stopval, counter = 0;
counter           270 drivers/media/dvb-frontends/nxt200x.c 	while (counter < 20) {
counter           275 drivers/media/dvb-frontends/nxt200x.c 		counter++;
counter           294 drivers/media/dvb-frontends/nxt200x.c 	u8 counter = 0;
counter           309 drivers/media/dvb-frontends/nxt200x.c 	while (counter < 20) {
counter           314 drivers/media/dvb-frontends/nxt200x.c 		counter++;
counter          1002 drivers/media/dvb-frontends/stv0367.c 	u8 /*constell,*/ counter;
counter          1199 drivers/media/dvb-frontends/stv0367.c 	for (counter = 0; counter < abs(timing_offset); counter++) {
counter          1127 drivers/media/dvb-frontends/tda1004x.c 	int counter;
counter          1132 drivers/media/dvb-frontends/tda1004x.c 	counter = 0;
counter          1137 drivers/media/dvb-frontends/tda1004x.c 	while (counter++ < 5) {
counter            61 drivers/media/pci/ttpci/av7110.h 	u8		  counter;
counter            74 drivers/media/pci/ttpci/av7110_av.c 		   u8 *counter, struct dvb_demux_feed *feed);
counter           567 drivers/media/pci/ttpci/av7110_av.c 	p->counter = 0;
counter           676 drivers/media/pci/ttpci/av7110_av.c 				p_to_t(p->pes, (TS_SIZE - 4), pid, &p->counter, p->feed);
counter           697 drivers/media/pci/ttpci/av7110_av.c 		p_to_t(p->pes, p->pos, pid, &p->counter, p->feed);
counter           707 drivers/media/pci/ttpci/av7110_av.c 				p_to_t(buf + c, c2 - c, pid, &p->counter, p->feed);
counter           717 drivers/media/pci/ttpci/av7110_av.c 			p_to_t(buf + c, l, pid, &p->counter, p->feed);
counter           726 drivers/media/pci/ttpci/av7110_av.c static int write_ts_header2(u16 pid, u8 *counter, int pes_start, u8 *buf, u8 length)
counter           740 drivers/media/pci/ttpci/av7110_av.c 	tshead[3] |= ((*counter)++ & 0x0F);
counter           761 drivers/media/pci/ttpci/av7110_av.c static void p_to_t(u8 const *buf, long int length, u16 pid, u8 *counter,
counter           793 drivers/media/pci/ttpci/av7110_av.c 			l = write_ts_header2(pid, counter, pes_start,
counter           798 drivers/media/pci/ttpci/av7110_av.c 			l = write_ts_header2(pid, counter, pes_start,
counter           681 drivers/media/platform/atmel/atmel-isc-base.c 	int counter = 100;
counter           686 drivers/media/platform/atmel/atmel-isc-base.c 	while ((sr & ISC_CTRL_UPPRO) && counter--) {
counter           691 drivers/media/platform/atmel/atmel-isc-base.c 	if (counter < 0) {
counter           141 drivers/media/platform/exynos4-is/mipi-csis.c 	unsigned int counter;
counter           468 drivers/media/platform/exynos4-is/mipi-csis.c 		state->events[i].counter = 0;
counter           480 drivers/media/platform/exynos4-is/mipi-csis.c 		if (state->events[i].counter > 0 || debug)
counter           483 drivers/media/platform/exynos4-is/mipi-csis.c 				  state->events[i].counter);
counter           701 drivers/media/platform/exynos4-is/mipi-csis.c 			state->events[i].counter++;
counter           704 drivers/media/platform/exynos4-is/mipi-csis.c 				 state->events[i].counter);
counter           322 drivers/media/rc/serial_ir.c 	int counter, dcd;
counter           333 drivers/media/rc/serial_ir.c 	counter = 0;
counter           335 drivers/media/rc/serial_ir.c 		counter++;
counter           337 drivers/media/rc/serial_ir.c 		if (counter > RS_ISR_PASS_LIMIT) {
counter           157 drivers/media/rc/sir_ir.c 	int counter = 0;
counter           161 drivers/media/rc/sir_ir.c 		if (++counter > 256) {
counter           312 drivers/media/rc/winbond-cir.c 	unsigned counter = inb(data->ebase + WBCIR_REG_ECEIR_CNT_LO) |
counter           315 drivers/media/rc/winbond-cir.c 	if (counter > 0 && counter < 0xffff) {
counter           318 drivers/media/rc/winbond-cir.c 			.carrier = DIV_ROUND_CLOSEST(counter * 1000000u,
counter            10 drivers/misc/lkdtm/cfi.c static noinline void lkdtm_increment_void(int *counter)
counter            12 drivers/misc/lkdtm/cfi.c 	(*counter)++;
counter            16 drivers/misc/lkdtm/cfi.c static noinline int lkdtm_increment_int(int *counter)
counter            18 drivers/misc/lkdtm/cfi.c 	(*counter)++;
counter            20 drivers/misc/lkdtm/cfi.c 	return *counter;
counter            47 drivers/misc/phantom.c 	atomic_t counter;
counter            67 drivers/misc/phantom.c 		atomic_set(&dev->counter, 0);
counter           172 drivers/misc/phantom.c 		atomic_set(&dev->counter, 0);
counter           233 drivers/misc/phantom.c 	atomic_set(&dev->counter, 0);
counter           260 drivers/misc/phantom.c 	pr_debug("phantom_poll: %d\n", atomic_read(&dev->counter));
counter           265 drivers/misc/phantom.c 	else if (atomic_read(&dev->counter))
counter           268 drivers/misc/phantom.c 	pr_debug("phantom_poll end: %x/%d\n", mask, atomic_read(&dev->counter));
counter           313 drivers/misc/phantom.c 	atomic_inc(&dev->counter);
counter           354 drivers/mtd/devices/pmc551.c 	u8 bcmd, counter;
counter           365 drivers/mtd/devices/pmc551.c 	counter = 0;
counter           372 drivers/mtd/devices/pmc551.c 		counter = 0;
counter           374 drivers/mtd/devices/pmc551.c 		while (counter++ < 100) {
counter           377 drivers/mtd/devices/pmc551.c 		counter = 0;
counter           379 drivers/mtd/devices/pmc551.c 		while (counter++ < 100) {
counter           473 drivers/mtd/devices/pmc551.c 		if (counter++ > 100)
counter           490 drivers/mtd/devices/pmc551.c 		counter = 0;
counter           493 drivers/mtd/devices/pmc551.c 			if (counter++ > 100)
counter           505 drivers/mtd/devices/pmc551.c 	counter = 0;
counter           508 drivers/mtd/devices/pmc551.c 		if (counter++ > 100)
counter            63 drivers/mtd/nand/raw/fsl_elbc_nand.c 	unsigned int counter;	 /* counter for the initializations	  */
counter           899 drivers/mtd/nand/raw/fsl_elbc_nand.c 		elbc_fcm_ctrl->counter++;
counter           965 drivers/mtd/nand/raw/fsl_elbc_nand.c 	elbc_fcm_ctrl->counter--;
counter           966 drivers/mtd/nand/raw/fsl_elbc_nand.c 	if (!elbc_fcm_ctrl->counter) {
counter            52 drivers/mtd/nand/raw/fsl_ifc_nand.c 	unsigned int counter;	/* counter for the initializations	*/
counter          1101 drivers/mtd/nand/raw/fsl_ifc_nand.c 	ifc_nand_ctrl->counter--;
counter          1102 drivers/mtd/nand/raw/fsl_ifc_nand.c 	if (!ifc_nand_ctrl->counter) {
counter           316 drivers/net/arcnet/arcnet.c 			   lp->buf_lock.counter);
counter           236 drivers/net/can/pch_can.c 	int counter = PCH_COUNTER_LIMIT;
counter           240 drivers/net/can/pch_can.c 	while (counter) {
counter           244 drivers/net/can/pch_can.c 		counter--;
counter           247 drivers/net/can/pch_can.c 	if (!counter)
counter          1041 drivers/net/can/pch_can.c 	int counter = PCH_COUNTER_LIMIT;
counter          1053 drivers/net/can/pch_can.c 	while (counter) {
counter          1057 drivers/net/can/pch_can.c 		counter--;
counter          1060 drivers/net/can/pch_can.c 	if (!counter)
counter           273 drivers/net/dsa/vitesse-vsc73xx-core.c 	u8 counter;
counter           909 drivers/net/dsa/vitesse-vsc73xx-core.c 		     u8 counter,
counter           928 drivers/net/dsa/vitesse-vsc73xx-core.c 		if (cnt->counter == counter)
counter           286 drivers/net/ethernet/alacritech/slic.h #define SLIC_INC_STATS_COUNTER(st, counter)	\
counter           289 drivers/net/ethernet/alacritech/slic.h 	(st)->counter++;			\
counter           293 drivers/net/ethernet/alacritech/slic.h #define SLIC_GET_STATS_COUNTER(newst, st, counter)			\
counter           298 drivers/net/ethernet/alacritech/slic.h 		newst = (st)->counter;					\
counter            28 drivers/net/ethernet/altera/altera_msgdma.c 	int counter;
counter            36 drivers/net/ethernet/altera/altera_msgdma.c 	counter = 0;
counter            37 drivers/net/ethernet/altera/altera_msgdma.c 	while (counter++ < ALTERA_TSE_SW_RESET_WATCHDOG_CNTR) {
counter            44 drivers/net/ethernet/altera/altera_msgdma.c 	if (counter >= ALTERA_TSE_SW_RESET_WATCHDOG_CNTR)
counter            58 drivers/net/ethernet/altera/altera_msgdma.c 	counter = 0;
counter            59 drivers/net/ethernet/altera/altera_msgdma.c 	while (counter++ < ALTERA_TSE_SW_RESET_WATCHDOG_CNTR) {
counter            66 drivers/net/ethernet/altera/altera_msgdma.c 	if (counter >= ALTERA_TSE_SW_RESET_WATCHDOG_CNTR)
counter           873 drivers/net/ethernet/altera/altera_tse_main.c 	int counter;
counter           881 drivers/net/ethernet/altera/altera_tse_main.c 	counter = 0;
counter           882 drivers/net/ethernet/altera/altera_tse_main.c 	while (counter++ < ALTERA_TSE_SW_RESET_WATCHDOG_CNTR) {
counter           889 drivers/net/ethernet/altera/altera_tse_main.c 	if (counter >= ALTERA_TSE_SW_RESET_WATCHDOG_CNTR) {
counter           818 drivers/net/ethernet/apple/bmac.c 	unsigned int counter, cur = curval, next = nxtval;
counter           825 drivers/net/ethernet/apple/bmac.c 	for (counter = 0; counter < 16; ++counter) {
counter           611 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	int counter = 0;
counter           621 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		if (counter < n) {
counter           623 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			counter++;
counter           625 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			   counter, next);
counter           635 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	return counter * ETH_ALEN;
counter           336 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 					atomic_t *counter)
counter           352 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 	atomic_set(counter, cnt);
counter          1824 drivers/net/ethernet/broadcom/bnxt/bnxt.h #define BNXT_RX_STATS_OFFSET(counter)			\
counter          1825 drivers/net/ethernet/broadcom/bnxt/bnxt.h 	(offsetof(struct rx_port_stats, counter) / 8)
counter          1827 drivers/net/ethernet/broadcom/bnxt/bnxt.h #define BNXT_TX_STATS_OFFSET(counter)			\
counter          1828 drivers/net/ethernet/broadcom/bnxt/bnxt.h 	((offsetof(struct tx_port_stats, counter) +	\
counter          1831 drivers/net/ethernet/broadcom/bnxt/bnxt.h #define BNXT_RX_STATS_EXT_OFFSET(counter)		\
counter          1832 drivers/net/ethernet/broadcom/bnxt/bnxt.h 	(offsetof(struct rx_port_stats_ext, counter) / 8)
counter          1834 drivers/net/ethernet/broadcom/bnxt/bnxt.h #define BNXT_TX_STATS_EXT_OFFSET(counter)		\
counter          1835 drivers/net/ethernet/broadcom/bnxt/bnxt.h 	(offsetof(struct tx_port_stats_ext, counter) / 8)
counter          1837 drivers/net/ethernet/broadcom/bnxt/bnxt.h #define BNXT_PCIE_STATS_OFFSET(counter)			\
counter          1838 drivers/net/ethernet/broadcom/bnxt/bnxt.h 	(offsetof(struct pcie_ctx_hw_stats, counter) / 8)
counter           180 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c #define BNXT_RX_STATS_ENTRY(counter)	\
counter           181 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	{ BNXT_RX_STATS_OFFSET(counter), __stringify(counter) }
counter           183 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c #define BNXT_TX_STATS_ENTRY(counter)	\
counter           184 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	{ BNXT_TX_STATS_OFFSET(counter), __stringify(counter) }
counter           186 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c #define BNXT_RX_STATS_EXT_ENTRY(counter)	\
counter           187 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	{ BNXT_RX_STATS_EXT_OFFSET(counter), __stringify(counter) }
counter           189 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c #define BNXT_TX_STATS_EXT_ENTRY(counter)	\
counter           190 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	{ BNXT_TX_STATS_EXT_OFFSET(counter), __stringify(counter) }
counter           262 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c #define BNXT_RX_STATS_PRI_ENTRY(counter, n)		\
counter           263 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	{ BNXT_RX_STATS_EXT_OFFSET(counter##_cos0),	\
counter           264 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	  __stringify(counter##_pri##n) }
counter           266 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c #define BNXT_TX_STATS_PRI_ENTRY(counter, n)		\
counter           267 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	{ BNXT_TX_STATS_EXT_OFFSET(counter##_cos0),	\
counter           268 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	  __stringify(counter##_pri##n) }
counter           270 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c #define BNXT_RX_STATS_PRI_ENTRIES(counter)		\
counter           271 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_RX_STATS_PRI_ENTRY(counter, 0),		\
counter           272 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_RX_STATS_PRI_ENTRY(counter, 1),		\
counter           273 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_RX_STATS_PRI_ENTRY(counter, 2),		\
counter           274 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_RX_STATS_PRI_ENTRY(counter, 3),		\
counter           275 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_RX_STATS_PRI_ENTRY(counter, 4),		\
counter           276 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_RX_STATS_PRI_ENTRY(counter, 5),		\
counter           277 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_RX_STATS_PRI_ENTRY(counter, 6),		\
counter           278 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_RX_STATS_PRI_ENTRY(counter, 7)
counter           280 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c #define BNXT_TX_STATS_PRI_ENTRIES(counter)		\
counter           281 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_TX_STATS_PRI_ENTRY(counter, 0),		\
counter           282 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_TX_STATS_PRI_ENTRY(counter, 1),		\
counter           283 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_TX_STATS_PRI_ENTRY(counter, 2),		\
counter           284 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_TX_STATS_PRI_ENTRY(counter, 3),		\
counter           285 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_TX_STATS_PRI_ENTRY(counter, 4),		\
counter           286 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_TX_STATS_PRI_ENTRY(counter, 5),		\
counter           287 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_TX_STATS_PRI_ENTRY(counter, 6),		\
counter           288 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	BNXT_TX_STATS_PRI_ENTRY(counter, 7)
counter           290 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c #define BNXT_PCIE_STATS_ENTRY(counter)	\
counter           291 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	{ BNXT_PCIE_STATS_OFFSET(counter), __stringify(counter) }
counter           299 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	u64			counter;
counter           545 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 		bnxt_sw_func_stats[i].counter = 0;
counter           559 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 		bnxt_sw_func_stats[RX_TOTAL_DISCARDS].counter +=
counter           561 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 		bnxt_sw_func_stats[TX_TOTAL_DISCARDS].counter +=
counter           566 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 		buf[j] = bnxt_sw_func_stats[i].counter;
counter           700 drivers/net/ethernet/dec/tulip/xircom_cb.c 	int counter;
counter           713 drivers/net/ethernet/dec/tulip/xircom_cb.c 	counter = 10;
counter           714 drivers/net/ethernet/dec/tulip/xircom_cb.c 	while (counter > 0) {
counter           719 drivers/net/ethernet/dec/tulip/xircom_cb.c 		counter--;
counter           720 drivers/net/ethernet/dec/tulip/xircom_cb.c 		if (counter <= 0)
counter           730 drivers/net/ethernet/dec/tulip/xircom_cb.c 	counter = 10;
counter           731 drivers/net/ethernet/dec/tulip/xircom_cb.c 	while (counter > 0) {
counter           736 drivers/net/ethernet/dec/tulip/xircom_cb.c 		counter--;
counter           737 drivers/net/ethernet/dec/tulip/xircom_cb.c 		if (counter <= 0)
counter           754 drivers/net/ethernet/dec/tulip/xircom_cb.c 	int counter;
counter           760 drivers/net/ethernet/dec/tulip/xircom_cb.c 	counter = 10;
counter           761 drivers/net/ethernet/dec/tulip/xircom_cb.c 	while (counter > 0) {
counter           766 drivers/net/ethernet/dec/tulip/xircom_cb.c 		counter--;
counter           767 drivers/net/ethernet/dec/tulip/xircom_cb.c 		if (counter <= 0)
counter           787 drivers/net/ethernet/dec/tulip/xircom_cb.c 	int counter;
counter           799 drivers/net/ethernet/dec/tulip/xircom_cb.c 	counter = 10;
counter           800 drivers/net/ethernet/dec/tulip/xircom_cb.c 	while (counter > 0) {
counter           805 drivers/net/ethernet/dec/tulip/xircom_cb.c 		counter--;
counter           806 drivers/net/ethernet/dec/tulip/xircom_cb.c 		if (counter <= 0)
counter           817 drivers/net/ethernet/dec/tulip/xircom_cb.c 	counter = 10;
counter           818 drivers/net/ethernet/dec/tulip/xircom_cb.c 	while (counter > 0) {
counter           823 drivers/net/ethernet/dec/tulip/xircom_cb.c 		counter--;
counter           824 drivers/net/ethernet/dec/tulip/xircom_cb.c 		if (counter <= 0)
counter           841 drivers/net/ethernet/dec/tulip/xircom_cb.c 	int counter;
counter           847 drivers/net/ethernet/dec/tulip/xircom_cb.c 	counter = 20;
counter           848 drivers/net/ethernet/dec/tulip/xircom_cb.c 	while (counter > 0) {
counter           853 drivers/net/ethernet/dec/tulip/xircom_cb.c 		counter--;
counter           854 drivers/net/ethernet/dec/tulip/xircom_cb.c 		if (counter <= 0)
counter           224 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c 			*(data + i++) = dpni_stats.raw.counter[k];
counter           285 drivers/net/ethernet/freescale/dpaa2/dpni-cmd.h 	__le64 counter[DPNI_STATISTICS_CNT];
counter          1504 drivers/net/ethernet/freescale/dpaa2/dpni.c 		stat->raw.counter[i] = le64_to_cpu(rsp_params->counter[i]);
counter           489 drivers/net/ethernet/freescale/dpaa2/dpni.h 		u64 counter[DPNI_STATISTICS_CNT];
counter           410 drivers/net/ethernet/freescale/fec_ptp.c 	u32 counter;
counter           423 drivers/net/ethernet/freescale/fec_ptp.c 	counter = ns & fep->cc.mask;
counter           426 drivers/net/ethernet/freescale/fec_ptp.c 	writel(counter, fep->hwp + FEC_ATIME);
counter           875 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c 	p[23] = netdev->rx_dropped.counter;
counter           876 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c 	p[24] = netdev->tx_dropped.counter;
counter           113 drivers/net/ethernet/ibm/ehea/ehea_qmr.c 	u32 counter;
counter           139 drivers/net/ethernet/ibm/ehea/ehea_qmr.c 	for (counter = 0; counter < cq->attr.nr_pages; counter++) {
counter           152 drivers/net/ethernet/ibm/ehea/ehea_qmr.c 			       cq, hret, counter, cq->attr.nr_pages);
counter           156 drivers/net/ethernet/ibm/ehea/ehea_qmr.c 		if (counter == (cq->attr.nr_pages - 1)) {
counter          1343 drivers/net/ethernet/intel/e100.c 	int err = 0, counter = 50;
counter          1365 drivers/net/ethernet/intel/e100.c 		if (!--counter) break;
counter          1372 drivers/net/ethernet/intel/e100.c 	if (!counter || !(cb->status & cpu_to_le16(cb_ok))) {
counter          3075 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c #define UPDATE_VF_COUNTER_32bit(reg, last_counter, counter)	\
counter          3079 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c 			counter += 0x100000000LL;		\
counter          3081 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c 		counter &= 0xFFFFFFFF00000000LL;		\
counter          3082 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c 		counter |= current_counter;			\
counter          3085 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c #define UPDATE_VF_COUNTER_36bit(reg_lsb, reg_msb, last_counter, counter) \
counter          3092 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c 			counter += 0x1000000000LL;			 \
counter          3094 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c 		counter &= 0xFFFFFFF000000000LL;			 \
counter          3095 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c 		counter |= current_counter;				 \
counter          1397 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 			    const struct mvpp2_ethtool_counter *counter)
counter          1401 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 	val = readl(port->stats_base + counter->offset);
counter          1402 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 	if (counter->reg_is_64b)
counter          1403 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 		val += (u64)readl(port->stats_base + counter->offset + 4) << 32;
counter           978 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_counter *counter;
counter           989 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		counter = container_of(r, struct res_counter, com);
counter           990 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (!counter->port)
counter           991 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			counter->port = port;
counter          1005 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_counter *counter;
counter          1013 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		counter = container_of(tmp, struct res_counter, com);
counter          1014 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (port == counter->port) {
counter          1015 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			qpc->pri_path.counter_index  = counter->com.res_id;
counter          1237 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_counter *counter;
counter          1252 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		counter = container_of(tmp, struct res_counter, com);
counter          1253 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (counter->port == port) {
counter          5177 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_counter *counter;
counter          5197 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		list_for_each_entry_safe(counter, tmp, counter_list, com.list) {
counter          5198 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			if (counter->com.owner == slave) {
counter          5199 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				counters_arr[i++] = counter->com.res_id;
counter          5200 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				rb_erase(&counter->com.node,
counter          5202 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				list_del(&counter->com.list);
counter          5203 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				kfree(counter);
counter            93 drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c 			 monitor_counter[cnt].counter,
counter           105 drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c 		 monitor_counter[cnt].counter,
counter            68 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	struct mlx5_fc		*counter;
counter           911 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	struct mlx5_fc *counter = NULL;
counter           937 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		counter = mlx5_fc_create(dev, true);
counter           938 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		if (IS_ERR(counter))
counter           939 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 			return PTR_ERR(counter);
counter           942 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		dest[dest_ix].counter_id = mlx5_fc_id(counter);
counter           944 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		attr->counter = counter;
counter           998 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	struct mlx5_fc *counter = NULL;
counter          1000 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	counter = attr->counter;
counter          1003 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	mlx5_fc_destroy(priv->mdev, counter);
counter          1159 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	struct mlx5_fc *counter = NULL;
counter          1213 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		counter = mlx5_fc_create(attr->counter_dev, true);
counter          1214 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		if (IS_ERR(counter))
counter          1215 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 			return PTR_ERR(counter);
counter          1217 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		attr->counter = counter;
counter          1291 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		mlx5_fc_destroy(attr->counter_dev, attr->counter);
counter          1401 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		return flow->esw_attr->counter;
counter          1403 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		return flow->nic_attr->counter;
counter          1484 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	struct mlx5_fc *counter;
counter          1518 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 				counter = mlx5e_tc_get_counter(flow);
counter          1519 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 				lastuse = mlx5_fc_query_lastuse(counter);
counter          3887 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	struct mlx5_fc *counter;
counter          3906 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		counter = mlx5e_tc_get_counter(flow);
counter          3907 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		if (!counter)
counter          3910 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		mlx5_fc_query_cached(counter, &bytes, &packets, &lastuse);
counter          3926 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		counter = mlx5e_tc_get_counter(flow->peer_flow);
counter          3927 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		if (!counter)
counter          3929 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		mlx5_fc_query_cached(counter, &bytes2, &packets2, &lastuse2);
counter          1241 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	struct mlx5_fc *counter = vport->ingress.drop_counter;
counter          1305 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	if (counter) {
counter          1308 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 		drop_ctr_dst.counter_id = mlx5_fc_id(counter);
counter          1334 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	struct mlx5_fc *counter = vport->egress.drop_counter;
counter          1392 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	if (counter) {
counter          1395 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 		drop_ctr_dst.counter_id = mlx5_fc_id(counter);
counter           396 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h 	struct mlx5_fc *counter;
counter           204 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		dest[i].counter_id = mlx5_fc_id(attr->counter);
counter           204 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h 	struct mlx5_fc			*counter;
counter           112 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc *counter;
counter           118 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 				       counter, tmp, next_id) {
counter           119 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		if (!list_empty(&counter->list))
counter           124 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	return counter ? &counter->list : &fc_stats->counters;
counter           128 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 				 struct mlx5_fc *counter)
counter           130 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct list_head *next = mlx5_fc_counters_lookup_next(dev, counter->id);
counter           132 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	list_add_tail(&counter->list, next);
counter           136 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 				 struct mlx5_fc *counter)
counter           140 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	list_del(&counter->list);
counter           143 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	WARN_ON(!idr_remove(&fc_stats->counters_idr, counter->id));
counter           177 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc *counter = first;
counter           184 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		bulk_base_id = counter->id & ~0x3;
counter           198 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		list_for_each_entry_from(counter, &fc_stats->counters, list) {
counter           199 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 			int counter_index = counter->id - bulk_base_id;
counter           200 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 			struct mlx5_fc_cache *cache = &counter->cache;
counter           202 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 			if (counter->id >= bulk_base_id + bulk_len) {
counter           212 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c static void mlx5_fc_free(struct mlx5_core_dev *dev, struct mlx5_fc *counter)
counter           214 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	mlx5_cmd_fc_free(dev, counter->id);
counter           215 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	kfree(counter);
counter           218 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c static void mlx5_fc_release(struct mlx5_core_dev *dev, struct mlx5_fc *counter)
counter           222 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	if (counter->bulk)
counter           223 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		mlx5_fc_pool_release_counter(&fc_stats->fc_pool, counter);
counter           225 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		mlx5_fc_free(dev, counter);
counter           238 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc *counter = NULL, *last = NULL, *tmp;
counter           245 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	llist_for_each_entry(counter, addlist, addlist)
counter           246 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		mlx5_fc_stats_insert(dev, counter);
counter           248 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	llist_for_each_entry_safe(counter, tmp, dellist, dellist) {
counter           249 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		mlx5_fc_stats_remove(dev, counter);
counter           251 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		mlx5_fc_release(dev, counter);
counter           259 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	counter = list_first_entry(&fc_stats->counters, struct mlx5_fc,
counter           261 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	if (counter)
counter           262 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		mlx5_fc_stats_query_counter_range(dev, counter, last->id);
counter           269 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc *counter;
counter           272 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	counter = kzalloc(sizeof(*counter), GFP_KERNEL);
counter           273 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	if (!counter)
counter           276 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	err = mlx5_cmd_fc_alloc(dev, &counter->id);
counter           278 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		kfree(counter);
counter           282 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	return counter;
counter           288 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc *counter;
counter           291 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		counter = mlx5_fc_pool_acquire_counter(&fc_stats->fc_pool);
counter           292 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		if (!IS_ERR(counter))
counter           293 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 			return counter;
counter           301 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc *counter = mlx5_fc_acquire(dev, aging);
counter           305 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	if (IS_ERR(counter))
counter           306 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		return counter;
counter           308 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	INIT_LIST_HEAD(&counter->list);
counter           309 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	counter->aging = aging;
counter           312 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		u32 id = counter->id;
counter           314 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		counter->cache.lastuse = jiffies;
counter           315 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		counter->lastbytes = counter->cache.bytes;
counter           316 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		counter->lastpackets = counter->cache.packets;
counter           321 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		err = idr_alloc_u32(&fc_stats->counters_idr, counter, &id, id,
counter           329 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		llist_add(&counter->addlist, &fc_stats->addlist);
counter           334 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	return counter;
counter           337 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	mlx5_fc_release(dev, counter);
counter           342 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c u32 mlx5_fc_id(struct mlx5_fc *counter)
counter           344 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	return counter->id;
counter           348 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c void mlx5_fc_destroy(struct mlx5_core_dev *dev, struct mlx5_fc *counter)
counter           352 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	if (!counter)
counter           355 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	if (counter->aging) {
counter           356 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		llist_add(&counter->dellist, &fc_stats->dellist);
counter           361 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	mlx5_fc_release(dev, counter);
counter           402 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc *counter;
counter           410 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	llist_for_each_entry_safe(counter, tmp, tmplist, addlist)
counter           411 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		mlx5_fc_release(dev, counter);
counter           413 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	list_for_each_entry_safe(counter, tmp, &fc_stats->counters, list)
counter           414 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		mlx5_fc_release(dev, counter);
counter           421 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c int mlx5_fc_query(struct mlx5_core_dev *dev, struct mlx5_fc *counter,
counter           424 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	return mlx5_cmd_fc_query(dev, counter->id, packets, bytes);
counter           428 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c u64 mlx5_fc_query_lastuse(struct mlx5_fc *counter)
counter           430 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	return counter->cache.lastuse;
counter           433 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c void mlx5_fc_query_cached(struct mlx5_fc *counter,
counter           438 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	c = counter->cache;
counter           440 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	*bytes = c.bytes - counter->lastbytes;
counter           441 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	*packets = c.packets - counter->lastpackets;
counter           444 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	counter->lastbytes = c.bytes;
counter           445 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	counter->lastpackets = c.packets;
counter           476 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c static void mlx5_fc_init(struct mlx5_fc *counter, struct mlx5_fc_bulk *bulk,
counter           479 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	counter->bulk = bulk;
counter           480 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	counter->id = id;
counter            66 drivers/net/ethernet/mellanox/mlx5/core/lib/pci_vsc.c 	u32 counter = 0;
counter            92 drivers/net/ethernet/mellanox/mlx5/core/lib/pci_vsc.c 		ret = vsc_read(dev, VSC_COUNTER_OFFSET, &counter);
counter            96 drivers/net/ethernet/mellanox/mlx5/core/lib/pci_vsc.c 		ret = vsc_write(dev, VSC_SEMAPHORE_OFFSET, counter);
counter           105 drivers/net/ethernet/mellanox/mlx5/core/lib/pci_vsc.c 	} while (counter != lock_val);
counter           589 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 			  struct mlxsw_afa_counter *counter)
counter           591 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	mlxsw_afa_resource_del(&counter->resource);
counter           593 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 					   counter->counter_index);
counter           594 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	kfree(counter);
counter           601 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	struct mlxsw_afa_counter *counter;
counter           603 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	counter = container_of(resource, struct mlxsw_afa_counter, resource);
counter           604 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	mlxsw_afa_counter_destroy(block, counter);
counter           610 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	struct mlxsw_afa_counter *counter;
counter           613 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	counter = kzalloc(sizeof(*counter), GFP_KERNEL);
counter           614 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	if (!counter)
counter           618 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 						 &counter->counter_index);
counter           621 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	counter->resource.destructor = mlxsw_afa_counter_destructor;
counter           622 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	mlxsw_afa_resource_add(block, &counter->resource);
counter           623 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	return counter;
counter           626 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	kfree(counter);
counter          1091 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	struct mlxsw_afa_counter *counter;
counter          1095 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	counter = mlxsw_afa_counter_create(block);
counter          1096 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	if (IS_ERR(counter)) {
counter          1098 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 		return PTR_ERR(counter);
counter          1100 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	counter_index = counter->counter_index;
counter          1112 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c 	mlxsw_afa_counter_destroy(block, counter);
counter           174 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	entry->counter = 0;
counter           184 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 		entry->counter = cnt;
counter           530 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 					 &entry->counter);
counter          1077 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	err = mlxsw_sp_nexthop_counter_get(mlxsw_sp, nh, &entry->counter);
counter          1137 drivers/net/ethernet/micrel/ksz884x.c 	u64 counter[TOTAL_PORT_COUNTER_NUM];
counter          1343 drivers/net/ethernet/micrel/ksz884x.c 	u64 counter[OID_COUNTER_LAST];
counter          1386 drivers/net/ethernet/micrel/ksz884x.c 	wait_queue_head_t counter;
counter          1433 drivers/net/ethernet/micrel/ksz884x.c 	struct ksz_counter_info counter[TOTAL_PORT_NUM];
counter          1882 drivers/net/ethernet/micrel/ksz884x.c 				&mib->counter[mib->cnt_ptr]);
counter          1887 drivers/net/ethernet/micrel/ksz884x.c 			&mib->counter[PORT_COUNTER_NUM]);
counter          1908 drivers/net/ethernet/micrel/ksz884x.c 				&mib->counter[mib->cnt_ptr]);
counter          1913 drivers/net/ethernet/micrel/ksz884x.c 			&mib->counter[PORT_COUNTER_NUM]);
counter          1914 drivers/net/ethernet/micrel/ksz884x.c 	memset((void *) mib->counter, 0, sizeof(u64) * TOTAL_PORT_COUNTER_NUM);
counter          4605 drivers/net/ethernet/micrel/ksz884x.c 	u64 *counter)
counter          4612 drivers/net/ethernet/micrel/ksz884x.c 	memset(counter, 0, sizeof(u64) * TOTAL_PORT_COUNTER_NUM);
counter          4616 drivers/net/ethernet/micrel/ksz884x.c 			counter[mib] += port_mib->counter[mib];
counter          5156 drivers/net/ethernet/micrel/ksz884x.c 				priv->port.counter[OID_COUNTER_RCV_ERROR]++;
counter          5502 drivers/net/ethernet/micrel/ksz884x.c 	memset((void *) port->counter, 0,
counter          5514 drivers/net/ethernet/micrel/ksz884x.c 			hw_priv->counter[i].time = next_jiffies;
counter          5601 drivers/net/ethernet/micrel/ksz884x.c 	dev->stats.rx_errors = port->counter[OID_COUNTER_RCV_ERROR];
counter          5602 drivers/net/ethernet/micrel/ksz884x.c 	dev->stats.tx_errors = port->counter[OID_COUNTER_XMIT_ERROR];
counter          5616 drivers/net/ethernet/micrel/ksz884x.c 			mib->counter[MIB_COUNTER_RX_MULTICAST];
counter          5619 drivers/net/ethernet/micrel/ksz884x.c 			mib->counter[MIB_COUNTER_TX_TOTAL_COLLISION];
counter          5622 drivers/net/ethernet/micrel/ksz884x.c 			mib->counter[MIB_COUNTER_RX_UNDERSIZE] +
counter          5623 drivers/net/ethernet/micrel/ksz884x.c 			mib->counter[MIB_COUNTER_RX_FRAGMENT] +
counter          5624 drivers/net/ethernet/micrel/ksz884x.c 			mib->counter[MIB_COUNTER_RX_OVERSIZE] +
counter          5625 drivers/net/ethernet/micrel/ksz884x.c 			mib->counter[MIB_COUNTER_RX_JABBER]);
counter          5627 drivers/net/ethernet/micrel/ksz884x.c 			mib->counter[MIB_COUNTER_RX_CRC_ERR];
counter          5629 drivers/net/ethernet/micrel/ksz884x.c 			mib->counter[MIB_COUNTER_RX_ALIGNMENT_ERR] +
counter          5630 drivers/net/ethernet/micrel/ksz884x.c 			mib->counter[MIB_COUNTER_RX_SYMBOL_ERR]);
counter          5633 drivers/net/ethernet/micrel/ksz884x.c 			mib->counter[MIB_COUNTER_TX_LATE_COLLISION];
counter          6521 drivers/net/ethernet/micrel/ksz884x.c 	u64 counter[TOTAL_PORT_COUNTER_NUM];
counter          6527 drivers/net/ethernet/micrel/ksz884x.c 			hw_priv->counter[p].read = 1;
counter          6542 drivers/net/ethernet/micrel/ksz884x.c 			hw_priv->counter[p].counter,
counter          6543 drivers/net/ethernet/micrel/ksz884x.c 			2 == hw_priv->counter[p].read,
counter          6549 drivers/net/ethernet/micrel/ksz884x.c 					hw_priv->counter[p].counter,
counter          6550 drivers/net/ethernet/micrel/ksz884x.c 					2 == hw_priv->counter[p].read,
counter          6554 drivers/net/ethernet/micrel/ksz884x.c 					hw_priv->counter[p].counter,
counter          6555 drivers/net/ethernet/micrel/ksz884x.c 					2 == hw_priv->counter[p].read,
counter          6560 drivers/net/ethernet/micrel/ksz884x.c 	get_mib_counters(hw, port->first_port, port->mib_port_cnt, counter);
counter          6566 drivers/net/ethernet/micrel/ksz884x.c 		*data++ = counter[i];
counter          6651 drivers/net/ethernet/micrel/ksz884x.c 		if (mib->cnt_ptr || 1 == hw_priv->counter[i].read) {
counter          6656 drivers/net/ethernet/micrel/ksz884x.c 			hw_priv->counter[i].read = 0;
counter          6660 drivers/net/ethernet/micrel/ksz884x.c 				hw_priv->counter[i].read = 2;
counter          6662 drivers/net/ethernet/micrel/ksz884x.c 					&hw_priv->counter[i].counter);
counter          6664 drivers/net/ethernet/micrel/ksz884x.c 		} else if (time_after_eq(jiffies, hw_priv->counter[i].time)) {
counter          6667 drivers/net/ethernet/micrel/ksz884x.c 				hw_priv->counter[i].read = 1;
counter          6669 drivers/net/ethernet/micrel/ksz884x.c 			hw_priv->counter[i].time = next_jiffies;
counter          6676 drivers/net/ethernet/micrel/ksz884x.c 			hw_priv->counter[i].read = 1;
counter          7029 drivers/net/ethernet/micrel/ksz884x.c 		init_waitqueue_head(&hw_priv->counter[i].counter);
counter            86 drivers/net/ethernet/mscc/ocelot_ace.c 	u32 counter[VCAP_COUNTER_WIDTH]; /* CNT_DAT */
counter           171 drivers/net/ethernet/mscc/ocelot_ace.c 		ocelot_write_rix(oc, data->counter[i], S2_CACHE_CNT_DAT, i);
counter           182 drivers/net/ethernet/mscc/ocelot_ace.c 		data->counter[i] = ocelot_read_rix(oc, S2_CACHE_CNT_DAT, i);
counter           568 drivers/net/ethernet/mscc/ocelot_ace.c 	vcap_data_set(data.counter, data.counter_offset, vcap_is2.counter_width,
counter           588 drivers/net/ethernet/mscc/ocelot_ace.c 	cnt = vcap_data_get(data.counter, data.counter_offset,
counter          3170 drivers/net/ethernet/neterion/s2io.c static void s2io_chk_xpak_counter(u64 *counter, u64 * regs_stat, u32 index,
counter          3180 drivers/net/ethernet/neterion/s2io.c 		*counter = *counter + 1;
counter           633 drivers/net/ethernet/neterion/vxge/vxge-main.c 	u16 queue_len, counter = 0;
counter           645 drivers/net/ethernet/neterion/vxge/vxge-main.c 			counter = (ntohs(th->source) +
counter           648 drivers/net/ethernet/neterion/vxge/vxge-main.c 			if (counter >= queue_len)
counter           649 drivers/net/ethernet/neterion/vxge/vxge-main.c 				counter = queue_len - 1;
counter           652 drivers/net/ethernet/neterion/vxge/vxge-main.c 	return counter;
counter            44 drivers/net/ethernet/netronome/nfp/crypto/fw.h 	__be32 counter;
counter           333 drivers/net/ethernet/netronome/nfp/crypto/tls.c 	back->counter = 0;
counter            80 drivers/net/ethernet/sfc/falcon/qt202x_phy.c 		int counter;
counter            84 drivers/net/ethernet/sfc/falcon/qt202x_phy.c 		counter = ((reg >> PCS_FW_HEARTB_LBN) &
counter            87 drivers/net/ethernet/sfc/falcon/qt202x_phy.c 			old_counter = counter;
counter            88 drivers/net/ethernet/sfc/falcon/qt202x_phy.c 		else if (counter != old_counter)
counter           988 drivers/net/ethernet/smsc/smsc9420.c 	u32 counter = smsc9420_reg_read(pd, MISS_FRAME_CNTR);
counter           990 drivers/net/ethernet/smsc/smsc9420.c 	    (counter & 0x0000FFFF) + ((counter >> 17) & 0x000003FF);
counter            68 drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c 	int counter = 0;
counter            75 drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c 	while (counter < TSE_PCS_SW_RESET_TIMEOUT) {
counter            80 drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c 		counter++;
counter            83 drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c 	if (counter >= TSE_PCS_SW_RESET_TIMEOUT) {
counter           733 drivers/net/hamradio/yam.c 	int counter = 100;
counter           756 drivers/net/hamradio/yam.c 			if (--counter <= 0) {
counter          2265 drivers/net/wireless/ath/ath5k/base.c 	unsigned int counter = 1000;
counter          2379 drivers/net/wireless/ath/ath5k/base.c 	} while (ath5k_hw_is_intr_pending(ah) && --counter > 0);
counter          2390 drivers/net/wireless/ath/ath5k/base.c 	if (unlikely(!counter))
counter           768 drivers/net/wireless/ath/ath6kl/debug.c 	u32 *counter;
counter           773 drivers/net/wireless/ath/ath6kl/debug.c 		counter = ((u32 *) ep_st) + (offset / 4);
counter           774 drivers/net/wireless/ath/ath6kl/debug.c 		len += scnprintf(buf + len, buf_len - len, " %u", *counter);
counter           124 drivers/net/wireless/ath/carl9170/carl9170.h 	unsigned int counter;
counter           315 drivers/net/wireless/ath/carl9170/debug.c 		    iter->max, iter->state, iter->counter);
counter          1167 drivers/net/wireless/ath/carl9170/tx.c 		tid_info->counter++;
counter           342 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c 		if (array[*idx].allocated.counter == 0)
counter           373 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c 	if (pktids->array[idx].allocated.counter) {
counter           379 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c 		pktid->allocated.counter = 0;
counter           400 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c 		if (array[count].allocated.counter) {
counter           373 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c 					  struct list_head *q, int *counter)
counter           384 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c 	if (counter)
counter           385 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c 		(*counter)--;
counter           393 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c 			  int *counter)
counter           398 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c 	if (counter)
counter           399 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c 		(*counter)++;
counter           122 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	win->counter = 0;
counter           148 drivers/net/wireless/intel/iwlegacy/3945-rs.c 		if (!rs_sta->win[i].counter)
counter           154 drivers/net/wireless/intel/iwlegacy/3945-rs.c 			       rs_sta->win[i].counter, i);
counter           264 drivers/net/wireless/intel/iwlegacy/3945-rs.c 		if (win->counter >= RATE_MAX_WINDOW) {
counter           267 drivers/net/wireless/intel/iwlegacy/3945-rs.c 			win->counter = RATE_MAX_WINDOW - 1;
counter           276 drivers/net/wireless/intel/iwlegacy/3945-rs.c 		win->counter++;
counter           292 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	if (win->counter > 0)
counter           294 drivers/net/wireless/intel/iwlegacy/3945-rs.c 		    128 * (100 * win->success_counter) / win->counter;
counter           298 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	fail_count = win->counter - win->success_counter;
counter           668 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	fail_count = win->counter - win->success_counter;
counter           676 drivers/net/wireless/intel/iwlegacy/3945-rs.c 		       "expected_tpt is %sNULL\n", idx, win->counter,
counter           826 drivers/net/wireless/intel/iwlegacy/3945-rs.c 			    lq_sta->win[j].counter,
counter           643 drivers/net/wireless/intel/iwlegacy/3945.c 	int counter;
counter           646 drivers/net/wireless/intel/iwlegacy/3945.c 	counter = TFD_CTL_COUNT_GET(le32_to_cpu(tfd->control_flags));
counter           647 drivers/net/wireless/intel/iwlegacy/3945.c 	if (counter > NUM_TFD_CHUNKS) {
counter           648 drivers/net/wireless/intel/iwlegacy/3945.c 		IL_ERR("Too many chunks: %i\n", counter);
counter           654 drivers/net/wireless/intel/iwlegacy/3945.c 	if (counter)
counter           661 drivers/net/wireless/intel/iwlegacy/3945.c 	for (i = 1; i < counter; i++)
counter            56 drivers/net/wireless/intel/iwlegacy/3945.h 	s32 counter;
counter           219 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	win->counter = 0;
counter           429 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		if (win->counter >= RATE_MAX_WINDOW) {
counter           432 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			win->counter = RATE_MAX_WINDOW - 1;
counter           441 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		win->counter++;
counter           457 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	if (win->counter > 0)
counter           459 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		    128 * (100 * win->success_counter) / win->counter;
counter           463 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	fail_count = win->counter - win->success_counter;
counter          1857 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	fail_count = win->counter - win->success_counter;
counter          1861 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		       win->success_counter, win->counter, idx);
counter          2043 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	if (!update_lq && !done_search && !lq_sta->stay_in_tbl && win->counter) {
counter          2703 drivers/net/wireless/intel/iwlegacy/4965-rs.c 				    lq_sta->lq_info[i].win[j].counter,
counter          2736 drivers/net/wireless/intel/iwlegacy/common.h 	s32 counter;		/* number of frames attempted */
counter           234 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	window->counter = 0;
counter           474 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 		if (window->counter >= IWL_RATE_MAX_WINDOW) {
counter           477 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 			window->counter = IWL_RATE_MAX_WINDOW - 1;
counter           486 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 		window->counter++;
counter           502 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	if (window->counter > 0)
counter           504 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 					/ window->counter;
counter           508 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	fail_count = window->counter - window->success_counter;
counter          2325 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	fail_count = window->counter - window->success_counter;
counter          2330 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 			       window->success_counter, window->counter, index);
counter          2550 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	if (!update_lq && !done_search && !lq_sta->stay_in_tbl && window->counter) {
counter          3213 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 				lq_sta->lq_info[i].win[j].counter,
counter           284 drivers/net/wireless/intel/iwlwifi/dvm/rs.h 	s32 counter;		/* number of frames attempted */
counter           581 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	window->counter = 0;
counter           701 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		if (window->counter >= IWL_RATE_MAX_WINDOW) {
counter           703 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			window->counter = IWL_RATE_MAX_WINDOW - 1;
counter           712 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		window->counter++;
counter           728 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	if (window->counter > 0)
counter           730 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 					/ window->counter;
counter           734 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	fail_count = window->counter - window->success_counter;
counter          2171 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	fail_count = window->counter - window->success_counter;
counter          2177 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			       window->success_counter, window->counter);
counter          2322 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	    && window->counter) {
counter          2331 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 			       window->counter);
counter          3934 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				tbl->win[j].counter,
counter           260 drivers/net/wireless/intel/iwlwifi/mvm/rs.h 	s32 counter;		/* number of frames attempted */
counter           735 drivers/net/wireless/intel/iwlwifi/mvm/tt.c 	static atomic_t counter = ATOMIC_INIT(0);
counter           745 drivers/net/wireless/intel/iwlwifi/mvm/tt.c 	sprintf(name, "iwlwifi_%u", atomic_inc_return(&counter) & 0xFF);
counter           104 drivers/net/wireless/intersil/prism54/isl_38xx.c 	u32 counter = 0;
counter           135 drivers/net/wireless/intersil/prism54/isl_38xx.c 				counter++;
counter           148 drivers/net/wireless/intersil/prism54/isl_38xx.c 			      counter);
counter           543 drivers/net/wireless/intersil/prism54/islpci_dev.c 	unsigned counter;
counter           561 drivers/net/wireless/intersil/prism54/islpci_dev.c 	for (counter = 0; counter < ISL38XX_CB_QCOUNT; counter++) {
counter           562 drivers/net/wireless/intersil/prism54/islpci_dev.c 		cb->driver_curr_frag[counter] = cpu_to_le32(0);
counter           563 drivers/net/wireless/intersil/prism54/islpci_dev.c 		cb->device_curr_frag[counter] = cpu_to_le32(0);
counter           567 drivers/net/wireless/intersil/prism54/islpci_dev.c 	for (counter = 0; counter < ISL38XX_CB_MGMT_QSIZE; counter++) {
counter           568 drivers/net/wireless/intersil/prism54/islpci_dev.c 		isl38xx_fragment *frag = &cb->rx_data_mgmt[counter];
counter           571 drivers/net/wireless/intersil/prism54/islpci_dev.c 		frag->address = cpu_to_le32(priv->mgmt_rx[counter].pci_addr);
counter           574 drivers/net/wireless/intersil/prism54/islpci_dev.c 	for (counter = 0; counter < ISL38XX_CB_RX_QSIZE; counter++) {
counter           575 drivers/net/wireless/intersil/prism54/islpci_dev.c 		cb->rx_data_low[counter].address =
counter           576 drivers/net/wireless/intersil/prism54/islpci_dev.c 		    cpu_to_le32((u32) priv->pci_map_rx_address[counter]);
counter           615 drivers/net/wireless/intersil/prism54/islpci_dev.c 	int counter;
counter           660 drivers/net/wireless/intersil/prism54/islpci_dev.c 	for (counter = 0; counter < ISL38XX_CB_QCOUNT; counter++) {
counter           661 drivers/net/wireless/intersil/prism54/islpci_dev.c 		priv->control_block->driver_curr_frag[counter] = cpu_to_le32(0);
counter           662 drivers/net/wireless/intersil/prism54/islpci_dev.c 		priv->control_block->device_curr_frag[counter] = cpu_to_le32(0);
counter           677 drivers/net/wireless/intersil/prism54/islpci_dev.c 	for (counter = 0; counter < ISL38XX_CB_RX_QSIZE; counter++) {
counter           691 drivers/net/wireless/intersil/prism54/islpci_dev.c 		priv->data_low_rx[counter] = skb;
counter           694 drivers/net/wireless/intersil/prism54/islpci_dev.c 		priv->pci_map_rx_address[counter] =
counter           699 drivers/net/wireless/intersil/prism54/islpci_dev.c 					  priv->pci_map_rx_address[counter])) {
counter           700 drivers/net/wireless/intersil/prism54/islpci_dev.c 			priv->pci_map_rx_address[counter] = 0;
counter           722 drivers/net/wireless/intersil/prism54/islpci_dev.c 	int counter;
counter           741 drivers/net/wireless/intersil/prism54/islpci_dev.c         for (counter = 0; counter < ISL38XX_CB_MGMT_QSIZE; counter++) {
counter           742 drivers/net/wireless/intersil/prism54/islpci_dev.c 		struct islpci_membuf *buf = &priv->mgmt_rx[counter];
counter           753 drivers/net/wireless/intersil/prism54/islpci_dev.c 	for (counter = 0; counter < ISL38XX_CB_RX_QSIZE; counter++) {
counter           754 drivers/net/wireless/intersil/prism54/islpci_dev.c 		if (priv->pci_map_rx_address[counter])
counter           756 drivers/net/wireless/intersil/prism54/islpci_dev.c 					 priv->pci_map_rx_address[counter],
counter           759 drivers/net/wireless/intersil/prism54/islpci_dev.c 		priv->pci_map_rx_address[counter] = 0;
counter           761 drivers/net/wireless/intersil/prism54/islpci_dev.c 		if (priv->data_low_rx[counter])
counter           762 drivers/net/wireless/intersil/prism54/islpci_dev.c 			dev_kfree_skb(priv->data_low_rx[counter]);
counter           763 drivers/net/wireless/intersil/prism54/islpci_dev.c 		priv->data_low_rx[counter] = NULL;
counter          1436 drivers/net/wireless/mediatek/mt76/mt7603/mac.c mt7603_watchdog_check(struct mt7603_dev *dev, u8 *counter,
counter          1446 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		if (!check(dev) && *counter < MT7603_WATCHDOG_TIMEOUT) {
counter          1447 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 			*counter = 0;
counter          1451 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		(*counter)++;
counter          1454 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 	if (*counter < MT7603_WATCHDOG_TIMEOUT)
counter            70 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c 	u32 counter = 0;
counter            75 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c 	} while ((counter++ < FW_8192C_POLLING_TIMEOUT_COUNT) &&
counter            78 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c 	if (counter >= FW_8192C_POLLING_TIMEOUT_COUNT) {
counter            89 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c 	counter = 0;
counter            98 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c 	} while (counter++ < FW_8192C_POLLING_TIMEOUT_COUNT);
counter            93 drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c 	u32 counter = 0;
counter            98 drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c 	} while ((counter++ < FW_8192C_POLLING_TIMEOUT_COUNT) &&
counter           101 drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c 	if (counter >= FW_8192C_POLLING_TIMEOUT_COUNT) {
counter           111 drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c 	counter = 0;
counter           120 drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c 	} while (counter++ < FW_8192C_POLLING_TIMEOUT_COUNT);
counter            72 drivers/net/wireless/realtek/rtlwifi/rtl8192de/fw.c 	u32 counter = 0;
counter            77 drivers/net/wireless/realtek/rtlwifi/rtl8192de/fw.c 	} while ((counter++ < FW_8192D_POLLING_TIMEOUT_COUNT) &&
counter            79 drivers/net/wireless/realtek/rtlwifi/rtl8192de/fw.c 	if (counter >= FW_8192D_POLLING_TIMEOUT_COUNT) {
counter           115 drivers/net/wireless/realtek/rtlwifi/rtl8192de/fw.c 	u32 counter;
counter           119 drivers/net/wireless/realtek/rtlwifi/rtl8192de/fw.c 	counter = 0;
counter           142 drivers/net/wireless/realtek/rtlwifi/rtl8192de/fw.c 	} while (counter++ < POLLING_READY_TIMEOUT_COUNT);
counter            67 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c 	u32 counter = 0;
counter            72 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c 	} while ((counter++ < FW_8192C_POLLING_TIMEOUT_COUNT) &&
counter            75 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c 	if (counter >= FW_8192C_POLLING_TIMEOUT_COUNT) {
counter            86 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c 	counter = 0;
counter            95 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c 	} while (counter++ < FW_8192C_POLLING_TIMEOUT_COUNT);
counter            98 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c 	       value32, counter);
counter           122 drivers/net/wireless/realtek/rtlwifi/rtl8723com/fw_common.c 	u32 counter = 0;
counter           127 drivers/net/wireless/realtek/rtlwifi/rtl8723com/fw_common.c 	} while ((counter++ < max_count) &&
counter           130 drivers/net/wireless/realtek/rtlwifi/rtl8723com/fw_common.c 	if (counter >= max_count) {
counter           141 drivers/net/wireless/realtek/rtlwifi/rtl8723com/fw_common.c 	counter = 0;
counter           155 drivers/net/wireless/realtek/rtlwifi/rtl8723com/fw_common.c 	} while (counter++ < max_count);
counter            69 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c 	u32 counter = 0;
counter            74 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c 	} while ((counter++ < FW_8821AE_POLLING_TIMEOUT_COUNT) &&
counter            77 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c 	if (counter >= FW_8821AE_POLLING_TIMEOUT_COUNT) {
counter            90 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c 	counter = 0;
counter            97 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c 	} while (counter++ < FW_8821AE_POLLING_TIMEOUT_COUNT);
counter           669 drivers/net/wireless/realtek/rtw88/rtw8822b.c 	int counter;
counter           735 drivers/net/wireless/realtek/rtw88/rtw8822b.c 	for (counter = 100; counter > 0; counter--) {
counter           748 drivers/net/wireless/realtek/rtw88/rtw8822b.c 	if (WARN(counter <= 0, "write RF mode table fail\n"))
counter           985 drivers/net/wireless/realtek/rtw88/rtw8822b.c 	int counter;
counter           990 drivers/net/wireless/realtek/rtw88/rtw8822b.c 	for (counter = 0; counter < 300; counter++) {
counter          1002 drivers/net/wireless/realtek/rtw88/rtw8822b.c 		counter, reload, ++do_iqk_cnt, iqk_fail_mask);
counter          1885 drivers/net/wireless/realtek/rtw88/rtw8822c.c 	int counter;
counter          1890 drivers/net/wireless/realtek/rtw88/rtw8822c.c 	for (counter = 0; counter < 300; counter++) {
counter          1898 drivers/net/wireless/realtek/rtw88/rtw8822c.c 	rtw_dbg(rtwdev, RTW_DBG_RFK, "iqk counter=%d\n", counter);
counter           377 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 	static int counter = 4;
counter           379 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 	if (!dev->buff_status_updated && counter) {
counter           380 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 		counter--;
counter           420 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 		counter = 1;
counter           422 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 		counter = 4;
counter           699 drivers/net/wireless/ti/wlcore/main.c 	u8 counter;
counter           708 drivers/net/wireless/ti/wlcore/main.c 	struct vif_counter_data *counter = data;
counter           710 drivers/net/wireless/ti/wlcore/main.c 	counter->counter++;
counter           711 drivers/net/wireless/ti/wlcore/main.c 	if (counter->cur_vif == vif)
counter           712 drivers/net/wireless/ti/wlcore/main.c 		counter->cur_vif_running = true;
counter          2395 drivers/net/wireless/ti/wlcore/main.c 	u8 vif_count = vif_counter_data.counter;
counter          1496 drivers/parport/parport_ip32.c 	unsigned int counter;
counter          1499 drivers/parport/parport_ip32.c 	for (counter = 0; counter < 40; counter++) {
counter           162 drivers/parport/parport_pc.c 		int counter;
counter           167 drivers/parport/parport_pc.c 			for (counter = 0; counter < 40; counter++) {
counter           661 drivers/pci/pcie/aer.c 	u64 *counter = NULL;
counter           670 drivers/pci/pcie/aer.c 		counter = &aer_stats->dev_cor_errs[0];
counter           675 drivers/pci/pcie/aer.c 		counter = &aer_stats->dev_nonfatal_errs[0];
counter           680 drivers/pci/pcie/aer.c 		counter = &aer_stats->dev_fatal_errs[0];
counter           688 drivers/pci/pcie/aer.c 			counter[i]++;
counter           236 drivers/perf/fsl_imx8_ddr_perf.c static void ddr_perf_free_counter(struct ddr_pmu *pmu, int counter)
counter           238 drivers/perf/fsl_imx8_ddr_perf.c 	pmu->events[counter] = NULL;
counter           241 drivers/perf/fsl_imx8_ddr_perf.c static u32 ddr_perf_read_counter(struct ddr_pmu *pmu, int counter)
counter           243 drivers/perf/fsl_imx8_ddr_perf.c 	struct perf_event *event = pmu->events[counter];
counter           253 drivers/perf/fsl_imx8_ddr_perf.c 	return readl_relaxed(base + counter * 4);
counter           309 drivers/perf/fsl_imx8_ddr_perf.c 	int counter = hwc->idx;
counter           313 drivers/perf/fsl_imx8_ddr_perf.c 		new_raw_count = ddr_perf_read_counter(pmu, counter);
counter           323 drivers/perf/fsl_imx8_ddr_perf.c 				  int counter, bool enable)
counter           325 drivers/perf/fsl_imx8_ddr_perf.c 	u8 reg = counter * 4 + COUNTER_CNTL;
counter           350 drivers/perf/fsl_imx8_ddr_perf.c 	int counter = hwc->idx;
counter           354 drivers/perf/fsl_imx8_ddr_perf.c 	ddr_perf_counter_enable(pmu, event->attr.config, counter, true);
counter           363 drivers/perf/fsl_imx8_ddr_perf.c 	int counter;
counter           383 drivers/perf/fsl_imx8_ddr_perf.c 	counter = ddr_perf_alloc_counter(pmu, cfg);
counter           384 drivers/perf/fsl_imx8_ddr_perf.c 	if (counter < 0) {
counter           389 drivers/perf/fsl_imx8_ddr_perf.c 	pmu->events[counter] = event;
counter           391 drivers/perf/fsl_imx8_ddr_perf.c 	hwc->idx = counter;
counter           405 drivers/perf/fsl_imx8_ddr_perf.c 	int counter = hwc->idx;
counter           407 drivers/perf/fsl_imx8_ddr_perf.c 	ddr_perf_counter_enable(pmu, event->attr.config, counter, false);
counter           417 drivers/perf/fsl_imx8_ddr_perf.c 	int counter = hwc->idx;
counter           421 drivers/perf/fsl_imx8_ddr_perf.c 	ddr_perf_free_counter(pmu, counter);
counter           228 drivers/perf/thunderx2_pmu.c 	int counter;
counter           230 drivers/perf/thunderx2_pmu.c 	counter = find_first_zero_bit(tx2_pmu->active_counters,
counter           232 drivers/perf/thunderx2_pmu.c 	if (counter == tx2_pmu->max_counters)
counter           235 drivers/perf/thunderx2_pmu.c 	set_bit(counter, tx2_pmu->active_counters);
counter           236 drivers/perf/thunderx2_pmu.c 	return counter;
counter           239 drivers/perf/thunderx2_pmu.c static inline void free_counter(struct tx2_uncore_pmu *tx2_pmu, int counter)
counter           241 drivers/perf/thunderx2_pmu.c 	clear_bit(counter, tx2_pmu->active_counters);
counter           205 drivers/platform/mellanox/mlxreg-hotplug.c 	for (i = 0; i < pdata->counter; i++, item++) {
counter           457 drivers/platform/mellanox/mlxreg-hotplug.c 	for (i = 0; i < pdata->counter; i++, item++) {
counter           506 drivers/platform/mellanox/mlxreg-hotplug.c 	for (i = 0; i < pdata->counter; i++, item++) {
counter           590 drivers/platform/mellanox/mlxreg-hotplug.c 	for (i = 0; i < pdata->counter; i++, item++) {
counter           156 drivers/platform/mellanox/mlxreg-io.c 					 priv->pdata->counter,
counter           162 drivers/platform/mellanox/mlxreg-io.c 	for (i = 0; i < priv->pdata->counter; i++) {
counter            22 drivers/platform/x86/dell-smo8800.c 	atomic_t counter;            /* count after last read */
counter            33 drivers/platform/x86/dell-smo8800.c 	atomic_inc(&smo8800->counter);
counter            90 drivers/platform/x86/dell-smo8800.c 	atomic_set(&smo8800->counter, 0);
counter            92 drivers/platform/x86/dell-smo8800.c 				(data = atomic_xchg(&smo8800->counter, 0)));
counter           118 drivers/platform/x86/dell-smo8800.c 	atomic_set(&smo8800->counter, 0);
counter           396 drivers/platform/x86/mlx-platform.c 	.counter = ARRAY_SIZE(mlxplat_mlxcpld_default_items),
counter           443 drivers/platform/x86/mlx-platform.c 	.counter = ARRAY_SIZE(mlxplat_mlxcpld_msn21xx_items),
counter           554 drivers/platform/x86/mlx-platform.c 	.counter = ARRAY_SIZE(mlxplat_mlxcpld_msn274x_items),
counter           601 drivers/platform/x86/mlx-platform.c 	.counter = ARRAY_SIZE(mlxplat_mlxcpld_msn201x_items),
counter           719 drivers/platform/x86/mlx-platform.c 	.counter = ARRAY_SIZE(mlxplat_mlxcpld_default_ng_items),
counter           792 drivers/platform/x86/mlx-platform.c 		.counter = ARRAY_SIZE(mlxplat_mlxcpld_default_led_data),
counter           846 drivers/platform/x86/mlx-platform.c 		.counter = ARRAY_SIZE(mlxplat_mlxcpld_msn21xx_led_data),
counter           964 drivers/platform/x86/mlx-platform.c 		.counter = ARRAY_SIZE(mlxplat_mlxcpld_default_ng_led_data),
counter          1070 drivers/platform/x86/mlx-platform.c 		.counter = ARRAY_SIZE(mlxplat_mlxcpld_default_regs_io_data),
counter          1170 drivers/platform/x86/mlx-platform.c 		.counter = ARRAY_SIZE(mlxplat_mlxcpld_msn21xx_regs_io_data),
counter          1324 drivers/platform/x86/mlx-platform.c 		.counter = ARRAY_SIZE(mlxplat_mlxcpld_default_ng_regs_io_data),
counter          1425 drivers/platform/x86/mlx-platform.c 		.counter = ARRAY_SIZE(mlxplat_mlxcpld_default_fan_data),
counter          1482 drivers/platform/x86/mlx-platform.c 		.counter = ARRAY_SIZE(mlxplat_mlxcpld_wd_main_regs_type1),
counter          1488 drivers/platform/x86/mlx-platform.c 		.counter = ARRAY_SIZE(mlxplat_mlxcpld_wd_aux_regs_type1),
counter          1558 drivers/platform/x86/mlx-platform.c 		.counter = ARRAY_SIZE(mlxplat_mlxcpld_wd_main_regs_type2),
counter          1564 drivers/platform/x86/mlx-platform.c 		.counter = ARRAY_SIZE(mlxplat_mlxcpld_wd_aux_regs_type2),
counter           708 drivers/s390/block/dasd.c 	unsigned int counter;
counter           712 drivers/s390/block/dasd.c 	counter = 0;
counter           715 drivers/s390/block/dasd.c 			if (++counter >= 31)
counter           720 drivers/s390/block/dasd.c 		dasd_global_profile.data->dasd_io_nr_req[counter]++;
counter           722 drivers/s390/block/dasd.c 			dasd_global_profile.data->dasd_read_nr_req[counter]++;
counter           728 drivers/s390/block/dasd.c 		block->profile.data->dasd_io_nr_req[counter]++;
counter           730 drivers/s390/block/dasd.c 			block->profile.data->dasd_read_nr_req[counter]++;
counter           741 drivers/s390/block/dasd.c 		counter = 1; /* request is not yet queued on the start device */
counter           743 drivers/s390/block/dasd.c 			if (++counter >= 31)
counter           748 drivers/s390/block/dasd.c 		device->profile.data->dasd_io_nr_req[counter]++;
counter           750 drivers/s390/block/dasd.c 			device->profile.data->dasd_read_nr_req[counter]++;
counter            58 drivers/s390/scsi/zfcp_dbf.c 		pl->counter++;
counter           211 drivers/s390/scsi/zfcp_dbf.c 	payload->counter = 0;
counter           215 drivers/s390/scsi/zfcp_dbf.c 	while (payload->counter < scount && (char *)pl[payload->counter]) {
counter           216 drivers/s390/scsi/zfcp_dbf.c 		memcpy(payload->data, (char *)pl[payload->counter], length);
counter           218 drivers/s390/scsi/zfcp_dbf.c 		payload->counter++;
counter           455 drivers/s390/scsi/zfcp_dbf.c 	payload->counter = 0;
counter           466 drivers/s390/scsi/zfcp_dbf.c 			payload->counter++;
counter           254 drivers/s390/scsi/zfcp_dbf.h 	u8 counter;
counter           235 drivers/s390/scsi/zfcp_def.h 	u64 counter;
counter          2094 drivers/s390/scsi/zfcp_fsf.c 			lat->counter++;
counter           435 drivers/s390/scsi/zfcp_sysfs.c 	cc  = lat->_name.counter;					\
counter           465 drivers/s390/scsi/zfcp_sysfs.c 	lat->_name.counter = 0;						\
counter          2475 drivers/scsi/aacraid/aacraid.h #define	FIB_COUNTER_INCREMENT(counter)		(counter)++
counter          2477 drivers/scsi/aacraid/aacraid.h #define	FIB_COUNTER_INCREMENT(counter)
counter          2094 drivers/scsi/advansys.c #define ASC_STATS(shost, counter) ASC_STATS_ADD(shost, counter, 1)
counter          2096 drivers/scsi/advansys.c #define ASC_STATS_ADD(shost, counter, count)
counter          2098 drivers/scsi/advansys.c #define ASC_STATS_ADD(shost, counter, count) \
counter          2099 drivers/scsi/advansys.c 	(((struct asc_board *) shost_priv(shost))->asc_stats.counter += (count))
counter           426 drivers/scsi/bnx2fc/bnx2fc_io.c 	    (tgt->num_active_ios.counter  >= max_sqes) ||
counter           430 drivers/scsi/bnx2fc/bnx2fc_io.c 			tgt->num_active_ios.counter, tgt->max_sqes);
counter           485 drivers/scsi/bnx2fc/bnx2fc_io.c 	    (tgt->num_active_ios.counter  >= max_sqes) ||
counter           173 drivers/scsi/bnx2fc/bnx2fc_tgt.c 		       tgt->num_active_ios.counter);
counter           267 drivers/scsi/bnx2fc/bnx2fc_tgt.c 	while ((tgt->num_active_ios.counter != 0) && (i++ < BNX2FC_WAIT_CNT))
counter           269 drivers/scsi/bnx2fc/bnx2fc_tgt.c 	if (tgt->num_active_ios.counter != 0)
counter           272 drivers/scsi/bnx2fc/bnx2fc_tgt.c 			tgt->rdata->ids.port_id, tgt->num_active_ios.counter);
counter           298 drivers/scsi/bnx2fc/bnx2fc_tgt.c 		tgt->num_active_ios.counter);
counter           607 drivers/scsi/esas2r/esas2r_init.c 			       a->pcid->enable_cnt.counter);
counter           613 drivers/scsi/esas2r/esas2r_init.c 			       a->pcid->enable_cnt.counter);
counter           374 drivers/scsi/esas2r/esas2r_main.c 		       pcid->enable_cnt.counter);
counter           388 drivers/scsi/esas2r/esas2r_main.c 		       pcid->enable_cnt.counter);
counter          4329 drivers/scsi/lpfc/lpfc_scsi.c 	u8 counter = 0;
counter          4358 drivers/scsi/lpfc/lpfc_scsi.c 			if (++counter > 1) {
counter          1702 drivers/scsi/megaraid.c 	long counter;
counter          1704 drivers/scsi/megaraid.c 	for (counter = 0; counter < 10000; counter++) {
counter           589 drivers/scsi/megaraid/megaraid_mbox.c 	static int		counter;
counter           599 drivers/scsi/megaraid/megaraid_mbox.c 		counter++));
counter            88 drivers/scsi/qla2xxx/qla_mid.c 		    "vha->vref_count=%u timeout\n", vha->vref_count.counter);
counter           204 drivers/scsi/qla2xxx/qla_mid.c 		    __func__, base_vha->loop_state.counter,
counter           186 drivers/staging/comedi/drivers/comedi_8254.c unsigned int comedi_8254_status(struct comedi_8254 *i8254, unsigned int counter)
counter           190 drivers/staging/comedi/drivers/comedi_8254.c 	if (counter > 2)
counter           193 drivers/staging/comedi/drivers/comedi_8254.c 	cmd = I8254_CTRL_READBACK_STATUS | I8254_CTRL_READBACK_SEL_CTR(counter);
counter           196 drivers/staging/comedi/drivers/comedi_8254.c 	return __i8254_read(i8254, counter);
counter           205 drivers/staging/comedi/drivers/comedi_8254.c unsigned int comedi_8254_read(struct comedi_8254 *i8254, unsigned int counter)
counter           209 drivers/staging/comedi/drivers/comedi_8254.c 	if (counter > 2)
counter           213 drivers/staging/comedi/drivers/comedi_8254.c 	__i8254_write(i8254, I8254_CTRL_SEL_CTR(counter) | I8254_CTRL_LATCH,
counter           217 drivers/staging/comedi/drivers/comedi_8254.c 	val = __i8254_read(i8254, counter);
counter           218 drivers/staging/comedi/drivers/comedi_8254.c 	val |= (__i8254_read(i8254, counter) << 8);
counter           231 drivers/staging/comedi/drivers/comedi_8254.c 		       unsigned int counter, unsigned int val)
counter           235 drivers/staging/comedi/drivers/comedi_8254.c 	if (counter > 2)
counter           242 drivers/staging/comedi/drivers/comedi_8254.c 	__i8254_write(i8254, byte, counter);
counter           244 drivers/staging/comedi/drivers/comedi_8254.c 	__i8254_write(i8254, byte, counter);
counter           254 drivers/staging/comedi/drivers/comedi_8254.c int comedi_8254_set_mode(struct comedi_8254 *i8254, unsigned int counter,
counter           259 drivers/staging/comedi/drivers/comedi_8254.c 	if (counter > 2)
counter           264 drivers/staging/comedi/drivers/comedi_8254.c 	byte = I8254_CTRL_SEL_CTR(counter) |	/* select counter */
counter           280 drivers/staging/comedi/drivers/comedi_8254.c int comedi_8254_load(struct comedi_8254 *i8254, unsigned int counter,
counter           283 drivers/staging/comedi/drivers/comedi_8254.c 	if (counter > 2)
counter           290 drivers/staging/comedi/drivers/comedi_8254.c 	comedi_8254_set_mode(i8254, counter, mode);
counter           291 drivers/staging/comedi/drivers/comedi_8254.c 	comedi_8254_write(i8254, counter, val);
counter           472 drivers/staging/comedi/drivers/comedi_8254.c 			  unsigned int counter, bool busy)
counter           474 drivers/staging/comedi/drivers/comedi_8254.c 	if (counter < 3)
counter           475 drivers/staging/comedi/drivers/comedi_8254.c 		i8254->busy[counter] = busy;
counter           100 drivers/staging/comedi/drivers/comedi_8254.h 				unsigned int counter);
counter           101 drivers/staging/comedi/drivers/comedi_8254.h unsigned int comedi_8254_read(struct comedi_8254 *i8254, unsigned int counter);
counter           103 drivers/staging/comedi/drivers/comedi_8254.h 		       unsigned int counter, unsigned int val);
counter           106 drivers/staging/comedi/drivers/comedi_8254.h 			 unsigned int counter, unsigned int mode);
counter           108 drivers/staging/comedi/drivers/comedi_8254.h 		     unsigned int counter, unsigned int val, unsigned int mode);
counter           120 drivers/staging/comedi/drivers/comedi_8254.h 			  unsigned int counter, bool busy);
counter            98 drivers/staging/comedi/drivers/das16m1.c 	struct comedi_8254 *counter;
counter           255 drivers/staging/comedi/drivers/das16m1.c 	comedi_8254_set_mode(devpriv->counter, 1, I8254_MODE2 | I8254_BINARY);
counter           256 drivers/staging/comedi/drivers/das16m1.c 	comedi_8254_write(devpriv->counter, 1, 0);
counter           262 drivers/staging/comedi/drivers/das16m1.c 	devpriv->initial_hw_count = comedi_8254_read(devpriv->counter, 1);
counter           384 drivers/staging/comedi/drivers/das16m1.c 	hw_counter = comedi_8254_read(devpriv->counter, 1);
counter           538 drivers/staging/comedi/drivers/das16m1.c 	devpriv->counter = comedi_8254_init(dev->iobase + DAS16M1_8254_IOBASE1,
counter           540 drivers/staging/comedi/drivers/das16m1.c 	if (!devpriv->counter)
counter           607 drivers/staging/comedi/drivers/das16m1.c 		kfree(devpriv->counter);
counter           294 drivers/staging/comedi/drivers/ni_660x.c static void ni_660x_gpct_write(struct ni_gpct *counter, unsigned int bits,
counter           297 drivers/staging/comedi/drivers/ni_660x.c 	struct comedi_device *dev = counter->counter_dev->dev;
counter           299 drivers/staging/comedi/drivers/ni_660x.c 	ni_660x_write(dev, counter->chip_index, bits, reg);
counter           302 drivers/staging/comedi/drivers/ni_660x.c static unsigned int ni_660x_gpct_read(struct ni_gpct *counter,
counter           305 drivers/staging/comedi/drivers/ni_660x.c 	struct comedi_device *dev = counter->counter_dev->dev;
counter           307 drivers/staging/comedi/drivers/ni_660x.c 	return ni_660x_read(dev, counter->chip_index, reg);
counter           312 drivers/staging/comedi/drivers/ni_660x.c 					   struct ni_gpct *counter)
counter           315 drivers/staging/comedi/drivers/ni_660x.c 	unsigned int chip = counter->chip_index;
counter           319 drivers/staging/comedi/drivers/ni_660x.c 						     counter->counter_index);
counter           327 drivers/staging/comedi/drivers/ni_660x.c 					     struct ni_gpct *counter)
counter           330 drivers/staging/comedi/drivers/ni_660x.c 	unsigned int chip = counter->chip_index;
counter           338 drivers/staging/comedi/drivers/ni_660x.c 					struct ni_gpct *counter,
counter           347 drivers/staging/comedi/drivers/ni_660x.c 	ring = devpriv->ring[counter->chip_index][counter->counter_index];
counter           356 drivers/staging/comedi/drivers/ni_660x.c 	ni_tio_set_mite_channel(counter, mite_chan);
counter           357 drivers/staging/comedi/drivers/ni_660x.c 	ni_660x_set_dma_channel(dev, mite_chan->channel, counter);
counter           363 drivers/staging/comedi/drivers/ni_660x.c 					 struct ni_gpct *counter)
counter           369 drivers/staging/comedi/drivers/ni_660x.c 	if (counter->mite_chan) {
counter           370 drivers/staging/comedi/drivers/ni_660x.c 		struct mite_channel *mite_chan = counter->mite_chan;
counter           372 drivers/staging/comedi/drivers/ni_660x.c 		ni_660x_unset_dma_channel(dev, mite_chan->channel, counter);
counter           373 drivers/staging/comedi/drivers/ni_660x.c 		ni_tio_set_mite_channel(counter, NULL);
counter           381 drivers/staging/comedi/drivers/ni_660x.c 	struct ni_gpct *counter = s->private;
counter           384 drivers/staging/comedi/drivers/ni_660x.c 	retval = ni_660x_request_mite_channel(dev, counter, COMEDI_INPUT);
counter           390 drivers/staging/comedi/drivers/ni_660x.c 	ni_tio_acknowledge(counter);
counter           397 drivers/staging/comedi/drivers/ni_660x.c 	struct ni_gpct *counter = s->private;
counter           400 drivers/staging/comedi/drivers/ni_660x.c 	retval = ni_tio_cancel(counter);
counter           401 drivers/staging/comedi/drivers/ni_660x.c 	ni_660x_release_mite_channel(dev, counter);
counter           424 drivers/staging/comedi/drivers/ni_660x.c 	struct ni_gpct *counter = s->private;
counter           426 drivers/staging/comedi/drivers/ni_660x.c 	ni_tio_handle_interrupt(counter, s);
counter           458 drivers/staging/comedi/drivers/ni_660x.c 	struct ni_gpct *counter = s->private;
counter           463 drivers/staging/comedi/drivers/ni_660x.c 	mite_sync_dma(counter->mite_chan, s);
counter           472 drivers/staging/comedi/drivers/ni_660x.c 	struct ni_gpct *counter = s->private;
counter           476 drivers/staging/comedi/drivers/ni_660x.c 	ring = devpriv->ring[counter->chip_index][counter->counter_index];
counter          1154 drivers/staging/comedi/drivers/ni_660x.c 			struct ni_gpct *counter = &gpct_dev->counters[i];
counter          1171 drivers/staging/comedi/drivers/ni_660x.c 			s->private	= counter;
counter          1173 drivers/staging/comedi/drivers/ni_660x.c 			ni_tio_init_counter(counter);
counter            25 drivers/staging/comedi/drivers/ni_labpc.h 	struct comedi_8254 *counter;
counter           254 drivers/staging/comedi/drivers/ni_labpc_common.c 	comedi_8254_set_mode(devpriv->counter, 0, I8254_MODE2 | I8254_BINARY);
counter           642 drivers/staging/comedi/drivers/ni_labpc_common.c 		comedi_8254_load(devpriv->counter, 1,
counter           646 drivers/staging/comedi/drivers/ni_labpc_common.c 		comedi_8254_set_mode(devpriv->counter, 1,
counter           696 drivers/staging/comedi/drivers/ni_labpc_common.c 		struct comedi_8254 *counter = devpriv->counter;
counter           705 drivers/staging/comedi/drivers/ni_labpc_common.c 		comedi_8254_set_mode(counter, 0, I8254_MODE2 | I8254_BINARY);
counter           707 drivers/staging/comedi/drivers/ni_labpc_common.c 			comedi_8254_write(counter, 0, pacer->divisor);
counter          1230 drivers/staging/comedi/drivers/ni_labpc_common.c 		devpriv->counter = comedi_8254_mm_init(dev->mmio +
counter          1238 drivers/staging/comedi/drivers/ni_labpc_common.c 		devpriv->counter = comedi_8254_init(dev->iobase +
counter          1243 drivers/staging/comedi/drivers/ni_labpc_common.c 	if (!dev->pacer || !devpriv->counter)
counter          1347 drivers/staging/comedi/drivers/ni_labpc_common.c 		kfree(devpriv->counter);
counter           618 drivers/staging/comedi/drivers/ni_mio_common.c 	struct ni_gpct *counter = &devpriv->counter_dev->counters[gpct_index];
counter           633 drivers/staging/comedi/drivers/ni_mio_common.c 	ni_tio_set_mite_channel(counter, mite_chan);
counter          4005 drivers/staging/comedi/drivers/ni_mio_common.c static void ni_gpct_write_register(struct ni_gpct *counter, unsigned int bits,
counter          4008 drivers/staging/comedi/drivers/ni_mio_common.c 	struct comedi_device *dev = counter->counter_dev->dev;
counter          4051 drivers/staging/comedi/drivers/ni_mio_common.c static unsigned int ni_gpct_read_register(struct ni_gpct *counter,
counter          4054 drivers/staging/comedi/drivers/ni_mio_common.c 	struct comedi_device *dev = counter->counter_dev->dev;
counter          5855 drivers/staging/comedi/drivers/ni_mio_common.c 	struct ni_gpct *counter = s->private;
counter          5858 drivers/staging/comedi/drivers/ni_mio_common.c 	retval = ni_request_gpct_mite_channel(dev, counter->counter_index,
counter          5865 drivers/staging/comedi/drivers/ni_mio_common.c 	ni_tio_acknowledge(counter);
counter          5866 drivers/staging/comedi/drivers/ni_mio_common.c 	ni_e_series_enable_second_irq(dev, counter->counter_index, 1);
counter          5873 drivers/staging/comedi/drivers/ni_mio_common.c 	struct ni_gpct *counter = s->private;
counter          5876 drivers/staging/comedi/drivers/ni_mio_common.c 	retval = ni_tio_cancel(counter);
counter          5877 drivers/staging/comedi/drivers/ni_mio_common.c 	ni_e_series_enable_second_irq(dev, counter->counter_index, 0);
counter          5878 drivers/staging/comedi/drivers/ni_mio_common.c 	ni_release_gpct_mite_channel(dev, counter->counter_index);
counter           149 drivers/staging/comedi/drivers/ni_tio.c void ni_tio_write(struct ni_gpct *counter, unsigned int value,
counter           153 drivers/staging/comedi/drivers/ni_tio.c 		counter->counter_dev->write(counter, value, reg);
counter           162 drivers/staging/comedi/drivers/ni_tio.c unsigned int ni_tio_read(struct ni_gpct *counter, enum ni_gpct_register reg)
counter           165 drivers/staging/comedi/drivers/ni_tio.c 		return counter->counter_dev->read(counter, reg);
counter           170 drivers/staging/comedi/drivers/ni_tio.c static void ni_tio_reset_count_and_disarm(struct ni_gpct *counter)
counter           172 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter           174 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_write(counter, GI_RESET(cidx), NITIO_RESET_REG(cidx));
counter           177 drivers/staging/comedi/drivers/ni_tio.c static int ni_tio_clock_period_ps(const struct ni_gpct *counter,
counter           201 drivers/staging/comedi/drivers/ni_tio.c 		*period_ps = counter->clock_period_ps;
counter           221 drivers/staging/comedi/drivers/ni_tio.c static void ni_tio_set_bits_transient(struct ni_gpct *counter,
counter           226 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter           227 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int chip = counter->chip_index;
counter           236 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_write(counter, regs[reg] | transient, reg);
counter           252 drivers/staging/comedi/drivers/ni_tio.c void ni_tio_set_bits(struct ni_gpct *counter, enum ni_gpct_register reg,
counter           255 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits_transient(counter, reg, mask, value, 0x0);
counter           268 drivers/staging/comedi/drivers/ni_tio.c unsigned int ni_tio_get_soft_copy(const struct ni_gpct *counter,
counter           271 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter           272 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int chip = counter->chip_index;
counter           285 drivers/staging/comedi/drivers/ni_tio.c static unsigned int ni_tio_clock_src_modifiers(const struct ni_gpct *counter)
counter           287 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter           288 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter           290 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_get_soft_copy(counter, NITIO_CNT_MODE_REG(cidx));
counter           293 drivers/staging/comedi/drivers/ni_tio.c 	if (ni_tio_get_soft_copy(counter, NITIO_INPUT_SEL_REG(cidx)) &
counter           303 drivers/staging/comedi/drivers/ni_tio.c static int ni_m_series_clock_src_select(const struct ni_gpct *counter,
counter           306 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter           307 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter           308 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int chip = counter->chip_index;
counter           314 drivers/staging/comedi/drivers/ni_tio.c 	src = GI_BITS_TO_SRC(ni_tio_get_soft_copy(counter,
counter           365 drivers/staging/comedi/drivers/ni_tio.c 	clock_source |= ni_tio_clock_src_modifiers(counter);
counter           370 drivers/staging/comedi/drivers/ni_tio.c static int ni_660x_clock_src_select(const struct ni_gpct *counter,
counter           374 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter           378 drivers/staging/comedi/drivers/ni_tio.c 	src = GI_BITS_TO_SRC(ni_tio_get_soft_copy(counter,
counter           423 drivers/staging/comedi/drivers/ni_tio.c 	clock_source |= ni_tio_clock_src_modifiers(counter);
counter           428 drivers/staging/comedi/drivers/ni_tio.c static int ni_tio_generic_clock_src_select(const struct ni_gpct *counter,
counter           431 drivers/staging/comedi/drivers/ni_tio.c 	switch (counter->counter_dev->variant) {
counter           435 drivers/staging/comedi/drivers/ni_tio.c 		return ni_m_series_clock_src_select(counter, clk_src);
counter           437 drivers/staging/comedi/drivers/ni_tio.c 		return ni_660x_clock_src_select(counter, clk_src);
counter           441 drivers/staging/comedi/drivers/ni_tio.c static void ni_tio_set_sync_mode(struct ni_gpct *counter)
counter           443 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter           444 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter           469 drivers/staging/comedi/drivers/ni_tio.c 	mode = ni_tio_get_soft_copy(counter, reg);
counter           482 drivers/staging/comedi/drivers/ni_tio.c 	ret = ni_tio_generic_clock_src_select(counter, &clk_src);
counter           485 drivers/staging/comedi/drivers/ni_tio.c 	ret = ni_tio_clock_period_ps(counter, clk_src, &ps);
counter           495 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, reg, mask, bits);
counter           498 drivers/staging/comedi/drivers/ni_tio.c static int ni_tio_set_counter_mode(struct ni_gpct *counter, unsigned int mode)
counter           500 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter           501 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter           528 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_MODE_REG(cidx),
counter           538 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_bits(counter, NITIO_CNT_MODE_REG(cidx),
counter           541 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_sync_mode(counter);
counter           544 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_CMD_REG(cidx), GI_CNT_DIR_MASK,
counter           551 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_INPUT_SEL_REG(cidx),
counter           558 drivers/staging/comedi/drivers/ni_tio.c int ni_tio_arm(struct ni_gpct *counter, bool arm, unsigned int start_trigger)
counter           560 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter           561 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter           604 drivers/staging/comedi/drivers/ni_tio.c 			ni_tio_set_bits(counter, NITIO_CNT_MODE_REG(cidx),
counter           609 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits_transient(counter, NITIO_CMD_REG(cidx),
counter           723 drivers/staging/comedi/drivers/ni_tio.c static void ni_tio_set_source_subselect(struct ni_gpct *counter,
counter           726 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter           727 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter           728 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int chip = counter->chip_index;
counter           748 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_write(counter, counter_dev->regs[chip][second_gate_reg],
counter           752 drivers/staging/comedi/drivers/ni_tio.c static int ni_tio_set_clock_src(struct ni_gpct *counter,
counter           756 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter           757 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter           781 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_INPUT_SEL_REG(cidx),
counter           783 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_source_subselect(counter, clock_source);
counter           799 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_bits(counter, NITIO_CNT_MODE_REG(cidx),
counter           803 drivers/staging/comedi/drivers/ni_tio.c 	counter->clock_period_ps = period_ns * 1000;
counter           804 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_sync_mode(counter);
counter           808 drivers/staging/comedi/drivers/ni_tio.c static int ni_tio_get_clock_src(struct ni_gpct *counter,
counter           815 drivers/staging/comedi/drivers/ni_tio.c 	ret = ni_tio_generic_clock_src_select(counter, clock_source);
counter           818 drivers/staging/comedi/drivers/ni_tio.c 	ret = ni_tio_clock_period_ps(counter, *clock_source, &temp64);
counter           826 drivers/staging/comedi/drivers/ni_tio.c static inline void ni_tio_set_gate_raw(struct ni_gpct *counter,
counter           829 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_INPUT_SEL_REG(counter->counter_index),
counter           833 drivers/staging/comedi/drivers/ni_tio.c static inline void ni_tio_set_gate2_raw(struct ni_gpct *counter,
counter           836 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_GATE2_REG(counter->counter_index),
counter           841 drivers/staging/comedi/drivers/ni_tio.c static inline void ni_tio_set_gate_mode(struct ni_gpct *counter,
counter           860 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_MODE_REG(counter->counter_index),
counter           872 drivers/staging/comedi/drivers/ni_tio.c static inline void ni_tio_set_gate2_mode(struct ni_gpct *counter,
counter           892 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_GATE2_REG(counter->counter_index),
counter           896 drivers/staging/comedi/drivers/ni_tio.c static int ni_660x_set_gate(struct ni_gpct *counter, unsigned int gate_source)
counter           931 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_gate_raw(counter, gate_sel);
counter           935 drivers/staging/comedi/drivers/ni_tio.c static int ni_m_set_gate(struct ni_gpct *counter, unsigned int gate_source)
counter           971 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_gate_raw(counter, gate_sel);
counter           975 drivers/staging/comedi/drivers/ni_tio.c static int ni_660x_set_gate2(struct ni_gpct *counter, unsigned int gate_source)
counter          1011 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_gate2_raw(counter, gate2_sel);
counter          1015 drivers/staging/comedi/drivers/ni_tio.c static int ni_m_set_gate2(struct ni_gpct *counter, unsigned int gate_source)
counter          1021 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_gate2_raw(counter, gate_source);
counter          1025 drivers/staging/comedi/drivers/ni_tio.c int ni_tio_set_gate_src_raw(struct ni_gpct *counter,
counter          1028 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter          1033 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_gate_mode(counter, NI_GPCT_DISABLED_GATE_SELECT);
counter          1035 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_gate_raw(counter, src);
counter          1037 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_gate_mode(counter, src);
counter          1044 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_gate2_mode(counter, NI_GPCT_DISABLED_GATE_SELECT);
counter          1046 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_gate2_raw(counter, src);
counter          1048 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_gate2_mode(counter, src);
counter          1057 drivers/staging/comedi/drivers/ni_tio.c int ni_tio_set_gate_src(struct ni_gpct *counter,
counter          1060 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter          1072 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_gate_mode(counter, NI_GPCT_DISABLED_GATE_SELECT);
counter          1077 drivers/staging/comedi/drivers/ni_tio.c 			ret = ni_m_set_gate(counter, chan);
counter          1080 drivers/staging/comedi/drivers/ni_tio.c 			ret = ni_660x_set_gate(counter, chan);
counter          1088 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_gate_mode(counter, src);
counter          1095 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_gate2_mode(counter, NI_GPCT_DISABLED_GATE_SELECT);
counter          1099 drivers/staging/comedi/drivers/ni_tio.c 			ret = ni_m_set_gate2(counter, chan);
counter          1102 drivers/staging/comedi/drivers/ni_tio.c 			ret = ni_660x_set_gate2(counter, chan);
counter          1110 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_gate2_mode(counter, src);
counter          1119 drivers/staging/comedi/drivers/ni_tio.c static int ni_tio_set_other_src(struct ni_gpct *counter, unsigned int index,
counter          1122 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter          1123 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter          1124 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int chip = counter->chip_index;
counter          1152 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_write(counter, counter_dev->regs[chip][abz_reg], abz_reg);
counter          1156 drivers/staging/comedi/drivers/ni_tio.c static int ni_tio_get_other_src(struct ni_gpct *counter, unsigned int index,
counter          1159 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter          1160 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter          1185 drivers/staging/comedi/drivers/ni_tio.c 	*source = (ni_tio_get_soft_copy(counter, abz_reg) >> shift) & mask;
counter          1343 drivers/staging/comedi/drivers/ni_tio.c static inline unsigned int ni_tio_get_gate_mode(struct ni_gpct *counter)
counter          1346 drivers/staging/comedi/drivers/ni_tio.c 		counter, NITIO_MODE_REG(counter->counter_index));
counter          1359 drivers/staging/comedi/drivers/ni_tio.c static inline unsigned int ni_tio_get_gate2_mode(struct ni_gpct *counter)
counter          1362 drivers/staging/comedi/drivers/ni_tio.c 		counter, NITIO_GATE2_REG(counter->counter_index));
counter          1373 drivers/staging/comedi/drivers/ni_tio.c static inline unsigned int ni_tio_get_gate_val(struct ni_gpct *counter)
counter          1375 drivers/staging/comedi/drivers/ni_tio.c 	return GI_BITS_TO_GATE(ni_tio_get_soft_copy(counter,
counter          1376 drivers/staging/comedi/drivers/ni_tio.c 		NITIO_INPUT_SEL_REG(counter->counter_index)));
counter          1379 drivers/staging/comedi/drivers/ni_tio.c static inline unsigned int ni_tio_get_gate2_val(struct ni_gpct *counter)
counter          1381 drivers/staging/comedi/drivers/ni_tio.c 	return GI_BITS_TO_GATE2(ni_tio_get_soft_copy(counter,
counter          1382 drivers/staging/comedi/drivers/ni_tio.c 		NITIO_GATE2_REG(counter->counter_index)));
counter          1385 drivers/staging/comedi/drivers/ni_tio.c static int ni_tio_get_gate_src(struct ni_gpct *counter, unsigned int gate_index,
counter          1393 drivers/staging/comedi/drivers/ni_tio.c 		gate = ni_tio_get_gate_val(counter);
counter          1394 drivers/staging/comedi/drivers/ni_tio.c 		switch (counter->counter_dev->variant) {
counter          1406 drivers/staging/comedi/drivers/ni_tio.c 		*gate_source |= ni_tio_get_gate_mode(counter);
counter          1409 drivers/staging/comedi/drivers/ni_tio.c 		gate = ni_tio_get_gate2_val(counter);
counter          1410 drivers/staging/comedi/drivers/ni_tio.c 		switch (counter->counter_dev->variant) {
counter          1422 drivers/staging/comedi/drivers/ni_tio.c 		*gate_source |= ni_tio_get_gate2_mode(counter);
counter          1430 drivers/staging/comedi/drivers/ni_tio.c static int ni_tio_get_gate_src_raw(struct ni_gpct *counter,
counter          1436 drivers/staging/comedi/drivers/ni_tio.c 		*gate_source = ni_tio_get_gate_mode(counter)
counter          1437 drivers/staging/comedi/drivers/ni_tio.c 			     | ni_tio_get_gate_val(counter);
counter          1440 drivers/staging/comedi/drivers/ni_tio.c 		*gate_source = ni_tio_get_gate2_mode(counter)
counter          1441 drivers/staging/comedi/drivers/ni_tio.c 			     | ni_tio_get_gate2_val(counter);
counter          1454 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct *counter = s->private;
counter          1455 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter          1461 drivers/staging/comedi/drivers/ni_tio.c 		ret = ni_tio_set_counter_mode(counter, data[1]);
counter          1464 drivers/staging/comedi/drivers/ni_tio.c 		ret = ni_tio_arm(counter, true, data[1]);
counter          1467 drivers/staging/comedi/drivers/ni_tio.c 		ret = ni_tio_arm(counter, false, 0);
counter          1471 drivers/staging/comedi/drivers/ni_tio.c 		status = ni_tio_read(counter, NITIO_SHARED_STATUS_REG(cidx));
counter          1480 drivers/staging/comedi/drivers/ni_tio.c 		ret = ni_tio_set_clock_src(counter, data[1], data[2]);
counter          1483 drivers/staging/comedi/drivers/ni_tio.c 		ret = ni_tio_get_clock_src(counter, &data[1], &data[2]);
counter          1486 drivers/staging/comedi/drivers/ni_tio.c 		ret = ni_tio_set_gate_src(counter, data[1], data[2]);
counter          1489 drivers/staging/comedi/drivers/ni_tio.c 		ret = ni_tio_get_gate_src(counter, data[1], &data[2]);
counter          1492 drivers/staging/comedi/drivers/ni_tio.c 		ret = ni_tio_set_other_src(counter, data[1], data[2]);
counter          1495 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_reset_count_and_disarm(counter);
counter          1518 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct *counter = &counter_dev->counters[ctr_index];
counter          1523 drivers/staging/comedi/drivers/ni_tio.c 		ret = ni_tio_get_other_src(counter, dest, &reg);
counter          1525 drivers/staging/comedi/drivers/ni_tio.c 		ret = ni_tio_get_gate_src_raw(counter, 0, &reg);
counter          1527 drivers/staging/comedi/drivers/ni_tio.c 		ret = ni_tio_get_gate_src_raw(counter, 1, &reg);
counter          1560 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct *counter = &counter_dev->counters[ctr_index];
counter          1564 drivers/staging/comedi/drivers/ni_tio.c 		ret = ni_tio_set_other_src(counter, dest, reg);
counter          1566 drivers/staging/comedi/drivers/ni_tio.c 		ret = ni_tio_set_gate_src_raw(counter, 0, reg);
counter          1568 drivers/staging/comedi/drivers/ni_tio.c 		ret = ni_tio_set_gate_src_raw(counter, 1, reg);
counter          1608 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct *counter = s->private;
counter          1609 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter          1612 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_CMD_REG(cidx), GI_SAVE_TRACE, 0);
counter          1613 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_CMD_REG(cidx),
counter          1625 drivers/staging/comedi/drivers/ni_tio.c 	val = ni_tio_read(counter, NITIO_SW_SAVE_REG(cidx));
counter          1626 drivers/staging/comedi/drivers/ni_tio.c 	if (val != ni_tio_read(counter, NITIO_SW_SAVE_REG(cidx)))
counter          1627 drivers/staging/comedi/drivers/ni_tio.c 		val = ni_tio_read(counter, NITIO_SW_SAVE_REG(cidx));
counter          1637 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct *counter = s->private;
counter          1638 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter          1640 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter          1641 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int chip = counter->chip_index;
counter          1663 drivers/staging/comedi/drivers/ni_tio.c static unsigned int ni_tio_next_load_register(struct ni_gpct *counter)
counter          1665 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter          1666 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int bits = ni_tio_read(counter, NITIO_SHARED_STATUS_REG(cidx));
counter          1678 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct *counter = s->private;
counter          1679 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter          1681 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter          1682 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int chip = counter->chip_index;
counter          1700 drivers/staging/comedi/drivers/ni_tio.c 		load_reg = ni_tio_next_load_register(counter);
counter          1701 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_write(counter, load_val, load_reg);
counter          1702 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_bits_transient(counter, NITIO_CMD_REG(cidx),
counter          1705 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_write(counter, counter_dev->regs[chip][load_reg],
counter          1710 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_write(counter, load_val, NITIO_LOADA_REG(cidx));
counter          1714 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_write(counter, load_val, NITIO_LOADB_REG(cidx));
counter          1723 drivers/staging/comedi/drivers/ni_tio.c void ni_tio_init_counter(struct ni_gpct *counter)
counter          1725 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter          1726 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int cidx = counter->counter_index;
counter          1727 drivers/staging/comedi/drivers/ni_tio.c 	unsigned int chip = counter->chip_index;
counter          1729 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_reset_count_and_disarm(counter);
counter          1733 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_write(counter, 0x0, NITIO_AUTO_INC_REG(cidx));
counter          1735 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_CMD_REG(cidx),
counter          1738 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_MODE_REG(cidx), ~0, 0);
counter          1741 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_write(counter, 0x0, NITIO_LOADA_REG(cidx));
counter          1744 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_write(counter, 0x0, NITIO_LOADB_REG(cidx));
counter          1746 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_INPUT_SEL_REG(cidx), ~0, 0);
counter          1749 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_set_bits(counter, NITIO_CNT_MODE_REG(cidx), ~0, 0);
counter          1753 drivers/staging/comedi/drivers/ni_tio.c 		ni_tio_write(counter, 0x0, NITIO_GATE2_REG(cidx));
counter          1756 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_DMA_CFG_REG(cidx), ~0, 0x0);
counter          1758 drivers/staging/comedi/drivers/ni_tio.c 	ni_tio_set_bits(counter, NITIO_INT_ENA_REG(cidx), ~0, 0x0);
counter          1764 drivers/staging/comedi/drivers/ni_tio.c 			 void (*write)(struct ni_gpct *counter,
counter          1767 drivers/staging/comedi/drivers/ni_tio.c 			 unsigned int (*read)(struct ni_gpct *counter,
counter          1775 drivers/staging/comedi/drivers/ni_tio.c 	struct ni_gpct *counter;
counter          1796 drivers/staging/comedi/drivers/ni_tio.c 	counter_dev->counters = kcalloc(num_counters, sizeof(*counter),
counter          1808 drivers/staging/comedi/drivers/ni_tio.c 		counter = &counter_dev->counters[i];
counter          1809 drivers/staging/comedi/drivers/ni_tio.c 		counter->counter_dev = counter_dev;
counter          1810 drivers/staging/comedi/drivers/ni_tio.c 		counter->chip_index = i / counters_per_chip;
counter          1811 drivers/staging/comedi/drivers/ni_tio.c 		counter->counter_index = i % counters_per_chip;
counter          1812 drivers/staging/comedi/drivers/ni_tio.c 		spin_lock_init(&counter->lock);
counter           104 drivers/staging/comedi/drivers/ni_tio.h 	void (*write)(struct ni_gpct *counter, unsigned int value,
counter           106 drivers/staging/comedi/drivers/ni_tio.h 	unsigned int (*read)(struct ni_gpct *counter, enum ni_gpct_register);
counter           118 drivers/staging/comedi/drivers/ni_tio.h 			 void (*write)(struct ni_gpct *counter,
counter           121 drivers/staging/comedi/drivers/ni_tio.h 			 unsigned int (*read)(struct ni_gpct *counter,
counter           128 drivers/staging/comedi/drivers/ni_tio.h void ni_tio_init_counter(struct ni_gpct *counter);
counter           138 drivers/staging/comedi/drivers/ni_tio.h int ni_tio_cancel(struct ni_gpct *counter);
counter           139 drivers/staging/comedi/drivers/ni_tio.h void ni_tio_handle_interrupt(struct ni_gpct *counter,
counter           141 drivers/staging/comedi/drivers/ni_tio.h void ni_tio_set_mite_channel(struct ni_gpct *counter,
counter           143 drivers/staging/comedi/drivers/ni_tio.h void ni_tio_acknowledge(struct ni_gpct *counter);
counter           154 drivers/staging/comedi/drivers/ni_tio_internal.h void ni_tio_write(struct ni_gpct *counter, unsigned int value,
counter           156 drivers/staging/comedi/drivers/ni_tio_internal.h unsigned int ni_tio_read(struct ni_gpct *counter, enum ni_gpct_register);
counter           165 drivers/staging/comedi/drivers/ni_tio_internal.h void ni_tio_set_bits(struct ni_gpct *counter, enum ni_gpct_register reg,
counter           167 drivers/staging/comedi/drivers/ni_tio_internal.h unsigned int ni_tio_get_soft_copy(const struct ni_gpct *counter,
counter           170 drivers/staging/comedi/drivers/ni_tio_internal.h int ni_tio_arm(struct ni_gpct *counter, bool arm, unsigned int start_trigger);
counter           171 drivers/staging/comedi/drivers/ni_tio_internal.h int ni_tio_set_gate_src(struct ni_gpct *counter, unsigned int gate,
counter           173 drivers/staging/comedi/drivers/ni_tio_internal.h int ni_tio_set_gate_src_raw(struct ni_gpct *counter, unsigned int gate,
counter            38 drivers/staging/comedi/drivers/ni_tiocmd.c static void ni_tio_configure_dma(struct ni_gpct *counter,
counter            41 drivers/staging/comedi/drivers/ni_tiocmd.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter            42 drivers/staging/comedi/drivers/ni_tiocmd.c 	unsigned int cidx = counter->counter_index;
counter            55 drivers/staging/comedi/drivers/ni_tiocmd.c 	ni_tio_set_bits(counter, NITIO_INPUT_SEL_REG(cidx), mask, bits);
counter            69 drivers/staging/comedi/drivers/ni_tiocmd.c 		ni_tio_set_bits(counter, NITIO_DMA_CFG_REG(cidx), mask, bits);
counter            78 drivers/staging/comedi/drivers/ni_tiocmd.c 	struct ni_gpct *counter = s->private;
counter            86 drivers/staging/comedi/drivers/ni_tiocmd.c 	spin_lock_irqsave(&counter->lock, flags);
counter            87 drivers/staging/comedi/drivers/ni_tiocmd.c 	if (counter->mite_chan)
counter            88 drivers/staging/comedi/drivers/ni_tiocmd.c 		mite_dma_arm(counter->mite_chan);
counter            91 drivers/staging/comedi/drivers/ni_tiocmd.c 	spin_unlock_irqrestore(&counter->lock, flags);
counter            94 drivers/staging/comedi/drivers/ni_tiocmd.c 	ret = ni_tio_arm(counter, true, NI_GPCT_ARM_IMMEDIATE);
counter           102 drivers/staging/comedi/drivers/ni_tiocmd.c 	struct ni_gpct *counter = s->private;
counter           103 drivers/staging/comedi/drivers/ni_tiocmd.c 	struct ni_gpct_device *counter_dev = counter->counter_dev;
counter           106 drivers/staging/comedi/drivers/ni_tiocmd.c 	unsigned int cidx = counter->counter_index;
counter           113 drivers/staging/comedi/drivers/ni_tiocmd.c 	counter->mite_chan->dir = COMEDI_INPUT;
counter           117 drivers/staging/comedi/drivers/ni_tiocmd.c 		mite_prep_dma(counter->mite_chan, 32, 32);
counter           120 drivers/staging/comedi/drivers/ni_tiocmd.c 		mite_prep_dma(counter->mite_chan, 16, 32);
counter           123 drivers/staging/comedi/drivers/ni_tiocmd.c 	ni_tio_set_bits(counter, NITIO_CMD_REG(cidx), GI_SAVE_TRACE, 0);
counter           124 drivers/staging/comedi/drivers/ni_tiocmd.c 	ni_tio_configure_dma(counter, true, true);
counter           130 drivers/staging/comedi/drivers/ni_tiocmd.c 		mite_dma_arm(counter->mite_chan);
counter           133 drivers/staging/comedi/drivers/ni_tiocmd.c 			ret = ni_tio_arm(counter, true, NI_GPCT_ARM_IMMEDIATE);
counter           145 drivers/staging/comedi/drivers/ni_tiocmd.c 			ret = ni_tio_arm(counter, true, reg);
counter           153 drivers/staging/comedi/drivers/ni_tiocmd.c 	struct ni_gpct *counter = s->private;
counter           155 drivers/staging/comedi/drivers/ni_tiocmd.c 	dev_err(counter->counter_dev->dev->class_dev,
counter           163 drivers/staging/comedi/drivers/ni_tiocmd.c 	struct ni_gpct *counter = s->private;
counter           164 drivers/staging/comedi/drivers/ni_tiocmd.c 	unsigned int cidx = counter->counter_index;
counter           166 drivers/staging/comedi/drivers/ni_tiocmd.c 		counter->counter_dev->routing_tables;
counter           186 drivers/staging/comedi/drivers/ni_tiocmd.c 			retval = ni_tio_set_gate_src_raw(counter, 0, reg);
counter           193 drivers/staging/comedi/drivers/ni_tiocmd.c 			retval = ni_tio_set_gate_src(counter, 0, gate_source);
counter           197 drivers/staging/comedi/drivers/ni_tiocmd.c 		ni_tio_set_bits(counter, NITIO_INT_ENA_REG(cidx),
counter           206 drivers/staging/comedi/drivers/ni_tiocmd.c 	struct ni_gpct *counter = s->private;
counter           212 drivers/staging/comedi/drivers/ni_tiocmd.c 	spin_lock_irqsave(&counter->lock, flags);
counter           213 drivers/staging/comedi/drivers/ni_tiocmd.c 	if (!counter->mite_chan) {
counter           214 drivers/staging/comedi/drivers/ni_tiocmd.c 		dev_err(counter->counter_dev->dev->class_dev,
counter           216 drivers/staging/comedi/drivers/ni_tiocmd.c 		dev_err(counter->counter_dev->dev->class_dev,
counter           228 drivers/staging/comedi/drivers/ni_tiocmd.c 	spin_unlock_irqrestore(&counter->lock, flags);
counter           237 drivers/staging/comedi/drivers/ni_tiocmd.c 	struct ni_gpct *counter = s->private;
counter           238 drivers/staging/comedi/drivers/ni_tiocmd.c 	unsigned int cidx = counter->counter_index;
counter           240 drivers/staging/comedi/drivers/ni_tiocmd.c 		counter->counter_dev->routing_tables;
counter           247 drivers/staging/comedi/drivers/ni_tiocmd.c 	if (ni_tio_counting_mode_registers_present(counter->counter_dev))
counter           332 drivers/staging/comedi/drivers/ni_tiocmd.c int ni_tio_cancel(struct ni_gpct *counter)
counter           334 drivers/staging/comedi/drivers/ni_tiocmd.c 	unsigned int cidx = counter->counter_index;
counter           337 drivers/staging/comedi/drivers/ni_tiocmd.c 	ni_tio_arm(counter, false, 0);
counter           338 drivers/staging/comedi/drivers/ni_tiocmd.c 	spin_lock_irqsave(&counter->lock, flags);
counter           339 drivers/staging/comedi/drivers/ni_tiocmd.c 	if (counter->mite_chan)
counter           340 drivers/staging/comedi/drivers/ni_tiocmd.c 		mite_dma_disarm(counter->mite_chan);
counter           341 drivers/staging/comedi/drivers/ni_tiocmd.c 	spin_unlock_irqrestore(&counter->lock, flags);
counter           342 drivers/staging/comedi/drivers/ni_tiocmd.c 	ni_tio_configure_dma(counter, false, false);
counter           344 drivers/staging/comedi/drivers/ni_tiocmd.c 	ni_tio_set_bits(counter, NITIO_INT_ENA_REG(cidx),
counter           350 drivers/staging/comedi/drivers/ni_tiocmd.c static int should_ack_gate(struct ni_gpct *counter)
counter           355 drivers/staging/comedi/drivers/ni_tiocmd.c 	switch (counter->counter_dev->variant) {
counter           370 drivers/staging/comedi/drivers/ni_tiocmd.c 		spin_lock_irqsave(&counter->lock, flags);
counter           372 drivers/staging/comedi/drivers/ni_tiocmd.c 			if (!counter->mite_chan ||
counter           373 drivers/staging/comedi/drivers/ni_tiocmd.c 			    counter->mite_chan->dir != COMEDI_INPUT ||
counter           374 drivers/staging/comedi/drivers/ni_tiocmd.c 			    (mite_done(counter->mite_chan))) {
counter           378 drivers/staging/comedi/drivers/ni_tiocmd.c 		spin_unlock_irqrestore(&counter->lock, flags);
counter           384 drivers/staging/comedi/drivers/ni_tiocmd.c static void ni_tio_acknowledge_and_confirm(struct ni_gpct *counter,
counter           389 drivers/staging/comedi/drivers/ni_tiocmd.c 	unsigned int cidx = counter->counter_index;
counter           390 drivers/staging/comedi/drivers/ni_tiocmd.c 	const unsigned short gxx_status = ni_tio_read(counter,
counter           392 drivers/staging/comedi/drivers/ni_tiocmd.c 	const unsigned short gi_status = ni_tio_read(counter,
counter           411 drivers/staging/comedi/drivers/ni_tiocmd.c 			if (counter->counter_dev->variant !=
counter           424 drivers/staging/comedi/drivers/ni_tiocmd.c 		if (should_ack_gate(counter))
counter           428 drivers/staging/comedi/drivers/ni_tiocmd.c 		ni_tio_write(counter, ack, NITIO_INT_ACK_REG(cidx));
counter           429 drivers/staging/comedi/drivers/ni_tiocmd.c 	if (ni_tio_get_soft_copy(counter, NITIO_MODE_REG(cidx)) &
counter           431 drivers/staging/comedi/drivers/ni_tiocmd.c 		if (ni_tio_read(counter, NITIO_STATUS2_REG(cidx)) &
counter           433 drivers/staging/comedi/drivers/ni_tiocmd.c 			dev_info(counter->counter_dev->dev->class_dev,
counter           442 drivers/staging/comedi/drivers/ni_tiocmd.c void ni_tio_acknowledge(struct ni_gpct *counter)
counter           444 drivers/staging/comedi/drivers/ni_tiocmd.c 	ni_tio_acknowledge_and_confirm(counter, NULL, NULL, NULL);
counter           448 drivers/staging/comedi/drivers/ni_tiocmd.c void ni_tio_handle_interrupt(struct ni_gpct *counter,
counter           451 drivers/staging/comedi/drivers/ni_tiocmd.c 	unsigned int cidx = counter->counter_index;
counter           457 drivers/staging/comedi/drivers/ni_tiocmd.c 	ni_tio_acknowledge_and_confirm(counter, &gate_error, &tc_error,
counter           460 drivers/staging/comedi/drivers/ni_tiocmd.c 		dev_notice(counter->counter_dev->dev->class_dev,
counter           466 drivers/staging/comedi/drivers/ni_tiocmd.c 	switch (counter->counter_dev->variant) {
counter           469 drivers/staging/comedi/drivers/ni_tiocmd.c 		if (ni_tio_read(counter, NITIO_DMA_STATUS_REG(cidx)) &
counter           471 drivers/staging/comedi/drivers/ni_tiocmd.c 			dev_notice(counter->counter_dev->dev->class_dev,
counter           479 drivers/staging/comedi/drivers/ni_tiocmd.c 	spin_lock_irqsave(&counter->lock, flags);
counter           480 drivers/staging/comedi/drivers/ni_tiocmd.c 	if (counter->mite_chan)
counter           481 drivers/staging/comedi/drivers/ni_tiocmd.c 		mite_ack_linkc(counter->mite_chan, s, true);
counter           482 drivers/staging/comedi/drivers/ni_tiocmd.c 	spin_unlock_irqrestore(&counter->lock, flags);
counter           486 drivers/staging/comedi/drivers/ni_tiocmd.c void ni_tio_set_mite_channel(struct ni_gpct *counter,
counter           491 drivers/staging/comedi/drivers/ni_tiocmd.c 	spin_lock_irqsave(&counter->lock, flags);
counter           492 drivers/staging/comedi/drivers/ni_tiocmd.c 	counter->mite_chan = mite_chan;
counter           493 drivers/staging/comedi/drivers/ni_tiocmd.c 	spin_unlock_irqrestore(&counter->lock, flags);
counter           244 drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h 	__le64 counter;
counter           624 drivers/staging/fsl-dpaa2/ethsw/dpsw.c 			u64 *counter)
counter           646 drivers/staging/fsl-dpaa2/ethsw/dpsw.c 	*counter = le64_to_cpu(rsp_params->counter);
counter           361 drivers/staging/fsl-dpaa2/ethsw/dpsw.h 			u64 *counter);
counter           389 drivers/staging/ks7010/ks_hostif.c 				mic_failure->counter = 0;
counter           392 drivers/staging/ks7010/ks_hostif.c 				mic_failure->counter =
counter           395 drivers/staging/ks7010/ks_hostif.c 				if (!mic_failure->counter)
counter           396 drivers/staging/ks7010/ks_hostif.c 					mic_failure->counter = 1;
counter          2089 drivers/staging/ks7010/ks_hostif.c 					    0 : priv->wpa.mic_failure.counter);
counter           333 drivers/staging/ks7010/ks_wlan.h 	u16 counter;	/* 1sec counter 0-60 */
counter            62 drivers/staging/media/imx/imx-media-fim.c 	int               counter;
counter           124 drivers/staging/media/imx/imx-media-fim.c 	fim->counter = -fim->num_skip;
counter           150 drivers/staging/media/imx/imx-media-fim.c 	if (!fim->enabled || ++fim->counter <= 0)
counter           165 drivers/staging/media/imx/imx-media-fim.c 		fim->counter--;
counter           171 drivers/staging/media/imx/imx-media-fim.c 	if (fim->counter == fim->num_avg) {
counter           180 drivers/staging/media/imx/imx-media-fim.c 		fim->counter = 0;
counter           185 drivers/staging/media/imx/imx7-mipi-csis.c 	unsigned int counter;
counter           525 drivers/staging/media/imx/imx7-mipi-csis.c 		state->events[i].counter = 0;
counter           538 drivers/staging/media/imx/imx7-mipi-csis.c 		if (state->events[i].counter > 0 || state->debug)
counter           540 drivers/staging/media/imx/imx7-mipi-csis.c 				 state->events[i].counter);
counter           775 drivers/staging/media/imx/imx7-mipi-csis.c 			state->events[i].counter++;
counter            28 drivers/staging/media/ipu3/ipu3-css-params.c static unsigned int imgu_css_scaler_get_exp(unsigned int counter,
counter            31 drivers/staging/media/ipu3/ipu3-css-params.c 	int i = fls(divider) - fls(counter);
counter            36 drivers/staging/media/ipu3/ipu3-css-params.c 	if (divider >> i < counter)
counter           340 drivers/staging/nvec/nvec_power.c static int counter;
counter           354 drivers/staging/nvec/nvec_power.c 	if (counter >= ARRAY_SIZE(bat_iter))
counter           355 drivers/staging/nvec/nvec_power.c 		counter = 0;
counter           366 drivers/staging/nvec/nvec_power.c 	buf[1] = bat_iter[counter++];
counter            31 drivers/staging/rtl8188eu/core/rtw_security.c 	u32	counter;
counter            36 drivers/staging/rtl8188eu/core/rtw_security.c 	for (counter = 0; counter < 256; counter++)
counter            37 drivers/staging/rtl8188eu/core/rtw_security.c 		state[counter] = (u8)counter;
counter            40 drivers/staging/rtl8188eu/core/rtw_security.c 	for (counter = 0; counter < 256; counter++) {
counter            41 drivers/staging/rtl8188eu/core/rtw_security.c 		t = state[counter];
counter            45 drivers/staging/rtl8188eu/core/rtw_security.c 		state[counter] = (u8)u;
counter           109 drivers/staging/rtl8188eu/hal/fw.c 	u32 counter = 0;
counter           116 drivers/staging/rtl8188eu/hal/fw.c 	} while (counter++ < POLLING_READY_TIMEOUT_COUNT);
counter           118 drivers/staging/rtl8188eu/hal/fw.c 	if (counter >= POLLING_READY_TIMEOUT_COUNT)
counter           127 drivers/staging/rtl8188eu/hal/fw.c 	counter = 0;
counter           138 drivers/staging/rtl8188eu/hal/fw.c 	} while (counter++ < POLLING_READY_TIMEOUT_COUNT);
counter            53 drivers/staging/rtl8712/rtl871x_security.c 	u32	counter;
counter            58 drivers/staging/rtl8712/rtl871x_security.c 	for (counter = 0; counter < 256; counter++)
counter            59 drivers/staging/rtl8712/rtl871x_security.c 		state[counter] = (u8)counter;
counter            62 drivers/staging/rtl8712/rtl871x_security.c 	for (counter = 0; counter < 256; counter++) {
counter            63 drivers/staging/rtl8712/rtl871x_security.c 		t = state[counter];
counter            67 drivers/staging/rtl8712/rtl871x_security.c 		state[counter] = (u8)u;
counter           104 drivers/staging/rtl8723bs/core/rtw_security.c 	u32 counter;
counter           109 drivers/staging/rtl8723bs/core/rtw_security.c 	for (counter = 0; counter < 256; counter++)
counter           110 drivers/staging/rtl8723bs/core/rtw_security.c 		state[counter] = (u8)counter;
counter           113 drivers/staging/rtl8723bs/core/rtw_security.c 	for (counter = 0; counter < 256; counter++) {
counter           114 drivers/staging/rtl8723bs/core/rtw_security.c 		t = state[counter];
counter           118 drivers/staging/rtl8723bs/core/rtw_security.c 		state[counter] = (u8)u;
counter           256 drivers/staging/rtl8723bs/include/rtw_debug.h #define DBG_COUNTER(counter) counter++
counter           258 drivers/staging/rtl8723bs/include/rtw_debug.h #define DBG_COUNTER(counter) do {} while (0)
counter           483 drivers/staging/wilc1000/wilc_wlan.c 	int counter;
counter           539 drivers/staging/wilc1000/wilc_wlan.c 	counter = 0;
counter           549 drivers/staging/wilc1000/wilc_wlan.c 		counter++;
counter           550 drivers/staging/wilc1000/wilc_wlan.c 		if (counter > 200) {
counter           551 drivers/staging/wilc1000/wilc_wlan.c 			counter = 0;
counter           112 drivers/staging/wusbcore/crypto.c 	__be16 counter;	/* Value of x */
counter           225 drivers/staging/wusbcore/crypto.c 	scratch->ax.counter = 0;
counter           595 drivers/thermal/ti-soc-thermal/ti-bandgap.c 	u32 counter = 1000;
counter           608 drivers/thermal/ti-soc-thermal/ti-bandgap.c 	while (--counter) {
counter           618 drivers/thermal/ti-soc-thermal/ti-bandgap.c 	counter = 1000;
counter           619 drivers/thermal/ti-soc-thermal/ti-bandgap.c 	while (--counter) {
counter            26 drivers/thunderbolt/path.c 		    regs->counter_enable, regs->counter);
counter           494 drivers/thunderbolt/path.c 		hop.counter = path->hops[i].in_counter_index;
counter           622 drivers/thunderbolt/switch.c int tb_port_clear_counter(struct tb_port *port, int counter)
counter           625 drivers/thunderbolt/switch.c 	tb_port_dbg(port, "clearing counter %d\n", counter);
counter           626 drivers/thunderbolt/switch.c 	return tb_port_write(port, zero, TB_CFG_COUNTERS, 3 * counter, 3);
counter           597 drivers/thunderbolt/tb.h int tb_port_clear_counter(struct tb_port *port, int counter);
counter           263 drivers/thunderbolt/tb_regs.h 	u32 counter:11; /* index into TB_CFG_COUNTERS on this port */
counter           387 drivers/usb/gadget/udc/m66592-udc.c 	int *counter;
counter           403 drivers/usb/gadget/udc/m66592-udc.c 				counter = &m66592->isochronous;
counter           407 drivers/usb/gadget/udc/m66592-udc.c 			counter = &m66592->bulk;
counter           419 drivers/usb/gadget/udc/m66592-udc.c 		counter = &m66592->interrupt;
counter           428 drivers/usb/gadget/udc/m66592-udc.c 		counter = &m66592->isochronous;
counter           450 drivers/usb/gadget/udc/m66592-udc.c 	(*counter)++;
counter           451 drivers/usb/gadget/udc/m66592-udc.c 	if ((counter == &m66592->isochronous) && info.type == M66592_BULK)
counter           456 drivers/usb/gadget/udc/r8a66597-udc.c 	unsigned char *counter;
counter           474 drivers/usb/gadget/udc/r8a66597-udc.c 				counter = &r8a66597->isochronous;
counter           478 drivers/usb/gadget/udc/r8a66597-udc.c 			counter = &r8a66597->bulk;
counter           491 drivers/usb/gadget/udc/r8a66597-udc.c 		counter = &r8a66597->interrupt;
counter           501 drivers/usb/gadget/udc/r8a66597-udc.c 		counter = &r8a66597->isochronous;
counter           524 drivers/usb/gadget/udc/r8a66597-udc.c 	(*counter)++;
counter           525 drivers/usb/gadget/udc/r8a66597-udc.c 	if ((counter == &r8a66597->isochronous) && info.type == R8A66597_BULK)
counter           114 drivers/usb/host/imx21-hcd.c static inline int wrap_frame(int counter)
counter           116 drivers/usb/host/imx21-hcd.c 	return counter & 0xFFFF;
counter            79 drivers/usb/renesas_usbhs/mod_host.c 	unsigned int		counter; /* pipe attach counter */
counter           316 drivers/usb/renesas_usbhs/mod_host.c 		uep->counter++;
counter           344 drivers/usb/renesas_usbhs/mod_host.c 	} else if (1 == uep->counter--) { /* last user */
counter           387 drivers/usb/renesas_usbhs/mod_host.c 	uep->counter = 0;
counter            80 drivers/watchdog/asm9260_wdt.c 	u32 counter;
counter            82 drivers/watchdog/asm9260_wdt.c 	counter = ioread32(priv->iobase + HW_WDTV);
counter            84 drivers/watchdog/asm9260_wdt.c 	return counter / priv->wdt_freq;
counter            90 drivers/watchdog/asm9260_wdt.c 	u32 counter;
counter            92 drivers/watchdog/asm9260_wdt.c 	counter = wdd->timeout * priv->wdt_freq;
counter            94 drivers/watchdog/asm9260_wdt.c 	iowrite32(counter, priv->iobase + HW_WDTC);
counter            45 drivers/watchdog/atlas7_wdt.c 	u32 counter, match, delta;
counter            47 drivers/watchdog/atlas7_wdt.c 	counter = readl(wdt->base + ATLAS7_WDT_CNT);
counter            49 drivers/watchdog/atlas7_wdt.c 	delta = match - counter;
counter            57 drivers/watchdog/atlas7_wdt.c 	u32 counter, match, delta;
counter            59 drivers/watchdog/atlas7_wdt.c 	counter = readl(wdt->base + ATLAS7_WDT_CNT);
counter            61 drivers/watchdog/atlas7_wdt.c 	match = counter + delta;
counter           194 drivers/watchdog/mlx_wdt.c 	for (i = 0; i < pdata->counter; i++, data++) {
counter            68 drivers/watchdog/ni903x_wdt.c 	u32 counter = timeout * (1000000000 / NIWD_PERIOD_NS);
counter            70 drivers/watchdog/ni903x_wdt.c 	outb(((0x00FF0000 & counter) >> 16), wdt->io_base + NIWD_SEED2);
counter            71 drivers/watchdog/ni903x_wdt.c 	outb(((0x0000FF00 & counter) >> 8), wdt->io_base + NIWD_SEED1);
counter            72 drivers/watchdog/ni903x_wdt.c 	outb((0x000000FF & counter), wdt->io_base + NIWD_SEED0);
counter            83 drivers/watchdog/ni903x_wdt.c 	u32 counter;
counter            93 drivers/watchdog/ni903x_wdt.c 	counter = (counter2 << 16) | (counter1 << 8) | counter0;
counter            95 drivers/watchdog/ni903x_wdt.c 	return counter / (1000000000 / NIWD_PERIOD_NS);
counter            61 drivers/watchdog/nic7018_wdt.c static inline u32 nic7018_timeout(u32 period, u8 counter)
counter            63 drivers/watchdog/nic7018_wdt.c 	return period * counter - period / 2;
counter            67 drivers/watchdog/nic7018_wdt.c 						       u8 *counter)
counter            82 drivers/watchdog/nic7018_wdt.c 	*counter = count;
counter            91 drivers/watchdog/nic7018_wdt.c 	u8 counter;
counter            93 drivers/watchdog/nic7018_wdt.c 	config = nic7018_get_config(timeout, &counter);
counter            95 drivers/watchdog/nic7018_wdt.c 	outb(counter << 4 | config->divider,
counter            98 drivers/watchdog/nic7018_wdt.c 	wdd->timeout = nic7018_timeout(config->period, counter);
counter            48 drivers/watchdog/sirfsoc_wdt.c 	u32 counter, match;
counter            53 drivers/watchdog/sirfsoc_wdt.c 	counter = readl(wdt_base + SIRFSOC_TIMER_COUNTER_LO);
counter            57 drivers/watchdog/sirfsoc_wdt.c 	time_left = match - counter;
counter            64 drivers/watchdog/sirfsoc_wdt.c 	u32 counter, timeout_ticks;
counter            74 drivers/watchdog/sirfsoc_wdt.c 	counter = readl(wdt_base + SIRFSOC_TIMER_LATCHED_LO);
counter            76 drivers/watchdog/sirfsoc_wdt.c 	counter += timeout_ticks;
counter            78 drivers/watchdog/sirfsoc_wdt.c 	writel(counter, wdt_base +
counter           910 fs/btrfs/ctree.h 	struct percpu_counter	counter;
counter          1104 fs/btrfs/disk-io.c 	ret = percpu_counter_init(&writers->counter, 0, GFP_NOFS);
counter          1117 fs/btrfs/disk-io.c 	percpu_counter_destroy(&writers->counter);
counter          5745 fs/btrfs/extent-tree.c 	percpu_counter_dec(&root->subv_writers->counter);
counter          5754 fs/btrfs/extent-tree.c 	percpu_counter_inc(&root->subv_writers->counter);
counter           797 fs/btrfs/ioctl.c 		   percpu_counter_sum(&root->subv_writers->counter) == 0);
counter           507 fs/cifs/cifs_debug.c 			sesInfoAllocCount.counter);
counter           509 fs/cifs/cifs_debug.c 			tconInfoAllocCount.counter);
counter           511 fs/cifs/cifs_debug.c 			bufAllocCount.counter,
counter           512 fs/cifs/cifs_debug.c 			cifs_min_rcv + tcpSesAllocCount.counter);
counter           514 fs/cifs/cifs_debug.c 			smBufAllocCount.counter, cifs_min_small);
counter           524 fs/cifs/cifs_debug.c 		tcpSesReconnectCount.counter, tconInfoReconnectCount.counter);
counter          2033 fs/cifs/inode.c 		 full_path, inode, inode->i_count.counter,
counter           124 fs/crypto/hkdf.c 	u8 counter = 1;
counter           155 fs/crypto/hkdf.c 		BUILD_BUG_ON(sizeof(counter) != 1);
counter           157 fs/crypto/hkdf.c 			err = crypto_shash_finup(desc, &counter, 1, tmp);
counter           163 fs/crypto/hkdf.c 			err = crypto_shash_finup(desc, &counter, 1, &okm[i]);
counter           167 fs/crypto/hkdf.c 		counter++;
counter           396 fs/ecryptfs/ecryptfs_kernel.h 	u32 counter;
counter            75 fs/ecryptfs/messaging.c 	msg_ctx->counter = ++ecryptfs_msg_counter;
counter           227 fs/ecryptfs/messaging.c 	} else if (msg_ctx->counter != seq) {
counter           231 fs/ecryptfs/messaging.c 		       msg_ctx->counter, seq);
counter           396 fs/ecryptfs/messaging.c 		ecryptfs_msg_ctx_arr[i].counter = 0;
counter           285 fs/ecryptfs/miscdev.c 	if (put_user(cpu_to_be32(msg_ctx->counter),
counter          1280 fs/inode.c     	static unsigned int counter;
counter          1285 fs/inode.c     		if (counter <= max_reserved)
counter          1286 fs/inode.c     			counter = max_reserved + 1;
counter          1287 fs/inode.c     		res = counter++;
counter            82 fs/nfs/nfs4_fs.h 	u32 counter;
counter           495 fs/nfs/nfs4_fs.h extern struct nfs_seqid *nfs_alloc_seqid(struct nfs_seqid_counter *counter, gfp_t gfp_mask);
counter           471 fs/nfs/nfs4state.c 	sc->counter = 0;
counter          1071 fs/nfs/nfs4state.c struct nfs_seqid *nfs_alloc_seqid(struct nfs_seqid_counter *counter, gfp_t gfp_mask)
counter          1078 fs/nfs/nfs4state.c 	new->sequence = counter;
counter          1140 fs/nfs/nfs4state.c 	seqid->sequence->counter++;
counter          1012 fs/nfs/nfs4xdr.c 		encode_uint32(xdr, seqid->sequence->counter);
counter           742 fs/quota/dquot.c 	percpu_counter_read_positive(&dqstats.counter[DQST_FREE_DQUOTS]));
counter          2866 fs/quota/dquot.c 	s64 value = percpu_counter_sum(&dqstats.counter[type]);
counter          2986 fs/quota/dquot.c 		ret = percpu_counter_init(&dqstats.counter[i], 0, GFP_KERNEL);
counter           831 fs/reiserfs/fix_node.c 	int counter, number_of_freeblk;
counter           857 fs/reiserfs/fix_node.c 	for (counter = 0, number_of_freeblk = tb->cur_blknum;
counter           858 fs/reiserfs/fix_node.c 	     counter < h; counter++)
counter           860 fs/reiserfs/fix_node.c 		    (tb->blknum[counter]) ? (tb->blknum[counter] -
counter           884 fs/reiserfs/fix_node.c 	for (blocknr = blocknrs, counter = 0;
counter           885 fs/reiserfs/fix_node.c 	     counter < amount_needed; blocknr++, counter++) {
counter          1032 fs/reiserfs/fix_node.c 	int counter,
counter          1042 fs/reiserfs/fix_node.c 	counter = path_offset;
counter          1044 fs/reiserfs/fix_node.c 	RFALSE(counter < FIRST_PATH_ELEMENT_OFFSET,
counter          1047 fs/reiserfs/fix_node.c 	for (; counter > FIRST_PATH_ELEMENT_OFFSET; counter--) {
counter          1053 fs/reiserfs/fix_node.c 		    (parent = PATH_OFFSET_PBUFFER(path, counter - 1)))
counter          1059 fs/reiserfs/fix_node.c 					  counter - 1)) >
counter          1068 fs/reiserfs/fix_node.c 		    PATH_OFFSET_PBUFFER(path, counter)->b_blocknr)
counter          1086 fs/reiserfs/fix_node.c 	if (counter == FIRST_PATH_ELEMENT_OFFSET) {
counter           259 fs/xfs/scrub/fscounters.c 	struct percpu_counter	*counter,
counter           263 fs/xfs/scrub/fscounters.c 	int64_t			curr_value = percpu_counter_sum(counter);
counter           535 fs/xfs/xfs_trans.c 	int8_t			counter = *field;
counter           537 fs/xfs/xfs_trans.c 	counter += delta;
counter           538 fs/xfs/xfs_trans.c 	if (counter < 0) {
counter           542 fs/xfs/xfs_trans.c 	*field = counter;
counter           551 fs/xfs/xfs_trans.c 	int32_t			counter = *field;
counter           553 fs/xfs/xfs_trans.c 	counter += delta;
counter           554 fs/xfs/xfs_trans.c 	if (counter < 0) {
counter           558 fs/xfs/xfs_trans.c 	*field = counter;
counter           567 fs/xfs/xfs_trans.c 	int64_t			counter = *field;
counter           569 fs/xfs/xfs_trans.c 	counter += delta;
counter           570 fs/xfs/xfs_trans.c 	if (counter < 0) {
counter           574 fs/xfs/xfs_trans.c 	*field = counter;
counter            41 include/asm-generic/atomic.h 	c = v->counter;							\
counter            42 include/asm-generic/atomic.h 	while ((old = cmpxchg(&v->counter, c, c c_op i)) != c)		\
counter            51 include/asm-generic/atomic.h 	c = v->counter;							\
counter            52 include/asm-generic/atomic.h 	while ((old = cmpxchg(&v->counter, c, c c_op i)) != c)		\
counter            63 include/asm-generic/atomic.h 	c = v->counter;							\
counter            64 include/asm-generic/atomic.h 	while ((old = cmpxchg(&v->counter, c, c c_op i)) != c)		\
counter            80 include/asm-generic/atomic.h 	v->counter = v->counter c_op i;					\
counter            91 include/asm-generic/atomic.h 	ret = (v->counter = v->counter c_op i);				\
counter           104 include/asm-generic/atomic.h 	ret = v->counter;						\
counter           105 include/asm-generic/atomic.h 	v->counter = v->counter c_op i;					\
counter           171 include/asm-generic/atomic.h #define atomic_read(v)	READ_ONCE((v)->counter)
counter           181 include/asm-generic/atomic.h #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i))
counter           195 include/asm-generic/atomic.h #define atomic_xchg(ptr, v)		(xchg(&(ptr)->counter, (v)))
counter           196 include/asm-generic/atomic.h #define atomic_cmpxchg(v, old, new)	(cmpxchg(&((v)->counter), (old), (new)))
counter            13 include/asm-generic/atomic64.h 	s64 counter;
counter            82 include/linux/atomic-fallback.h 	return smp_load_acquire(&(v)->counter);
counter            91 include/linux/atomic-fallback.h 	smp_store_release(&(v)->counter, i);
counter          1181 include/linux/atomic-fallback.h #define atomic_cond_read_acquire(v, c) smp_cond_load_acquire(&(v)->counter, (c))
counter          1182 include/linux/atomic-fallback.h #define atomic_cond_read_relaxed(v, c) smp_cond_load_relaxed(&(v)->counter, (c))
counter          1192 include/linux/atomic-fallback.h 	return smp_load_acquire(&(v)->counter);
counter          1201 include/linux/atomic-fallback.h 	smp_store_release(&(v)->counter, i);
counter          2291 include/linux/atomic-fallback.h #define atomic64_cond_read_acquire(v, c) smp_cond_load_acquire(&(v)->counter, (c))
counter          2292 include/linux/atomic-fallback.h #define atomic64_cond_read_relaxed(v, c) smp_cond_load_relaxed(&(v)->counter, (c))
counter            39 include/linux/counter.h 	ssize_t (*read)(struct counter_device *counter,
counter            41 include/linux/counter.h 	ssize_t (*write)(struct counter_device *counter,
counter            87 include/linux/counter.h 	int (*get)(struct counter_device *counter,
counter            89 include/linux/counter.h 	int (*set)(struct counter_device *counter,
counter           157 include/linux/counter.h 	ssize_t (*read)(struct counter_device *counter,
counter           159 include/linux/counter.h 	ssize_t (*write)(struct counter_device *counter,
counter           228 include/linux/counter.h 	int (*get)(struct counter_device *counter, struct counter_count *count,
counter           230 include/linux/counter.h 	int (*set)(struct counter_device *counter, struct counter_count *count,
counter           356 include/linux/counter.h 	int (*signal_read)(struct counter_device *counter,
counter           359 include/linux/counter.h 	int (*count_read)(struct counter_device *counter,
counter           362 include/linux/counter.h 	int (*count_write)(struct counter_device *counter,
counter           365 include/linux/counter.h 	int (*function_get)(struct counter_device *counter,
counter           367 include/linux/counter.h 	int (*function_set)(struct counter_device *counter,
counter           369 include/linux/counter.h 	int (*action_get)(struct counter_device *counter,
counter           372 include/linux/counter.h 	int (*action_set)(struct counter_device *counter,
counter           386 include/linux/counter.h 	ssize_t (*read)(struct counter_device *counter, void *priv, char *buf);
counter           387 include/linux/counter.h 	ssize_t (*write)(struct counter_device *counter, void *priv,
counter           413 include/linux/counter.h 	int (*get)(struct counter_device *counter, size_t *item);
counter           414 include/linux/counter.h 	int (*set)(struct counter_device *counter, size_t item);
counter           503 include/linux/counter.h int counter_register(struct counter_device *const counter);
counter           504 include/linux/counter.h void counter_unregister(struct counter_device *const counter);
counter           506 include/linux/counter.h 			  struct counter_device *const counter);
counter           508 include/linux/counter.h 			     struct counter_device *const counter);
counter            15 include/linux/counter_enum.h ssize_t counter_signal_enum_read(struct counter_device *counter,
counter            18 include/linux/counter_enum.h ssize_t counter_signal_enum_write(struct counter_device *counter,
counter            22 include/linux/counter_enum.h ssize_t counter_signal_enum_available_read(struct counter_device *counter,
counter            26 include/linux/counter_enum.h ssize_t counter_count_enum_read(struct counter_device *counter,
counter            29 include/linux/counter_enum.h ssize_t counter_count_enum_write(struct counter_device *counter,
counter            33 include/linux/counter_enum.h ssize_t counter_count_enum_available_read(struct counter_device *counter,
counter            37 include/linux/counter_enum.h ssize_t counter_device_enum_read(struct counter_device *counter, void *priv,
counter            39 include/linux/counter_enum.h ssize_t counter_device_enum_write(struct counter_device *counter, void *priv,
counter            42 include/linux/counter_enum.h ssize_t counter_device_enum_available_read(struct counter_device *counter,
counter            57 include/linux/iova.h 	u64 counter; /* Flush counter when this entrie was added */
counter           448 include/linux/memcontrol.h #define mem_cgroup_from_counter(counter, member)	\
counter           449 include/linux/memcontrol.h 	container_of(counter, struct mem_cgroup, member)
counter           823 include/linux/mlx4/device.h #define ASSIGN_32BIT_COUNTER(counter, value) do {	\
counter           825 include/linux/mlx4/device.h 		counter = cpu_to_be32(U32_MAX);		\
counter           827 include/linux/mlx4/device.h 		counter = cpu_to_be32(value);		\
counter           847 include/linux/mlx4/device.h 	int counter;
counter           228 include/linux/mlx5/fs.h void mlx5_fc_destroy(struct mlx5_core_dev *dev, struct mlx5_fc *counter);
counter           229 include/linux/mlx5/fs.h u64 mlx5_fc_query_lastuse(struct mlx5_fc *counter);
counter           230 include/linux/mlx5/fs.h void mlx5_fc_query_cached(struct mlx5_fc *counter,
counter           232 include/linux/mlx5/fs.h int mlx5_fc_query(struct mlx5_core_dev *dev, struct mlx5_fc *counter,
counter           234 include/linux/mlx5/fs.h u32 mlx5_fc_id(struct mlx5_fc *counter);
counter          4225 include/linux/mlx5/mlx5_ifc.h 	u8         counter[0x10];
counter           587 include/linux/netfilter/ipset/ip_set.h ip_set_add_bytes(u64 bytes, struct ip_set_counter *counter)
counter           589 include/linux/netfilter/ipset/ip_set.h 	atomic64_add((long long)bytes, &(counter)->bytes);
counter           593 include/linux/netfilter/ipset/ip_set.h ip_set_add_packets(u64 packets, struct ip_set_counter *counter)
counter           595 include/linux/netfilter/ipset/ip_set.h 	atomic64_add((long long)packets, &(counter)->packets);
counter           599 include/linux/netfilter/ipset/ip_set.h ip_set_get_bytes(const struct ip_set_counter *counter)
counter           601 include/linux/netfilter/ipset/ip_set.h 	return (u64)atomic64_read(&(counter)->bytes);
counter           605 include/linux/netfilter/ipset/ip_set.h ip_set_get_packets(const struct ip_set_counter *counter)
counter           607 include/linux/netfilter/ipset/ip_set.h 	return (u64)atomic64_read(&(counter)->packets);
counter           611 include/linux/netfilter/ipset/ip_set.h ip_set_match_counter(u64 counter, u64 match, u8 op)
counter           617 include/linux/netfilter/ipset/ip_set.h 		return counter == match;
counter           619 include/linux/netfilter/ipset/ip_set.h 		return counter != match;
counter           621 include/linux/netfilter/ipset/ip_set.h 		return counter < match;
counter           623 include/linux/netfilter/ipset/ip_set.h 		return counter > match;
counter           629 include/linux/netfilter/ipset/ip_set.h ip_set_update_counter(struct ip_set_counter *counter,
counter           634 include/linux/netfilter/ipset/ip_set.h 		ip_set_add_bytes(ext->bytes, counter);
counter           635 include/linux/netfilter/ipset/ip_set.h 		ip_set_add_packets(ext->packets, counter);
counter           640 include/linux/netfilter/ipset/ip_set.h ip_set_put_counter(struct sk_buff *skb, const struct ip_set_counter *counter)
counter           643 include/linux/netfilter/ipset/ip_set.h 			     cpu_to_be64(ip_set_get_bytes(counter)),
counter           646 include/linux/netfilter/ipset/ip_set.h 			     cpu_to_be64(ip_set_get_packets(counter)),
counter           651 include/linux/netfilter/ipset/ip_set.h ip_set_init_counter(struct ip_set_counter *counter,
counter           655 include/linux/netfilter/ipset/ip_set.h 		atomic64_set(&(counter)->bytes, (long long)(ext->bytes));
counter           657 include/linux/netfilter/ipset/ip_set.h 		atomic64_set(&(counter)->packets, (long long)(ext->packets));
counter           428 include/linux/netfilter/x_tables.h 			     struct xt_counters *counter);
counter            37 include/linux/page_counter.h static inline void page_counter_init(struct page_counter *counter,
counter            40 include/linux/page_counter.h 	atomic_long_set(&counter->usage, 0);
counter            41 include/linux/page_counter.h 	counter->max = PAGE_COUNTER_MAX;
counter            42 include/linux/page_counter.h 	counter->parent = parent;
counter            45 include/linux/page_counter.h static inline unsigned long page_counter_read(struct page_counter *counter)
counter            47 include/linux/page_counter.h 	return atomic_long_read(&counter->usage);
counter            50 include/linux/page_counter.h void page_counter_cancel(struct page_counter *counter, unsigned long nr_pages);
counter            51 include/linux/page_counter.h void page_counter_charge(struct page_counter *counter, unsigned long nr_pages);
counter            52 include/linux/page_counter.h bool page_counter_try_charge(struct page_counter *counter,
counter            55 include/linux/page_counter.h void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages);
counter            56 include/linux/page_counter.h void page_counter_set_min(struct page_counter *counter, unsigned long nr_pages);
counter            57 include/linux/page_counter.h void page_counter_set_low(struct page_counter *counter, unsigned long nr_pages);
counter            58 include/linux/page_counter.h int page_counter_set_max(struct page_counter *counter, unsigned long nr_pages);
counter            62 include/linux/page_counter.h static inline void page_counter_reset_watermark(struct page_counter *counter)
counter            64 include/linux/page_counter.h 	counter->watermark = page_counter_read(counter);
counter           135 include/linux/platform_data/mlxreg.h 	int counter;
counter           159 include/linux/platform_data/mlxreg.h 	int counter;
counter           267 include/linux/quota.h 	struct percpu_counter counter[_DQST_DQSTAT_LAST];
counter           274 include/linux/quota.h 	percpu_counter_inc(&dqstats.counter[type]);
counter           279 include/linux/quota.h 	percpu_counter_dec(&dqstats.counter[type]);
counter           172 include/linux/types.h 	int counter;
counter           177 include/linux/types.h 	s64 counter;
counter           199 include/net/devlink.h 	u64 counter;
counter          4756 include/net/mac80211.h void ieee80211_csa_set_counter(struct ieee80211_vif *vif, u8 counter);
counter            20 include/net/netfilter/nf_conntrack_acct.h 	struct nf_conn_counter counter[IP_CT_DIR_MAX];
counter           298 include/net/sctp/sctp.h {.label= #name, .counter= &sctp_dbg_objcnt_## name}
counter          2173 include/net/sctp/structs.h 	atomic_t *counter;
counter            84 include/rdma/ib_pma.h 	__be32 counter[15];
counter            91 include/rdma/ib_pma.h 	__be64 counter[15];
counter          1749 include/rdma/ib_verbs.h 	struct rdma_counter    *counter;
counter          2544 include/rdma/ib_verbs.h 	int (*counter_bind_qp)(struct rdma_counter *counter, struct ib_qp *qp);
counter          2553 include/rdma/ib_verbs.h 	int (*counter_dealloc)(struct rdma_counter *counter);
counter          2559 include/rdma/ib_verbs.h 		struct rdma_counter *counter);
counter          2563 include/rdma/ib_verbs.h 	int (*counter_update_stats)(struct rdma_counter *counter);
counter            53 include/rdma/rdma_counter.h int rdma_counter_query_stats(struct rdma_counter *counter);
counter            26 include/sound/soundfont.h 	int counter;
counter            36 include/sound/soundfont.h 	int counter;
counter          3449 include/uapi/linux/bpf.h 	__u64 counter;
counter            47 kernel/cgroup/pids.c 	atomic64_t			counter;
counter            76 kernel/cgroup/pids.c 	atomic64_set(&pids->counter, 0);
counter           101 kernel/cgroup/pids.c 	WARN_ON_ONCE(atomic64_add_negative(-num, &pids->counter));
counter           131 kernel/cgroup/pids.c 		atomic64_add(num, &p->counter);
counter           148 kernel/cgroup/pids.c 		int64_t new = atomic64_add_return(num, &p->counter);
counter           304 kernel/cgroup/pids.c 	return atomic64_read(&pids->counter);
counter           399 kernel/trace/bpf_trace.c 	err = get_map_perf_counter(map, flags, &buf->counter, &buf->enabled,
counter           902 kernel/trace/bpf_trace.c 	err = perf_event_read_local(ctx->event, &buf->counter, &buf->enabled,
counter           392 kernel/trace/ftrace.c 	unsigned long			counter;
counter           446 kernel/trace/ftrace.c 		if (!rec->counter)
counter           485 kernel/trace/ftrace.c 	if (a->counter < b->counter)
counter           487 kernel/trace/ftrace.c 	if (a->counter > b->counter)
counter           521 kernel/trace/ftrace.c 	if (unlikely(rec->counter == 0)) {
counter           527 kernel/trace/ftrace.c 	avg = div64_ul(rec->time, rec->counter);
counter           533 kernel/trace/ftrace.c 	seq_printf(m, "  %-30.30s  %10lu", str, rec->counter);
counter           539 kernel/trace/ftrace.c 	if (rec->counter <= 1)
counter           546 kernel/trace/ftrace.c 		stddev = rec->counter * rec->time_squared -
counter           554 kernel/trace/ftrace.c 				  rec->counter * (rec->counter - 1) * 1000);
counter           783 kernel/trace/ftrace.c 	rec->counter++;
counter            52 lib/atomic64.c 	val = v->counter;
counter            64 lib/atomic64.c 	v->counter = i;
counter            76 lib/atomic64.c 	v->counter c_op a;						\
counter            89 lib/atomic64.c 	val = (v->counter c_op a);					\
counter           103 lib/atomic64.c 	val = v->counter;						\
counter           104 lib/atomic64.c 	v->counter c_op a;						\
counter           140 lib/atomic64.c 	val = v->counter - 1;
counter           142 lib/atomic64.c 		v->counter = val;
counter           155 lib/atomic64.c 	val = v->counter;
counter           157 lib/atomic64.c 		v->counter = n;
counter           170 lib/atomic64.c 	val = v->counter;
counter           171 lib/atomic64.c 	v->counter = new;
counter           184 lib/atomic64.c 	val = v->counter;
counter           186 lib/atomic64.c 		v->counter += a;
counter           159 lib/atomic64_test.c 	BUG_ON(v.counter != r);
counter           163 lib/atomic64_test.c 	BUG_ON(v.counter != r);
counter           193 lib/atomic64_test.c 	BUG_ON(v.counter != r);
counter           198 lib/atomic64_test.c 	BUG_ON(v.counter != r);
counter           208 lib/atomic64_test.c 	BUG_ON(v.counter != r);
counter           213 lib/atomic64_test.c 	BUG_ON(v.counter != r);
counter           218 lib/atomic64_test.c 	BUG_ON(v.counter != r);
counter           222 lib/atomic64_test.c 	BUG_ON(v.counter != r);
counter           226 lib/atomic64_test.c 	BUG_ON(v.counter != r);
counter           231 lib/atomic64_test.c 	BUG_ON(v.counter != r);
counter           235 lib/atomic64_test.c 	BUG_ON(v.counter != r);
counter           240 lib/atomic64_test.c 	BUG_ON(v.counter != r);
counter            76 mm/hugetlb_cgroup.c 		struct page_counter *counter = &h_cgroup->hugepage[idx];
counter            83 mm/hugetlb_cgroup.c 		page_counter_init(counter, parent);
counter            87 mm/hugetlb_cgroup.c 		ret = page_counter_set_max(counter, limit);
counter           129 mm/hugetlb_cgroup.c 	struct page_counter *counter;
counter           148 mm/hugetlb_cgroup.c 	counter = &h_cg->hugepage[idx];
counter           150 mm/hugetlb_cgroup.c 	page_counter_cancel(counter, nr_pages);
counter           185 mm/hugetlb_cgroup.c 	struct page_counter *counter;
counter           205 mm/hugetlb_cgroup.c 	if (!page_counter_try_charge(&h_cg->hugepage[idx], nr_pages, &counter))
counter           267 mm/hugetlb_cgroup.c 	struct page_counter *counter;
counter           270 mm/hugetlb_cgroup.c 	counter = &h_cg->hugepage[MEMFILE_IDX(cft->private)];
counter           274 mm/hugetlb_cgroup.c 		return (u64)page_counter_read(counter) * PAGE_SIZE;
counter           276 mm/hugetlb_cgroup.c 		return (u64)counter->max * PAGE_SIZE;
counter           278 mm/hugetlb_cgroup.c 		return (u64)counter->watermark * PAGE_SIZE;
counter           280 mm/hugetlb_cgroup.c 		return counter->failcnt;
counter           323 mm/hugetlb_cgroup.c 	struct page_counter *counter;
counter           326 mm/hugetlb_cgroup.c 	counter = &h_cg->hugepage[MEMFILE_IDX(of_cft(of)->private)];
counter           330 mm/hugetlb_cgroup.c 		page_counter_reset_watermark(counter);
counter           333 mm/hugetlb_cgroup.c 		counter->failcnt = 0;
counter          2547 mm/memcontrol.c 	struct page_counter *counter;
counter          2560 mm/memcontrol.c 	    page_counter_try_charge(&memcg->memsw, batch, &counter)) {
counter          2561 mm/memcontrol.c 		if (page_counter_try_charge(&memcg->memory, batch, &counter))
counter          2565 mm/memcontrol.c 		mem_over_limit = mem_cgroup_from_counter(counter, memory);
counter          2567 mm/memcontrol.c 		mem_over_limit = mem_cgroup_from_counter(counter, memsw);
counter          3017 mm/memcontrol.c 	struct page_counter *counter;
counter          3025 mm/memcontrol.c 	    !page_counter_try_charge(&memcg->kmem, nr_pages, &counter)) {
counter          3177 mm/memcontrol.c 	struct page_counter *counter = memsw ? &memcg->memsw : &memcg->memory;
counter          3197 mm/memcontrol.c 		if (max > counter->max)
counter          3199 mm/memcontrol.c 		ret = page_counter_set_max(counter, max);
counter          3434 mm/memcontrol.c 	struct page_counter *counter;
counter          3438 mm/memcontrol.c 		counter = &memcg->memory;
counter          3441 mm/memcontrol.c 		counter = &memcg->memsw;
counter          3444 mm/memcontrol.c 		counter = &memcg->kmem;
counter          3447 mm/memcontrol.c 		counter = &memcg->tcpmem;
counter          3455 mm/memcontrol.c 		if (counter == &memcg->memory)
counter          3457 mm/memcontrol.c 		if (counter == &memcg->memsw)
counter          3459 mm/memcontrol.c 		return (u64)page_counter_read(counter) * PAGE_SIZE;
counter          3461 mm/memcontrol.c 		return (u64)counter->max * PAGE_SIZE;
counter          3463 mm/memcontrol.c 		return (u64)counter->watermark * PAGE_SIZE;
counter          3465 mm/memcontrol.c 		return counter->failcnt;
counter          3726 mm/memcontrol.c 	struct page_counter *counter;
counter          3730 mm/memcontrol.c 		counter = &memcg->memory;
counter          3733 mm/memcontrol.c 		counter = &memcg->memsw;
counter          3736 mm/memcontrol.c 		counter = &memcg->kmem;
counter          3739 mm/memcontrol.c 		counter = &memcg->tcpmem;
counter          3747 mm/memcontrol.c 		page_counter_reset_watermark(counter);
counter          3750 mm/memcontrol.c 		counter->failcnt = 0;
counter          7103 mm/memcontrol.c 	struct page_counter *counter;
counter          7124 mm/memcontrol.c 	    !page_counter_try_charge(&memcg->swap, nr_pages, &counter)) {
counter            55 mm/page_counter.c void page_counter_cancel(struct page_counter *counter, unsigned long nr_pages)
counter            59 mm/page_counter.c 	new = atomic_long_sub_return(nr_pages, &counter->usage);
counter            60 mm/page_counter.c 	propagate_protected_usage(counter, new);
counter            72 mm/page_counter.c void page_counter_charge(struct page_counter *counter, unsigned long nr_pages)
counter            76 mm/page_counter.c 	for (c = counter; c; c = c->parent) {
counter            80 mm/page_counter.c 		propagate_protected_usage(counter, new);
counter            99 mm/page_counter.c bool page_counter_try_charge(struct page_counter *counter,
counter           105 mm/page_counter.c 	for (c = counter; c; c = c->parent) {
counter           124 mm/page_counter.c 			propagate_protected_usage(counter, new);
counter           133 mm/page_counter.c 		propagate_protected_usage(counter, new);
counter           144 mm/page_counter.c 	for (c = counter; c != *fail; c = c->parent)
counter           155 mm/page_counter.c void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages)
counter           159 mm/page_counter.c 	for (c = counter; c; c = c->parent)
counter           173 mm/page_counter.c int page_counter_set_max(struct page_counter *counter, unsigned long nr_pages)
counter           190 mm/page_counter.c 		usage = atomic_long_read(&counter->usage);
counter           195 mm/page_counter.c 		old = xchg(&counter->max, nr_pages);
counter           197 mm/page_counter.c 		if (atomic_long_read(&counter->usage) <= usage)
counter           200 mm/page_counter.c 		counter->max = old;
counter           212 mm/page_counter.c void page_counter_set_min(struct page_counter *counter, unsigned long nr_pages)
counter           216 mm/page_counter.c 	counter->min = nr_pages;
counter           218 mm/page_counter.c 	for (c = counter; c; c = c->parent)
counter           229 mm/page_counter.c void page_counter_set_low(struct page_counter *counter, unsigned long nr_pages)
counter           233 mm/page_counter.c 	counter->low = nr_pages;
counter           235 mm/page_counter.c 	for (c = counter; c; c = c->parent)
counter          3717 net/batman-adv/translation-table.c 		if (!batadv_atomic_dec_not_zero(&tt_roam_node->counter))
counter          3731 net/batman-adv/translation-table.c 		atomic_set(&tt_roam_node->counter,
counter          2021 net/batman-adv/types.h 	atomic_t counter;
counter          2038 net/core/devlink.c 				      entry->counter, DEVLINK_ATTR_PAD))
counter            24 net/dccp/ccids/lib/loss_interval.c 	return lh->counter ? lh->ring[LIH_INDEX(lh->counter - 1)] : NULL;
counter            30 net/dccp/ccids/lib/loss_interval.c 	BUG_ON(i >= lh->counter);
counter            31 net/dccp/ccids/lib/loss_interval.c 	return lh->ring[LIH_INDEX(lh->counter - i - 1)]->li_length;
counter            39 net/dccp/ccids/lib/loss_interval.c 	if (lh->ring[LIH_INDEX(lh->counter)] == NULL)
counter            40 net/dccp/ccids/lib/loss_interval.c 		lh->ring[LIH_INDEX(lh->counter)] = kmem_cache_alloc(tfrc_lh_slab,
counter            42 net/dccp/ccids/lib/loss_interval.c 	return lh->ring[LIH_INDEX(lh->counter)];
counter            50 net/dccp/ccids/lib/loss_interval.c 	for (lh->counter = 0; lh->counter < LIH_SIZE; lh->counter++)
counter            51 net/dccp/ccids/lib/loss_interval.c 		if (lh->ring[LIH_INDEX(lh->counter)] != NULL) {
counter            53 net/dccp/ccids/lib/loss_interval.c 					lh->ring[LIH_INDEX(lh->counter)]);
counter            54 net/dccp/ccids/lib/loss_interval.c 			lh->ring[LIH_INDEX(lh->counter)] = NULL;
counter           153 net/dccp/ccids/lib/loss_interval.c 	if (++lh->counter == 1)
counter           159 net/dccp/ccids/lib/loss_interval.c 		if (lh->counter > (2*LIH_SIZE))
counter           160 net/dccp/ccids/lib/loss_interval.c 			lh->counter -= LIH_SIZE;
counter            43 net/dccp/ccids/lib/loss_interval.h 	u8				counter;
counter            54 net/dccp/ccids/lib/loss_interval.h 	return lh->counter > 0;
counter            59 net/dccp/ccids/lib/loss_interval.h 	return min(lh->counter, (u8)LIH_SIZE);
counter           222 net/ipv4/netfilter/arp_tables.c 		struct xt_counters *counter;
counter           229 net/ipv4/netfilter/arp_tables.c 		counter = xt_get_this_cpu_counter(&e->counters);
counter           230 net/ipv4/netfilter/arp_tables.c 		ADD_COUNTER(*counter, arp_hdr_len(skb->dev), 1);
counter           281 net/ipv4/netfilter/ip_tables.c 		struct xt_counters *counter;
counter           298 net/ipv4/netfilter/ip_tables.c 		counter = xt_get_this_cpu_counter(&e->counters);
counter           299 net/ipv4/netfilter/ip_tables.c 		ADD_COUNTER(*counter, skb->len, 1);
counter           303 net/ipv6/netfilter/ip6_tables.c 		struct xt_counters *counter;
counter           321 net/ipv6/netfilter/ip6_tables.c 		counter = xt_get_this_cpu_counter(&e->counters);
counter           322 net/ipv6/netfilter/ip6_tables.c 		ADD_COUNTER(*counter, skb->len, 1);
counter          4380 net/mac80211/tx.c void ieee80211_csa_set_counter(struct ieee80211_vif *vif, u8 counter)
counter          4397 net/mac80211/tx.c 	if (counter < beacon->csa_current_counter)
counter          4398 net/mac80211/tx.c 		beacon->csa_current_counter = counter;
counter           484 net/netfilter/ipset/ip_set_core.c 		struct ip_set_counter *counter = ext_counter(data, set);
counter           487 net/netfilter/ipset/ip_set_core.c 		    !(ip_set_match_counter(ip_set_get_packets(counter),
counter           489 net/netfilter/ipset/ip_set_core.c 		      ip_set_match_counter(ip_set_get_bytes(counter),
counter           492 net/netfilter/ipset/ip_set_core.c 		ip_set_update_counter(counter, ext, flags);
counter           109 net/netfilter/ipvs/ip_vs_lblc.c 	int                     counter;        /* counter for no expire */
counter           304 net/netfilter/ipvs/ip_vs_lblc.c 	if ((tbl->counter % COUNT_FOR_FULL_EXPIRATION) == 0) {
counter           307 net/netfilter/ipvs/ip_vs_lblc.c 		tbl->counter = 1;
counter           312 net/netfilter/ipvs/ip_vs_lblc.c 		tbl->counter++;
counter           367 net/netfilter/ipvs/ip_vs_lblc.c 	tbl->counter = 1;
counter           279 net/netfilter/ipvs/ip_vs_lblcr.c 	int                     counter;        /* counter for no expire */
counter           468 net/netfilter/ipvs/ip_vs_lblcr.c 	if ((tbl->counter % COUNT_FOR_FULL_EXPIRATION) == 0) {
counter           471 net/netfilter/ipvs/ip_vs_lblcr.c 		tbl->counter = 1;
counter           476 net/netfilter/ipvs/ip_vs_lblcr.c 		tbl->counter++;
counter           530 net/netfilter/ipvs/ip_vs_lblcr.c 	tbl->counter = 1;
counter           875 net/netfilter/nf_conntrack_core.c 		struct nf_conn_counter *counter = acct->counter;
counter           877 net/netfilter/nf_conntrack_core.c 		atomic64_inc(&counter[CTINFO2DIR(ctinfo)].packets);
counter           878 net/netfilter/nf_conntrack_core.c 		atomic64_add(len, &counter[CTINFO2DIR(ctinfo)].bytes);
counter           889 net/netfilter/nf_conntrack_core.c 		struct nf_conn_counter *counter = acct->counter;
counter           893 net/netfilter/nf_conntrack_core.c 		bytes = atomic64_read(&counter[CTINFO2DIR(ctinfo)].bytes);
counter           240 net/netfilter/nf_conntrack_netlink.c 	struct nf_conn_counter *counter = acct->counter;
counter           245 net/netfilter/nf_conntrack_netlink.c 		pkts = atomic64_xchg(&counter[dir].packets, 0);
counter           246 net/netfilter/nf_conntrack_netlink.c 		bytes = atomic64_xchg(&counter[dir].bytes, 0);
counter           248 net/netfilter/nf_conntrack_netlink.c 		pkts = atomic64_read(&counter[dir].packets);
counter           249 net/netfilter/nf_conntrack_netlink.c 		bytes = atomic64_read(&counter[dir].bytes);
counter           278 net/netfilter/nf_conntrack_standalone.c 	struct nf_conn_counter *counter;
counter           284 net/netfilter/nf_conntrack_standalone.c 	counter = acct->counter;
counter           286 net/netfilter/nf_conntrack_standalone.c 		   (unsigned long long)atomic64_read(&counter[dir].packets),
counter           287 net/netfilter/nf_conntrack_standalone.c 		   (unsigned long long)atomic64_read(&counter[dir].bytes));
counter            23 net/netfilter/nft_counter.c 	struct nft_counter __percpu *counter;
counter            36 net/netfilter/nft_counter.c 	this_cpu = this_cpu_ptr(priv->counter);
counter            78 net/netfilter/nft_counter.c 	priv->counter = cpu_stats;
counter            93 net/netfilter/nft_counter.c 	free_percpu(priv->counter);
counter           110 net/netfilter/nft_counter.c 	this_cpu = this_cpu_ptr(priv->counter);
counter           128 net/netfilter/nft_counter.c 		this_cpu = per_cpu_ptr(priv->counter, cpu);
counter           247 net/netfilter/nft_counter.c 	priv_clone->counter = cpu_stats;
counter           138 net/netfilter/nft_ct.c 			count = nft_ct_get_eval_counter(acct->counter,
counter           148 net/netfilter/nft_ct.c 			pcnt = nft_ct_get_eval_counter(acct->counter,
counter           150 net/netfilter/nft_ct.c 			bcnt = nft_ct_get_eval_counter(acct->counter,
counter            21 net/netfilter/nft_numgen.c 	atomic_t		counter;
counter            30 net/netfilter/nft_numgen.c 		oval = atomic_read(&priv->counter);
counter            32 net/netfilter/nft_numgen.c 	} while (atomic_cmpxchg(&priv->counter, oval, nval) != oval);
counter            70 net/netfilter/nft_numgen.c 	atomic_set(&priv->counter, priv->modulus - 1);
counter          1834 net/netfilter/x_tables.c 			     struct xt_counters *counter)
counter          1836 net/netfilter/x_tables.c 	BUILD_BUG_ON(XT_PCPU_BLOCK_SIZE < (sizeof(*counter) * 2));
counter          1847 net/netfilter/x_tables.c 	counter->pcnt = (__force unsigned long)(state->mem + state->off);
counter          1848 net/netfilter/x_tables.c 	state->off += sizeof(*counter);
counter          1849 net/netfilter/x_tables.c 	if (state->off > (XT_PCPU_BLOCK_SIZE - sizeof(*counter))) {
counter            40 net/netfilter/xt_connbytes.c 	counters = acct->counter;
counter            91 net/sched/sch_netem.c 	u32 counter;
counter           531 net/sched/sch_netem.c 	    q->counter < q->gap - 1 ||	/* inside last reordering gap */
counter           580 net/sched/sch_netem.c 		++q->counter;
counter           588 net/sched/sch_netem.c 		q->counter = 0;
counter          1002 net/sched/sch_netem.c 	q->counter = 0;
counter            69 net/sctp/objcnt.c 				atomic_read(sctp_dbg_objcnt[i].counter));
counter           185 net/smc/smc_cdc.c 	curs.acurs.counter = atomic64_read(&conn->local_tx_ctrl.prod.acurs);
counter           188 net/smc/smc_cdc.c 	curs.acurs.counter = atomic64_read(&conn->local_tx_ctrl.cons.acurs);
counter            61 samples/bpf/tracex6_user.c 			value2.counter, value2.enabled, value2.running);
counter           150 security/keys/dh.c 	__be32 counter = cpu_to_be32(1);
counter           157 security/keys/dh.c 		err = crypto_shash_update(desc, (u8 *)&counter, sizeof(__be32));
counter           189 security/keys/dh.c 		counter = cpu_to_be32(be32_to_cpu(counter) + 1);
counter          1863 sound/core/seq/seq_clientmgr.c 			if (atomic_read(&client->pool->counter))
counter            24 sound/core/seq/seq_memory.c 	return pool->total_elements - atomic_read(&pool->counter);
counter           168 sound/core/seq/seq_memory.c 	atomic_dec(&pool->counter);
counter           256 sound/core/seq/seq_memory.c 		atomic_inc(&pool->counter);
counter           257 sound/core/seq/seq_memory.c 		used = atomic_read(&pool->counter);
counter           432 sound/core/seq/seq_memory.c 	while (atomic_read(&pool->counter) > 0)
counter           466 sound/core/seq/seq_memory.c 	atomic_set(&pool->counter, 0);
counter           498 sound/core/seq/seq_memory.c 	snd_iprintf(buffer, "%sCells in use       : %d\n", space, atomic_read(&pool->counter));
counter            31 sound/core/seq/seq_memory.h 	atomic_t counter;	/* cells free */
counter            60 sound/core/seq/seq_memory.h 	return pool ? pool->total_elements - atomic_read(&pool->counter) : 0;
counter           280 sound/hda/hdac_controller.c 	unsigned int counter = 0;
counter           334 sound/hda/hdac_controller.c 		counter++;
counter           336 sound/hda/hdac_controller.c 		if (counter > HDAC_MAX_CAPS) {
counter           332 sound/soc/codecs/tlv320aic31xx.c 	int counter = count;
counter           335 sound/soc/codecs/tlv320aic31xx.c 	while ((bits & mask) != wbits && counter && !ret) {
counter           338 sound/soc/codecs/tlv320aic31xx.c 		counter--;
counter           344 sound/soc/codecs/tlv320aic31xx.c 			(count - counter) * sleep);
counter           188 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	unsigned int counter = runtime->period_size;
counter           202 sound/soc/mediatek/common/mtk-afe-fe-dai.c 				       irq_data->irq_cnt_maskbit, counter,
counter           339 sound/synth/emux/soundfont.c 	zp->counter = sflist->zone_counter++;
counter           371 sound/synth/emux/soundfont.c 	sp->counter = sflist->sample_counter++;
counter          1174 sound/synth/emux/soundfont.c 			if (p->counter > cur->counter)
counter          1459 sound/synth/emux/soundfont.c 			if (zp->counter < sflist->zone_locked)
counter          1467 sound/synth/emux/soundfont.c 			if (sp->counter < sflist->sample_locked)
counter            28 tools/arch/x86/include/asm/atomic.h 	return READ_ONCE((v)->counter);
counter            40 tools/arch/x86/include/asm/atomic.h 	v->counter = i;
counter            52 tools/arch/x86/include/asm/atomic.h 		     : "+m" (v->counter));
counter            65 tools/arch/x86/include/asm/atomic.h 	GEN_UNARY_RMWcc(LOCK_PREFIX "decl", v->counter, "%0", "e");
counter            70 tools/arch/x86/include/asm/atomic.h 	return cmpxchg(&v->counter, old, new);
counter           312 tools/iio/iio_utils.c 			struct iio_channel_info **ci_array, int *counter)
counter           323 tools/iio/iio_utils.c 	*counter = 0;
counter           361 tools/iio/iio_utils.c 				(*counter)++;
counter           372 tools/iio/iio_utils.c 	*ci_array = malloc(sizeof(**ci_array) * (*counter));
counter           519 tools/iio/iio_utils.c 	bsort_channel_array_by_index(*ci_array, *counter);
counter           530 tools/iio/iio_utils.c 	*counter = 0;
counter            69 tools/iio/iio_utils.h 			struct iio_channel_info **ci_array, int *counter);
counter            25 tools/include/asm-generic/atomic-gcc.h 	return READ_ONCE((v)->counter);
counter            37 tools/include/asm-generic/atomic-gcc.h         v->counter = i;
counter            48 tools/include/asm-generic/atomic-gcc.h 	__sync_add_and_fetch(&v->counter, 1);
counter            61 tools/include/asm-generic/atomic-gcc.h 	return __sync_sub_and_fetch(&v->counter, 1) == 0;
counter            69 tools/include/asm-generic/atomic-gcc.h 	return cmpxchg(&(v)->counter, oldval, newval);
counter            62 tools/include/linux/types.h 	int counter;
counter          3449 tools/include/uapi/linux/bpf.h 	__u64 counter;
counter            19 tools/perf/arch/x86/tests/rdpmc.c static u64 rdpmc(unsigned int counter)
counter            23 tools/perf/arch/x86/tests/rdpmc.c 	asm volatile("rdpmc" : "=a" (low), "=d" (high) : "c" (counter));
counter          1919 tools/perf/builtin-script.c static void __process_stat(struct evsel *counter, u64 tstamp)
counter          1921 tools/perf/builtin-script.c 	int nthreads = perf_thread_map__nr(counter->core.threads);
counter          1922 tools/perf/builtin-script.c 	int ncpus = perf_evsel__nr_cpus(counter);
counter          1926 tools/perf/builtin-script.c 	if (counter->core.system_wide)
counter          1939 tools/perf/builtin-script.c 			counts = perf_counts(counter->counts, cpu, thread);
counter          1942 tools/perf/builtin-script.c 				counter->core.cpus->map[cpu],
counter          1943 tools/perf/builtin-script.c 				perf_thread_map__pid(counter->core.threads, thread),
counter          1948 tools/perf/builtin-script.c 				perf_evsel__name(counter));
counter          1953 tools/perf/builtin-script.c static void process_stat(struct evsel *counter, u64 tstamp)
counter          1956 tools/perf/builtin-script.c 		scripting_ops->process_stat(&stat_config, counter, tstamp);
counter          1958 tools/perf/builtin-script.c 		__process_stat(counter, tstamp);
counter          3258 tools/perf/builtin-script.c 	struct evsel *counter;
counter          3260 tools/perf/builtin-script.c 	evlist__for_each_entry(session->evlist, counter) {
counter          3261 tools/perf/builtin-script.c 		perf_stat_process_counter(&stat_config, counter);
counter          3262 tools/perf/builtin-script.c 		process_stat(counter, round->time);
counter           241 tools/perf/builtin-stat.c perf_evsel__write_stat_event(struct evsel *counter, u32 cpu, u32 thread,
counter           244 tools/perf/builtin-stat.c 	struct perf_sample_id *sid = SID(counter, cpu, thread);
counter           250 tools/perf/builtin-stat.c static int read_single_counter(struct evsel *counter, int cpu,
counter           253 tools/perf/builtin-stat.c 	if (counter->tool_event == PERF_TOOL_DURATION_TIME) {
counter           256 tools/perf/builtin-stat.c 			perf_counts(counter->counts, cpu, thread);
counter           261 tools/perf/builtin-stat.c 	return perf_evsel__read_counter(counter, cpu, thread);
counter           268 tools/perf/builtin-stat.c static int read_counter(struct evsel *counter, struct timespec *rs)
counter           274 tools/perf/builtin-stat.c 		ncpus = perf_evsel__nr_cpus(counter);
counter           278 tools/perf/builtin-stat.c 	if (!counter->supported)
counter           281 tools/perf/builtin-stat.c 	if (counter->core.system_wide)
counter           288 tools/perf/builtin-stat.c 			count = perf_counts(counter->counts, cpu, thread);
counter           294 tools/perf/builtin-stat.c 			if (!perf_counts__is_loaded(counter->counts, cpu, thread) &&
counter           295 tools/perf/builtin-stat.c 			    read_single_counter(counter, cpu, thread, rs)) {
counter           296 tools/perf/builtin-stat.c 				counter->counts->scaled = -1;
counter           297 tools/perf/builtin-stat.c 				perf_counts(counter->counts, cpu, thread)->ena = 0;
counter           298 tools/perf/builtin-stat.c 				perf_counts(counter->counts, cpu, thread)->run = 0;
counter           302 tools/perf/builtin-stat.c 			perf_counts__set_loaded(counter->counts, cpu, thread, false);
counter           305 tools/perf/builtin-stat.c 				if (perf_evsel__write_stat_event(counter, cpu, thread, count)) {
counter           314 tools/perf/builtin-stat.c 						perf_evsel__name(counter),
counter           326 tools/perf/builtin-stat.c 	struct evsel *counter;
counter           329 tools/perf/builtin-stat.c 	evlist__for_each_entry(evsel_list, counter) {
counter           330 tools/perf/builtin-stat.c 		ret = read_counter(counter, rs);
counter           332 tools/perf/builtin-stat.c 			pr_debug("failed to read counter %s\n", counter->name);
counter           334 tools/perf/builtin-stat.c 		if (ret == 0 && perf_stat_process_counter(&stat_config, counter))
counter           335 tools/perf/builtin-stat.c 			pr_warning("failed to process counter %s\n", counter->name);
counter           396 tools/perf/builtin-stat.c static bool perf_evsel__should_store_id(struct evsel *counter)
counter           398 tools/perf/builtin-stat.c 	return STAT_RECORD || counter->core.attr.read_format & PERF_FORMAT_ID;
counter           430 tools/perf/builtin-stat.c 	struct evsel *counter;
counter           460 tools/perf/builtin-stat.c 	evlist__for_each_entry(evsel_list, counter) {
counter           462 tools/perf/builtin-stat.c 		if (create_perf_stat_counter(counter, &stat_config, &target) < 0) {
counter           466 tools/perf/builtin-stat.c 			    counter->leader != counter &&
counter           467 tools/perf/builtin-stat.c 			    counter->weak_group) {
counter           468 tools/perf/builtin-stat.c 				counter = perf_evlist__reset_weak_group(evsel_list, counter);
counter           481 tools/perf/builtin-stat.c 						    perf_evsel__name(counter));
counter           482 tools/perf/builtin-stat.c 				counter->supported = false;
counter           484 tools/perf/builtin-stat.c 				if ((counter->leader != counter) ||
counter           485 tools/perf/builtin-stat.c 				    !(counter->leader->core.nr_members > 1))
counter           487 tools/perf/builtin-stat.c 			} else if (perf_evsel__fallback(counter, errno, msg, sizeof(msg))) {
counter           505 tools/perf/builtin-stat.c 			perf_evsel__open_strerror(counter, &target,
counter           514 tools/perf/builtin-stat.c 		counter->supported = true;
counter           516 tools/perf/builtin-stat.c 		l = strlen(counter->unit);
counter           520 tools/perf/builtin-stat.c 		if (perf_evsel__should_store_id(counter) &&
counter           521 tools/perf/builtin-stat.c 		    perf_evsel__store_ids(counter, evsel_list))
counter           525 tools/perf/builtin-stat.c 	if (perf_evlist__apply_filters(evsel_list, &counter)) {
counter           527 tools/perf/builtin-stat.c 			counter->filter, perf_evsel__name(counter), errno,
counter           863 tools/perf/builtin-stat.c 	struct evsel *counter;
counter           865 tools/perf/builtin-stat.c 	evlist__for_each_entry(evsel_list, counter) {
counter           866 tools/perf/builtin-stat.c 		if (counter->percore)
counter          1457 tools/perf/builtin-stat.c 	struct evsel *counter;
counter          1462 tools/perf/builtin-stat.c 	evlist__for_each_entry(evsel_list, counter)
counter          1463 tools/perf/builtin-stat.c 		perf_stat_process_counter(&stat_config, counter);
counter          1671 tools/perf/builtin-stat.c 		struct evsel *counter;
counter          1673 tools/perf/builtin-stat.c 		evlist__for_each_entry(evsel_list, counter) {
counter          1674 tools/perf/builtin-stat.c 			if (!counter->core.system_wide)
counter           525 tools/perf/builtin-top.c 				int counter = 0;
counter           532 tools/perf/builtin-top.c 				prompt_integer(&counter, "Enter details event counter");
counter           534 tools/perf/builtin-top.c 				if (counter >= top->evlist->core.nr_entries) {
counter           541 tools/perf/builtin-top.c 					if (top->sym_evsel->idx == counter)
counter           984 tools/perf/builtin-top.c 	struct evsel *counter;
counter           993 tools/perf/builtin-top.c 	evlist__for_each_entry(evlist, counter)
counter           994 tools/perf/builtin-top.c 		counter->core.attr.write_backward = false;
counter          1003 tools/perf/builtin-top.c 	struct evsel *counter;
counter          1015 tools/perf/builtin-top.c 	evlist__for_each_entry(evlist, counter) {
counter          1017 tools/perf/builtin-top.c 		if (evsel__open(counter, top->evlist->core.cpus,
counter          1031 tools/perf/builtin-top.c 			    perf_top_overwrite_fallback(top, counter))
counter          1034 tools/perf/builtin-top.c 			if (perf_evsel__fallback(counter, errno, msg, sizeof(msg))) {
counter          1040 tools/perf/builtin-top.c 			perf_evsel__open_strerror(counter, &opts->target,
counter            96 tools/perf/util/cgroup.c 	struct evsel *counter;
counter           100 tools/perf/util/cgroup.c 	evlist__for_each_entry(evlist, counter) {
counter           101 tools/perf/util/cgroup.c 		if (!counter->cgrp)
counter           103 tools/perf/util/cgroup.c 		if (!strcmp(counter->cgrp->name, str))
counter           104 tools/perf/util/cgroup.c 			return cgroup__get(counter->cgrp);
counter           143 tools/perf/util/cgroup.c 	struct evsel *counter;
counter           154 tools/perf/util/cgroup.c 	evlist__for_each_entry(evlist, counter) {
counter           163 tools/perf/util/cgroup.c 	counter->cgrp = cgrp;
counter           206 tools/perf/util/cgroup.c 	struct evsel *counter;
counter           241 tools/perf/util/cgroup.c 		evlist__for_each_entry(evlist, counter) {
counter           243 tools/perf/util/cgroup.c 				cgrp = counter->cgrp;
counter           245 tools/perf/util/cgroup.c 				counter->cgrp = cgrp;
counter          1757 tools/perf/util/evlist.c 	struct evsel *counter;
counter          1765 tools/perf/util/evlist.c 	evlist__for_each_entry(evlist, counter) {
counter          1766 tools/perf/util/evlist.c 		if (evsel__open(counter, evlist->core.cpus,
counter          1774 tools/perf/util/evlist.c 	evlist__for_each_entry(evlist, counter) {
counter          1775 tools/perf/util/evlist.c 		if (evsel__enable(counter))
counter          1315 tools/perf/util/evsel.c perf_evsel__set_count(struct evsel *counter, int cpu, int thread,
counter          1320 tools/perf/util/evsel.c 	count = perf_counts(counter->counts, cpu, thread);
counter          1326 tools/perf/util/evsel.c 	perf_counts__set_loaded(counter->counts, cpu, thread, true);
counter          1354 tools/perf/util/evsel.c 		struct evsel *counter;
counter          1356 tools/perf/util/evsel.c 		counter = perf_evlist__id2evsel(leader->evlist, v[i].id);
counter          1357 tools/perf/util/evsel.c 		if (!counter)
counter          1360 tools/perf/util/evsel.c 		perf_evsel__set_count(counter, cpu, thread,
counter          1356 tools/perf/util/scripting-engines/trace-event-python.c process_stat(struct evsel *counter, int cpu, int thread, u64 tstamp,
counter          1368 tools/perf/util/scripting-engines/trace-event-python.c 			 counter);
counter          1393 tools/perf/util/scripting-engines/trace-event-python.c 				struct evsel *counter, u64 tstamp)
counter          1395 tools/perf/util/scripting-engines/trace-event-python.c 	struct perf_thread_map *threads = counter->core.threads;
counter          1396 tools/perf/util/scripting-engines/trace-event-python.c 	struct perf_cpu_map *cpus = counter->core.cpus;
counter          1400 tools/perf/util/scripting-engines/trace-event-python.c 		process_stat(counter, -1, -1, tstamp,
counter          1401 tools/perf/util/scripting-engines/trace-event-python.c 			     &counter->counts->aggr);
counter          1407 tools/perf/util/scripting-engines/trace-event-python.c 			process_stat(counter, cpus->map[cpu],
counter          1409 tools/perf/util/scripting-engines/trace-event-python.c 				     perf_counts(counter->counts, cpu, thread));
counter           367 tools/perf/util/stat-display.c static bool is_mixed_hw_group(struct evsel *counter)
counter           369 tools/perf/util/stat-display.c 	struct evlist *evlist = counter->evlist;
counter           370 tools/perf/util/stat-display.c 	u32 pmu_type = counter->core.attr.type;
counter           373 tools/perf/util/stat-display.c 	if (counter->core.nr_members < 2)
counter           392 tools/perf/util/stat-display.c 		     struct evsel *counter, double uval,
counter           402 tools/perf/util/stat-display.c 		.evsel = counter,
counter           430 tools/perf/util/stat-display.c 		if (counter->cgrp)
counter           433 tools/perf/util/stat-display.c 	if (run == 0 || ena == 0 || counter->counts->scaled == -1) {
counter           438 tools/perf/util/stat-display.c 		aggr_printout(config, counter, id, nr);
counter           442 tools/perf/util/stat-display.c 			counter->supported ? CNTR_NOT_COUNTED : CNTR_NOT_SUPPORTED,
counter           445 tools/perf/util/stat-display.c 		if (counter->supported) {
counter           447 tools/perf/util/stat-display.c 			if (is_mixed_hw_group(counter))
counter           453 tools/perf/util/stat-display.c 			counter->unit, config->csv_sep);
counter           457 tools/perf/util/stat-display.c 			perf_evsel__name(counter));
counter           459 tools/perf/util/stat-display.c 		print_cgroup(config, counter);
counter           463 tools/perf/util/stat-display.c 		print_noise(config, counter, noise);
counter           471 tools/perf/util/stat-display.c 		abs_printout(config, id, nr, counter, uval);
counter           479 tools/perf/util/stat-display.c 		print_noise(config, counter, noise);
counter           483 tools/perf/util/stat-display.c 	perf_stat__print_shadow_stats(config, counter, uval,
counter           484 tools/perf/util/stat-display.c 				first_shadow_cpu(config, counter, id),
counter           487 tools/perf/util/stat-display.c 		print_noise(config, counter, noise);
counter           497 tools/perf/util/stat-display.c 	struct evsel *counter;
counter           501 tools/perf/util/stat-display.c 		evlist__for_each_entry(evlist, counter) {
counter           503 tools/perf/util/stat-display.c 			for (cpu = 0; cpu < perf_evsel__nr_cpus(counter); cpu++) {
counter           507 tools/perf/util/stat-display.c 				val += perf_counts(counter->counts, cpu, 0)->val;
counter           509 tools/perf/util/stat-display.c 			perf_stat__update_shadow_stats(counter, val,
counter           510 tools/perf/util/stat-display.c 					first_shadow_cpu(config, counter, id),
counter           516 tools/perf/util/stat-display.c static void uniquify_event_name(struct evsel *counter)
counter           521 tools/perf/util/stat-display.c 	if (counter->uniquified_name ||
counter           522 tools/perf/util/stat-display.c 	    !counter->pmu_name || !strncmp(counter->name, counter->pmu_name,
counter           523 tools/perf/util/stat-display.c 					   strlen(counter->pmu_name)))
counter           526 tools/perf/util/stat-display.c 	config = strchr(counter->name, '/');
counter           529 tools/perf/util/stat-display.c 			     "%s%s", counter->pmu_name, config) > 0) {
counter           530 tools/perf/util/stat-display.c 			free(counter->name);
counter           531 tools/perf/util/stat-display.c 			counter->name = new_name;
counter           535 tools/perf/util/stat-display.c 			     "%s [%s]", counter->name, counter->pmu_name) > 0) {
counter           536 tools/perf/util/stat-display.c 			free(counter->name);
counter           537 tools/perf/util/stat-display.c 			counter->name = new_name;
counter           541 tools/perf/util/stat-display.c 	counter->uniquified_name = true;
counter           544 tools/perf/util/stat-display.c static void collect_all_aliases(struct perf_stat_config *config, struct evsel *counter,
counter           545 tools/perf/util/stat-display.c 			    void (*cb)(struct perf_stat_config *config, struct evsel *counter, void *data,
counter           549 tools/perf/util/stat-display.c 	struct evlist *evlist = counter->evlist;
counter           552 tools/perf/util/stat-display.c 	alias = list_prepare_entry(counter, &(evlist->core.entries), core.node);
counter           554 tools/perf/util/stat-display.c 		if (strcmp(perf_evsel__name(alias), perf_evsel__name(counter)) ||
counter           555 tools/perf/util/stat-display.c 		    alias->scale != counter->scale ||
counter           556 tools/perf/util/stat-display.c 		    alias->cgrp != counter->cgrp ||
counter           557 tools/perf/util/stat-display.c 		    strcmp(alias->unit, counter->unit) ||
counter           558 tools/perf/util/stat-display.c 		    perf_evsel__is_clock(alias) != perf_evsel__is_clock(counter) ||
counter           559 tools/perf/util/stat-display.c 		    !strcmp(alias->pmu_name, counter->pmu_name))
counter           566 tools/perf/util/stat-display.c static bool collect_data(struct perf_stat_config *config, struct evsel *counter,
counter           567 tools/perf/util/stat-display.c 			    void (*cb)(struct perf_stat_config *config, struct evsel *counter, void *data,
counter           571 tools/perf/util/stat-display.c 	if (counter->merged_stat)
counter           573 tools/perf/util/stat-display.c 	cb(config, counter, data, true);
counter           575 tools/perf/util/stat-display.c 		uniquify_event_name(counter);
counter           576 tools/perf/util/stat-display.c 	else if (counter->auto_merge_stats)
counter           577 tools/perf/util/stat-display.c 		collect_all_aliases(config, counter, cb, data);
counter           589 tools/perf/util/stat-display.c 		    struct evsel *counter, void *data, bool first)
counter           594 tools/perf/util/stat-display.c 	for (cpu = 0; cpu < perf_evsel__nr_cpus(counter); cpu++) {
counter           597 tools/perf/util/stat-display.c 		s2 = config->aggr_get_id(config, evsel__cpus(counter), cpu);
counter           602 tools/perf/util/stat-display.c 		counts = perf_counts(counter->counts, cpu, 0);
counter           608 tools/perf/util/stat-display.c 		    counter->counts->scaled == -1) {
counter           620 tools/perf/util/stat-display.c 				   struct evsel *counter, int s,
counter           633 tools/perf/util/stat-display.c 	if (!collect_data(config, counter, aggr_cb, &ad))
counter           642 tools/perf/util/stat-display.c 		aggr_printout(config, counter, id, nr);
counter           647 tools/perf/util/stat-display.c 	uval = val * counter->scale;
counter           648 tools/perf/util/stat-display.c 	printout(config, id, nr, counter, uval, prefix,
counter           660 tools/perf/util/stat-display.c 	struct evsel *counter;
counter           678 tools/perf/util/stat-display.c 		evlist__for_each_entry(evlist, counter) {
counter           679 tools/perf/util/stat-display.c 			print_counter_aggrdata(config, counter, s,
counter           695 tools/perf/util/stat-display.c 					struct evsel *counter,
counter           712 tools/perf/util/stat-display.c 			val += perf_counts(counter->counts, cpu, thread)->val;
counter           713 tools/perf/util/stat-display.c 			ena += perf_counts(counter->counts, cpu, thread)->ena;
counter           714 tools/perf/util/stat-display.c 			run += perf_counts(counter->counts, cpu, thread)->run;
counter           717 tools/perf/util/stat-display.c 		uval = val * counter->scale;
counter           726 tools/perf/util/stat-display.c 		buf[i].counter = counter;
counter           745 tools/perf/util/stat-display.c 			      struct evsel *counter, char *prefix)
counter           748 tools/perf/util/stat-display.c 	int nthreads = perf_thread_map__nr(counter->core.threads);
counter           749 tools/perf/util/stat-display.c 	int ncpus = perf_cpu_map__nr(counter->core.cpus);
counter           753 tools/perf/util/stat-display.c 	buf = sort_aggr_thread(counter, nthreads, ncpus, &sorted_threads, _target);
counter           765 tools/perf/util/stat-display.c 			printout(config, id, 0, buf[thread].counter, buf[thread].uval,
counter           769 tools/perf/util/stat-display.c 			printout(config, id, 0, buf[thread].counter, buf[thread].uval,
counter           783 tools/perf/util/stat-display.c 			    struct evsel *counter, void *data,
counter           787 tools/perf/util/stat-display.c 	struct perf_stat_evsel *ps = counter->stats;
counter           799 tools/perf/util/stat-display.c 			       struct evsel *counter, char *prefix)
counter           806 tools/perf/util/stat-display.c 	if (!collect_data(config, counter, counter_aggr_cb, &cd))
counter           812 tools/perf/util/stat-display.c 	uval = cd.avg * counter->scale;
counter           813 tools/perf/util/stat-display.c 	printout(config, -1, 0, counter, uval, prefix, cd.avg_running, cd.avg_enabled,
counter           820 tools/perf/util/stat-display.c 		       struct evsel *counter, void *data,
counter           825 tools/perf/util/stat-display.c 	ad->val += perf_counts(counter->counts, ad->cpu, 0)->val;
counter           826 tools/perf/util/stat-display.c 	ad->ena += perf_counts(counter->counts, ad->cpu, 0)->ena;
counter           827 tools/perf/util/stat-display.c 	ad->run += perf_counts(counter->counts, ad->cpu, 0)->run;
counter           835 tools/perf/util/stat-display.c 			  struct evsel *counter, char *prefix)
counter           842 tools/perf/util/stat-display.c 	for (cpu = 0; cpu < perf_evsel__nr_cpus(counter); cpu++) {
counter           845 tools/perf/util/stat-display.c 		if (!collect_data(config, counter, counter_cb, &ad))
counter           854 tools/perf/util/stat-display.c 		uval = val * counter->scale;
counter           855 tools/perf/util/stat-display.c 		printout(config, cpu, 0, counter, uval, prefix, run, ena, 1.0,
counter           868 tools/perf/util/stat-display.c 	struct evsel *counter;
counter           878 tools/perf/util/stat-display.c 		evlist__for_each_entry(evlist, counter) {
counter           880 tools/perf/util/stat-display.c 				aggr_printout(config, counter, cpu, 0);
counter           883 tools/perf/util/stat-display.c 			val = perf_counts(counter->counts, cpu, 0)->val;
counter           884 tools/perf/util/stat-display.c 			ena = perf_counts(counter->counts, cpu, 0)->ena;
counter           885 tools/perf/util/stat-display.c 			run = perf_counts(counter->counts, cpu, 0)->run;
counter           887 tools/perf/util/stat-display.c 			uval = val * counter->scale;
counter           888 tools/perf/util/stat-display.c 			printout(config, cpu, 0, counter, uval, prefix, run, ena, 1.0,
counter           918 tools/perf/util/stat-display.c 	struct evsel *counter;
counter           936 tools/perf/util/stat-display.c 	evlist__for_each_entry(evlist, counter) {
counter           937 tools/perf/util/stat-display.c 		os.evsel = counter;
counter           942 tools/perf/util/stat-display.c 		os.evsel = counter;
counter           943 tools/perf/util/stat-display.c 		perf_stat__print_shadow_stats(config, counter, 0,
counter          1136 tools/perf/util/stat-display.c 			  struct evsel *counter, char *prefix)
counter          1150 tools/perf/util/stat-display.c 		print_counter_aggrdata(config, counter, s,
counter          1168 tools/perf/util/stat-display.c 	struct evsel *counter;
counter          1194 tools/perf/util/stat-display.c 		evlist__for_each_entry(evlist, counter) {
counter          1195 tools/perf/util/stat-display.c 			print_aggr_thread(config, _target, counter, prefix);
counter          1199 tools/perf/util/stat-display.c 		evlist__for_each_entry(evlist, counter) {
counter          1200 tools/perf/util/stat-display.c 			print_counter_aggr(config, counter, prefix);
counter          1209 tools/perf/util/stat-display.c 			evlist__for_each_entry(evlist, counter) {
counter          1210 tools/perf/util/stat-display.c 				if (counter->percore)
counter          1211 tools/perf/util/stat-display.c 					print_percore(config, counter, prefix);
counter          1213 tools/perf/util/stat-display.c 					print_counter(config, counter, prefix);
counter           210 tools/perf/util/stat-shadow.c void perf_stat__update_shadow_stats(struct evsel *counter, u64 count,
counter           213 tools/perf/util/stat-shadow.c 	int ctx = evsel_context(counter);
counter           217 tools/perf/util/stat-shadow.c 	count *= counter->scale;
counter           219 tools/perf/util/stat-shadow.c 	if (perf_evsel__is_clock(counter))
counter           221 tools/perf/util/stat-shadow.c 	else if (perf_evsel__match(counter, HARDWARE, HW_CPU_CYCLES))
counter           223 tools/perf/util/stat-shadow.c 	else if (perf_stat_evsel__is(counter, CYCLES_IN_TX))
counter           225 tools/perf/util/stat-shadow.c 	else if (perf_stat_evsel__is(counter, TRANSACTION_START))
counter           227 tools/perf/util/stat-shadow.c 	else if (perf_stat_evsel__is(counter, ELISION_START))
counter           229 tools/perf/util/stat-shadow.c 	else if (perf_stat_evsel__is(counter, TOPDOWN_TOTAL_SLOTS))
counter           232 tools/perf/util/stat-shadow.c 	else if (perf_stat_evsel__is(counter, TOPDOWN_SLOTS_ISSUED))
counter           235 tools/perf/util/stat-shadow.c 	else if (perf_stat_evsel__is(counter, TOPDOWN_SLOTS_RETIRED))
counter           238 tools/perf/util/stat-shadow.c 	else if (perf_stat_evsel__is(counter, TOPDOWN_FETCH_BUBBLES))
counter           241 tools/perf/util/stat-shadow.c 	else if (perf_stat_evsel__is(counter, TOPDOWN_RECOVERY_BUBBLES))
counter           244 tools/perf/util/stat-shadow.c 	else if (perf_evsel__match(counter, HARDWARE, HW_STALLED_CYCLES_FRONTEND))
counter           247 tools/perf/util/stat-shadow.c 	else if (perf_evsel__match(counter, HARDWARE, HW_STALLED_CYCLES_BACKEND))
counter           250 tools/perf/util/stat-shadow.c 	else if (perf_evsel__match(counter, HARDWARE, HW_BRANCH_INSTRUCTIONS))
counter           252 tools/perf/util/stat-shadow.c 	else if (perf_evsel__match(counter, HARDWARE, HW_CACHE_REFERENCES))
counter           254 tools/perf/util/stat-shadow.c 	else if (perf_evsel__match(counter, HW_CACHE, HW_CACHE_L1D))
counter           256 tools/perf/util/stat-shadow.c 	else if (perf_evsel__match(counter, HW_CACHE, HW_CACHE_L1I))
counter           258 tools/perf/util/stat-shadow.c 	else if (perf_evsel__match(counter, HW_CACHE, HW_CACHE_LL))
counter           260 tools/perf/util/stat-shadow.c 	else if (perf_evsel__match(counter, HW_CACHE, HW_CACHE_DTLB))
counter           262 tools/perf/util/stat-shadow.c 	else if (perf_evsel__match(counter, HW_CACHE, HW_CACHE_ITLB))
counter           264 tools/perf/util/stat-shadow.c 	else if (perf_stat_evsel__is(counter, SMI_NUM))
counter           266 tools/perf/util/stat-shadow.c 	else if (perf_stat_evsel__is(counter, APERF))
counter           269 tools/perf/util/stat-shadow.c 	if (counter->collect_stat) {
counter           270 tools/perf/util/stat-shadow.c 		v = saved_value_lookup(counter, cpu, true, STAT_NONE, 0, st);
counter           272 tools/perf/util/stat-shadow.c 		if (counter->metric_leader)
counter           274 tools/perf/util/stat-shadow.c 	} else if (counter->metric_leader) {
counter           275 tools/perf/util/stat-shadow.c 		v = saved_value_lookup(counter->metric_leader,
counter           324 tools/perf/util/stat-shadow.c 	struct evsel *counter, *leader, **metric_events, *oc;
counter           330 tools/perf/util/stat-shadow.c 	evlist__for_each_entry(evsel_list, counter) {
counter           333 tools/perf/util/stat-shadow.c 		leader = counter->leader;
counter           334 tools/perf/util/stat-shadow.c 		if (!counter->metric_expr)
counter           336 tools/perf/util/stat-shadow.c 		metric_events = counter->metric_events;
counter           338 tools/perf/util/stat-shadow.c 			if (expr__find_other(counter->metric_expr, counter->name,
counter           346 tools/perf/util/stat-shadow.c 			counter->metric_events = metric_events;
counter           380 tools/perf/util/stat-shadow.c 						counter->name);
counter           393 tools/perf/util/stat-shadow.c 			counter->metric_events = NULL;
counter           394 tools/perf/util/stat-shadow.c 			counter->metric_expr = NULL;
counter           232 tools/perf/util/stat.c static void zero_per_pkg(struct evsel *counter)
counter           234 tools/perf/util/stat.c 	if (counter->per_pkg_mask)
counter           235 tools/perf/util/stat.c 		memset(counter->per_pkg_mask, 0, cpu__max_cpu());
counter           238 tools/perf/util/stat.c static int check_per_pkg(struct evsel *counter,
counter           241 tools/perf/util/stat.c 	unsigned long *mask = counter->per_pkg_mask;
counter           242 tools/perf/util/stat.c 	struct perf_cpu_map *cpus = evsel__cpus(counter);
counter           247 tools/perf/util/stat.c 	if (!counter->per_pkg)
counter           258 tools/perf/util/stat.c 		counter->per_pkg_mask = mask;
counter           333 tools/perf/util/stat.c 				struct evsel *counter)
counter           335 tools/perf/util/stat.c 	int nthreads = perf_thread_map__nr(counter->core.threads);
counter           336 tools/perf/util/stat.c 	int ncpus = perf_evsel__nr_cpus(counter);
counter           339 tools/perf/util/stat.c 	if (counter->core.system_wide)
counter           344 tools/perf/util/stat.c 			if (process_counter_values(config, counter, cpu, thread,
counter           345 tools/perf/util/stat.c 						   perf_counts(counter->counts, cpu, thread)))
counter           354 tools/perf/util/stat.c 			      struct evsel *counter)
counter           356 tools/perf/util/stat.c 	struct perf_counts_values *aggr = &counter->counts->aggr;
counter           357 tools/perf/util/stat.c 	struct perf_stat_evsel *ps = counter->stats;
counter           358 tools/perf/util/stat.c 	u64 *count = counter->counts->aggr.values;
counter           373 tools/perf/util/stat.c 	if (counter->per_pkg)
counter           374 tools/perf/util/stat.c 		zero_per_pkg(counter);
counter           376 tools/perf/util/stat.c 	ret = process_counter_maps(config, counter);
counter           383 tools/perf/util/stat.c 	if (!counter->snapshot)
counter           384 tools/perf/util/stat.c 		perf_evsel__compute_deltas(counter, -1, -1, aggr);
counter           385 tools/perf/util/stat.c 	perf_counts_values__scale(aggr, config->scale, &counter->counts->scaled);
counter           392 tools/perf/util/stat.c 			perf_evsel__name(counter), count[0], count[1], count[2]);
counter           398 tools/perf/util/stat.c 	perf_stat__update_shadow_stats(counter, *count, 0, &rt_stat);
counter           408 tools/perf/util/stat.c 	struct evsel *counter;
counter           414 tools/perf/util/stat.c 	counter = perf_evlist__id2evsel(session->evlist, st->id);
counter           415 tools/perf/util/stat.c 	if (!counter) {
counter           420 tools/perf/util/stat.c 	*perf_counts(counter->counts, st->cpu, st->thread) = count;
counter           421 tools/perf/util/stat.c 	counter->supported = true;
counter           149 tools/perf/util/stat.h 	struct evsel *counter;
counter           176 tools/perf/util/stat.h void perf_stat__update_shadow_stats(struct evsel *counter, u64 count,
counter           199 tools/perf/util/stat.h 			      struct evsel *counter);
counter           183 tools/power/x86/turbostat/turbostat.c 	unsigned long long counter[MAX_ADDED_THREAD_COUNTERS];
counter           194 tools/power/x86/turbostat/turbostat.c 	unsigned long long counter[MAX_ADDED_COUNTERS];
counter           221 tools/power/x86/turbostat/turbostat.c 	unsigned long long counter[MAX_ADDED_COUNTERS];
counter           822 tools/power/x86/turbostat/turbostat.c 				i, mp->msr_num, t->counter[i]);
counter           836 tools/power/x86/turbostat/turbostat.c 				i, mp->msr_num, c->counter[i]);
counter           873 tools/power/x86/turbostat/turbostat.c 				i, mp->msr_num, p->counter[i]);
counter          1010 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s0x%08x", (printed++ ? delim : ""), (unsigned int) t->counter[i]);
counter          1012 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s0x%016llx", (printed++ ? delim : ""), t->counter[i]);
counter          1015 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%8lld", (printed++ ? delim : ""), t->counter[i]);
counter          1017 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%lld", (printed++ ? delim : ""), t->counter[i]);
counter          1020 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), t->counter[i]/interval_float/10000);
counter          1022 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * t->counter[i]/tsc);
counter          1052 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s0x%08x", (printed++ ? delim : ""), (unsigned int) c->counter[i]);
counter          1054 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s0x%016llx", (printed++ ? delim : ""), c->counter[i]);
counter          1057 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%8lld", (printed++ ? delim : ""), c->counter[i]);
counter          1059 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%lld", (printed++ ? delim : ""), c->counter[i]);
counter          1061 tools/power/x86/turbostat/turbostat.c 			outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * c->counter[i]/tsc);
counter          1155 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s0x%08x", (printed++ ? delim : ""), (unsigned int) p->counter[i]);
counter          1157 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s0x%016llx", (printed++ ? delim : ""), p->counter[i]);
counter          1160 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%8lld", (printed++ ? delim : ""), p->counter[i]);
counter          1162 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%lld", (printed++ ? delim : ""), p->counter[i]);
counter          1164 tools/power/x86/turbostat/turbostat.c 			outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * p->counter[i]/tsc);
counter          1266 tools/power/x86/turbostat/turbostat.c 			old->counter[i] = new->counter[i];
counter          1268 tools/power/x86/turbostat/turbostat.c 			old->counter[i] = new->counter[i] - old->counter[i];
counter          1290 tools/power/x86/turbostat/turbostat.c 			old->counter[i] = new->counter[i];
counter          1292 tools/power/x86/turbostat/turbostat.c 			old->counter[i] = new->counter[i] - old->counter[i];
counter          1385 tools/power/x86/turbostat/turbostat.c 			old->counter[i] = new->counter[i];
counter          1387 tools/power/x86/turbostat/turbostat.c 			old->counter[i] = new->counter[i] - old->counter[i];
counter          1473 tools/power/x86/turbostat/turbostat.c 		t->counter[i] = 0;
counter          1476 tools/power/x86/turbostat/turbostat.c 		c->counter[i] = 0;
counter          1479 tools/power/x86/turbostat/turbostat.c 		p->counter[i] = 0;
counter          1511 tools/power/x86/turbostat/turbostat.c 		average.threads.counter[i] += t->counter[i];
counter          1530 tools/power/x86/turbostat/turbostat.c 		average.cores.counter[i] += c->counter[i];
counter          1576 tools/power/x86/turbostat/turbostat.c 		average.packages.counter[i] += p->counter[i];
counter          1635 tools/power/x86/turbostat/turbostat.c 			if (average.threads.counter[i] > 9999999)
counter          1639 tools/power/x86/turbostat/turbostat.c 		average.threads.counter[i] /= topo.num_cpus;
counter          1645 tools/power/x86/turbostat/turbostat.c 			if (average.cores.counter[i] > 9999999)
counter          1648 tools/power/x86/turbostat/turbostat.c 		average.cores.counter[i] /= topo.num_cores;
counter          1654 tools/power/x86/turbostat/turbostat.c 			if (average.packages.counter[i] > 9999999)
counter          1657 tools/power/x86/turbostat/turbostat.c 		average.packages.counter[i] /= topo.num_packages;
counter          1690 tools/power/x86/turbostat/turbostat.c 	unsigned long long counter;
counter          1694 tools/power/x86/turbostat/turbostat.c 	retval = fscanf(fp, "%lld", &counter);
counter          1700 tools/power/x86/turbostat/turbostat.c 	return counter;
counter          1868 tools/power/x86/turbostat/turbostat.c 		if (get_mp(cpu, mp, &t->counter[i]))
counter          1910 tools/power/x86/turbostat/turbostat.c 		if (get_mp(cpu, mp, &c->counter[i]))
counter          2016 tools/power/x86/turbostat/turbostat.c 		if (get_mp(cpu, mp, &p->counter[i]))
counter           245 tools/testing/selftests/bpf/progs/strobemeta.h 	size_t counter;
counter            96 tools/testing/selftests/powerpc/tm/tm-unavailable.c 	uint64_t counter = 0x1ff000000;
counter           220 tools/testing/selftests/powerpc/tm/tm-unavailable.c 		  [counter]   "r"  (counter)
counter            99 tools/testing/selftests/rcutorture/formal/srcu-cbmc/include/linux/types.h 	int counter;
counter           104 tools/testing/selftests/rcutorture/formal/srcu-cbmc/include/linux/types.h 	long counter;
counter            57 tools/testing/selftests/sync/sync_stress_consumer.c 	int counter;
counter            94 tools/testing/selftests/sync/sync_stress_consumer.c 		test_data_mpsc.counter++;
counter           140 tools/testing/selftests/sync/sync_stress_consumer.c 		ASSERT(test_data_mpsc.counter == n * it,
counter           170 tools/testing/selftests/sync/sync_stress_consumer.c 	test_data_mpsc.counter = 0;
counter            37 tools/testing/selftests/sync/sync_stress_parallelism.c 	int counter;
counter            61 tools/testing/selftests/sync/sync_stress_parallelism.c 		ASSERT(test_data_two_threads.counter == i * 2 + thread_id,
counter            63 tools/testing/selftests/sync/sync_stress_parallelism.c 		test_data_two_threads.counter++;
counter            85 tools/testing/selftests/sync/sync_stress_parallelism.c 	test_data_two_threads.counter = 0;
counter           104 tools/testing/selftests/sync/sync_stress_parallelism.c 	ASSERT(test_data_two_threads.counter ==
counter           107 virt/kvm/arm/pmu.c 	u64 counter, counter_high, reg, enabled, running;
counter           113 virt/kvm/arm/pmu.c 		counter = __vcpu_sys_reg(vcpu, reg);
counter           116 virt/kvm/arm/pmu.c 		counter = lower_32_bits(counter) | (counter_high << 32);
counter           120 virt/kvm/arm/pmu.c 		counter = __vcpu_sys_reg(vcpu, reg);
counter           128 virt/kvm/arm/pmu.c 		counter += perf_event_read_value(pmc->perf_event, &enabled,
counter           131 virt/kvm/arm/pmu.c 	return counter;
counter           141 virt/kvm/arm/pmu.c 	u64 counter;
counter           145 virt/kvm/arm/pmu.c 	counter = kvm_pmu_get_pair_counter_value(vcpu, pmc);
counter           149 virt/kvm/arm/pmu.c 		counter = upper_32_bits(counter);
counter           151 virt/kvm/arm/pmu.c 		counter = lower_32_bits(counter);
counter           153 virt/kvm/arm/pmu.c 	return counter;
counter           196 virt/kvm/arm/pmu.c 	u64 counter, reg, val;
counter           202 virt/kvm/arm/pmu.c 	counter = kvm_pmu_get_pair_counter_value(vcpu, pmc);
counter           206 virt/kvm/arm/pmu.c 		val = counter;
counter           209 virt/kvm/arm/pmu.c 		val = lower_32_bits(counter);
counter           215 virt/kvm/arm/pmu.c 		__vcpu_sys_reg(vcpu, reg + 1) = upper_32_bits(counter);
counter           570 virt/kvm/arm/pmu.c 	u64 eventsel, counter, reg, data;
counter           603 virt/kvm/arm/pmu.c 	counter = kvm_pmu_get_pair_counter_value(vcpu, pmc);
counter           611 virt/kvm/arm/pmu.c 		attr.sample_period = (-counter) & GENMASK(63, 0);
counter           621 virt/kvm/arm/pmu.c 			attr.sample_period = (-counter) & GENMASK(63, 0);
counter           623 virt/kvm/arm/pmu.c 			attr.sample_period = (-counter) & GENMASK(31, 0);