HomeSort by: relevance | last modified time | path
    Searched refs:counter (Results 1 - 25 of 147) sorted by relevancy

1 2 3 4 5 6

  /src/tests/usr.bin/xlint/lint1/
msg_087.c 8 extern long counter;
13 /* expect+1: warning: static 'counter' hides external declaration with type 'long' [87] */
14 static int counter; local in function:count
15 return counter++;
msg_045.c 8 struct counter { struct
14 /* expect+4: warning: base type is really 'struct counter' [45] */
15 /* expect+3: warning: declaration of 'union counter' introduces new type in C90 or later [44] */
16 /* expect+2: error: 'counter' has incomplete type 'incomplete union counter' [31] */
17 /* expect+1: warning: union 'counter' never defined [234] */
18 union counter counter; local in function:function
20 counter.value++;
msg_247.c 94 * (in this case 'struct counter') and a private part that is only visible to
104 struct counter { struct
109 struct counter public_part;
115 struct counter *
124 struct counter *
131 return (struct counter *)impl;
135 counter_increment(struct counter *counter)
139 * from 'struct counter' to 'struct counter_impl'.
141 struct counter_impl *impl = (struct counter_impl *)counter;
    [all...]
  /src/usr.bin/tftp/
tftpsubs.c 64 int counter; /* size of data in buffer, or flag */ member in struct:bf
68 /* Values for bf.counter */
100 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */
102 bfs[1].counter = BF_FREE;
119 bfs[current].counter = BF_FREE; /* free old one */
123 if (b->counter == BF_FREE) /* if it's empty */
125 /* assert(b->counter != BF_FREE);*//* check */
127 return b->counter;
147 if (b->counter != BF_FREE) /* nop if not free */
154 b->counter = read(fileno(file), dp->th_data, amt)
    [all...]
  /src/sys/dev/tprof/
tprof_armv7.c 97 armv7_pmu_set_pmevtyper(u_int counter, uint64_t val)
99 armreg_pmselr_write(counter);
105 armv7_pmu_set_pmevcntr(u_int counter, uint32_t val)
107 armreg_pmselr_write(counter);
113 armv7_pmu_get_pmevcntr(u_int counter)
115 armreg_pmselr_write(counter);
122 armv7_pmu_getset_pmevcntr(u_int counter, uint64_t val)
126 armreg_pmselr_write(counter);
140 armv7_pmu_counter_bitwidth(u_int counter)
146 armv7_pmu_counter_estimate_freq(u_int counter)
    [all...]
tprof_armv8.c 74 armv8_pmu_set_pmevtyper(u_int counter, uint64_t val)
76 reg_pmselr_el0_write(counter);
82 armv8_pmu_set_pmevcntr(u_int counter, uint64_t val)
84 reg_pmselr_el0_write(counter);
90 armv8_pmu_get_pmevcntr(u_int counter)
92 reg_pmselr_el0_write(counter);
99 armv8_pmu_getset_pmevcntr(u_int counter, uint64_t val)
103 reg_pmselr_el0_write(counter);
117 armv8_pmu_counter_bitwidth(u_int counter)
123 armv8_pmu_counter_estimate_freq(u_int counter)
    [all...]
tprof_x86_amd.c 121 tprof_amd_counter_bitwidth(u_int counter)
127 tprof_amd_counter_write(u_int counter, uint64_t val)
129 wrmsr(PERFCTR(counter), val);
133 tprof_amd_counter_read(u_int counter)
135 return rdmsr(PERFCTR(counter));
139 tprof_amd_configure_event(u_int counter, const tprof_param_t *param)
155 wrmsr(PERFEVTSEL(counter), pesr);
157 /* Reset the counter */
158 tprof_amd_counter_write(counter, param->p_value);
205 /* Account for the counter, and reset *
    [all...]
tprof_x86_intel.c 115 tprof_intel_counter_bitwidth(u_int counter)
122 tprof_intel_counter_write(u_int counter, uint64_t val)
125 wrmsr(PERFCTR(counter), val);
129 tprof_intel_counter_read(u_int counter)
132 return rdmsr(PERFCTR(counter));
136 tprof_intel_configure_event(u_int counter, const tprof_param_t *param)
146 wrmsr(PERFEVTSEL(counter), evtval);
148 /* Reset the counter */
149 tprof_intel_counter_write(counter, param->p_value);
198 /* Account for the counter, and reset *
    [all...]
  /src/tests/rump/kernspace/
workqueue.c 50 int counter; member in struct:test_softc
65 ++sc->counter;
84 sc->counter = 0;
116 KASSERT(sc->counter == ITERATIONS);
132 KASSERT(sc->counter == i);
135 KASSERT(sc->counter == (i + 1));
138 KASSERT(sc->counter == ITERATIONS);
160 KASSERT(sc->counter == i);
166 KASSERT(sc->counter == (i + 2));
169 KASSERT(sc->counter == 2*ITERATIONS)
    [all...]
  /src/lib/libc/arch/m68k/sys/
getcontext.S 46 movl %sp@,UC_MCONTEXT_PC(%a0)| adjust saved program counter
  /src/lib/librpcsvc/
spray.x 66 unsigned int counter;
78 * Just throw away the data and increment the counter
86 * Get the value of the counter and elapsed time since
93 * Clear the counter and reset the elapsed time
  /src/sys/external/isc/libsodium/dist/src/libsodium/crypto_stream/chacha20/dolbeau/
chacha20_dolbeau-avx2.c 54 chacha_ivsetup(chacha_ctx *ctx, const uint8_t *iv, const uint8_t *counter)
56 ctx->input[12] = counter == NULL ? 0 : LOAD32_LE(counter + 0);
57 ctx->input[13] = counter == NULL ? 0 : LOAD32_LE(counter + 4);
63 chacha_ietf_ivsetup(chacha_ctx *ctx, const uint8_t *iv, const uint8_t *counter)
65 ctx->input[12] = counter == NULL ? 0 : LOAD32_LE(counter);
chacha20_dolbeau-ssse3.c 49 chacha_ivsetup(chacha_ctx *ctx, const uint8_t *iv, const uint8_t *counter)
51 ctx->input[12] = counter == NULL ? 0 : LOAD32_LE(counter + 0);
52 ctx->input[13] = counter == NULL ? 0 : LOAD32_LE(counter + 4);
58 chacha_ietf_ivsetup(chacha_ctx *ctx, const uint8_t *iv, const uint8_t *counter)
60 ctx->input[12] = counter == NULL ? 0 : LOAD32_LE(counter);
  /src/sys/external/isc/libsodium/dist/src/libsodium/crypto_stream/salsa20/xmm6int/
salsa20_xmm6int-avx2.c 57 salsa_ivsetup(salsa_ctx *ctx, const uint8_t *iv, const uint8_t *counter)
61 ctx->input[TR[8]] = counter == NULL ? 0 : LOAD32_LE(counter + 0);
62 ctx->input[TR[9]] = counter == NULL ? 0 : LOAD32_LE(counter + 4);
salsa20_xmm6int-sse2.c 49 salsa_ivsetup(salsa_ctx *ctx, const uint8_t *iv, const uint8_t *counter)
53 ctx->input[TR[8]] = counter == NULL ? 0 : LOAD32_LE(counter + 0);
54 ctx->input[TR[9]] = counter == NULL ? 0 : LOAD32_LE(counter + 4);
  /src/sys/arch/vax/vax/
clock.c 66 u_int counter; local in function:vax_diag_get_counter
70 counter = *(volatile u_int *)&ka46_cpu->vc_diagtimu;
73 counter = (counter & 0x3ff) + (counter >> 16) * 1024;
75 return counter + getticks() * tick;
83 u_int counter; local in function:vax_mfpr_get_counter
88 counter = mfpr(PR_ICR) + tick;
92 * Handle interval counter wrapping with interrupts blocked.
95 * If the interval counter is smaller, assume it has wrapped
    [all...]
  /src/sys/arch/arm/iomd/
vidc20config.c 180 int counter; local in function:vidcvideo_write
222 for (counter = INITVALUE;
223 counter <= sizeof(struct vidc_state);
224 counter++) {
225 if (reg == tab[counter]) {
227 current[counter] = value;
238 int counter = 0; local in function:vidcvideo_setpalette
241 for (counter = 0; counter <= 255; counter++
590 int counter; local in function:vidcvideo_cursor_init
    [all...]
  /src/usr.bin/make/unit-tests/
counter-append.mk 1 # $NetBSD: counter-append.mk,v 1.5 2021/04/04 10:13:09 rillig Exp $
6 # This works since 2020-09-23. Before that, the counter ended up at having
13 COUNTER= # zero
15 NEXT= ${COUNTER::+=a}${COUNTER:[#]}
27 @echo A=${A:Q} B=${B:Q} C=${C:Q} COUNTER=${COUNTER:[#]:Q}
counter.mk 1 # $NetBSD: counter.mk,v 1.6 2021/04/04 10:13:09 rillig Exp $
6 # This works since 2020-09-23. Before that, the counter ended up at having
13 COUNTER= # zero
15 NEXT= ${COUNTER::=${COUNTER} a}${COUNTER:[#]}
27 @echo A=${A:Q} B=${B:Q} C=${C:Q} COUNTER=${COUNTER:[#]:Q}
  /src/sys/arch/i386/i386/
cpufunc.S 216 #define CPU_COUNTER_FENCE(counter, fence) \
217 ENTRY(cpu_ ## counter ## _ ## fence) ;\
225 ADD_ ## counter ;\
232 END(cpu_ ## counter ## _ ## fence)
234 CPU_COUNTER_FENCE(counter, lfence)
235 CPU_COUNTER_FENCE(counter, mfence)
239 #define CPU_COUNTER_CPUID(counter) \
240 ENTRY(cpu_ ## counter ## _cpuid) ;\
251 ADD_ ## counter ;\
260 END(cpu_ ## counter ##_cpuid
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/
sanitizer_stoptheworld_test.cc 31 volatile int counter; member in struct:__sanitizer::CallbackArgument
35 : counter(0),
43 __sync_fetch_and_add(&callback_argument->counter, 1);
59 int counter_at_init = __sync_fetch_and_add(&callback_argument->counter, 0);
62 if (__sync_fetch_and_add(&callback_argument->counter, 0) !=
  /src/sys/arch/amd64/amd64/
cpufunc.S 276 #define CPU_COUNTER_FENCE(counter, fence) \
277 ENTRY(cpu_ ## counter ## _ ## fence) ;\
284 ADD_ ## counter ;\
287 KMSAN_INIT_RET(RSIZE_ ## counter) ;\
291 END(cpu_ ## counter ## _ ## fence)
293 CPU_COUNTER_FENCE(counter, lfence)
294 CPU_COUNTER_FENCE(counter, mfence)
298 #define CPU_COUNTER_CPUID(counter) \
299 ENTRY(cpu_ ## counter ## _cpuid) ;\
308 ADD_ ## counter ;\
    [all...]
  /src/sys/arch/arm/imx/
imxclock.c 135 uint32_t counter; local in function:imx_epit_get_timecount
140 counter = bus_space_read_4(imxclock->sc_iot, imxclock->sc_ioh, EPIT_EPITCNT);
144 return base - counter;
  /src/sys/arch/arm/xscale/
becc_timer.c 83 * Since the timer interrupts when the counter underflows, we need to
201 uint32_t counter, base; local in function:becc_get_timecount
205 counter = BECC_CSR_READ(BECC_TCVRA);
209 return base - counter;
  /src/usr.sbin/spray/
spray.c 177 if (host_stats.counter != (unsigned)count) {
178 int packets_dropped = count - host_stats.counter;
191 print_xferstats(host_stats.counter, length, xmit_time);

Completed in 21 milliseconds

1 2 3 4 5 6