/linux-4.4.14/drivers/staging/comedi/drivers/ |
D | ni_tiocmd.c | 50 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 …]
|
D | ni_tio.c | 182 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 …]
|
D | comedi_8254.c | 195 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 …]
|
D | ni_tio_internal.h | 159 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 …]
|
D | comedi_8254.h | 105 unsigned int comedi_8254_status(struct comedi_8254 *, unsigned int counter); 106 unsigned int comedi_8254_read(struct comedi_8254 *, unsigned int counter); 108 unsigned int counter, unsigned int val); 111 unsigned int counter, unsigned int mode); 113 unsigned int counter, unsigned int val, unsigned int mode); 125 unsigned int counter, bool busy);
|
D | ni_660x.c | 620 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 …]
|
D | das16m1.c | 125 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() 564 devpriv->counter = comedi_8254_init(dev->iobase + DAS16M1_8254_FIRST, in das16m1_attach() 566 if (!devpriv->counter) in das16m1_attach() 632 kfree(devpriv->counter); in das16m1_detach()
|
D | ni_tio.h | 118 void (*write_register)(struct ni_gpct *counter, unsigned bits, 120 unsigned (*read_register)(struct ni_gpct *counter,
|
D | ni_labpc_common.c | 261 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()
|
D | ni_labpc.h | 39 struct comedi_8254 *counter; member
|
/linux-4.4.14/arch/arm/include/asm/ |
D | atomic.h | 30 #define atomic_read(v) READ_ONCE((v)->counter) 31 #define atomic_set(v,i) WRITE_ONCE(((v)->counter), (i)) 47 prefetchw(&v->counter); \ 54 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \ 55 : "r" (&v->counter), "Ir" (i) \ 65 prefetchw(&v->counter); \ 73 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \ 74 : "r" (&v->counter), "Ir" (i) \ 88 prefetchw(&ptr->counter); in atomic_cmpxchg_relaxed() 96 : "=&r" (res), "=&r" (oldval), "+Qo" (ptr->counter) in atomic_cmpxchg_relaxed() [all …]
|
D | mmu.h | 22 #define ASID(mm) ((unsigned int)((mm)->context.id.counter & ~ASID_MASK))
|
/linux-4.4.14/arch/x86/kernel/cpu/ |
D | perfctr-watchdog.c | 98 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.4.14/include/linux/ |
D | page_counter.h | 24 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 bool page_counter_try_charge(struct page_counter *counter, 42 void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages); [all …]
|
D | atomic.h | 26 #define atomic_read_acquire(v) smp_load_acquire(&(v)->counter) 30 #define atomic_set_release(v, i) smp_store_release(&(v)->counter, (i)) 205 #define atomic64_read_acquire(v) smp_load_acquire(&(v)->counter) 209 #define atomic64_set_release(v, i) smp_store_release(&(v)->counter, (i))
|
D | types.h | 176 int counter; member 181 long counter; member
|
D | quota.h | 257 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.4.14/arch/powerpc/include/asm/ |
D | atomic.h | 19 __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) \ 90 : "=&r" (t), "+m" (v->counter) in ATOMIC_OPS() 91 : "r" (&v->counter) in ATOMIC_OPS() 108 : "r" (&v->counter) in atomic_inc_return() 134 : "=&r" (t), "+m" (v->counter) in atomic_dec() 135 : "r" (&v->counter) in atomic_dec() [all …]
|
D | local.h | 33 : "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 …]
|
D | mutex.h | 22 : "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.4.14/arch/frv/include/asm/ |
D | atomic.h | 35 #define atomic_read(v) READ_ONCE((v)->counter) 36 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) 40 return __atomic_add_return(1, &v->counter); in atomic_inc_return() 45 return __atomic_sub_return(1, &v->counter); in atomic_dec_return() 50 return __atomic_add_return(i, &v->counter); in atomic_add_return() 55 return __atomic_sub_return(i, &v->counter); in atomic_sub_return() 91 long long counter; member 98 long long counter; in atomic64_read() local 101 : "=e"(counter) in atomic64_read() 102 : "m"(v->counter)); in atomic64_read() [all …]
|
/linux-4.4.14/tools/perf/ |
D | builtin-stat.c | 192 static int read_counter(struct perf_evsel *counter) in read_counter() argument 195 int ncpus = perf_evsel__nr_cpus(counter); in read_counter() 198 if (!counter->supported) in read_counter() 201 if (counter->system_wide) in read_counter() 208 count = perf_counts(counter->counts, cpu, thread); in read_counter() 209 if (perf_evsel__read(counter, cpu, thread, count)) in read_counter() 219 struct perf_evsel *counter; in read_counters() local 221 evlist__for_each(evsel_list, counter) { in read_counters() 222 if (read_counter(counter)) in read_counters() 223 pr_debug("failed to read counter %s\n", counter->name); in read_counters() [all …]
|
D | design.txt | 13 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 …]
|
D | builtin-top.c | 175 int counter, u64 ip) in perf_top__record_precise_ip() argument 195 err = hist_entry__inc_addr_samples(he, counter, ip); in perf_top__record_precise_ip() 478 int counter = 0; in perf_top__handle_keypress() local 485 prompt_integer(&counter, "Enter details event counter"); in perf_top__handle_keypress() 487 if (counter >= top->evlist->nr_entries) { in perf_top__handle_keypress() 494 if (top->sym_evsel->idx == counter) in perf_top__handle_keypress() 893 struct perf_evsel *counter; in perf_top__start_counters() local 899 evlist__for_each(evlist, counter) { in perf_top__start_counters() 901 if (perf_evsel__open(counter, top->evlist->cpus, in perf_top__start_counters() 903 if (perf_evsel__fallback(counter, errno, msg, sizeof(msg))) { in perf_top__start_counters() [all …]
|
/linux-4.4.14/arch/mips/include/asm/ |
D | atomic.h | 33 #define atomic_read(v) READ_ONCE((v)->counter) 42 #define atomic_set(v, i) WRITE_ONCE((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; \ 178 "+" GCC_OFF_SMALL_ASM() (v->counter) in atomic_sub_if_positive() [all …]
|
D | local.h | 44 : "=&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 …]
|
/linux-4.4.14/arch/x86/include/asm/ |
D | atomic64_64.h | 21 return READ_ONCE((v)->counter); in atomic64_read() 33 WRITE_ONCE(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 …]
|
D | atomic.h | 27 return READ_ONCE((v)->counter); in atomic_read() 39 WRITE_ONCE(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 …]
|
D | local.h | 21 : "+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 …]
|
D | msr.h | 158 static inline unsigned long long native_read_pmc(int counter) in native_read_pmc() argument 162 asm volatile("rdpmc" : EAX_EDX_RET(val, low, high) : "c" (counter)); in native_read_pmc() 220 #define rdpmc(counter, low, high) \ argument 222 u64 _l = native_read_pmc((counter)); \ 227 #define rdpmcl(counter, val) ((val) = native_read_pmc(counter)) argument
|
D | mutex_64.h | 25 : : "m" (v->counter) in __mutex_fastpath_lock() 80 : : "m" (v->counter) in __mutex_fastpath_unlock()
|
D | atomic64_32.h | 12 u64 __aligned(8) counter; 76 return cmpxchg64(&v->counter, o, n); in atomic64_cmpxchg()
|
/linux-4.4.14/arch/tile/include/asm/ |
D | atomic_64.h | 27 #define atomic_set(v, i) WRITE_ONCE((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() 63 __insn_fetchand4((void *)&v->counter, i); in atomic_and() 68 __insn_fetchor4((void *)&v->counter, i); in atomic_or() 73 int guess, oldval = v->counter; in atomic_xor() 77 oldval = __insn_cmpexch4(&v->counter, guess ^ i); in atomic_xor() 85 #define atomic64_read(v) READ_ONCE((v)->counter) [all …]
|
D | atomic_32.h | 34 _atomic_xchg_add(&v->counter, i); in atomic_add() 41 _atomic_##op((unsigned long *)&v->counter, i); \ 60 return _atomic_xchg_add(&v->counter, i) + i; in ATOMIC_OP() 75 return _atomic_xchg_add_unless(&v->counter, a, u); in __atomic_add_unless() 90 _atomic_xchg(&v->counter, n); in atomic_set() 96 long long counter; member 114 return _atomic64_xchg_add((long long *)&v->counter, 0); in atomic64_read() 126 _atomic64_xchg_add(&v->counter, i); in atomic64_add() 133 _atomic64_##op(&v->counter, i); \ 150 return _atomic64_xchg_add(&v->counter, i) + i; in ATOMIC64_OP() [all …]
|
D | atomic.h | 37 return READ_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.4.14/mm/ |
D | page_counter.c | 20 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 bool 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 …]
|
D | hugetlb_cgroup.c | 113 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 if (!page_counter_try_charge(&h_cg->hugepage[idx], nr_pages, &counter)) in hugetlb_cgroup_charge_cgroup() 251 struct page_counter *counter; in hugetlb_cgroup_read_u64() local 254 counter = &h_cg->hugepage[MEMFILE_IDX(cft->private)]; in hugetlb_cgroup_read_u64() 258 return (u64)page_counter_read(counter) * PAGE_SIZE; in hugetlb_cgroup_read_u64() 260 return (u64)counter->limit * PAGE_SIZE; in hugetlb_cgroup_read_u64() 262 return (u64)counter->watermark * PAGE_SIZE; in hugetlb_cgroup_read_u64() [all …]
|
/linux-4.4.14/tools/perf/util/ |
D | stat.c | 193 static void zero_per_pkg(struct perf_evsel *counter) in zero_per_pkg() argument 195 if (counter->per_pkg_mask) in zero_per_pkg() 196 memset(counter->per_pkg_mask, 0, MAX_NR_CPUS); in zero_per_pkg() 199 static int check_per_pkg(struct perf_evsel *counter, in check_per_pkg() argument 202 unsigned long *mask = counter->per_pkg_mask; in check_per_pkg() 203 struct cpu_map *cpus = perf_evsel__cpus(counter); in check_per_pkg() 208 if (!counter->per_pkg) in check_per_pkg() 219 counter->per_pkg_mask = mask; in check_per_pkg() 284 struct perf_evsel *counter) in process_counter_maps() argument 286 int nthreads = thread_map__nr(counter->threads); in process_counter_maps() [all …]
|
D | stat-shadow.c | 78 void perf_stat__update_shadow_stats(struct perf_evsel *counter, u64 *count, in perf_stat__update_shadow_stats() argument 81 int ctx = evsel_context(counter); in perf_stat__update_shadow_stats() 83 if (perf_evsel__match(counter, SOFTWARE, SW_TASK_CLOCK)) in perf_stat__update_shadow_stats() 85 else if (perf_evsel__match(counter, HARDWARE, HW_CPU_CYCLES)) in perf_stat__update_shadow_stats() 87 else if (perf_stat_evsel__is(counter, CYCLES_IN_TX)) in perf_stat__update_shadow_stats() 89 else if (perf_stat_evsel__is(counter, TRANSACTION_START)) in perf_stat__update_shadow_stats() 91 else if (perf_stat_evsel__is(counter, ELISION_START)) in perf_stat__update_shadow_stats() 93 else if (perf_evsel__match(counter, HARDWARE, HW_STALLED_CYCLES_FRONTEND)) in perf_stat__update_shadow_stats() 95 else if (perf_evsel__match(counter, HARDWARE, HW_STALLED_CYCLES_BACKEND)) in perf_stat__update_shadow_stats() 97 else if (perf_evsel__match(counter, HARDWARE, HW_BRANCH_INSTRUCTIONS)) in perf_stat__update_shadow_stats() [all …]
|
D | cgroup.c | 78 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()
|
D | stat.h | 72 void perf_stat__update_shadow_stats(struct perf_evsel *counter, u64 *count, 92 struct perf_evsel *counter);
|
/linux-4.4.14/net/netfilter/ |
D | nft_counter.c | 26 struct nft_counter counter; member 31 struct nft_counter_percpu __percpu *counter; member 42 this_cpu = this_cpu_ptr(priv->counter); in nft_counter_eval() 44 this_cpu->counter.bytes += pkt->skb->len; in nft_counter_eval() 45 this_cpu->counter.packets++; in nft_counter_eval() 50 static void nft_counter_fetch(const struct nft_counter_percpu __percpu *counter, in nft_counter_fetch() argument 60 cpu_stats = per_cpu_ptr(counter, cpu); in nft_counter_fetch() 63 bytes = cpu_stats->counter.bytes; in nft_counter_fetch() 64 packets = cpu_stats->counter.packets; in nft_counter_fetch() 77 nft_counter_fetch(priv->counter, &total); in nft_counter_dump() [all …]
|
D | nf_conntrack_acct.c | 43 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()
|
D | xt_set.c | 164 match_counter0(u64 counter, const struct ip_set_counter_match0 *info) in match_counter0() argument 170 return counter == info->value; in match_counter0() 172 return counter != info->value; in match_counter0() 174 return counter < info->value; in match_counter0() 176 return counter > info->value; in match_counter0() 211 match_counter(u64 counter, const struct ip_set_counter_match *info) in match_counter() argument 217 return counter == info->value; in match_counter() 219 return counter != info->value; in match_counter() 221 return counter < info->value; in match_counter() 223 return counter > info->value; in match_counter()
|
/linux-4.4.14/lib/ |
D | atomic64_test.c | 61 BUG_ON(v.counter != r); in test_atomic64() 65 BUG_ON(v.counter != r); in test_atomic64() 80 BUG_ON(v.counter != r); in test_atomic64() 85 BUG_ON(v.counter != r); in test_atomic64() 90 BUG_ON(v.counter != r); in test_atomic64() 95 BUG_ON(v.counter != r); in test_atomic64() 100 BUG_ON(v.counter != r); in test_atomic64() 105 BUG_ON(v.counter != r); in test_atomic64() 110 BUG_ON(v.counter != r); in test_atomic64() 115 BUG_ON(v.counter != r); in test_atomic64() [all …]
|
D | atomic64.c | 56 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); \ 120 val = v->counter - 1; in atomic64_dec_if_positive() 122 v->counter = val; in atomic64_dec_if_positive() 135 val = v->counter; in atomic64_cmpxchg() 137 v->counter = n; in atomic64_cmpxchg() 150 val = v->counter; in atomic64_xchg() 151 v->counter = new; in atomic64_xchg() [all …]
|
/linux-4.4.14/arch/metag/include/asm/ |
D | atomic_lock1.h | 13 return READ_ONCE((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; \ 85 ret = v->counter; in atomic_cmpxchg() 88 v->counter = new; in atomic_cmpxchg() 95 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) 103 ret = v->counter; in __atomic_add_unless() 106 v->counter += a; in __atomic_add_unless() [all …]
|
D | atomic_lnkget.h | 6 #define atomic_set(v, i) WRITE_ONCE((v)->counter, (i)) 25 : "da" (&v->counter)); in atomic_read() 44 : "da" (&v->counter), "bd" (i) \ 64 : "da" (&v->counter), "bd" (i) \ 102 : "da" (&v->counter), "bd" (old), "da" (new) in ATOMIC_OPS() 122 : "da" (&v->counter), "da" (new) in atomic_xchg() 146 : "da" (&v->counter), "bd" (u), "bd" (a) in __atomic_add_unless() 169 : "da" (&v->counter), "bd" (i) in atomic_sub_if_positive()
|
/linux-4.4.14/net/dccp/ccids/lib/ |
D | loss_interval.c | 28 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 …]
|
D | loss_interval.h | 47 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.4.14/arch/parisc/include/asm/ |
D | spinlock.h | 78 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 …]
|
D | atomic.h | 63 v->counter = i; in atomic_set() 70 return READ_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); \ 171 v->counter c_op i; \ 182 ret = (v->counter c_op i); \ 206 v->counter = i; in atomic64_set() 214 return ACCESS_ONCE((v)->counter); in atomic64_read() [all …]
|
D | spinlock_types.h | 16 volatile int counter; member
|
/linux-4.4.14/arch/arc/include/asm/ |
D | spinlock.h | 112 : [rwlock] "r" (&(rw->counter)), in arch_read_lock() 138 : [rwlock] "r" (&(rw->counter)), in arch_read_trylock() 173 : [rwlock] "r" (&(rw->counter)), in arch_write_lock() 200 : [rwlock] "r" (&(rw->counter)), in arch_write_trylock() 226 : [rwlock] "r" (&(rw->counter)) in arch_read_unlock() 236 rw->counter = __ARCH_RW_LOCK_UNLOCKED__; in arch_write_unlock() 369 : [rwlock] "r" (&(rw->counter)), in arch_read_lock() 398 : [rwlock] "r" (&(rw->counter)), in arch_read_trylock() 438 : [rwlock] "r" (&(rw->counter)), in arch_write_lock() 468 : [rwlock] "r" (&(rw->counter)), in arch_write_trylock() [all …]
|
D | atomic.h | 20 #define atomic_read(v) READ_ONCE((v)->counter) 24 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) 70 : [ctr] "r" (&v->counter), /* Not "m": llock only supports reg direct addr mode */ \ 96 : [ctr] "r" (&v->counter), \ 110 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) 128 WRITE_ONCE(v->counter, i); in atomic_set() 145 v->counter c_op i; \ 159 temp = v->counter; \ 161 v->counter = temp; \
|
D | spinlock_types.h | 28 volatile unsigned int counter; member 35 #define __ARCH_RW_LOCK_UNLOCKED { .counter = __ARCH_RW_LOCK_UNLOCKED__ }
|
D | cmpxchg.h | 81 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) 159 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
|
/linux-4.4.14/drivers/net/wireless/prism54/ |
D | islpci_dev.c | 555 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 …]
|
D | isl_38xx.c | 115 u32 counter = 0; in isl38xx_trigger_device() local 146 counter++; in isl38xx_trigger_device() 159 counter); in isl38xx_trigger_device()
|
/linux-4.4.14/arch/m32r/include/asm/ |
D | local.h | 27 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 …]
|
D | atomic.h | 31 #define atomic_read(v) READ_ONCE((v)->counter) 40 #define atomic_set(v,i) WRITE_ONCE(((v)->counter), (i)) 62 : "r" (&v->counter), "r" (i) \ 83 : "r" (&v->counter), "r" (i) \ 135 : "r" (&v->counter) in ATOMIC_OPS() 163 : "r" (&v->counter) in atomic_dec_return() 219 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) 220 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
|
/linux-4.4.14/drivers/staging/wilc1000/ |
D | coreconfigurator.c | 593 s32 counter = 0, ret = 0; in send_config_pkt() local 596 for (counter = 0; counter < count; counter++) { in send_config_pkt() 597 PRINT_INFO(CORECONFIG_DBG, "Sending CFG packet [%d][%d]\n", !counter, in send_config_pkt() 598 (counter == count - 1)); in send_config_pkt() 599 if (!wilc_wlan_cfg_get(!counter, in send_config_pkt() 600 wids[counter].id, in send_config_pkt() 601 (counter == count - 1), in send_config_pkt() 608 counter = 0; in send_config_pkt() 609 for (counter = 0; counter < count; counter++) { in send_config_pkt() 610 wids[counter].size = wilc_wlan_cfg_get_val( in send_config_pkt() [all …]
|
/linux-4.4.14/arch/avr32/include/asm/ |
D | atomic.h | 22 #define atomic_read(v) READ_ONCE((v)->counter) 23 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) 37 : "=&r" (result), "=o" (v->counter) \ 38 : "m" (v->counter), #asm_con (i) \ 129 : "=&r"(tmp), "=o"(v->counter) in __atomic_add_unless() 130 : "m"(v->counter), "rKs21"(-a), "rKs21"(u) in __atomic_add_unless() 143 : "=&r"(tmp), "=o"(v->counter) in __atomic_add_unless() 144 : "m"(v->counter), "r"(a), "ir"(u) in __atomic_add_unless() 174 : "=&r"(result), "=o"(v->counter) in atomic_sub_if_positive() 175 : "m"(v->counter), "ir"(i) in atomic_sub_if_positive() [all …]
|
/linux-4.4.14/arch/alpha/include/asm/ |
D | atomic.h | 20 #define atomic_read(v) READ_ONCE((v)->counter) 21 #define atomic64_read(v) READ_ONCE((v)->counter) 23 #define atomic_set(v,i) WRITE_ONCE((v)->counter, (i)) 24 #define atomic64_set(v,i) WRITE_ONCE((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 …]
|
D | local.h | 32 :"=&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.4.14/include/asm-generic/ |
D | atomic.h | 47 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); \ 130 #define atomic_read(v) READ_ONCE((v)->counter) 140 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) 176 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v))) 177 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
|
/linux-4.4.14/arch/arm64/include/asm/ |
D | atomic_lse.h | 37 : [i] "+r" (w0), [v] "+Q" (v->counter) in atomic_andnot() 49 : [i] "+r" (w0), [v] "+Q" (v->counter) in atomic_or() 61 : [i] "+r" (w0), [v] "+Q" (v->counter) in atomic_xor() 73 : [i] "+r" (w0), [v] "+Q" (v->counter) in atomic_add() 91 : [i] "+r" (w0), [v] "+Q" (v->counter) \ 117 : [i] "+r" (w0), [v] "+Q" (v->counter) in atomic_and() 134 : [i] "+r" (w0), [v] "+Q" (v->counter) in atomic_sub() 154 : [i] "+r" (w0), [v] "+Q" (v->counter) \ 178 : [i] "+r" (x0), [v] "+Q" (v->counter) in atomic64_andnot() 190 : [i] "+r" (x0), [v] "+Q" (v->counter) in atomic64_or() [all …]
|
D | atomic.h | 45 typeof((v)->counter) c, old; \ 56 #define atomic_read(v) READ_ONCE((v)->counter) 57 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) 79 #define atomic_xchg_relaxed(v, new) xchg_relaxed(&((v)->counter), (new)) 80 #define atomic_xchg_acquire(v, new) xchg_acquire(&((v)->counter), (new)) 81 #define atomic_xchg_release(v, new) xchg_release(&((v)->counter), (new)) 82 #define atomic_xchg(v, new) xchg(&((v)->counter), (new)) 85 cmpxchg_relaxed(&((v)->counter), (old), (new)) 87 cmpxchg_acquire(&((v)->counter), (old), (new)) 89 cmpxchg_release(&((v)->counter), (old), (new)) [all …]
|
D | atomic_ll_sc.h | 53 : "=&r" (result), "=&r" (tmp), "+Q" (v->counter) \ 72 : "=&r" (result), "=&r" (tmp), "+Q" (v->counter) \ 116 : "=&r" (result), "=&r" (tmp), "+Q" (v->counter) \ in ATOMIC_OPS_RLX() 135 : "=&r" (result), "=&r" (tmp), "+Q" (v->counter) \ 181 : "=&r" (result), "=&r" (tmp), "+Q" (v->counter)
|
D | mmu.h | 29 #define ASID(mm) ((mm)->context.id.counter & 0xffff)
|
/linux-4.4.14/arch/blackfin/include/asm/ |
D | atomic.h | 26 #define atomic_read(v) __raw_uncached_fetch_asm(&(v)->counter) 28 #define atomic_add_return(i, v) __raw_atomic_add_asm(&(v)->counter, i) 29 #define atomic_sub_return(i, v) __raw_atomic_add_asm(&(v)->counter, -(i)) 31 #define atomic_or(i, v) (void)__raw_atomic_or_asm(&(v)->counter, i) 32 #define atomic_and(i, v) (void)__raw_atomic_and_asm(&(v)->counter, i) 33 #define atomic_xor(i, v) (void)__raw_atomic_xor_asm(&(v)->counter, i)
|
/linux-4.4.14/arch/h8300/include/asm/ |
D | atomic.h | 14 #define atomic_read(v) READ_ONCE((v)->counter) 15 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) 26 ret = v->counter c_op i; \ 37 v->counter c_op i; \ 72 ret = v->counter; in atomic_cmpxchg() 74 v->counter = new; in atomic_cmpxchg() 85 ret = v->counter; in __atomic_add_unless() 87 v->counter += a; in __atomic_add_unless()
|
/linux-4.4.14/arch/mn10300/include/asm/ |
D | atomic.h | 37 #define atomic_read(v) READ_ONCE((v)->counter) 46 #define atomic_set(v, i) WRITE_ONCE(((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) \ 131 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v))) 132 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
|
/linux-4.4.14/arch/s390/include/asm/ |
D | atomic.h | 41 : "=d" (old_val), "+Q" ((ptr)->counter) \ 66 : "=&d" (old_val), "=&d" (new_val), "+Q" ((ptr)->counter)\ 80 : "=d" (c) : "Q" (v->counter)); in atomic_read() 88 : "=Q" (v->counter) : "d" (i)); in atomic_set() 102 : "+Q" (v->counter) in atomic_add() 134 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OP() 140 : "+d" (old), "+Q" (v->counter) in ATOMIC_OP() 184 : "=d" (old_val), "+Q" ((ptr)->counter) \ 209 : "=&d" (old_val), "=&d" (new_val), "+Q" ((ptr)->counter)\ 223 : "=d" (c) : "Q" (v->counter)); in atomic64_read() [all …]
|
/linux-4.4.14/arch/sparc/include/asm/ |
D | atomic_64.h | 17 #define atomic_read(v) READ_ONCE((v)->counter) 18 #define atomic64_read(v) READ_ONCE((v)->counter) 20 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) 21 #define atomic64_set(v, i) WRITE_ONCE(((v)->counter), (i)) 76 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS() 77 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS() 95 ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n))) 96 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
|
D | cpudata_32.h | 17 unsigned int counter; member
|
/linux-4.4.14/arch/avr32/oprofile/ |
D | op_model_avr32.c | 40 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.4.14/arch/ia64/include/asm/ |
D | atomic.h | 24 #define atomic_read(v) READ_ONCE((v)->counter) 25 #define atomic64_read(v) READ_ONCE((v)->counter) 27 #define atomic_set(v,i) WRITE_ONCE(((v)->counter), (i)) 28 #define atomic64_set(v,i) WRITE_ONCE(((v)->counter), (i)) 56 ? ia64_fetch_and_add(__ia64_aar_i, &(v)->counter) \ 68 ? ia64_fetch_and_add(-__ia64_asr_i, &(v)->counter) \ 108 ? ia64_fetch_and_add(__ia64_aar_i, &(v)->counter) \ 120 ? ia64_fetch_and_add(-__ia64_asr_i, &(v)->counter) \ 134 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) 135 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) [all …]
|
/linux-4.4.14/arch/sparc/lib/ |
D | atomic32.c | 37 ret = (v->counter c_op i); \ 50 v->counter c_op i; \ 70 ret = v->counter; in atomic_xchg() 71 v->counter = new; in atomic_xchg() 83 ret = v->counter; in atomic_cmpxchg() 85 v->counter = new; in atomic_cmpxchg() 98 ret = v->counter; in __atomic_add_unless() 100 v->counter += a; in __atomic_add_unless() 112 v->counter = i; in atomic_set()
|
/linux-4.4.14/include/linux/netfilter/ipset/ |
D | ip_set.h | 294 ip_set_add_bytes(u64 bytes, struct ip_set_counter *counter) in ip_set_add_bytes() argument 296 atomic64_add((long long)bytes, &(counter)->bytes); in ip_set_add_bytes() 300 ip_set_add_packets(u64 packets, struct ip_set_counter *counter) in ip_set_add_packets() argument 302 atomic64_add((long long)packets, &(counter)->packets); in ip_set_add_packets() 306 ip_set_get_bytes(const struct ip_set_counter *counter) in ip_set_get_bytes() argument 308 return (u64)atomic64_read(&(counter)->bytes); in ip_set_get_bytes() 312 ip_set_get_packets(const struct ip_set_counter *counter) in ip_set_get_packets() argument 314 return (u64)atomic64_read(&(counter)->packets); in ip_set_get_packets() 318 ip_set_update_counter(struct ip_set_counter *counter, in ip_set_update_counter() argument 324 ip_set_add_bytes(ext->bytes, counter); in ip_set_update_counter() [all …]
|
/linux-4.4.14/arch/hexagon/include/asm/ |
D | atomic.h | 40 : "r" (&v->counter), "r" (new) in atomic_set() 51 #define atomic_read(v) READ_ONCE((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.4.14/tools/include/asm-generic/ |
D | atomic-gcc.h | 24 return ACCESS_ONCE((v)->counter); in atomic_read() 36 v->counter = i; in atomic_set() 47 __sync_add_and_fetch(&v->counter, 1); in atomic_inc() 60 return __sync_sub_and_fetch(&v->counter, 1) == 0; in atomic_dec_and_test()
|
/linux-4.4.14/drivers/clocksource/ |
D | timer-ti-32k.c | 59 void __iomem *counter; member 72 return (cycle_t)readl_relaxed(ti->counter); in ti_32k_read_cycles() 101 ti_32k_timer.counter = ti_32k_timer.base; in ti_32k_timer_init() 112 ti_32k_timer.counter += OMAP2_32KSYNCNT_CR_OFF_HIGH; in ti_32k_timer_init() 114 ti_32k_timer.counter += OMAP2_32KSYNCNT_CR_OFF_LOW; in ti_32k_timer_init()
|
D | arm_global_timer.c | 65 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() 97 u64 counter = gt_counter_read(); in gt_compare_set() local 100 counter += delta; in gt_compare_set() 103 writel(lower_32_bits(counter), gt_base + GT_COMP0); in gt_compare_set() 104 writel(upper_32_bits(counter), gt_base + GT_COMP1); in gt_compare_set()
|
D | time-pistachio.c | 74 u32 counter, overflw; in pistachio_clocksource_read_cycles() local 84 counter = gpt_readl(pcs->base, TIMER_CURRENT_VALUE, 0); in pistachio_clocksource_read_cycles() 87 return ~(cycle_t)counter; in pistachio_clocksource_read_cycles()
|
/linux-4.4.14/tools/arch/x86/include/asm/ |
D | atomic.h | 25 return ACCESS_ONCE((v)->counter); in atomic_read() 37 v->counter = i; in atomic_set() 49 : "+m" (v->counter)); in atomic_inc() 62 GEN_UNARY_RMWcc(LOCK_PREFIX "decl", v->counter, "%0", "e"); in atomic_dec_and_test()
|
/linux-4.4.14/arch/mips/oprofile/ |
D | op_model_mipsxx.c | 145 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 …]
|
D | op_model_loongson2.c | 108 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.4.14/drivers/net/ethernet/dec/tulip/ |
D | xircom_cb.c | 701 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.4.14/arch/arm/kernel/ |
D | perf_event_v6.c | 219 enum armv6_counters counter) in armv6_pmcr_counter_has_overflowed() argument 223 if (ARMV6_CYCLE_COUNTER == counter) in armv6_pmcr_counter_has_overflowed() 225 else if (ARMV6_COUNTER0 == counter) in armv6_pmcr_counter_has_overflowed() 227 else if (ARMV6_COUNTER1 == counter) in armv6_pmcr_counter_has_overflowed() 230 WARN_ONCE(1, "invalid counter number (%d)\n", counter); in armv6_pmcr_counter_has_overflowed() 238 int counter = hwc->idx; in armv6pmu_read_counter() local 241 if (ARMV6_CYCLE_COUNTER == counter) in armv6pmu_read_counter() 243 else if (ARMV6_COUNTER0 == counter) in armv6pmu_read_counter() 245 else if (ARMV6_COUNTER1 == counter) in armv6pmu_read_counter() 248 WARN_ONCE(1, "invalid counter number (%d)\n", counter); in armv6pmu_read_counter() [all …]
|
D | perf_event_xscale.c | 122 enum xscale_counters counter) in xscale1_pmnc_counter_has_overflowed() argument 126 switch (counter) { in xscale1_pmnc_counter_has_overflowed() 137 WARN_ONCE(1, "invalid counter number (%d)\n", counter); in xscale1_pmnc_counter_has_overflowed() 322 int counter = hwc->idx; in xscale1pmu_read_counter() local 325 switch (counter) { in xscale1pmu_read_counter() 343 int counter = hwc->idx; in xscale1pmu_write_counter() local 345 switch (counter) { in xscale1pmu_write_counter() 463 enum xscale_counters counter) in xscale2_pmnc_counter_has_overflowed() argument 467 switch (counter) { in xscale2_pmnc_counter_has_overflowed() 484 WARN_ONCE(1, "invalid counter number (%d)\n", counter); in xscale2_pmnc_counter_has_overflowed() [all …]
|
/linux-4.4.14/arch/x86/xen/ |
D | pmu.c | 218 reg = &arch_cntr_pair[index].counter; in xen_intel_pmu_emulate() 329 static unsigned long long xen_amd_read_pmc(int counter) in xen_amd_read_pmc() argument 340 msr = amd_counters_base + (counter * amd_msr_step); in xen_amd_read_pmc() 346 return counter_regs[counter]; in xen_amd_read_pmc() 349 static unsigned long long xen_intel_read_pmc(int counter) in xen_intel_read_pmc() argument 361 if (counter & (1 << INTEL_PMC_TYPE_SHIFT)) in xen_intel_read_pmc() 362 msr = MSR_CORE_PERF_FIXED_CTR0 + (counter & 0xffff); in xen_intel_read_pmc() 364 msr = MSR_IA32_PERFCTR0 + counter; in xen_intel_read_pmc() 370 if (counter & (1 << INTEL_PMC_TYPE_SHIFT)) { in xen_intel_read_pmc() 372 return fixed_counters[counter & 0xffff]; in xen_intel_read_pmc() [all …]
|
D | pmu.h | 13 unsigned long long xen_read_pmc(int counter);
|
/linux-4.4.14/drivers/watchdog/ |
D | sirfsoc_wdt.c | 44 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.4.14/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_stats.c | 513 [OCRDMA_CQ_ERROR].counter)); in ocrdma_driver_dbg_stats() 516 [OCRDMA_CQ_OVERRUN_ERROR].counter); in ocrdma_driver_dbg_stats() 519 [OCRDMA_CQ_QPCAT_ERROR].counter); in ocrdma_driver_dbg_stats() 522 [OCRDMA_QP_ACCESS_ERROR].counter); in ocrdma_driver_dbg_stats() 525 [OCRDMA_QP_COMM_EST_EVENT].counter); in ocrdma_driver_dbg_stats() 528 [OCRDMA_SQ_DRAINED_EVENT].counter); in ocrdma_driver_dbg_stats() 531 [OCRDMA_DEVICE_FATAL_EVENT].counter); in ocrdma_driver_dbg_stats() 534 [OCRDMA_SRQCAT_ERROR].counter); in ocrdma_driver_dbg_stats() 537 [OCRDMA_SRQ_LIMIT_EVENT].counter); in ocrdma_driver_dbg_stats() 540 [OCRDMA_QP_LAST_WQE_EVENT].counter); in ocrdma_driver_dbg_stats() [all …]
|
/linux-4.4.14/arch/sh/include/asm/ |
D | mutex-llsc.h | 32 : "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()
|
D | atomic.h | 17 #define atomic_read(v) READ_ONCE((v)->counter) 18 #define atomic_set(v,i) WRITE_ONCE((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)))
|
D | atomic-irq.h | 18 v->counter c_op i; \ 28 temp = v->counter; \ 30 v->counter = temp; \
|
D | atomic-llsc.h | 29 : "r" (i), "r" (&v->counter) \ 45 : "r" (i), "r" (&v->counter) \
|
/linux-4.4.14/drivers/input/joystick/ |
D | walkera0701.c | 54 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.4.14/drivers/infiniband/hw/nes/ |
D | nes_utils.c | 62 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 …]
|
D | nes_hw.c | 1309 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 …]
|
/linux-4.4.14/arch/x86/oprofile/ |
D | op_x86_model.h | 59 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.4.14/drivers/net/ethernet/altera/ |
D | altera_msgdma.c | 39 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.4.14/arch/x86/kvm/ |
D | pmu.h | 42 u64 counter, enabled, running; in pmc_read_counter() local 44 counter = pmc->counter; in pmc_read_counter() 46 counter += perf_event_read_value(pmc->perf_event, in pmc_read_counter() 49 return counter & pmc_bitmask(pmc); in pmc_read_counter() 55 pmc->counter = pmc_read_counter(pmc); in pmc_stop_counter()
|
D | pmu_amd.c | 136 pmc->counter += data - pmc_read_counter(pmc); in amd_pmu_set_msr() 188 pmc->counter = pmc->eventsel = 0; in amd_pmu_reset()
|
/linux-4.4.14/scripts/ |
D | markup_oops.pl | 215 my $counter = 0; 257 $center = $counter; 260 $lines[$counter] = $line; 262 $counter = $counter + 1; 268 if ($counter == 0) { 306 while ($finish < $counter) {
|
/linux-4.4.14/arch/mips/cavium-octeon/executive/ |
D | cvmx-l2c.c | 169 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.4.14/drivers/staging/rdma/ipath/ |
D | ipath_user_sdma.c | 57 u32 counter; /* sdma pkts queued counter for this entry */ member 89 u32 counter; member 108 pq->counter = 0; in ipath_user_sdma_queue_create() 162 u32 counter, size_t offset, in ipath_user_sdma_init_header() argument 168 pkt->counter = counter; in ipath_user_sdma_init_header() 406 u32 counter = pq->counter; in ipath_user_sdma_queue_pkts() local 517 ipath_user_sdma_init_header(pkt, counter, 0, len, dma_mapped, in ipath_user_sdma_queue_pkts() 528 counter++; in ipath_user_sdma_queue_pkts() 584 u32 counter; in ipath_user_sdma_queue_clean() local 588 counter = pkt->counter; in ipath_user_sdma_queue_clean() [all …]
|
/linux-4.4.14/Documentation/devicetree/bindings/timer/ |
D | fsl,ftm-timer.txt | 14 o "ftm-evt-counter-en" 15 o "ftm-src-counter-en" 25 "ftm-evt-counter-en", "ftm-src-counter-en";
|
D | brcm,bcm2835-system-timer.txt | 4 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.
|
D | ti,keystone-timer.txt | 9 It is global timer is a free running up-counter and can generate interrupt 10 when the counter reaches preset counter values.
|
D | samsung,exynos4210-mct.txt | 5 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
|
D | img,pistachio-gptimer.txt | 10 "slow", slow counter clock 11 "fast", fast counter clock
|
D | renesas,mtu2.txt | 3 The MTU2 is a multi-purpose, multi-channel timer/counter with configurable 6 Channels share hardware resources but their counter and compare match value
|
D | renesas,tmu.txt | 3 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
|
D | moxa,moxart-timer.txt | 8 - clocks : Should contain phandle for the clock that drives the counter
|
/linux-4.4.14/kernel/ |
D | cgroup_pids.c | 50 atomic64_t counter; member 74 atomic64_set(&pids->counter, 0); in pids_css_alloc() 97 WARN_ON_ONCE(atomic64_add_negative(-num, &pids->counter)); in pids_cancel() 127 atomic64_add(num, &p->counter); in pids_charge() 144 int64_t new = atomic64_add_return(num, &p->counter); in pids_try_charge() 288 return atomic64_read(&pids->counter); in pids_current_read()
|
/linux-4.4.14/arch/arm/mach-netx/include/mach/ |
D | netx-regs.h | 191 #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.4.14/arch/m68k/include/asm/ |
D | atomic.h | 20 #define atomic_read(v) READ_ONCE((v)->counter) 21 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) 65 t = (v->counter c_op i); \ 124 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) 125 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
|
D | intersil.h | 39 struct intersil_dt counter; member
|
/linux-4.4.14/arch/xtensa/include/asm/ |
D | atomic.h | 50 #define atomic_read(v) READ_ONCE((v)->counter) 59 #define atomic_set(v,i) WRITE_ONCE((v)->counter, (i)) 230 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS() 231 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS()
|
/linux-4.4.14/drivers/platform/x86/ |
D | dell-smo8800.c | 30 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.4.14/Documentation/w1/slaves/ |
D | w1_ds2423 | 5 * 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
|
D | 00-INDEX | 6 - The Maxim/Dallas Semiconductor ds2423 counter device.
|
/linux-4.4.14/Documentation/ |
D | atomic_ops.txt | 7 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 …]
|
D | local_ops.txt | 115 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 */
|
/linux-4.4.14/arch/arm64/kernel/ |
D | perf_event.c | 267 u32 counter = ARMV8_IDX_TO_COUNTER(idx); in armv8pmu_select_counter() local 268 asm volatile("msr pmselr_el0, %0" :: "r" (counter)); in armv8pmu_select_counter() 317 u32 counter = ARMV8_IDX_TO_COUNTER(idx); in armv8pmu_enable_counter() local 318 asm volatile("msr pmcntenset_el0, %0" :: "r" (BIT(counter))); in armv8pmu_enable_counter() 324 u32 counter = ARMV8_IDX_TO_COUNTER(idx); in armv8pmu_disable_counter() local 325 asm volatile("msr pmcntenclr_el0, %0" :: "r" (BIT(counter))); in armv8pmu_disable_counter() 331 u32 counter = ARMV8_IDX_TO_COUNTER(idx); in armv8pmu_enable_intens() local 332 asm volatile("msr pmintenset_el1, %0" :: "r" (BIT(counter))); in armv8pmu_enable_intens() 338 u32 counter = ARMV8_IDX_TO_COUNTER(idx); in armv8pmu_disable_intens() local 339 asm volatile("msr pmintenclr_el1, %0" :: "r" (BIT(counter))); in armv8pmu_disable_intens() [all …]
|
/linux-4.4.14/drivers/staging/rdma/ehca/ |
D | ehca_sqp.c | 71 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()
|
D | ehca_cq.c | 131 u32 counter; in ehca_create_cq() local 208 for (counter = 0; counter < param.act_pages; counter++) { in ehca_create_cq() 232 h_ret, counter, param.act_pages); in ehca_create_cq() 237 if (counter == (param.act_pages - 1)) { in ehca_create_cq() 253 h_ret, counter, param.act_pages); in ehca_create_cq()
|
/linux-4.4.14/drivers/staging/rtl8188eu/hal/ |
D | fw.c | 148 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.4.14/arch/microblaze/include/asm/ |
D | atomic.h | 18 res = v->counter - 1; in atomic_dec_if_positive() 20 v->counter = res; in atomic_dec_if_positive()
|
D | module.h | 29 typedef struct { volatile int counter; } module_t; member
|
/linux-4.4.14/arch/s390/kernel/ |
D | diag.c | 16 unsigned int counter[NR_DIAG_STAT]; member 69 seq_printf(m, " %10u", stat->counter[n-1]); in show_diag_stat() 123 this_cpu_inc(diag_stat.counter[nr]); in diag_stat_inc() 130 this_cpu_inc(diag_stat.counter[nr]); in diag_stat_inc_norecursion()
|
/linux-4.4.14/drivers/mtd/devices/ |
D | pmc551.c | 363 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.4.14/drivers/net/wireless/iwlegacy/ |
D | 3945-rs.c | 137 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.4.14/Documentation/devicetree/bindings/pwm/ |
D | pwm-fsl-ftm.txt | 24 "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.4.14/sound/core/seq/ |
D | seq_memory.c | 37 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()
|
D | seq_memory.h | 46 atomic_t counter; /* cells free */ member 74 return pool ? pool->total_elements - atomic_read(&pool->counter) : 0; in snd_seq_unused_cells()
|
/linux-4.4.14/drivers/usb/phy/ |
D | phy-rcar-usb.c | 69 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.4.14/Documentation/input/ |
D | amijoy.txt | 75 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.4.14/fs/xfs/ |
D | xfs_trans.c | 486 int8_t counter = *field; in xfs_sb_mod8() local 488 counter += delta; in xfs_sb_mod8() 489 if (counter < 0) { in xfs_sb_mod8() 493 *field = counter; in xfs_sb_mod8() 502 int32_t counter = *field; in xfs_sb_mod32() local 504 counter += delta; in xfs_sb_mod32() 505 if (counter < 0) { in xfs_sb_mod32() 509 *field = counter; in xfs_sb_mod32() 518 int64_t counter = *field; in xfs_sb_mod64() local 520 counter += delta; in xfs_sb_mod64() [all …]
|
/linux-4.4.14/Documentation/devicetree/bindings/arm/omap/ |
D | counter.txt | 6 - ti,hwmods: Name of the hwmod associated to the counter, which is typically 11 counter32k: counter@4a304000 {
|
/linux-4.4.14/drivers/media/rc/ |
D | ir-rx51.c | 98 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.4.14/Documentation/timers/ |
D | timekeeping.txt | 29 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 …]
|
D | hpet.txt | 8 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.4.14/drivers/misc/ |
D | phantom.c | 51 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.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723com/ |
D | fw_common.c | 203 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.4.14/block/partitions/ |
D | ibm.c | 139 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.4.14/arch/s390/pci/ |
D | pci_debug.c | 45 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.4.14/drivers/infiniband/hw/qib/ |
D | qib_user_sdma.c | 79 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.4.14/include/sound/ |
D | soundfont.h | 39 int counter; member 49 int counter; member
|
/linux-4.4.14/fs/cifs/ |
D | cifs_debug.c | 308 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.4.14/sound/hda/ext/ |
D | hdac_ext_controller.c | 43 unsigned int counter = 0; in snd_hdac_ext_bus_parse_capabilities() local 85 counter++; in snd_hdac_ext_bus_parse_capabilities() 87 if (counter > HDAC_MAX_CAPS) { in snd_hdac_ext_bus_parse_capabilities()
|
/linux-4.4.14/arch/m68k/fpsp040/ |
D | binstr.S | 21 | 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.4.14/arch/avr32/kernel/ |
D | time.c | 35 static struct clocksource counter = { variable 138 ret = clocksource_register_hz(&counter, counter_hz); in time_init()
|
/linux-4.4.14/arch/x86/kernel/fpu/ |
D | core.c | 269 dst_fpu->counter = 0; in fpu__copy() 372 fpu->counter++; in fpu__restore() 389 fpu->counter = 0; in fpu__drop()
|
/linux-4.4.14/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 1145 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.4.14/fs/ecryptfs/ |
D | messaging.c | 88 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.4.14/drivers/staging/nvec/ |
D | nvec_power.c | 342 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.4.14/net/netfilter/ipvs/ |
D | ip_vs_lblc.c | 112 int counter; /* counter for no expire */ member 307 if ((tbl->counter % COUNT_FOR_FULL_EXPIRATION) == 0) { in ip_vs_lblc_check_expire() 310 tbl->counter = 1; in ip_vs_lblc_check_expire() 315 tbl->counter++; in ip_vs_lblc_check_expire() 370 tbl->counter = 1; in ip_vs_lblc_init_svc()
|
D | ip_vs_lblcr.c | 282 int counter; /* counter for no expire */ member 471 if ((tbl->counter % COUNT_FOR_FULL_EXPIRATION) == 0) { in ip_vs_lblcr_check_expire() 474 tbl->counter = 1; in ip_vs_lblcr_check_expire() 479 tbl->counter++; in ip_vs_lblcr_check_expire() 533 tbl->counter = 1; in ip_vs_lblcr_init_svc()
|
/linux-4.4.14/include/rdma/ |
D | ib_pma.h | 83 __be32 counter[15]; member 90 __be64 counter[15]; member
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | fw.c | 149 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.4.14/Documentation/filesystems/nfs/ |
D | knfsd-stats.txt | 68 rate of change for this counter is zero; significantly non-zero 82 thing. The ideal rate of change for this counter will be close 83 to but less than the rate of change of the packets-arrived counter. 96 - Currently the rate at which the counter is incremented is quite 98 remains constant for hours at a time, this counter is unlikely
|
/linux-4.4.14/tools/perf/Documentation/ |
D | perf-kvm.txt | 23 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).
|
D | perf-stat.txt | 6 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 99 be more verbose (show counter open errors, etc) 175 Performance counter stats for 'make -j':
|
D | examples.txt | 35 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.4.14/arch/mips/include/asm/octeon/ |
D | cvmx-l2c.h | 178 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.4.14/drivers/net/ethernet/sfc/ |
D | qt202x_phy.c | 83 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.4.14/arch/s390/mm/ |
D | cmm.c | 63 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.4.14/arch/hexagon/kernel/ |
D | traps.c | 202 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.4.14/tools/perf/arch/x86/tests/ |
D | rdpmc.c | 12 static u64 rdpmc(unsigned int counter) in rdpmc() argument 16 asm volatile("rdpmc" : "=a" (low), "=d" (high) : "c" (counter)); in rdpmc()
|
/linux-4.4.14/tools/iio/ |
D | iio_utils.c | 312 struct iio_channel_info **ci_array, int *counter) in build_channel_array() argument 323 *counter = 0; in build_channel_array() 361 (*counter)++; in build_channel_array() 372 *ci_array = malloc(sizeof(**ci_array) * (*counter)); in build_channel_array() 519 bsort_channel_array_by_index(*ci_array, *counter); in build_channel_array() 530 *counter = 0; in build_channel_array()
|
/linux-4.4.14/arch/metag/kernel/perf/ |
D | perf_event.c | 760 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.4.14/drivers/s390/scsi/ |
D | zfcp_dbf.c | 57 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.4.14/drivers/tty/serial/ |
D | sn_console.c | 915 int counter, got_lock = 0; in sn_sal_console_write() local 928 for (counter = 0; counter < 150; mdelay(125), counter++) { in sn_sal_console_write() 946 counter = 0; in sn_sal_console_write()
|
/linux-4.4.14/fs/reiserfs/ |
D | fix_node.c | 833 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.4.14/arch/alpha/lib/ |
D | ev6-clear_user.S | 68 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.4.14/drivers/mtd/ubi/ |
D | Kconfig | 19 erase counter value and the lowest erase counter value of eraseblocks 22 counter to eraseblocks with high erase counter.
|
/linux-4.4.14/arch/x86/include/asm/fpu/ |
D | internal.h | 599 (use_eager_fpu() || new_fpu->counter > 5); in switch_fpu_prepare() 612 new_fpu->counter++; in switch_fpu_prepare() 619 old_fpu->counter = 0; in switch_fpu_prepare() 622 new_fpu->counter++; in switch_fpu_prepare()
|
/linux-4.4.14/arch/arm/include/asm/xen/ |
D | events.h | 21 counter), (val))
|
/linux-4.4.14/drivers/dma/ |
D | dmatest.c | 265 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.4.14/arch/alpha/oprofile/ |
D | op_model_ev67.c | 132 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.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | fw.c | 152 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.4.14/arch/x86/include/asm/uv/ |
D | uv_bau.h | 739 short counter; member 750 return v->counter; in atomic_read_short() 764 : "+r" (i), "+m" (v->counter) in atom_asr()
|
/linux-4.4.14/arch/arm/mm/ |
D | context.c | 62 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.4.14/Documentation/virtual/kvm/ |
D | timekeeping.txt | 102 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.4.14/Documentation/devicetree/bindings/watchdog/ |
D | moxa,moxart-watchdog.txt | 7 - clocks : Should contain phandle for the clock that drives the counter
|
/linux-4.4.14/drivers/staging/netlogic/ |
D | TODO | 1 * Implementing 64bit stat counter in software
|
/linux-4.4.14/Documentation/devicetree/bindings/arm/ |
D | cci.txt | 118 Definition: list of counter overflow interrupts, one per 119 counter. The interrupts must be specified 120 starting with the cycle counter overflow 126 counter. The number of interrupts must be
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | fw.c | 151 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.4.14/drivers/iio/proximity/ |
D | sx9500.c | 210 static int sx9500_inc_users(struct sx9500_data *data, int *counter, in sx9500_inc_users() argument 213 (*counter)++; in sx9500_inc_users() 214 if (*counter != 1) in sx9500_inc_users() 221 static int sx9500_dec_users(struct sx9500_data *data, int *counter, in sx9500_dec_users() argument 224 (*counter)--; in sx9500_dec_users() 225 if (*counter != 0) in sx9500_dec_users()
|
/linux-4.4.14/drivers/staging/rtl8712/ |
D | rtl871x_security.c | 66 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.4.14/drivers/staging/rtl8723au/core/ |
D | rtw_security.c | 38 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.4.14/drivers/media/pci/ttpci/ |
D | av7110_av.c | 91 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.4.14/kernel/locking/ |
D | qspinlock.c | 345 while ((val = smp_load_acquire(&lock->val.counter)) & _Q_LOCKED_MASK) in queued_spin_lock_slowpath() 411 while ((val = smp_load_acquire(&lock->val.counter)) & _Q_LOCKED_PENDING_MASK) in queued_spin_lock_slowpath()
|
/linux-4.4.14/Documentation/devicetree/bindings/nios2/ |
D | timer.txt | 9 - clock-frequency : The frequency of the clock that drives the counter, in Hz.
|
/linux-4.4.14/Documentation/power/powercap/ |
D | powercap.txt | 185 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.4.14/arch/arm/boot/dts/ |
D | usb_a9260.dts | 27 atmel,wakeup-counter = <10>;
|