Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 200 of 544) sorted by relevance

123

/linux-4.1.27/drivers/staging/comedi/drivers/
Dni_tiocmd.c50 static void ni_tio_configure_dma(struct ni_gpct *counter, in ni_tio_configure_dma() argument
53 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_configure_dma()
54 unsigned cidx = counter->counter_index; in ni_tio_configure_dma()
67 ni_tio_set_bits(counter, NITIO_INPUT_SEL_REG(cidx), mask, bits); in ni_tio_configure_dma()
81 ni_tio_set_bits(counter, NITIO_DMA_CFG_REG(cidx), mask, bits); in ni_tio_configure_dma()
90 struct ni_gpct *counter = s->private; in ni_tio_input_inttrig() local
98 spin_lock_irqsave(&counter->lock, flags); in ni_tio_input_inttrig()
99 if (counter->mite_chan) in ni_tio_input_inttrig()
100 mite_dma_arm(counter->mite_chan); in ni_tio_input_inttrig()
103 spin_unlock_irqrestore(&counter->lock, flags); in ni_tio_input_inttrig()
[all …]
Dni_tio.c182 static void ni_tio_reset_count_and_disarm(struct ni_gpct *counter) in ni_tio_reset_count_and_disarm() argument
184 unsigned cidx = counter->counter_index; in ni_tio_reset_count_and_disarm()
186 write_register(counter, GI_RESET(cidx), NITIO_RESET_REG(cidx)); in ni_tio_reset_count_and_disarm()
189 static uint64_t ni_tio_clock_period_ps(const struct ni_gpct *counter, in ni_tio_clock_period_ps() argument
212 return counter->clock_period_ps; in ni_tio_clock_period_ps()
231 static unsigned ni_tio_clock_src_modifiers(const struct ni_gpct *counter) in ni_tio_clock_src_modifiers() argument
233 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_clock_src_modifiers()
234 unsigned cidx = counter->counter_index; in ni_tio_clock_src_modifiers()
236 ni_tio_get_soft_copy(counter, NITIO_CNT_MODE_REG(cidx)); in ni_tio_clock_src_modifiers()
239 if (ni_tio_get_soft_copy(counter, NITIO_INPUT_SEL_REG(cidx)) & in ni_tio_clock_src_modifiers()
[all …]
Dcomedi_8254.c195 unsigned int comedi_8254_status(struct comedi_8254 *i8254, unsigned int counter) in comedi_8254_status() argument
199 if (counter > 2) in comedi_8254_status()
202 cmd = I8254_CTRL_READBACK_STATUS | I8254_CTRL_READBACK_SEL_CTR(counter); in comedi_8254_status()
205 return __i8254_read(i8254, counter); in comedi_8254_status()
214 unsigned int comedi_8254_read(struct comedi_8254 *i8254, unsigned int counter) in comedi_8254_read() argument
218 if (counter > 2) in comedi_8254_read()
222 __i8254_write(i8254, I8254_CTRL_SEL_CTR(counter) | I8254_CTRL_LATCH, in comedi_8254_read()
226 val = __i8254_read(i8254, counter); in comedi_8254_read()
227 val |= (__i8254_read(i8254, counter) << 8); in comedi_8254_read()
240 unsigned int counter, unsigned int val) in comedi_8254_write() argument
[all …]
Dni_tio_internal.h159 static inline void write_register(struct ni_gpct *counter, unsigned bits, in write_register() argument
163 counter->counter_dev->write_register(counter, bits, reg); in write_register()
166 static inline unsigned read_register(struct ni_gpct *counter, in read_register() argument
170 return counter->counter_dev->read_register(counter, reg); in read_register()
190 static inline void ni_tio_set_bits_transient(struct ni_gpct *counter, in ni_tio_set_bits_transient() argument
196 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_set_bits_transient()
203 write_register(counter, in ni_tio_set_bits_transient()
214 static inline void ni_tio_set_bits(struct ni_gpct *counter, in ni_tio_set_bits() argument
218 ni_tio_set_bits_transient(counter, register_index, bit_mask, bit_values, in ni_tio_set_bits()
226 static inline unsigned ni_tio_get_soft_copy(const struct ni_gpct *counter, in ni_tio_get_soft_copy() argument
[all …]
Dcomedi_8254.h99 unsigned int comedi_8254_status(struct comedi_8254 *, unsigned int counter);
100 unsigned int comedi_8254_read(struct comedi_8254 *, unsigned int counter);
102 unsigned int counter, unsigned int val);
105 unsigned int counter, unsigned int mode);
107 unsigned int counter, unsigned int val, unsigned int mode);
119 unsigned int counter, bool busy);
Dni_660x.c620 static void ni_gpct_write_register(struct ni_gpct *counter, unsigned bits, in ni_gpct_write_register() argument
623 struct comedi_device *dev = counter->counter_dev->dev; in ni_gpct_write_register()
625 unsigned chip = counter->chip_index; in ni_gpct_write_register()
630 static unsigned ni_gpct_read_register(struct ni_gpct *counter, in ni_gpct_read_register() argument
633 struct comedi_device *dev = counter->counter_dev->dev; in ni_gpct_read_register()
635 unsigned chip = counter->chip_index; in ni_gpct_read_register()
643 *counter) in mite_ring() argument
645 unsigned chip = counter->chip_index; in mite_ring()
647 return priv->mite_rings[chip][counter->counter_index]; in mite_ring()
652 struct ni_gpct *counter) in ni_660x_set_dma_channel() argument
[all …]
Dquatech_daqp_cs.c273 int counter = 10000; in daqp_ai_insn_read() local
304 while (--counter in daqp_ai_insn_read()
307 if (!counter) { in daqp_ai_insn_read()
450 int counter; in daqp_ai_cmd() local
482 counter = daqp_ns_to_timer(&cmd->convert_arg, cmd->flags); in daqp_ai_cmd()
483 outb(counter & 0xff, dev->iobase + DAQP_PACER_LOW); in daqp_ai_cmd()
484 outb((counter >> 8) & 0xff, dev->iobase + DAQP_PACER_MID); in daqp_ai_cmd()
485 outb((counter >> 16) & 0xff, dev->iobase + DAQP_PACER_HIGH); in daqp_ai_cmd()
488 counter = daqp_ns_to_timer(&cmd->scan_begin_arg, cmd->flags); in daqp_ai_cmd()
489 outb(counter & 0xff, dev->iobase + DAQP_PACER_LOW); in daqp_ai_cmd()
[all …]
Ddas16m1.c125 struct comedi_8254 *counter; member
268 comedi_8254_set_mode(devpriv->counter, 1, I8254_MODE2 | I8254_BINARY); in das16m1_cmd_exec()
269 comedi_8254_write(devpriv->counter, 1, 0); in das16m1_cmd_exec()
275 devpriv->initial_hw_count = comedi_8254_read(devpriv->counter, 1); in das16m1_cmd_exec()
411 hw_counter = comedi_8254_read(devpriv->counter, 1); in das16m1_handler()
561 devpriv->counter = comedi_8254_init(dev->iobase + DAS16M1_8254_FIRST, in das16m1_attach()
563 if (!devpriv->counter) in das16m1_attach()
629 kfree(devpriv->counter); in das16m1_detach()
Dni_tio.h118 void (*write_register)(struct ni_gpct *counter, unsigned bits,
120 unsigned (*read_register)(struct ni_gpct *counter,
Dni_labpc_common.c261 comedi_8254_set_mode(devpriv->counter, 0, I8254_MODE2 | I8254_BINARY); in labpc_ai_insn_read()
649 comedi_8254_load(devpriv->counter, 1, in labpc_ai_cmd()
653 comedi_8254_set_mode(devpriv->counter, 1, in labpc_ai_cmd()
696 struct comedi_8254 *counter = devpriv->counter; in labpc_ai_cmd() local
705 comedi_8254_set_mode(counter, 0, I8254_MODE2 | I8254_BINARY); in labpc_ai_cmd()
707 comedi_8254_write(counter, 0, pacer->divisor); in labpc_ai_cmd()
1221 devpriv->counter = comedi_8254_mm_init(dev->mmio + in labpc_common_attach()
1229 devpriv->counter = comedi_8254_init(dev->iobase + in labpc_common_attach()
1234 if (!dev->pacer || !devpriv->counter) in labpc_common_attach()
1338 kfree(devpriv->counter); in labpc_common_detach()
Dni_labpc.h39 struct comedi_8254 *counter; member
/linux-4.1.27/arch/arm/include/asm/
Datomic.h30 #define atomic_read(v) ACCESS_ONCE((v)->counter)
31 #define atomic_set(v,i) (((v)->counter) = (i))
47 prefetchw(&v->counter); \
54 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \
55 : "r" (&v->counter), "Ir" (i) \
66 prefetchw(&v->counter); \
74 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \
75 : "r" (&v->counter), "Ir" (i) \
89 prefetchw(&ptr->counter); in atomic_cmpxchg()
97 : "=&r" (res), "=&r" (oldval), "+Qo" (ptr->counter) in atomic_cmpxchg()
[all …]
Dmmu.h22 #define ASID(mm) ((unsigned int)((mm)->context.id.counter & ~ASID_MASK))
/linux-4.1.27/arch/x86/kernel/cpu/
Dperfctr-watchdog.c98 int avail_to_resrv_perfctr_nmi_bit(unsigned int counter) in avail_to_resrv_perfctr_nmi_bit() argument
100 BUG_ON(counter > NMI_MAX_COUNTER_BITS); in avail_to_resrv_perfctr_nmi_bit()
102 return !test_bit(counter, perfctr_nmi_owner); in avail_to_resrv_perfctr_nmi_bit()
108 unsigned int counter; in reserve_perfctr_nmi() local
110 counter = nmi_perfctr_msr_to_bit(msr); in reserve_perfctr_nmi()
112 if (counter > NMI_MAX_COUNTER_BITS) in reserve_perfctr_nmi()
115 if (!test_and_set_bit(counter, perfctr_nmi_owner)) in reserve_perfctr_nmi()
123 unsigned int counter; in release_perfctr_nmi() local
125 counter = nmi_perfctr_msr_to_bit(msr); in release_perfctr_nmi()
127 if (counter > NMI_MAX_COUNTER_BITS) in release_perfctr_nmi()
[all …]
/linux-4.1.27/include/linux/
Dpage_counter.h24 static inline void page_counter_init(struct page_counter *counter, in page_counter_init() argument
27 atomic_long_set(&counter->count, 0); in page_counter_init()
28 counter->limit = PAGE_COUNTER_MAX; in page_counter_init()
29 counter->parent = parent; in page_counter_init()
32 static inline unsigned long page_counter_read(struct page_counter *counter) in page_counter_read() argument
34 return atomic_long_read(&counter->count); in page_counter_read()
37 void page_counter_cancel(struct page_counter *counter, unsigned long nr_pages);
38 void page_counter_charge(struct page_counter *counter, unsigned long nr_pages);
39 int page_counter_try_charge(struct page_counter *counter,
42 void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages);
[all …]
Dtypes.h176 int counter; member
181 long counter; member
Dquota.h257 struct percpu_counter counter[_DQST_DQSTAT_LAST]; member
265 percpu_counter_inc(&dqstats.counter[type]); in dqstats_inc()
270 percpu_counter_dec(&dqstats.counter[type]); in dqstats_dec()
/linux-4.1.27/arch/powerpc/include/asm/
Datomic.h19 __asm__ __volatile__("lwz%U1%X1 %0,%1" : "=r"(t) : "m"(v->counter)); in atomic_read()
26 __asm__ __volatile__("stw%U0%X0 %1,%0" : "=m"(v->counter) : "r"(i)); in atomic_set()
40 : "=&r" (t), "+m" (v->counter) \
41 : "r" (a), "r" (&v->counter) \
59 : "r" (a), "r" (&v->counter) \
86 : "=&r" (t), "+m" (v->counter) in ATOMIC_OPS()
87 : "r" (&v->counter) in ATOMIC_OPS()
104 : "r" (&v->counter) in atomic_inc_return()
130 : "=&r" (t), "+m" (v->counter) in atomic_dec()
131 : "r" (&v->counter) in atomic_dec()
[all …]
Dlocal.h33 : "r" (a), "r" (&(l->a.counter)) in local_add_return()
52 : "r" (a), "r" (&(l->a.counter)) in local_sub_return()
69 : "r" (&(l->a.counter)) in local_inc_return()
96 : "r" (&(l->a.counter)) in local_dec_return()
103 (cmpxchg_local(&((l)->a.counter), (o), (n)))
104 #define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n)))
130 : "r" (&(l->a.counter)), "r" (a), "r" (u) in local_add_unless()
159 : "r" (&(l->a.counter)) in local_dec_if_positive()
170 #define __local_inc(l) ((l)->a.counter++)
171 #define __local_dec(l) ((l)->a.counter++)
[all …]
Dmutex.h22 : "r" (&v->counter), "r" (old), "r" (new) in __mutex_cmpxchg_lock()
40 : "r" (&v->counter) in __mutex_dec_return_lock()
58 : "r" (&v->counter) in __mutex_inc_return_unlock()
/linux-4.1.27/lib/
Datomic64_test.c30 BUG_ON(v.counter != r); in test_atomic64()
34 BUG_ON(v.counter != r); in test_atomic64()
40 BUG_ON(v.counter != r); in test_atomic64()
45 BUG_ON(v.counter != r); in test_atomic64()
50 BUG_ON(v.counter != r); in test_atomic64()
55 BUG_ON(v.counter != r); in test_atomic64()
60 BUG_ON(v.counter != r); in test_atomic64()
65 BUG_ON(v.counter != r); in test_atomic64()
70 BUG_ON(v.counter != r); in test_atomic64()
75 BUG_ON(v.counter != r); in test_atomic64()
[all …]
Datomic64.c56 val = v->counter; in atomic64_read()
68 v->counter = i; in atomic64_set()
80 v->counter c_op a; \
93 val = (v->counter c_op a); \
117 val = v->counter - 1; in atomic64_dec_if_positive()
119 v->counter = val; in atomic64_dec_if_positive()
132 val = v->counter; in atomic64_cmpxchg()
134 v->counter = n; in atomic64_cmpxchg()
147 val = v->counter; in atomic64_xchg()
148 v->counter = new; in atomic64_xchg()
[all …]
/linux-4.1.27/arch/x86/include/asm/
Datomic64_64.h21 return ACCESS_ONCE((v)->counter); in atomic64_read()
33 v->counter = i; in atomic64_set()
46 : "=m" (v->counter) in atomic64_add()
47 : "er" (i), "m" (v->counter)); in atomic64_add()
60 : "=m" (v->counter) in atomic64_sub()
61 : "er" (i), "m" (v->counter)); in atomic64_sub()
75 GEN_BINARY_RMWcc(LOCK_PREFIX "subq", v->counter, "er", i, "%0", "e"); in atomic64_sub_and_test()
87 : "=m" (v->counter) in atomic64_inc()
88 : "m" (v->counter)); in atomic64_inc()
100 : "=m" (v->counter) in atomic64_dec()
[all …]
Datomic.h27 return ACCESS_ONCE((v)->counter); in atomic_read()
39 v->counter = i; in atomic_set()
52 : "+m" (v->counter) in atomic_add()
66 : "+m" (v->counter) in atomic_sub()
81 GEN_BINARY_RMWcc(LOCK_PREFIX "subl", v->counter, "er", i, "%0", "e"); in atomic_sub_and_test()
93 : "+m" (v->counter)); in atomic_inc()
105 : "+m" (v->counter)); in atomic_dec()
118 GEN_UNARY_RMWcc(LOCK_PREFIX "decl", v->counter, "%0", "e"); in atomic_dec_and_test()
131 GEN_UNARY_RMWcc(LOCK_PREFIX "incl", v->counter, "%0", "e"); in atomic_inc_and_test()
145 GEN_BINARY_RMWcc(LOCK_PREFIX "addl", v->counter, "er", i, "%0", "s"); in atomic_add_negative()
[all …]
Dlocal.h21 : "+m" (l->a.counter)); in local_inc()
27 : "+m" (l->a.counter)); in local_dec()
33 : "+m" (l->a.counter) in local_add()
40 : "+m" (l->a.counter) in local_sub()
55 GEN_BINARY_RMWcc(_ASM_SUB, l->a.counter, "er", i, "%0", "e"); in local_sub_and_test()
68 GEN_UNARY_RMWcc(_ASM_DEC, l->a.counter, "%0", "e"); in local_dec_and_test()
81 GEN_UNARY_RMWcc(_ASM_INC, l->a.counter, "%0", "e"); in local_inc_and_test()
95 GEN_BINARY_RMWcc(_ASM_ADD, l->a.counter, "er", i, "%0", "s"); in local_add_negative()
109 : "+r" (i), "+m" (l->a.counter) in local_add_return()
123 (cmpxchg_local(&((l)->a.counter), (o), (n)))
[all …]
Dmsr.h122 static inline unsigned long long native_read_pmc(int counter) in native_read_pmc() argument
126 asm volatile("rdpmc" : EAX_EDX_RET(val, low, high) : "c" (counter)); in native_read_pmc()
188 #define rdpmc(counter, low, high) \ argument
190 u64 _l = native_read_pmc((counter)); \
195 #define rdpmcl(counter, val) ((val) = native_read_pmc(counter)) argument
Dmutex_64.h25 : : "m" (v->counter) in __mutex_fastpath_lock()
80 : : "m" (v->counter) in __mutex_fastpath_unlock()
Datomic64_32.h12 u64 __aligned(8) counter;
76 return cmpxchg64(&v->counter, o, n); in atomic64_cmpxchg()
Dparavirt.h204 static inline unsigned long long paravirt_read_pmc(int counter) in paravirt_read_pmc() argument
206 return PVOP_CALL1(u64, pv_cpu_ops.read_pmc, counter); in paravirt_read_pmc()
209 #define rdpmc(counter, low, high) \ argument
211 u64 _l = paravirt_read_pmc(counter); \
216 #define rdpmcl(counter, val) ((val) = paravirt_read_pmc(counter)) argument
/linux-4.1.27/tools/perf/
Dbuiltin-stat.c71 static void print_counter_aggr(struct perf_evsel *counter, char *prefix);
72 static void print_counter(struct perf_evsel *counter, char *prefix);
356 static void update_shadow_stats(struct perf_evsel *counter, u64 *count, in update_shadow_stats() argument
359 if (perf_evsel__match(counter, SOFTWARE, SW_TASK_CLOCK)) in update_shadow_stats()
361 else if (perf_evsel__match(counter, HARDWARE, HW_CPU_CYCLES)) in update_shadow_stats()
364 perf_evsel__cmp(counter, nth_evsel(T_CYCLES_IN_TX))) in update_shadow_stats()
367 perf_evsel__cmp(counter, nth_evsel(T_TRANSACTION_START))) in update_shadow_stats()
370 perf_evsel__cmp(counter, nth_evsel(T_ELISION_START))) in update_shadow_stats()
372 else if (perf_evsel__match(counter, HARDWARE, HW_STALLED_CYCLES_FRONTEND)) in update_shadow_stats()
374 else if (perf_evsel__match(counter, HARDWARE, HW_STALLED_CYCLES_BACKEND)) in update_shadow_stats()
[all …]
Ddesign.txt13 hardware capabilities. It provides per task and per CPU counters, counter
19 There's one file descriptor per virtual counter used.
29 VFS system calls: read() can be used to read the counter, fcntl()
35 When creating a new counter fd, 'perf_event_attr' is:
40 * specific (raw) counter configuration data, if unset, the next
71 The 'config' field specifies what the counter should count. It
78 If 'raw_type' is 1, then the counter will count a hardware event
82 If 'raw_type' is 0, then the 'type' field says what kind of counter
91 A counter of PERF_TYPE_HARDWARE will count the hardware event
95 * Generalized performance counter event types, used by the hw_event.event_id
[all …]
Dbuiltin-top.c174 int counter, u64 ip) in perf_top__record_precise_ip() argument
194 err = hist_entry__inc_addr_samples(he, counter, ip); in perf_top__record_precise_ip()
472 int counter = 0; in perf_top__handle_keypress() local
479 prompt_integer(&counter, "Enter details event counter"); in perf_top__handle_keypress()
481 if (counter >= top->evlist->nr_entries) { in perf_top__handle_keypress()
488 if (top->sym_evsel->idx == counter) in perf_top__handle_keypress()
878 struct perf_evsel *counter; in perf_top__start_counters() local
884 evlist__for_each(evlist, counter) { in perf_top__start_counters()
886 if (perf_evsel__open(counter, top->evlist->cpus, in perf_top__start_counters()
888 if (perf_evsel__fallback(counter, errno, msg, sizeof(msg))) { in perf_top__start_counters()
[all …]
/linux-4.1.27/arch/mips/include/asm/
Datomic.h33 #define atomic_read(v) ACCESS_ONCE((v)->counter)
42 #define atomic_set(v, i) ((v)->counter = (i))
57 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (v->counter) \
69 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (v->counter) \
76 v->counter c_op i; \
100 "+" GCC_OFF_SMALL_ASM() (v->counter) \
113 "+" GCC_OFF_SMALL_ASM() (v->counter) \
122 result = v->counter; \
124 v->counter = result; \
174 "+" GCC_OFF_SMALL_ASM() (v->counter) in atomic_sub_if_positive()
[all …]
Dlocal.h44 : "=&r" (result), "=&r" (temp), "=m" (l->a.counter) in local_add_return()
45 : "Ir" (i), "m" (l->a.counter) in local_add_return()
58 : "=&r" (result), "=&r" (temp), "=m" (l->a.counter) in local_add_return()
59 : "Ir" (i), "m" (l->a.counter) in local_add_return()
65 result = l->a.counter; in local_add_return()
67 l->a.counter = result; in local_add_return()
89 : "=&r" (result), "=&r" (temp), "=m" (l->a.counter) in local_sub_return()
90 : "Ir" (i), "m" (l->a.counter) in local_sub_return()
103 : "=&r" (result), "=&r" (temp), "=m" (l->a.counter) in local_sub_return()
104 : "Ir" (i), "m" (l->a.counter) in local_sub_return()
[all …]
Dmipsregs.h860 #define read_r10k_perf_cntr(counter) \ argument
866 : "i" (counter)); \
871 #define write_r10k_perf_cntr(counter,val) \ argument
876 : "r" (val), "i" (counter)); \
879 #define read_r10k_perf_event(counter) \ argument
885 : "i" (counter)); \
890 #define write_r10k_perf_cntl(counter,val) \ argument
895 : "r" (val), "i" (counter)); \
/linux-4.1.27/mm/
Dpage_counter.c20 void page_counter_cancel(struct page_counter *counter, unsigned long nr_pages) in page_counter_cancel() argument
24 new = atomic_long_sub_return(nr_pages, &counter->count); in page_counter_cancel()
36 void page_counter_charge(struct page_counter *counter, unsigned long nr_pages) in page_counter_charge() argument
40 for (c = counter; c; c = c->parent) { in page_counter_charge()
62 int page_counter_try_charge(struct page_counter *counter, in page_counter_try_charge() argument
68 for (c = counter; c; c = c->parent) { in page_counter_try_charge()
105 for (c = counter; c != *fail; c = c->parent) in page_counter_try_charge()
116 void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages) in page_counter_uncharge() argument
120 for (c = counter; c; c = c->parent) in page_counter_uncharge()
134 int page_counter_limit(struct page_counter *counter, unsigned long limit) in page_counter_limit() argument
[all …]
Dhugetlb_cgroup.c113 struct page_counter *counter; in hugetlb_cgroup_move_parent() local
132 counter = &h_cg->hugepage[idx]; in hugetlb_cgroup_move_parent()
134 page_counter_cancel(counter, nr_pages); in hugetlb_cgroup_move_parent()
169 struct page_counter *counter; in hugetlb_cgroup_charge_cgroup() local
189 ret = page_counter_try_charge(&h_cg->hugepage[idx], nr_pages, &counter); in hugetlb_cgroup_charge_cgroup()
250 struct page_counter *counter; in hugetlb_cgroup_read_u64() local
253 counter = &h_cg->hugepage[MEMFILE_IDX(cft->private)]; in hugetlb_cgroup_read_u64()
257 return (u64)page_counter_read(counter) * PAGE_SIZE; in hugetlb_cgroup_read_u64()
259 return (u64)counter->limit * PAGE_SIZE; in hugetlb_cgroup_read_u64()
261 return (u64)counter->watermark * PAGE_SIZE; in hugetlb_cgroup_read_u64()
[all …]
/linux-4.1.27/arch/metag/include/asm/
Datomic_lock1.h13 return (v)->counter; in atomic_read()
35 v->counter = i; in atomic_set()
47 v->counter c_op i; \
58 result = v->counter; \
61 v->counter = result; \
82 v->counter &= ~mask; in atomic_clear_mask()
92 v->counter |= mask; in atomic_set_mask()
102 ret = v->counter; in atomic_cmpxchg()
105 v->counter = new; in atomic_cmpxchg()
112 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
[all …]
Datomic_lnkget.h6 #define atomic_set(v, i) ((v)->counter = (i))
25 : "da" (&v->counter)); in atomic_read()
44 : "da" (&v->counter), "bd" (i) \
64 : "da" (&v->counter), "bd" (i) \
94 : "da" (&v->counter), "bd" (~mask) in ATOMIC_OPS()
111 : "da" (&v->counter), "bd" (mask) in atomic_set_mask()
132 : "da" (&v->counter), "bd" (old), "da" (new) in atomic_cmpxchg()
152 : "da" (&v->counter), "da" (new) in atomic_xchg()
176 : "da" (&v->counter), "bd" (u), "bd" (a) in __atomic_add_unless()
199 : "da" (&v->counter), "bd" (i) in atomic_sub_if_positive()
/linux-4.1.27/net/dccp/ccids/lib/
Dloss_interval.c28 return lh->counter ? lh->ring[LIH_INDEX(lh->counter - 1)] : NULL; in tfrc_lh_peek()
34 BUG_ON(i >= lh->counter); in tfrc_lh_get_interval()
35 return lh->ring[LIH_INDEX(lh->counter - i - 1)]->li_length; in tfrc_lh_get_interval()
43 if (lh->ring[LIH_INDEX(lh->counter)] == NULL) in tfrc_lh_demand_next()
44 lh->ring[LIH_INDEX(lh->counter)] = kmem_cache_alloc(tfrc_lh_slab, in tfrc_lh_demand_next()
46 return lh->ring[LIH_INDEX(lh->counter)]; in tfrc_lh_demand_next()
54 for (lh->counter = 0; lh->counter < LIH_SIZE; lh->counter++) in tfrc_lh_cleanup()
55 if (lh->ring[LIH_INDEX(lh->counter)] != NULL) { in tfrc_lh_cleanup()
57 lh->ring[LIH_INDEX(lh->counter)]); in tfrc_lh_cleanup()
58 lh->ring[LIH_INDEX(lh->counter)] = NULL; in tfrc_lh_cleanup()
[all …]
Dloss_interval.h47 u8 counter; member
58 return lh->counter > 0; in tfrc_lh_is_initialised()
63 return min(lh->counter, (u8)LIH_SIZE); in tfrc_lh_length()
/linux-4.1.27/arch/parisc/include/asm/
Dspinlock.h78 rw->counter++; in arch_read_lock()
90 rw->counter--; in arch_read_unlock()
103 rw->counter++; in arch_read_trylock()
111 if (rw->counter < 0) in arch_read_trylock()
115 while (arch_spin_is_locked(&rw->lock) && rw->counter >= 0) in arch_read_trylock()
130 if (rw->counter != 0) { in arch_write_lock()
134 while (rw->counter != 0) in arch_write_lock()
140 rw->counter = -1; /* mark as write-locked */ in arch_write_lock()
147 rw->counter = 0; in arch_write_unlock()
160 if (rw->counter == 0) { in arch_write_trylock()
[all …]
Datomic.h63 v->counter = i; in atomic_set()
70 return ACCESS_ONCE((v)->counter); in atomic_read()
74 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
75 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
107 v->counter c_op i; \
118 ret = (v->counter c_op i); \
167 v->counter c_op i; \
178 ret = (v->counter c_op i); \
199 v->counter = i; in atomic64_set()
207 return ACCESS_ONCE((v)->counter); in atomic64_read()
[all …]
Dspinlock_types.h16 volatile int counter; member
/linux-4.1.27/arch/frv/include/asm/
Datomic.h34 #define atomic_read(v) ACCESS_ONCE((v)->counter)
35 #define atomic_set(v, i) (((v)->counter) = (i))
51 : "+U"(v->counter), "=&r"(val) in atomic_add_return()
72 : "+U"(v->counter), "=&r"(val) in atomic_sub_return()
123 volatile long long counter; member
130 long long counter; in atomic64_read() local
133 : "=e"(counter) in atomic64_read()
134 : "m"(v->counter)); in atomic64_read()
135 return counter; in atomic64_read()
141 : "=m"(v->counter) in atomic64_set()
[all …]
/linux-4.1.27/arch/tile/include/asm/
Datomic_64.h27 #define atomic_set(v, i) ((v)->counter = (i))
37 __insn_fetchadd4((void *)&v->counter, i); in atomic_add()
44 val = __insn_fetchadd4((void *)&v->counter, i) + i; in atomic_add_return()
51 int guess, oldval = v->counter; in __atomic_add_unless()
56 oldval = cmpxchg(&v->counter, guess, guess + a); in __atomic_add_unless()
65 #define atomic64_read(v) ((v)->counter)
66 #define atomic64_set(v, i) ((v)->counter = (i))
70 __insn_fetchadd((void *)&v->counter, i); in atomic64_add()
77 val = __insn_fetchadd((void *)&v->counter, i) + i; in atomic64_add_return()
84 long guess, oldval = v->counter; in atomic64_add_unless()
[all …]
Datomic_32.h34 _atomic_xchg_add(&v->counter, i); in atomic_add()
47 return _atomic_xchg_add(&v->counter, i) + i; in atomic_add_return()
62 return _atomic_xchg_add_unless(&v->counter, a, u); in __atomic_add_unless()
77 _atomic_xchg(&v->counter, n); in atomic_set()
83 long long counter; member
101 return _atomic64_xchg_add((long long *)&v->counter, 0); in atomic64_read()
113 _atomic64_xchg_add(&v->counter, i); in atomic64_add()
126 return _atomic64_xchg_add(&v->counter, i) + i; in atomic64_add_return()
142 return _atomic64_xchg_add_unless(&v->counter, a, u) != u; in atomic64_add_unless()
157 _atomic64_xchg(&v->counter, n); in atomic64_set()
Datomic.h37 return ACCESS_ONCE(v->counter); in atomic_read()
125 return xchg(&v->counter, n); in atomic_xchg()
139 return cmpxchg(&v->counter, o, n); in atomic_cmpxchg()
171 return xchg64(&v->counter, n); in atomic64_xchg()
186 return cmpxchg64(&v->counter, o, n); in atomic64_cmpxchg()
/linux-4.1.27/arch/avr32/include/asm/
Datomic.h22 #define atomic_read(v) ACCESS_ONCE((v)->counter)
23 #define atomic_set(v, i) (((v)->counter) = i)
37 : "=&r" (result), "=o" (v->counter) \
38 : "m" (v->counter), #asm_con (i) \
117 : "=&r"(tmp), "=o"(v->counter) in __atomic_add_unless()
118 : "m"(v->counter), "rKs21"(-a), "rKs21"(u) in __atomic_add_unless()
131 : "=&r"(tmp), "=o"(v->counter) in __atomic_add_unless()
132 : "m"(v->counter), "r"(a), "ir"(u) in __atomic_add_unless()
162 : "=&r"(result), "=o"(v->counter) in atomic_sub_if_positive()
163 : "m"(v->counter), "ir"(i) in atomic_sub_if_positive()
[all …]
/linux-4.1.27/arch/alpha/include/asm/
Datomic.h20 #define atomic_read(v) ACCESS_ONCE((v)->counter)
21 #define atomic64_read(v) ACCESS_ONCE((v)->counter)
23 #define atomic_set(v,i) ((v)->counter = (i))
24 #define atomic64_set(v,i) ((v)->counter = (i))
44 :"=&r" (temp), "=m" (v->counter) \
45 :"Ir" (i), "m" (v->counter)); \
62 :"=&r" (temp), "=m" (v->counter), "=&r" (result) \
63 :"Ir" (i), "m" (v->counter) : "memory"); \
80 :"=&r" (temp), "=m" (v->counter) \
81 :"Ir" (i), "m" (v->counter)); \
[all …]
Dlocal.h32 :"=&r" (temp), "=m" (l->a.counter), "=&r" (result) in local_add_return()
33 :"Ir" (i), "m" (l->a.counter) : "memory"); in local_add_return()
49 :"=&r" (temp), "=m" (l->a.counter), "=&r" (result) in local_sub_return()
50 :"Ir" (i), "m" (l->a.counter) : "memory"); in local_sub_return()
55 (cmpxchg_local(&((l)->a.counter), (o), (n)))
56 #define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n)))
96 #define __local_inc(l) ((l)->a.counter++)
97 #define __local_dec(l) ((l)->a.counter++)
98 #define __local_add(i,l) ((l)->a.counter+=(i))
99 #define __local_sub(i,l) ((l)->a.counter-=(i))
/linux-4.1.27/drivers/net/wireless/prism54/
Dislpci_dev.c555 unsigned counter; in islpci_reset() local
573 for (counter = 0; counter < ISL38XX_CB_QCOUNT; counter++) { in islpci_reset()
574 cb->driver_curr_frag[counter] = cpu_to_le32(0); in islpci_reset()
575 cb->device_curr_frag[counter] = cpu_to_le32(0); in islpci_reset()
579 for (counter = 0; counter < ISL38XX_CB_MGMT_QSIZE; counter++) { in islpci_reset()
580 isl38xx_fragment *frag = &cb->rx_data_mgmt[counter]; in islpci_reset()
583 frag->address = cpu_to_le32(priv->mgmt_rx[counter].pci_addr); in islpci_reset()
586 for (counter = 0; counter < ISL38XX_CB_RX_QSIZE; counter++) { in islpci_reset()
587 cb->rx_data_low[counter].address = in islpci_reset()
588 cpu_to_le32((u32) priv->pci_map_rx_address[counter]); in islpci_reset()
[all …]
Disl_38xx.c115 u32 counter = 0; in isl38xx_trigger_device() local
146 counter++; in isl38xx_trigger_device()
159 counter); in isl38xx_trigger_device()
/linux-4.1.27/arch/m32r/include/asm/
Dlocal.h27 typedef struct { volatile int counter; } local_t; member
37 #define local_read(l) ((l)->counter)
46 #define local_set(l, i) (((l)->counter) = (i))
68 : "r" (&l->counter), "r" (i) in local_add_return()
99 : "r" (&l->counter), "r" (i) in local_sub_return()
158 : "r" (&l->counter) in local_inc_return()
188 : "r" (&l->counter) in local_dec_return()
246 #define local_cmpxchg(l, o, n) (cmpxchg_local(&((l)->counter), (o), (n)))
247 #define local_xchg(v, new) (xchg_local(&((l)->counter), new))
330 #define __local_inc(l) ((l)->a.counter++)
[all …]
Datomic.h31 #define atomic_read(v) ACCESS_ONCE((v)->counter)
40 #define atomic_set(v,i) (((v)->counter) = (i))
62 : "r" (&v->counter), "r" (i) \
83 : "r" (&v->counter), "r" (i) \
131 : "r" (&v->counter) in ATOMIC_OPS()
159 : "r" (&v->counter) in atomic_dec_return()
215 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
216 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
/linux-4.1.27/include/asm-generic/
Datomic.h47 c = v->counter; \
48 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \
57 c = v->counter; \
58 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \
74 v->counter = v->counter c_op i; \
85 ret = (v->counter = v->counter c_op i); \
129 #define atomic_read(v) ACCESS_ONCE((v)->counter)
139 #define atomic_set(v, i) (((v)->counter) = (i))
175 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v)))
176 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
/linux-4.1.27/arch/arm64/include/asm/
Datomic.h38 #define atomic_read(v) ACCESS_ONCE((v)->counter)
39 #define atomic_set(v,i) (((v)->counter) = (i))
58 : "=&r" (result), "=&r" (tmp), "+Q" (v->counter) \
73 : "=&r" (result), "=&r" (tmp), "+Q" (v->counter) \
106 : "=&r" (tmp), "=&r" (oldval), "+Q" (ptr->counter) in ATOMIC_OPS()
114 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
142 #define atomic64_read(v) ACCESS_ONCE((v)->counter)
143 #define atomic64_set(v,i) (((v)->counter) = (i))
156 : "=&r" (result), "=&r" (tmp), "+Q" (v->counter) \
171 : "=&r" (result), "=&r" (tmp), "+Q" (v->counter) \
[all …]
/linux-4.1.27/arch/s390/include/asm/
Datomic.h41 : "=d" (old_val), "+Q" ((ptr)->counter) \
65 : "=&d" (old_val), "=&d" (new_val), "+Q" ((ptr)->counter)\
79 : "=d" (c) : "Q" (v->counter)); in atomic_read()
87 : "=Q" (v->counter) : "d" (i)); in atomic_set()
101 : "+Q" (v->counter) in atomic_add()
131 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
137 : "+d" (old), "+Q" (v->counter) in atomic_cmpxchg()
181 : "=d" (old_val), "+Q" ((ptr)->counter) \
205 : "=&d" (old_val), "=&d" (new_val), "+Q" ((ptr)->counter)\
219 : "=d" (c) : "Q" (v->counter)); in atomic64_read()
[all …]
/linux-4.1.27/arch/arc/include/asm/
Dspinlock.h101 #define arch_read_can_lock(x) ((x)->counter > 0)
104 #define arch_write_can_lock(x) ((x)->counter == __ARCH_RW_LOCK_UNLOCKED__)
117 if (rw->counter > 0) { in arch_read_trylock()
118 rw->counter--; in arch_read_trylock()
141 if (rw->counter == __ARCH_RW_LOCK_UNLOCKED__) { in arch_write_trylock()
142 rw->counter = 0; in arch_write_trylock()
165 rw->counter++; in arch_read_unlock()
172 rw->counter = __ARCH_RW_LOCK_UNLOCKED__; in arch_write_unlock()
Datomic.h20 #define atomic_read(v) ((v)->counter)
24 #define atomic_set(v, i) (((v)->counter) = (i))
37 : "r"(&v->counter), "ir"(i) \
58 : "r"(&v->counter), "ir"(i) \
71 #define atomic_set(v, i) (((v)->counter) = (i))
89 v->counter = i; in atomic_set()
106 v->counter c_op i; \
120 temp = v->counter; \
122 v->counter = temp; \
Dspinlock_types.h28 volatile unsigned int counter; member
33 #define __ARCH_RW_LOCK_UNLOCKED { .counter = __ARCH_RW_LOCK_UNLOCKED__ }
Dcmpxchg.h81 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
159 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
/linux-4.1.27/arch/sparc/include/asm/
Datomic_64.h17 #define atomic_read(v) ACCESS_ONCE((v)->counter)
18 #define atomic64_read(v) ACCESS_ONCE((v)->counter)
20 #define atomic_set(v, i) (((v)->counter) = i)
21 #define atomic64_set(v, i) (((v)->counter) = i)
72 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS()
73 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS()
91 ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
92 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
Dcpudata_32.h17 unsigned int counter; member
Datomic_32.h29 #define atomic_read(v) ACCESS_ONCE((v)->counter)
/linux-4.1.27/arch/mn10300/include/asm/
Datomic.h37 #define atomic_read(v) (ACCESS_ONCE((v)->counter))
46 #define atomic_set(v, i) (((v)->counter) = (i))
62 : "=&r"(status), "=&r"(retval), "=m"(v->counter) \
63 : "a"(ATOMIC_OPS_BASE_ADDR), "r"(&v->counter), "r"(i) \
81 : "=&r"(status), "=&r"(retval), "=m"(v->counter) \
82 : "a"(ATOMIC_OPS_BASE_ADDR), "r"(&v->counter), "r"(i) \
127 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v)))
128 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
/linux-4.1.27/arch/avr32/oprofile/
Dop_model_avr32.c40 static struct avr32_perf_counter counter[NR_counter] = { variable
111 &counter[i].enabled); in avr32_perf_counter_create_files()
113 &counter[i].event); in avr32_perf_counter_create_files()
115 &counter[i].count); in avr32_perf_counter_create_files()
119 &counter[i].kernel); in avr32_perf_counter_create_files()
121 &counter[i].user); in avr32_perf_counter_create_files()
123 &counter[i].unit_mask); in avr32_perf_counter_create_files()
146 "oprofile", counter); in avr32_perf_counter_setup()
154 ctr = &counter[i]; in avr32_perf_counter_setup()
190 free_irq(AVR32_PERFCTR_IRQ_GROUP, counter); in avr32_perf_counter_shutdown()
/linux-4.1.27/arch/ia64/include/asm/
Datomic.h24 #define atomic_read(v) ACCESS_ONCE((v)->counter)
25 #define atomic64_read(v) ACCESS_ONCE((v)->counter)
27 #define atomic_set(v,i) (((v)->counter) = (i))
28 #define atomic64_set(v,i) (((v)->counter) = (i))
58 ? ia64_fetch_and_add(__ia64_aar_i, &(v)->counter) \
70 ? ia64_fetch_and_add(-__ia64_asr_i, &(v)->counter) \
102 ? ia64_fetch_and_add(__ia64_aar_i, &(v)->counter) \
114 ? ia64_fetch_and_add(-__ia64_asr_i, &(v)->counter) \
118 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new))
119 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
[all …]
/linux-4.1.27/arch/blackfin/include/asm/
Datomic.h25 #define atomic_read(v) __raw_uncached_fetch_asm(&(v)->counter)
27 #define atomic_add_return(i, v) __raw_atomic_update_asm(&(v)->counter, i)
28 #define atomic_sub_return(i, v) __raw_atomic_update_asm(&(v)->counter, -(i))
30 #define atomic_clear_mask(m, v) __raw_atomic_clear_asm(&(v)->counter, m)
31 #define atomic_set_mask(m, v) __raw_atomic_set_asm(&(v)->counter, m)
/linux-4.1.27/include/linux/netfilter/ipset/
Dip_set.h286 ip_set_add_bytes(u64 bytes, struct ip_set_counter *counter) in ip_set_add_bytes() argument
288 atomic64_add((long long)bytes, &(counter)->bytes); in ip_set_add_bytes()
292 ip_set_add_packets(u64 packets, struct ip_set_counter *counter) in ip_set_add_packets() argument
294 atomic64_add((long long)packets, &(counter)->packets); in ip_set_add_packets()
298 ip_set_get_bytes(const struct ip_set_counter *counter) in ip_set_get_bytes() argument
300 return (u64)atomic64_read(&(counter)->bytes); in ip_set_get_bytes()
304 ip_set_get_packets(const struct ip_set_counter *counter) in ip_set_get_packets() argument
306 return (u64)atomic64_read(&(counter)->packets); in ip_set_get_packets()
310 ip_set_update_counter(struct ip_set_counter *counter, in ip_set_update_counter() argument
316 ip_set_add_bytes(ext->bytes, counter); in ip_set_update_counter()
[all …]
/linux-4.1.27/arch/hexagon/include/asm/
Datomic.h40 : "r" (&v->counter), "r" (new) in atomic_set()
51 #define atomic_read(v) ((v)->counter)
58 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new)))
90 : "r" (&v->counter), "r" (old), "r" (new) in atomic_cmpxchg()
108 : "r" (&v->counter), "r" (i) \
124 : "r" (&v->counter), "r" (i) \
/linux-4.1.27/arch/sparc/lib/
Datomic32.c37 ret = (v->counter cop i); \
54 ret = v->counter; in atomic_xchg()
55 v->counter = new; in atomic_xchg()
67 ret = v->counter; in atomic_cmpxchg()
69 v->counter = new; in atomic_cmpxchg()
82 ret = v->counter; in __atomic_add_unless()
84 v->counter += a; in __atomic_add_unless()
96 v->counter = i; in atomic_set()
/linux-4.1.27/arch/sh/include/asm/
Datomic-irq.h18 v->counter c_op i; \
28 temp = v->counter; \
30 v->counter = temp; \
50 v->counter &= ~mask; in atomic_clear_mask()
59 v->counter |= mask; in atomic_set_mask()
Dmutex-llsc.h32 : "r" (&(count)->counter) in __mutex_fastpath_lock()
50 : "r" (&(count)->counter) in __mutex_fastpath_lock_retval()
70 : "r" (&(count)->counter) in __mutex_fastpath_unlock()
104 : "r" (&count->counter) in __mutex_fastpath_trylock()
Datomic-llsc.h29 : "r" (i), "r" (&v->counter) \
45 : "r" (i), "r" (&v->counter) \
70 : "r" (~mask), "r" (&v->counter) in ATOMIC_OPS()
84 : "r" (mask), "r" (&v->counter) in atomic_set_mask()
Datomic.h17 #define atomic_read(v) ACCESS_ONCE((v)->counter)
18 #define atomic_set(v,i) ((v)->counter = (i))
38 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
39 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
/linux-4.1.27/drivers/clocksource/
Darm_global_timer.c65 u64 counter; in gt_counter_read() local
76 counter = upper; in gt_counter_read()
77 counter <<= 32; in gt_counter_read()
78 counter |= lower; in gt_counter_read()
79 return counter; in gt_counter_read()
92 u64 counter = gt_counter_read(); in gt_compare_set() local
95 counter += delta; in gt_compare_set()
98 writel(lower_32_bits(counter), gt_base + GT_COMP0); in gt_compare_set()
99 writel(upper_32_bits(counter), gt_base + GT_COMP1); in gt_compare_set()
/linux-4.1.27/arch/mips/oprofile/
Dop_model_mipsxx.c145 unsigned int counter[4]; member
158 reg.counter[i] = 0; in mipsxx_reg_setup()
173 reg.counter[i] = 0x80000000 - ctr[i].count; in mipsxx_reg_setup()
189 w_c0_perfcntr3(reg.counter[3]); in mipsxx_cpu_setup()
192 w_c0_perfcntr2(reg.counter[2]); in mipsxx_cpu_setup()
195 w_c0_perfcntr1(reg.counter[1]); in mipsxx_cpu_setup()
198 w_c0_perfcntr0(reg.counter[0]); in mipsxx_cpu_setup()
246 unsigned int counter; in mipsxx_perfcount_handler() local
256 counter = r_c0_perfcntr ## n(); \ in mipsxx_perfcount_handler()
258 (counter & M_COUNTER_OVERFLOW)) { \ in mipsxx_perfcount_handler()
[all …]
Dop_model_loongson2.c108 uint64_t counter, counter1, counter2; in loongson2_perfcount_handler() local
120 counter = read_c0_perfcnt(); in loongson2_perfcount_handler()
121 counter1 = counter & 0xffffffff; in loongson2_perfcount_handler()
122 counter2 = counter >> 32; in loongson2_perfcount_handler()
/linux-4.1.27/drivers/net/ethernet/dec/tulip/
Dxircom_cb.c701 int counter; in activate_receiver() local
714 counter = 10; in activate_receiver()
715 while (counter > 0) { in activate_receiver()
720 counter--; in activate_receiver()
721 if (counter <= 0) in activate_receiver()
731 counter = 10; in activate_receiver()
732 while (counter > 0) { in activate_receiver()
737 counter--; in activate_receiver()
738 if (counter <= 0) in activate_receiver()
755 int counter; in deactivate_receiver() local
[all …]
/linux-4.1.27/arch/arm/kernel/
Dperf_event_v6.c211 enum armv6_counters counter) in armv6_pmcr_counter_has_overflowed() argument
215 if (ARMV6_CYCLE_COUNTER == counter) in armv6_pmcr_counter_has_overflowed()
217 else if (ARMV6_COUNTER0 == counter) in armv6_pmcr_counter_has_overflowed()
219 else if (ARMV6_COUNTER1 == counter) in armv6_pmcr_counter_has_overflowed()
222 WARN_ONCE(1, "invalid counter number (%d)\n", counter); in armv6_pmcr_counter_has_overflowed()
230 int counter = hwc->idx; in armv6pmu_read_counter() local
233 if (ARMV6_CYCLE_COUNTER == counter) in armv6pmu_read_counter()
235 else if (ARMV6_COUNTER0 == counter) in armv6pmu_read_counter()
237 else if (ARMV6_COUNTER1 == counter) in armv6pmu_read_counter()
240 WARN_ONCE(1, "invalid counter number (%d)\n", counter); in armv6pmu_read_counter()
[all …]
Dperf_event_xscale.c114 enum xscale_counters counter) in xscale1_pmnc_counter_has_overflowed() argument
118 switch (counter) { in xscale1_pmnc_counter_has_overflowed()
129 WARN_ONCE(1, "invalid counter number (%d)\n", counter); in xscale1_pmnc_counter_has_overflowed()
314 int counter = hwc->idx; in xscale1pmu_read_counter() local
317 switch (counter) { in xscale1pmu_read_counter()
335 int counter = hwc->idx; in xscale1pmu_write_counter() local
337 switch (counter) { in xscale1pmu_write_counter()
455 enum xscale_counters counter) in xscale2_pmnc_counter_has_overflowed() argument
459 switch (counter) { in xscale2_pmnc_counter_has_overflowed()
476 WARN_ONCE(1, "invalid counter number (%d)\n", counter); in xscale2_pmnc_counter_has_overflowed()
[all …]
Dperf_event_v7.c629 u32 counter = ARMV7_IDX_TO_COUNTER(idx); in armv7_pmnc_select_counter() local
630 asm volatile("mcr p15, 0, %0, c9, c12, 5" : : "r" (counter)); in armv7_pmnc_select_counter()
680 u32 counter = ARMV7_IDX_TO_COUNTER(idx); in armv7_pmnc_enable_counter() local
681 asm volatile("mcr p15, 0, %0, c9, c12, 1" : : "r" (BIT(counter))); in armv7_pmnc_enable_counter()
686 u32 counter = ARMV7_IDX_TO_COUNTER(idx); in armv7_pmnc_disable_counter() local
687 asm volatile("mcr p15, 0, %0, c9, c12, 2" : : "r" (BIT(counter))); in armv7_pmnc_disable_counter()
692 u32 counter = ARMV7_IDX_TO_COUNTER(idx); in armv7_pmnc_enable_intens() local
693 asm volatile("mcr p15, 0, %0, c9, c14, 1" : : "r" (BIT(counter))); in armv7_pmnc_enable_intens()
698 u32 counter = ARMV7_IDX_TO_COUNTER(idx); in armv7_pmnc_disable_intens() local
699 asm volatile("mcr p15, 0, %0, c9, c14, 2" : : "r" (BIT(counter))); in armv7_pmnc_disable_intens()
[all …]
/linux-4.1.27/drivers/watchdog/
Dsirfsoc_wdt.c44 u32 counter, match; in sirfsoc_wdt_gettimeleft() local
49 counter = readl(wdt_base + SIRFSOC_TIMER_COUNTER_LO); in sirfsoc_wdt_gettimeleft()
53 time_left = match - counter; in sirfsoc_wdt_gettimeleft()
60 u32 counter, timeout_ticks; in sirfsoc_wdt_updatetimeout() local
70 counter = readl(wdt_base + SIRFSOC_TIMER_LATCHED_LO); in sirfsoc_wdt_updatetimeout()
72 counter += timeout_ticks; in sirfsoc_wdt_updatetimeout()
74 writel(counter, wdt_base + in sirfsoc_wdt_updatetimeout()
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
Docrdma_stats.c498 [OCRDMA_CQ_ERROR].counter)); in ocrdma_driver_dbg_stats()
501 [OCRDMA_CQ_OVERRUN_ERROR].counter); in ocrdma_driver_dbg_stats()
504 [OCRDMA_CQ_QPCAT_ERROR].counter); in ocrdma_driver_dbg_stats()
507 [OCRDMA_QP_ACCESS_ERROR].counter); in ocrdma_driver_dbg_stats()
510 [OCRDMA_QP_COMM_EST_EVENT].counter); in ocrdma_driver_dbg_stats()
513 [OCRDMA_SQ_DRAINED_EVENT].counter); in ocrdma_driver_dbg_stats()
516 [OCRDMA_DEVICE_FATAL_EVENT].counter); in ocrdma_driver_dbg_stats()
519 [OCRDMA_SRQCAT_ERROR].counter); in ocrdma_driver_dbg_stats()
522 [OCRDMA_SRQ_LIMIT_EVENT].counter); in ocrdma_driver_dbg_stats()
525 [OCRDMA_QP_LAST_WQE_EVENT].counter); in ocrdma_driver_dbg_stats()
[all …]
/linux-4.1.27/drivers/input/joystick/
Dwalkera0701.c54 int counter; member
138 w->counter = NO_SYNC; in walkera0701_irq_handler()
142 if (w->counter < NO_SYNC) { in walkera0701_irq_handler()
145 w->buf[w->counter] = 8; in walkera0701_irq_handler()
148 w->buf[w->counter] = 0; in walkera0701_irq_handler()
150 if (w->counter == 24) { /* full frame */ in walkera0701_irq_handler()
152 w->counter = NO_SYNC; in walkera0701_irq_handler()
154 w->counter = 0; in walkera0701_irq_handler()
160 w->buf[w->counter++] |= (pulse_time & 7); in walkera0701_irq_handler()
162 w->counter = NO_SYNC; in walkera0701_irq_handler()
[all …]
/linux-4.1.27/net/netfilter/
Dnf_conntrack_acct.c43 struct nf_conn_counter *counter; in seq_print_acct() local
49 counter = acct->counter; in seq_print_acct()
51 (unsigned long long)atomic64_read(&counter[dir].packets), in seq_print_acct()
52 (unsigned long long)atomic64_read(&counter[dir].bytes)); in seq_print_acct()
Dxt_set.c160 match_counter0(u64 counter, const struct ip_set_counter_match0 *info) in match_counter0() argument
166 return counter == info->value; in match_counter0()
168 return counter != info->value; in match_counter0()
170 return counter < info->value; in match_counter0()
172 return counter > info->value; in match_counter0()
206 match_counter(u64 counter, const struct ip_set_counter_match *info) in match_counter() argument
212 return counter == info->value; in match_counter()
214 return counter != info->value; in match_counter()
216 return counter < info->value; in match_counter()
218 return counter > info->value; in match_counter()
/linux-4.1.27/drivers/infiniband/hw/nes/
Dnes_utils.c62 u32 counter; in nes_set_pau() local
67 for (counter = 0; counter < NES_PAU_COUNTER; counter++) { in nes_set_pau()
75 if (counter == NES_PAU_COUNTER) { in nes_set_pau()
416 u32 counter; in nes_write_1G_phy_reg() local
420 for (counter = 0; counter < 100 ; counter++) { in nes_write_1G_phy_reg()
443 u32 counter; in nes_read_1G_phy_reg() local
450 for (counter = 0; counter < 100 ; counter++) { in nes_read_1G_phy_reg()
477 u32 counter; in nes_write_10G_phy_reg() local
484 for (counter = 0; counter < 100 ; counter++) { in nes_write_10G_phy_reg()
499 for (counter = 0; counter < 100 ; counter++) { in nes_write_10G_phy_reg()
[all …]
Dnes_hw.c1309 u32 counter = 0; in nes_init_1g_phy() local
1319 counter = 0; in nes_init_1g_phy()
1322 if (counter++ > 100) { in nes_init_1g_phy()
1365 u32 counter = 0; in nes_init_2025_phy() local
1448 counter = 0; in nes_init_2025_phy()
1453 if (counter++ > 150) { in nes_init_2025_phy()
1463 counter = 0; in nes_init_2025_phy()
1467 if (counter++ > 300) { in nes_init_2025_phy()
1470 counter = 0; in nes_init_2025_phy()
1501 counter = 0; in nes_init_2025_phy()
[all …]
Dnes_mgt.c863 u32 counter; in nes_init_mgt_qp() local
1024 for (counter = 0; counter < (NES_MGT_WQ_COUNT - 1); counter++) { in nes_init_mgt_qp()
1039 mgt_rqe = &mgtvnic->mgt.rq_vbase[counter]; in nes_init_mgt_qp()
1044 mgtvnic->mgt.rx_skb[counter] = skb; in nes_init_mgt_qp()
1055 counter = min(wqe_count, ((u32)255)); in nes_init_mgt_qp()
1056 wqe_count -= counter; in nes_init_mgt_qp()
1057 nes_write32(nesdev->regs + NES_WQE_ALLOC, (counter << 24) | mgtvnic->mgt.qp_id); in nes_init_mgt_qp()
/linux-4.1.27/arch/x86/oprofile/
Dop_x86_model.h59 static inline void op_x86_warn_in_use(int counter) in op_x86_warn_in_use() argument
71 counter, smp_processor_id()); in op_x86_warn_in_use()
74 static inline void op_x86_warn_reserved(int counter) in op_x86_warn_reserved() argument
76 pr_warning("oprofile: counter #%d is already reserved\n", counter); in op_x86_warn_reserved()
/linux-4.1.27/drivers/net/ethernet/altera/
Daltera_msgdma.c39 int counter; in msgdma_reset() local
47 counter = 0; in msgdma_reset()
48 while (counter++ < ALTERA_TSE_SW_RESET_WATCHDOG_CNTR) { in msgdma_reset()
55 if (counter >= ALTERA_TSE_SW_RESET_WATCHDOG_CNTR) in msgdma_reset()
69 counter = 0; in msgdma_reset()
70 while (counter++ < ALTERA_TSE_SW_RESET_WATCHDOG_CNTR) { in msgdma_reset()
77 if (counter >= ALTERA_TSE_SW_RESET_WATCHDOG_CNTR) in msgdma_reset()
/linux-4.1.27/scripts/
Dmarkup_oops.pl215 my $counter = 0;
257 $center = $counter;
260 $lines[$counter] = $line;
262 $counter = $counter + 1;
268 if ($counter == 0) {
306 while ($finish < $counter) {
/linux-4.1.27/tools/perf/util/
Dcgroup.c78 struct perf_evsel *counter; in add_cgroup() local
84 evlist__for_each(evlist, counter) { in add_cgroup()
85 cgrp = counter->cgrp; in add_cgroup()
113 evlist__for_each(evlist, counter) { in add_cgroup()
124 counter->cgrp = cgrp; in add_cgroup()
/linux-4.1.27/arch/mips/cavium-octeon/executive/
Dcvmx-l2c.c169 void cvmx_l2c_config_perf(uint32_t counter, enum cvmx_l2c_event event, in cvmx_l2c_config_perf() argument
177 switch (counter) { in cvmx_l2c_config_perf()
212 switch (counter) { in cvmx_l2c_config_perf()
233 uint64_t cvmx_l2c_read_perf(uint32_t counter) in cvmx_l2c_read_perf() argument
235 switch (counter) { in cvmx_l2c_read_perf()
240 uint64_t counter = 0; in cvmx_l2c_read_perf() local
243 counter += cvmx_read_csr(CVMX_L2C_TADX_PFC0(tad)); in cvmx_l2c_read_perf()
244 return counter; in cvmx_l2c_read_perf()
250 uint64_t counter = 0; in cvmx_l2c_read_perf() local
253 counter += cvmx_read_csr(CVMX_L2C_TADX_PFC1(tad)); in cvmx_l2c_read_perf()
[all …]
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_user_sdma.c58 u32 counter; /* sdma pkts queued counter for this entry */ member
90 u32 counter; member
109 pq->counter = 0; in ipath_user_sdma_queue_create()
163 u32 counter, size_t offset, in ipath_user_sdma_init_header() argument
169 pkt->counter = counter; in ipath_user_sdma_init_header()
407 u32 counter = pq->counter; in ipath_user_sdma_queue_pkts() local
518 ipath_user_sdma_init_header(pkt, counter, 0, len, dma_mapped, in ipath_user_sdma_queue_pkts()
529 counter++; in ipath_user_sdma_queue_pkts()
585 u32 counter; in ipath_user_sdma_queue_clean() local
589 counter = pkt->counter; in ipath_user_sdma_queue_clean()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/timer/
Dfsl,ftm-timer.txt14 o "ftm-evt-counter-en"
15 o "ftm-src-counter-en"
25 "ftm-evt-counter-en", "ftm-src-counter-en";
Dbrcm,bcm2835-system-timer.txt4 single 64-bit free running counter. Each channel has an output compare
6 free running counter values, and generates an interrupt.
13 - clock-frequency : The frequency of the clock that drives the counter, in Hz.
Dti,keystone-timer.txt9 It is global timer is a free running up-counter and can generate interrupt
10 when the counter reaches preset counter values.
Dsamsung,exynos4210-mct.txt5 up-counter and can generate 4 interrupts when the counter reaches one of the
6 four preset counter values. The CPU local timers are 32-bit free running
7 down-counters and generate an interrupt when the counter expires. There is
Drenesas,mtu2.txt3 The MTU2 is a multi-purpose, multi-channel timer/counter with configurable
6 Channels share hardware resources but their counter and compare match value
Drenesas,tmu.txt3 The TMU is a 32-bit timer/counter with configurable clock inputs and
6 Channels share hardware resources but their counter and compare match value
Dmoxa,moxart-timer.txt8 - clocks : Should contain phandle for the clock that drives the counter
Dnvidia,tegra20-timer.txt4 running counter. The first two channels may also trigger a watchdog reset.
/linux-4.1.27/arch/arm/mach-netx/include/mach/
Dnetx-regs.h191 #define NETX_GPIO_COUNTER_CTRL(counter) NETX_GPIO_REG(0x80 + ((counter)<<2)) argument
192 #define NETX_GPIO_COUNTER_MAX(counter) NETX_GPIO_REG(0x94 + ((counter)<<2)) argument
193 #define NETX_GPIO_COUNTER_CURRENT(counter) NETX_GPIO_REG(0xa8 + ((counter)<<2)) argument
226 #define COUNTER_BIT(counter) ((1<<16)<<(counter)) argument
/linux-4.1.27/arch/m68k/include/asm/
Datomic.h20 #define atomic_read(v) ACCESS_ONCE((v)->counter)
21 #define atomic_set(v, i) (((v)->counter) = i)
65 t = (v->counter c_op i); \
120 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
121 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
Dintersil.h39 struct intersil_dt counter; member
/linux-4.1.27/drivers/platform/x86/
Ddell-smo8800.c30 atomic_t counter; /* count after last read */ member
41 atomic_inc(&smo8800->counter); in smo8800_interrupt_quick()
98 atomic_set(&smo8800->counter, 0); in smo8800_misc_read()
100 (data = atomic_xchg(&smo8800->counter, 0))); in smo8800_misc_read()
127 atomic_set(&smo8800->counter, 0); in smo8800_misc_open()
/linux-4.1.27/Documentation/w1/slaves/
Dw1_ds24235 * Maxim DS2423 based counter devices.
19 Result of each page is provided as an ASCII output where each counter
22 Each lines will contain the values of 42 bytes read from the counter and
26 a counter value expressed as an integer after c=
30 - 4 bytes for the counter value
35 - c=<int> current counter value
D00-INDEX6 - The Maxim/Dallas Semiconductor ds2423 counter device.
/linux-4.1.27/Documentation/
Datomic_ops.txt7 maintainers on how to implement atomic counter, bitops, and spinlock
15 typedef struct { int counter; } atomic_t;
16 typedef struct { long counter; } atomic_long_t;
18 Historically, counter has been declared volatile. This is now discouraged.
21 local_t is very similar to atomic_t. If the counter is per CPU and only
29 #define atomic_set(v, i) ((v)->counter = (i))
46 struct foo { atomic_t counter; };
54 atomic_set(&k->counter, 0);
64 #define atomic_read(v) ((v)->counter)
66 which simply reads the counter value currently visible to the calling thread.
[all …]
Dlocal_ops.txt115 the local_t variable as a counter of bytes written in a buffer : there should
116 be a smp_wmb() between the buffer write and the counter increment and also a
117 smp_rmb() between the counter read and the buffer read.
120 Here is a sample module which implements a basic per cpu counter using local.h.
140 /* Increment the counter from a non preemptible context */
171 /* initialize the timer that will increment the counter */
Dcpu-load.txt26 moment and increments the counter that corresponds to this tasks
29 interrupts yet the counter is incremented only for the last state.
/linux-4.1.27/drivers/infiniband/hw/ehca/
Dehca_sqp.c71 int counter; in ehca_define_sqp() local
105 for (counter = 0; in ehca_define_sqp()
107 counter < ehca_port_act_time; in ehca_define_sqp()
108 counter++) { in ehca_define_sqp()
114 if (counter == ehca_port_act_time) { in ehca_define_sqp()
Dehca_cq.c129 u32 counter; in ehca_create_cq() local
202 for (counter = 0; counter < param.act_pages; counter++) { in ehca_create_cq()
226 h_ret, counter, param.act_pages); in ehca_create_cq()
231 if (counter == (param.act_pages - 1)) { in ehca_create_cq()
247 h_ret, counter, param.act_pages); in ehca_create_cq()
/linux-4.1.27/arch/xtensa/include/asm/
Datomic.h50 #define atomic_read(v) ACCESS_ONCE((v)->counter)
59 #define atomic_set(v,i) ((v)->counter = (i))
226 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS()
227 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS()
/linux-4.1.27/drivers/staging/rtl8188eu/hal/
Dfw.c148 u32 counter = 0; in _rtl88e_fw_free_to_go() local
155 } while (counter++ < POLLING_READY_TIMEOUT_COUNT); in _rtl88e_fw_free_to_go()
157 if (counter >= POLLING_READY_TIMEOUT_COUNT) in _rtl88e_fw_free_to_go()
166 counter = 0; in _rtl88e_fw_free_to_go()
177 } while (counter++ < POLLING_READY_TIMEOUT_COUNT); in _rtl88e_fw_free_to_go()
/linux-4.1.27/arch/microblaze/include/asm/
Datomic.h18 res = v->counter - 1; in atomic_dec_if_positive()
20 v->counter = res; in atomic_dec_if_positive()
Dmodule.h29 typedef struct { volatile int counter; } module_t; member
/linux-4.1.27/arch/arm64/kernel/
Dperf_event.c899 u32 counter; in armv8pmu_counter_has_overflowed() local
905 counter = ARMV8_IDX_TO_COUNTER(idx); in armv8pmu_counter_has_overflowed()
906 ret = pmnc & BIT(counter); in armv8pmu_counter_has_overflowed()
914 u32 counter; in armv8pmu_select_counter() local
922 counter = ARMV8_IDX_TO_COUNTER(idx); in armv8pmu_select_counter()
923 asm volatile("msr pmselr_el0, %0" :: "r" (counter)); in armv8pmu_select_counter()
965 u32 counter; in armv8pmu_enable_counter() local
973 counter = ARMV8_IDX_TO_COUNTER(idx); in armv8pmu_enable_counter()
974 asm volatile("msr pmcntenset_el0, %0" :: "r" (BIT(counter))); in armv8pmu_enable_counter()
980 u32 counter; in armv8pmu_disable_counter() local
[all …]
/linux-4.1.27/drivers/mtd/devices/
Dpmc551.c363 u8 bcmd, counter; in fixup_pmc551() local
374 counter = 0; in fixup_pmc551()
381 counter = 0; in fixup_pmc551()
383 while (counter++ < 100) { in fixup_pmc551()
386 counter = 0; in fixup_pmc551()
388 while (counter++ < 100) { in fixup_pmc551()
482 if (counter++ > 100) in fixup_pmc551()
499 counter = 0; in fixup_pmc551()
502 if (counter++ > 100) in fixup_pmc551()
514 counter = 0; in fixup_pmc551()
[all …]
/linux-4.1.27/drivers/net/wireless/iwlegacy/
D3945-rs.c137 win->counter = 0; in il3945_clear_win()
163 if (!rs_sta->win[i].counter) in il3945_rate_scale_flush_wins()
169 rs_sta->win[i].counter, i); in il3945_rate_scale_flush_wins()
279 if (win->counter >= RATE_MAX_WINDOW) { in il3945_collect_tx_data()
282 win->counter = RATE_MAX_WINDOW - 1; in il3945_collect_tx_data()
291 win->counter++; in il3945_collect_tx_data()
307 if (win->counter > 0) in il3945_collect_tx_data()
309 128 * (100 * win->success_counter) / win->counter; in il3945_collect_tx_data()
313 fail_count = win->counter - win->success_counter; in il3945_collect_tx_data()
690 fail_count = win->counter - win->success_counter; in il3945_rs_get_rate()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/pwm/
Dpwm-fsl-ftm.txt24 "ftm_sys" (module clock, also can be used as counter clock),
25 "ftm_ext" (external counter clock),
26 "ftm_fix" (fixed counter clock),
27 "ftm_cnt_clk_en" (external and fixed counter clock enable/disable).
/linux-4.1.27/sound/core/seq/
Dseq_memory.c37 return pool->total_elements - atomic_read(&pool->counter); in snd_seq_pool_available()
183 atomic_dec(&pool->counter); in free_cell()
266 atomic_inc(&pool->counter); in snd_seq_cell_alloc()
267 used = atomic_read(&pool->counter); in snd_seq_cell_alloc()
435 while (atomic_read(&pool->counter) > 0) { in snd_seq_pool_done()
437 pr_warn("ALSA: snd_seq_pool_done timeout: %d cells remain\n", atomic_read(&pool->counter)); in snd_seq_pool_done()
475 atomic_set(&pool->counter, 0); in snd_seq_pool_new()
518 snd_iprintf(buffer, "%sCells in use : %d\n", space, atomic_read(&pool->counter)); in snd_seq_info_pool()
Dseq_memory.h46 atomic_t counter; /* cells free */ member
74 return pool ? pool->total_elements - atomic_read(&pool->counter) : 0; in snd_seq_unused_cells()
/linux-4.1.27/drivers/usb/phy/
Dphy-rcar-usb.c69 int counter; member
95 if (priv->counter++ == 0) { in rcar_usb_phy_init()
173 if (priv->counter-- == 1) /* last user */ in rcar_usb_phy_shutdown()
208 priv->counter = 0; in rcar_usb_phy_probe()
/linux-4.1.27/drivers/staging/unisys/visorutil/
Dcharqueue.c101 int rc, counter = 0, c; in visor_charqueue_dequeue_n() local
113 counter++; in visor_charqueue_dequeue_n()
115 rc = counter; in visor_charqueue_dequeue_n()
/linux-4.1.27/Documentation/input/
Damijoy.txt75 Mouse counter usage (pins 1,3 =Yclock, pins 2,4 =Xclock)
83 addresses is shown below. Each 6 bit counter (Y7-Y2,X7-X2) is
100 Bits 1 and 0 of each counter (Y1-Y0,X1-X0) may be
119 Mouse counter write test data:
127 POT0DAT h 012 R Paula Pot counter data left pair (vert, horiz)
128 POT1DAT h 014 R Paula Pot counter data right pair (vert,horiz)
159 POTGO 034 W Paula Pot port (4 bit) bi-direction and data, and pot counter start.
/linux-4.1.27/Documentation/devicetree/bindings/arm/omap/
Dcounter.txt6 - ti,hwmods: Name of the hwmod associated to the counter, which is typically
11 counter32k: counter@4a304000 {
/linux-4.1.27/fs/xfs/
Dxfs_trans.c493 int8_t counter = *field; in xfs_sb_mod8() local
495 counter += delta; in xfs_sb_mod8()
496 if (counter < 0) { in xfs_sb_mod8()
500 *field = counter; in xfs_sb_mod8()
509 int32_t counter = *field; in xfs_sb_mod32() local
511 counter += delta; in xfs_sb_mod32()
512 if (counter < 0) { in xfs_sb_mod32()
516 *field = counter; in xfs_sb_mod32()
525 int64_t counter = *field; in xfs_sb_mod64() local
527 counter += delta; in xfs_sb_mod64()
[all …]
/linux-4.1.27/arch/x86/kvm/
Dpmu.c143 u64 counter, enabled, running; in read_pmc() local
145 counter = pmc->counter; in read_pmc()
148 counter += perf_event_read_value(pmc->perf_event, in read_pmc()
153 return counter & pmc_bitmask(pmc); in read_pmc()
159 pmc->counter = read_pmc(pmc); in stop_counter()
185 attr.sample_period = (-pmc->counter) & pmc_bitmask(pmc); in reprogram_counter()
418 pmc->counter += data - read_pmc(pmc); in kvm_pmu_set_msr()
543 pmc->counter = pmc->eventsel = 0; in kvm_pmu_reset()
/linux-4.1.27/drivers/media/rc/
Dir-rx51.c98 int counter; in pulse_timer_set_timeout() local
103 counter = omap_dm_timer_read_counter(lirc_rx51->pulse_timer); in pulse_timer_set_timeout()
105 counter = lirc_rx51->match; in pulse_timer_set_timeout()
107 counter += (u32)(lirc_rx51->fclk_khz * usec / (1000)); in pulse_timer_set_timeout()
108 omap_dm_timer_set_match(lirc_rx51->pulse_timer, 1, counter); in pulse_timer_set_timeout()
112 counter)) { in pulse_timer_set_timeout()
/linux-4.1.27/Documentation/timers/
Dtimekeeping.txt29 Typically the clock source is a monotonic, atomic counter which will provide
40 the counter register is read in two phases on the bus lowest 16 bits first
41 and the higher 16 bits in a second bus cycle with the counter bits
43 values from the counter.
53 The clock source struct shall provide means to translate the provided counter
71 location, bit width, a parameter telling whether the counter in the
75 Since a 32-bit counter at say 100 MHz will wrap around to zero after some 43
79 code knows when the counter will wrap around and can insert the necessary
114 implementation is not provided, the system jiffy counter will be used as
146 counter to derive a 64-bit nanosecond value, so for example on the ARM
[all …]
Dhpet.txt8 Each HPET has one fixed-rate counter (at 10+ MHz, hence "High Precision")
13 independent of each other ... these share a counter, complicating resets.
/linux-4.1.27/drivers/misc/
Dphantom.c51 atomic_t counter; member
71 atomic_set(&dev->counter, 0); in phantom_status()
176 atomic_set(&dev->counter, 0); in phantom_ioctl()
237 atomic_set(&dev->counter, 0); in phantom_open()
264 pr_debug("phantom_poll: %d\n", atomic_read(&dev->counter)); in phantom_poll()
269 else if (atomic_read(&dev->counter)) in phantom_poll()
272 pr_debug("phantom_poll end: %x/%d\n", mask, atomic_read(&dev->counter)); in phantom_poll()
317 atomic_inc(&dev->counter); in phantom_isr()
/linux-4.1.27/block/partitions/
Dibm.c139 int counter; in find_vol1_partitions() local
155 counter = 0; in find_vol1_partitions()
179 if (counter >= state->limit) in find_vol1_partitions()
181 put_partition(state, counter + 1, offset, size); in find_vol1_partitions()
182 counter++; in find_vol1_partitions()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723com/
Dfw_common.c203 u32 counter = 0; in rtl8723_fw_free_to_go() local
208 } while ((counter++ < max_count) && in rtl8723_fw_free_to_go()
211 if (counter >= max_count) { in rtl8723_fw_free_to_go()
226 counter = 0; in rtl8723_fw_free_to_go()
240 } while (counter++ < max_count); in rtl8723_fw_free_to_go()
/linux-4.1.27/arch/s390/pci/
Dpci_debug.c45 atomic64_t *counter = &zdev->allocated_pages; in pci_sw_counter_show() local
48 for (i = 0; i < ARRAY_SIZE(pci_sw_names); i++, counter++) in pci_sw_counter_show()
50 atomic64_read(counter)); in pci_sw_counter_show()
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_user_sdma.c79 u32 counter; /* sdma pkts queued counter for this entry */ member
122 u32 counter; member
192 pq->counter = 0; in qib_user_sdma_queue_create()
822 u32 counter = pq->counter; in qib_user_sdma_queue_pkts() local
973 pkt->counter = counter; in qib_user_sdma_queue_pkts()
1014 counter++; in qib_user_sdma_queue_pkts()
1086 u32 counter; in qib_user_sdma_queue_clean() local
1090 counter = pkt->counter; in qib_user_sdma_queue_clean()
1093 qib_user_sdma_set_complete_counter(pq, counter); in qib_user_sdma_queue_clean()
1431 pq->counter += mxp; in qib_user_sdma_writev()
[all …]
/linux-4.1.27/include/sound/
Dsoundfont.h39 int counter; member
49 int counter; member
/linux-4.1.27/fs/cifs/
Dcifs_debug.c308 sesInfoAllocCount.counter); in cifs_stats_proc_show()
310 tconInfoAllocCount.counter); in cifs_stats_proc_show()
312 bufAllocCount.counter, in cifs_stats_proc_show()
313 cifs_min_rcv + tcpSesAllocCount.counter); in cifs_stats_proc_show()
315 smBufAllocCount.counter, cifs_min_small); in cifs_stats_proc_show()
325 tcpSesReconnectCount.counter, tconInfoReconnectCount.counter); in cifs_stats_proc_show()
/linux-4.1.27/arch/m68k/fpsp040/
Dbinstr.S21 | A1. Init d7 to 1. D7 is the byte digit counter, and if 1, the
43 | A7. Decrement d6 (LEN counter) and repeat the loop until zero.
49 | d0: LEN counter
120 swap %d7 |put LEN counter in word d7a
127 swap %d7 |put LEN counter in word d7a
/linux-4.1.27/arch/avr32/kernel/
Dtime.c34 static struct clocksource counter = { variable
137 ret = clocksource_register_hz(&counter, counter_hz); in time_init()
/linux-4.1.27/drivers/net/ethernet/micrel/
Dksz884x.c1145 u64 counter[TOTAL_PORT_COUNTER_NUM]; member
1351 u64 counter[OID_COUNTER_LAST]; member
1394 wait_queue_head_t counter; member
1441 struct ksz_counter_info counter[TOTAL_PORT_NUM]; member
1890 &mib->counter[mib->cnt_ptr]); in port_r_cnt()
1895 &mib->counter[PORT_COUNTER_NUM]); in port_r_cnt()
1916 &mib->counter[mib->cnt_ptr]); in port_init_cnt()
1921 &mib->counter[PORT_COUNTER_NUM]); in port_init_cnt()
1922 memset((void *) mib->counter, 0, sizeof(u64) * TOTAL_PORT_COUNTER_NUM); in port_init_cnt()
4616 u64 *counter) in get_mib_counters() argument
[all …]
/linux-4.1.27/drivers/staging/nvec/
Dnvec_power.c342 static int counter; variable
356 if (counter >= ARRAY_SIZE(bat_iter)) in nvec_power_poll()
357 counter = 0; in nvec_power_poll()
366 buf[1] = bat_iter[counter++]; in nvec_power_poll()
/linux-4.1.27/fs/ecryptfs/
Dmessaging.c88 msg_ctx->counter = ++ecryptfs_msg_counter; in ecryptfs_msg_ctx_free_to_alloc()
242 } else if (msg_ctx->counter != seq) { in ecryptfs_process_response()
246 msg_ctx->counter, seq); in ecryptfs_process_response()
414 ecryptfs_msg_ctx_arr[i].counter = 0; in ecryptfs_init_messaging()
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_lblc.c112 int counter; /* counter for no expire */ member
308 if ((tbl->counter % COUNT_FOR_FULL_EXPIRATION) == 0) { in ip_vs_lblc_check_expire()
311 tbl->counter = 1; in ip_vs_lblc_check_expire()
316 tbl->counter++; in ip_vs_lblc_check_expire()
371 tbl->counter = 1; in ip_vs_lblc_init_svc()
Dip_vs_lblcr.c282 int counter; /* counter for no expire */ member
472 if ((tbl->counter % COUNT_FOR_FULL_EXPIRATION) == 0) { in ip_vs_lblcr_check_expire()
475 tbl->counter = 1; in ip_vs_lblcr_check_expire()
480 tbl->counter++; in ip_vs_lblcr_check_expire()
534 tbl->counter = 1; in ip_vs_lblcr_init_svc()
/linux-4.1.27/tools/perf/Documentation/
Dperf-stat.txt6 perf-stat - Run a command and gather performance counter statistics
16 This command runs a command and gathers performance counter statistics
63 scale/normalize counter values
91 be more verbose (show counter open errors, etc)
162 Performance counter stats for 'make -j':
Dperf-kvm.txt23 a performance counter profile of guest os in realtime
26 'perf kvm record <command>' to record the performance counter profile
39 'perf kvm report' to display the performance counter profile information
51 'perf kvm stat <command>' to run a command and gather performance counter
98 Be more verbose (show counter open errors, etc).
Dexamples.txt35 Performance counter stats for './hackbench 10':
56 Performance counter stats for './hackbench 10' (5 runs):
164 Performance counter stats for 'sleep 10':
180 Performance counter stats for 'sleep 1' (10 runs):
/linux-4.1.27/include/rdma/
Dib_pma.h83 __be32 counter[15]; member
90 __be64 counter[15]; member
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ee/
Dfw.c149 u32 counter = 0; in _rtl92ee_fw_free_to_go() local
154 } while ((counter++ < FW_8192C_POLLING_TIMEOUT_COUNT) && in _rtl92ee_fw_free_to_go()
157 if (counter >= FW_8192C_POLLING_TIMEOUT_COUNT) { in _rtl92ee_fw_free_to_go()
173 counter = 0; in _rtl92ee_fw_free_to_go()
180 value32, counter); in _rtl92ee_fw_free_to_go()
187 } while (counter++ < FW_8192C_POLLING_TIMEOUT_COUNT); in _rtl92ee_fw_free_to_go()
191 value32, counter); in _rtl92ee_fw_free_to_go()
/linux-4.1.27/arch/mips/include/asm/octeon/
Dcvmx-l2c.h178 void cvmx_l2c_config_perf(uint32_t counter, enum cvmx_l2c_event event, uint32_t clear_on_read);
188 uint64_t cvmx_l2c_read_perf(uint32_t counter);
/linux-4.1.27/drivers/net/ethernet/sfc/
Dqt202x_phy.c83 int counter; in qt2025c_wait_heartbeat() local
87 counter = ((reg >> PCS_FW_HEARTB_LBN) & in qt2025c_wait_heartbeat()
90 old_counter = counter; in qt2025c_wait_heartbeat()
91 else if (counter != old_counter) in qt2025c_wait_heartbeat()
/linux-4.1.27/arch/s390/mm/
Dcmm.c63 static long cmm_alloc_pages(long nr, long *counter, in cmm_alloc_pages() argument
96 (*counter)++; in cmm_alloc_pages()
103 static long cmm_free_pages(long nr, long *counter, struct cmm_page_array **list) in cmm_free_pages() argument
120 (*counter)--; in cmm_free_pages()
/linux-4.1.27/arch/hexagon/kernel/
Dtraps.c202 int counter; in die() member
205 .counter = 0 in die()
213 printk(KERN_EMERG "Oops: %s[#%d]:\n", str, ++die.counter); in die()
/linux-4.1.27/Documentation/filesystems/nfs/
Dknfsd-stats.txt68 rate of change for this counter is zero; significantly non-zero
88 thing. The ideal rate of change for this counter will be close
89 to but less than the rate of change of the packets-arrived counter.
99 runnable nfsd threads. The ideal rate of change for this counter
132 - Currently the rate at which the counter is incremented is quite
134 remains constant for hours at a time, this counter is unlikely
/linux-4.1.27/drivers/s390/scsi/
Dzfcp_dbf.c57 pl->counter++; in zfcp_dbf_pl_write()
197 payload->counter = 0; in zfcp_dbf_hba_def_err()
201 while (payload->counter < scount && (char *)pl[payload->counter]) { in zfcp_dbf_hba_def_err()
202 memcpy(payload->data, (char *)pl[payload->counter], length); in zfcp_dbf_hba_def_err()
204 payload->counter++; in zfcp_dbf_hba_def_err()
/linux-4.1.27/arch/metag/kernel/perf/
Dperf_event.c760 u32 counter = 0; in metag_pmu_counter_overflow() local
768 counter = metag_in32(PERF_COUNT(idx)); in metag_pmu_counter_overflow()
769 metag_out32((counter & 0x00ffffff), PERF_COUNT(idx)); in metag_pmu_counter_overflow()
784 counter = (counter & 0xff000000) | in metag_pmu_counter_overflow()
786 metag_out32(counter, PERF_COUNT(idx)); in metag_pmu_counter_overflow()
/linux-4.1.27/drivers/tty/serial/
Dsn_console.c929 int counter, got_lock = 0; in sn_sal_console_write() local
942 for (counter = 0; counter < 150; mdelay(125), counter++) { in sn_sal_console_write()
960 counter = 0; in sn_sal_console_write()
/linux-4.1.27/fs/reiserfs/
Dfix_node.c833 int counter, number_of_freeblk; in get_empty_nodes() local
859 for (counter = 0, number_of_freeblk = tb->cur_blknum; in get_empty_nodes()
860 counter < h; counter++) in get_empty_nodes()
862 (tb->blknum[counter]) ? (tb->blknum[counter] - in get_empty_nodes()
886 for (blocknr = blocknrs, counter = 0; in get_empty_nodes()
887 counter < amount_needed; blocknr++, counter++) { in get_empty_nodes()
1034 int counter, in get_far_parent() local
1044 counter = path_offset; in get_far_parent()
1046 RFALSE(counter < FIRST_PATH_ELEMENT_OFFSET, in get_far_parent()
1049 for (; counter > FIRST_PATH_ELEMENT_OFFSET; counter--) { in get_far_parent()
[all …]
/linux-4.1.27/arch/alpha/lib/
Dev6-clear_user.S68 addq $0, $4, $1 # .. .. .. E : bias counter
100 subq $2, 0x40, $3 # .. E .. .. : bias counter (huge loop)
210 # so we will use $0 as the loop counter
/linux-4.1.27/tools/perf/tests/
Drdpmc.c13 static u64 rdpmc(unsigned int counter) in rdpmc() argument
17 asm volatile("rdpmc" : "=a" (low), "=d" (high) : "c" (counter)); in rdpmc()
/linux-4.1.27/drivers/mtd/ubi/
DKconfig19 erase counter value and the lowest erase counter value of eraseblocks
22 counter to eraseblocks with high erase counter.
/linux-4.1.27/arch/arm/include/asm/xen/
Devents.h21 counter), (val))
/linux-4.1.27/drivers/dma/
Ddmatest.c265 unsigned int counter, bool is_srcbuf) in dmatest_mismatch() argument
268 u8 expected = pattern | (~counter & PATTERN_COUNT_MASK); in dmatest_mismatch()
287 unsigned int end, unsigned int counter, u8 pattern, in dmatest_verify() argument
295 unsigned int counter_orig = counter; in dmatest_verify()
298 counter = counter_orig; in dmatest_verify()
301 expected = pattern | (~counter & PATTERN_COUNT_MASK); in dmatest_verify()
305 counter, is_srcbuf); in dmatest_verify()
308 counter++; in dmatest_verify()
/linux-4.1.27/arch/alpha/oprofile/
Dop_model_ev67.c132 op_add_pm(unsigned long pc, int kern, unsigned long counter, in op_add_pm() argument
136 if (counter == 1) in op_add_pm()
/linux-4.1.27/tools/iio/
Diio_utils.c269 int *counter) in build_channel_array() argument
280 *counter = 0; in build_channel_array()
308 (*counter)++; in build_channel_array()
312 *ci_array = malloc(sizeof(**ci_array) * (*counter)); in build_channel_array()
407 bsort_channel_array_by_index(ci_array, *counter); in build_channel_array()
Diio_utils.h61 struct iio_channel_info **ci_array, int *counter);
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192de/
Dfw.c152 u32 counter = 0; in _rtl92d_fw_free_to_go() local
157 } while ((counter++ < FW_8192D_POLLING_TIMEOUT_COUNT) && in _rtl92d_fw_free_to_go()
159 if (counter >= FW_8192D_POLLING_TIMEOUT_COUNT) { in _rtl92d_fw_free_to_go()
198 u32 counter; in _rtl92d_fw_init() local
202 counter = 0; in _rtl92d_fw_init()
225 } while (counter++ < POLLING_READY_TIMEOUT_COUNT); in _rtl92d_fw_init()
/linux-4.1.27/arch/x86/include/asm/uv/
Duv_bau.h739 short counter; member
750 return v->counter; in atomic_read_short()
764 : "+r" (i), "+m" (v->counter) in atom_asr()
/linux-4.1.27/arch/arm/mm/
Dcontext.c62 context_id = mm->context.id.counter; in a15_erratum_get_cpumask()
70 asid = per_cpu(active_asids, cpu).counter; in a15_erratum_get_cpumask()
/linux-4.1.27/Documentation/devicetree/bindings/watchdog/
Dmoxa,moxart-watchdog.txt7 - clocks : Should contain phandle for the clock that drives the counter
Dimgpdc-wdt.txt7 - clock-names: Should contain "wdt" and "sys"; the watchdog counter
/linux-4.1.27/Documentation/virtual/kvm/
Dtimekeeping.txt102 for (N-1)/2 counts. Only even values are latched by the counter, so odd
106 Mode 4: Software Strobe. After programming this mode and loading the counter,
107 the output remains high until the counter reaches zero. Then the output
108 goes low for 1 clock cycle and returns high. The counter is not reloaded.
111 Mode 5: Hardware Strobe. After programming and loading the counter, the
113 (which does not stop if the gate is lowered). When the counter reaches zero,
114 the output goes low for 1 clock cycle and then returns high. The counter is
118 command port, 0x43 is used to set the counter and mode for each of the three
131 additional commands ignored until counter is read;
156 1101 - General counter latch
[all …]
/linux-4.1.27/drivers/staging/netlogic/
DTODO1 * Implementing 64bit stat counter in software
/linux-4.1.27/Documentation/devicetree/bindings/arm/
Dcci.txt116 Definition: list of counter overflow interrupts, one per
117 counter. The interrupts must be specified
118 starting with the cycle counter overflow
124 counter. The number of interrupts must be
Darch_timer.txt20 - clock-frequency : The frequency of the main counter, in Hz. Should be present
52 - clock-frequency : The frequency of the main counter, in Hz. Should be present
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8188ee/
Dfw.c151 u32 counter = 0; in _rtl88e_fw_free_to_go() local
156 } while ((counter++ < FW_8192C_POLLING_TIMEOUT_COUNT) && in _rtl88e_fw_free_to_go()
159 if (counter >= FW_8192C_POLLING_TIMEOUT_COUNT) { in _rtl88e_fw_free_to_go()
175 counter = 0; in _rtl88e_fw_free_to_go()
189 } while (counter++ < FW_8192C_POLLING_TIMEOUT_COUNT); in _rtl88e_fw_free_to_go()
/linux-4.1.27/drivers/staging/rtl8712/
Drtl871x_security.c66 u32 counter; in arcfour_init() local
71 for (counter = 0; counter < 256; counter++) in arcfour_init()
72 state[counter] = (u8)counter; in arcfour_init()
75 for (counter = 0; counter < 256; counter++) { in arcfour_init()
76 t = state[counter]; in arcfour_init()
80 state[counter] = (u8)u; in arcfour_init()
/linux-4.1.27/drivers/staging/rtl8723au/core/
Drtw_security.c38 u32 counter; in arcfour_init() local
43 for (counter = 0; counter < 256; counter++) in arcfour_init()
44 state[counter] = (u8)counter; in arcfour_init()
47 for (counter = 0; counter < 256; counter++) { in arcfour_init()
48 t = state[counter]; in arcfour_init()
52 state[counter] = (u8)u; in arcfour_init()
/linux-4.1.27/drivers/media/pci/ttpci/
Dav7110_av.c91 u8 *counter, struct dvb_demux_feed *feed);
582 p->counter = 0; in av7110_p2t_init()
691 p_to_t(p->pes, (TS_SIZE - 4), pid, &p->counter, p->feed); in av7110_p2t_write()
712 p_to_t(p->pes, p->pos, pid, &p->counter, p->feed); in av7110_p2t_write()
722 p_to_t(buf + c, c2 - c, pid, &p->counter, p->feed); in av7110_p2t_write()
732 p_to_t(buf + c, l, pid, &p->counter, p->feed); in av7110_p2t_write()
741 static int write_ts_header2(u16 pid, u8 *counter, int pes_start, u8 *buf, u8 length) in write_ts_header2() argument
755 tshead[3] |= ((*counter)++ & 0x0F); in write_ts_header2()
776 static void p_to_t(u8 const *buf, long int length, u16 pid, u8 *counter, in p_to_t() argument
808 l = write_ts_header2(pid, counter, pes_start, in p_to_t()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/nios2/
Dtimer.txt9 - clock-frequency : The frequency of the clock that drives the counter, in Hz.
/linux-4.1.27/Documentation/power/powercap/
Dpowercap.txt185 energy_uj (rw): Current energy counter in micro joules. Write "0" to reset.
186 If the counter can not be reset, then this attribute is read only.
188 max_energy_range_uj (ro): Range of the above energy counter in micro-joules.
196 It is possible that some domains have both power ranges and energy counter ranges;
/linux-4.1.27/include/net/netfilter/
Dnf_conntrack_acct.h23 struct nf_conn_counter counter[IP_CT_DIR_MAX]; member
/linux-4.1.27/arch/arm/boot/dts/
Dusb_a9260.dts27 atmel,wakeup-counter = <10>;
/linux-4.1.27/drivers/infiniband/core/
Duverbs_main.c363 if (event->counter) { in ib_uverbs_event_read()
364 ++(*event->counter); in ib_uverbs_event_read()
414 if (entry->counter) in ib_uverbs_event_close()
463 entry->counter = &uobj->comp_events_reported; in ib_uverbs_comp_handler()
476 u32 *counter) in ib_uverbs_async_handler() argument
496 entry->counter = counter; in ib_uverbs_async_handler()
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-class-power7 coloumb counter value inside the battery monitor chip. This
10 and once the counter drops out of considerable bounds, take
Dsysfs-class-powercap60 Current energy counter in micro-joules. Write "0" to reset.
61 If the counter can not be reset, then this attribute is
69 Range of the above energy counter in micro-joules.
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192c/
Dfw_common.c174 u32 counter = 0; in _rtl92c_fw_free_to_go() local
179 } while ((counter++ < FW_8192C_POLLING_TIMEOUT_COUNT) && in _rtl92c_fw_free_to_go()
182 if (counter >= FW_8192C_POLLING_TIMEOUT_COUNT) { in _rtl92c_fw_free_to_go()
197 counter = 0; in _rtl92c_fw_free_to_go()
211 } while (counter++ < FW_8192C_POLLING_TIMEOUT_COUNT); in _rtl92c_fw_free_to_go()
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_security.c43 u32 counter; in arcfour_init() local
47 for (counter = 0; counter < 256; counter++) in arcfour_init()
48 state[counter] = (u8)counter; in arcfour_init()
51 for (counter = 0; counter < 256; counter++) { in arcfour_init()
52 t = state[counter]; in arcfour_init()
56 state[counter] = (u8)u; in arcfour_init()
/linux-4.1.27/Documentation/power/
Druntime_pm.txt136 indicated to the PM core by two counters, the device's usage counter and the
137 counter of 'active' children of the device.
140 the PM core and it turns out to be equal to zero, the other counter is
141 checked. If that counter also is equal to zero, the PM core executes the
174 the usage counter of which is equal to zero _and_ either the counter of
223 - the usage counter of the device
364 - increment the device's usage counter
367 - increment the device's usage counter, run pm_request_resume(dev) and
371 - increment the device's usage counter, run pm_runtime_resume(dev) and
375 - decrement the device's usage counter
[all …]
/linux-4.1.27/drivers/net/can/
Dpch_can.c247 int counter = PCH_COUNTER_LIMIT; in pch_can_rw_msg_obj() local
251 while (counter) { in pch_can_rw_msg_obj()
255 counter--; in pch_can_rw_msg_obj()
258 if (!counter) in pch_can_rw_msg_obj()
1053 int counter = PCH_COUNTER_LIMIT; in pch_can_suspend() local
1065 while (counter) { in pch_can_suspend()
1069 counter--; in pch_can_suspend()
1072 if (!counter) in pch_can_suspend()
/linux-4.1.27/arch/m68k/sun3/
Dintersil.c39 todintersil = (struct intersil_dt *) &intersil_clock->counter; in sun3_hwclk()
/linux-4.1.27/arch/mn10300/kernel/
Dprofile-low.S24 counter: label
/linux-4.1.27/drivers/thunderbolt/
Dswitch.c169 int tb_port_clear_counter(struct tb_port *port, int counter) in tb_port_clear_counter() argument
172 tb_port_info(port, "clearing counter %d\n", counter); in tb_port_clear_counter()
173 return tb_port_write(port, zero, TB_CFG_COUNTERS, 3 * counter, 3); in tb_port_clear_counter()
/linux-4.1.27/drivers/media/dvb-frontends/
Dnxt200x.c265 u8 buf, stopval, counter = 0; in nxt200x_microcontroller_stop() local
284 while (counter < 20) { in nxt200x_microcontroller_stop()
289 counter++; in nxt200x_microcontroller_stop()
309 u8 counter = 0; in nxt2004_microcontroller_init() local
324 while (counter < 20) { in nxt2004_microcontroller_init()
329 counter++; in nxt2004_microcontroller_init()
/linux-4.1.27/drivers/media/platform/exynos4-is/
Dmipi-csis.c144 unsigned int counter; member
471 state->events[i].counter = 0; in s5pcsis_clear_counters()
483 if (state->events[i].counter > 0 || debug) in s5pcsis_log_counters()
486 state->events[i].counter); in s5pcsis_log_counters()
720 state->events[i].counter++; in s5pcsis_irq_handler()
723 state->events[i].counter); in s5pcsis_irq_handler()

123