Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 25 of 122) sorted by relevance

12345

/arch/arm64/include/asm/
A Darch_timer.h67 u64 cnt; in arch_timer_read_cntpct_el0() local
74 return cnt; in arch_timer_read_cntpct_el0()
79 u64 cnt; in arch_timer_read_cntvct_el0() local
86 return cnt; in arch_timer_read_cntvct_el0()
172 u64 cnt; in __arch_counter_get_cntpct_stable() local
176 return cnt; in __arch_counter_get_cntpct_stable()
181 u64 cnt; in __arch_counter_get_cntpct() local
188 return cnt; in __arch_counter_get_cntpct()
193 u64 cnt; in __arch_counter_get_cntvct_stable() local
197 return cnt; in __arch_counter_get_cntvct_stable()
[all …]
A Dhardirq.h23 unsigned int cnt; member
37 if (___ctx->cnt) { \
38 ___ctx->cnt++; \
52 ___ctx->cnt = 1; \
76 ___ctx->cnt--; \
84 if (!___ctx->cnt && !(___hcr & HCR_TGE)) \
/arch/sh/mm/
A Dflush-sh4.c24 while (cnt >= 8) { in sh4__flush_wback_region()
33 cnt -= 8; in sh4__flush_wback_region()
36 while (cnt) { in sh4__flush_wback_region()
38 cnt--; in sh4__flush_wback_region()
58 while (cnt >= 8) { in sh4__flush_purge_region()
67 cnt -= 8; in sh4__flush_purge_region()
69 while (cnt) { in sh4__flush_purge_region()
71 cnt--; in sh4__flush_purge_region()
97 cnt -= 8; in sh4__flush_invalidate_region()
100 while (cnt) { in sh4__flush_invalidate_region()
[all …]
/arch/mips/kernel/
A Dcevt-r4k.c22 unsigned int cnt; in mips_next_event() local
25 cnt = read_c0_count(); in mips_next_event()
26 cnt += delta; in mips_next_event()
27 write_c0_compare(cnt); in mips_next_event()
65 cnt = read_c0_count(); in calculate_min_delta()
66 write_c0_compare(cnt); in calculate_min_delta()
67 cnt = read_c0_count() - cnt; in calculate_min_delta()
71 if (cnt < buf1[k]) { in calculate_min_delta()
80 buf1[k] = cnt; in calculate_min_delta()
196 unsigned int cnt; in c0_compare_int_usable() local
[all …]
/arch/m68k/sun3/
A Dsun3ints.c53 unsigned int cnt; in sun3_int7() local
55 cnt = kstat_irqs_cpu(irq, 0); in sun3_int7()
56 if (!(cnt % 2000)) in sun3_int7()
57 sun3_leds(led_pattern[cnt % 16000 / 2000]); in sun3_int7()
64 unsigned int cnt; in sun3_int5() local
76 cnt = kstat_irqs_cpu(irq, 0); in sun3_int5()
77 if (!(cnt % 20)) in sun3_int5()
78 sun3_leds(led_pattern[cnt % 160 / 20]); in sun3_int5()
/arch/s390/include/asm/
A Darch_hweight.h11 unsigned long cnt; in popcnt_z196() local
14 : [cnt] "=d" (cnt) in popcnt_z196()
17 return cnt; in popcnt_z196()
22 unsigned long cnt; in popcnt_z15() local
25 : [cnt] "=d" (cnt) in popcnt_z15()
28 return cnt; in popcnt_z15()
/arch/m68k/kernel/
A Dtime.c45 static unsigned cnt = 0, period = 0, dist = 0; in timer_heartbeat() local
47 if (cnt == 0 || cnt == dist) in timer_heartbeat()
49 else if (cnt == 7 || cnt == dist+7) in timer_heartbeat()
52 if (++cnt > period) { in timer_heartbeat()
53 cnt = 0; in timer_heartbeat()
A Dints.c93 void __init m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt) in m68k_setup_user_interrupt() argument
97 BUG_ON(IRQ_USER + cnt > NR_IRQS); in m68k_setup_user_interrupt()
99 for (i = 0; i < cnt; i++) in m68k_setup_user_interrupt()
119 unsigned int cnt) in m68k_setup_irq_controller() argument
123 for (i = 0; i < cnt; i++) { in m68k_setup_irq_controller()
/arch/m68k/math-emu/
A Dmulti_arith.h25 reg->exp += cnt; in fp_denormalize()
27 switch (cnt) { in fp_denormalize()
29 reg->lowmant = reg->mant.m32[1] << (8 - cnt); in fp_denormalize()
31 (reg->mant.m32[0] << (32 - cnt)); in fp_denormalize()
32 reg->mant.m32[0] = reg->mant.m32[0] >> cnt; in fp_denormalize()
35 reg->lowmant = reg->mant.m32[1] >> (cnt - 8); in fp_denormalize()
36 if (reg->mant.m32[1] << (40 - cnt)) in fp_denormalize()
39 (reg->mant.m32[0] << (32 - cnt)); in fp_denormalize()
40 reg->mant.m32[0] = reg->mant.m32[0] >> cnt; in fp_denormalize()
44 : "m" (reg->mant.m32[0]), "d" (64 - cnt)); in fp_denormalize()
[all …]
/arch/mips/fw/arc/
A Dpromlib.c41 O32_STATIC ULONG cnt; in prom_putchar() local
47 ArcWrite(1, &it, 1, &cnt); in prom_putchar()
53 O32_STATIC ULONG cnt; in prom_getchar() local
57 ArcRead(0, &c, 1, &cnt); in prom_getchar()
/arch/m68k/amiga/
A Dpcmcia.c43 int cnt, pos, len; in pcmcia_copy_tuple() local
54 for (cnt = 0; cnt < len; cnt++) { in pcmcia_copy_tuple()
55 *dest++ = gayle_attribute[pos+(cnt<<1)]; in pcmcia_copy_tuple()
/arch/sh/kernel/
A Dio_trapped.c221 static unsigned long from_device(void *dst, const void *src, unsigned long cnt) in from_device() argument
227 pr_debug("trapped io read 0x%08lx (%ld)\n", src_addr, cnt); in from_device()
233 return cnt; in from_device()
236 max_t(unsigned long, cnt, in from_device()
238 (unsigned long)dst, cnt); in from_device()
244 static unsigned long to_device(void *dst, const void *src, unsigned long cnt) in to_device() argument
250 pr_debug("trapped io write 0x%08lx (%ld)\n", dst_addr, cnt); in to_device()
256 return cnt; in to_device()
258 tmp = copy_word((unsigned long)src, cnt, in to_device()
259 dst_addr, max_t(unsigned long, cnt, in to_device()
/arch/x86/include/asm/
A Dstring_64.h84 void __memcpy_flushcache(void *dst, const void *src, size_t cnt);
85 static __always_inline void memcpy_flushcache(void *dst, const void *src, size_t cnt) in memcpy_flushcache() argument
87 if (__builtin_constant_p(cnt)) { in memcpy_flushcache()
88 switch (cnt) { in memcpy_flushcache()
101 __memcpy_flushcache(dst, src, cnt); in memcpy_flushcache()
/arch/arm64/lib/
A Duaccess_flushcache.c10 void memcpy_flushcache(void *dst, const void *src, size_t cnt) in memcpy_flushcache() argument
17 memcpy(dst, src, cnt); in memcpy_flushcache()
18 dcache_clean_pop((unsigned long)dst, (unsigned long)dst + cnt); in memcpy_flushcache()
/arch/xtensa/include/asm/
A Dasmmacro.h195 .macro do_nsau cnt, val, tmp, a
197 nsau \cnt, \val
200 movi \cnt, 0
203 movi \cnt, 16
208 addi \cnt, \cnt, 8
215 add \cnt, \cnt, \tmp
/arch/mips/sgi-ip27/
A Dip27-timer.c34 unsigned long cnt; in rt_next_event() local
36 cnt = LOCAL_HUB_L(PI_RT_COUNT); in rt_next_event()
37 cnt += delta; in rt_next_event()
38 LOCAL_HUB_S(PI_RT_COMPARE_A + PI_COUNT_OFFSET * slice, cnt); in rt_next_event()
40 return LOCAL_HUB_L(PI_RT_COUNT) >= cnt ? -ETIME : 0; in rt_next_event()
/arch/mips/include/asm/octeon/
A Dcvmx-stxx-defs.h74 uint64_t cnt:32; member
76 uint64_t cnt:32;
281 uint64_t cnt:32; member
283 uint64_t cnt:32;
294 uint64_t cnt:32; member
296 uint64_t cnt:32;
322 uint64_t cnt:32; member
324 uint64_t cnt:32;
/arch/mips/cavium-octeon/
A Dcsrc-octeon.c92 : [cnt] "+r" (clk_count) in octeon_init_cvmcount()
121 u64 cnt = read_c0_cvmcount(); in sched_clock() local
133 : [cnt] "r" (cnt), [mult] "r" (mult), [shift] "r" (shift) in sched_clock()
203 : [cnt] "+r" (end) in octeon_io_clk_delay()
/arch/x86/events/
A Dprobe.c21 perf_msr_probe(struct perf_msr *msr, int cnt, bool zero, void *data) in perf_msr_probe() argument
27 if (cnt >= BITS_PER_LONG) in perf_msr_probe()
30 for (bit = 0; bit < cnt; bit++) { in perf_msr_probe()
/arch/riscv/kernel/vdso/
A Dvgetrandom-chacha.S55 #define cnt t2 macro
97 ld cnt, (counter)
122 mv state12, cnt
123 srli state13, cnt, 32
204 addw state12, state12, cnt
205 srli state0, cnt, 32
213 addi cnt, cnt, 1
222 sd cnt, (counter)
/arch/mips/alchemy/devboards/
A Dplatform.c80 int cnt, i, ret; in db1x_register_pcmcia_socket() local
84 cnt = 5; in db1x_register_pcmcia_socket()
86 cnt++; in db1x_register_pcmcia_socket()
88 cnt++; in db1x_register_pcmcia_socket()
90 sr = kcalloc(cnt, sizeof(struct resource), GFP_KERNEL); in db1x_register_pcmcia_socket()
137 pd->num_resources = cnt; in db1x_register_pcmcia_socket()
/arch/x86/boot/
A Dtty.c119 int cnt = 30; in getchar_timeout() local
124 while (cnt) { in getchar_timeout()
130 cnt--; in getchar_timeout()
/arch/alpha/lib/
A Dudiv-qrnnd.S41 #define cnt $2 macro
50 ldiq cnt,16
85 subq cnt,1,cnt
86 bgt cnt,$loop1
135 subq cnt,1,cnt
136 bgt cnt,$loop2
/arch/s390/pci/
A Dpci_mmio.c62 u64 cnt = ulen; in __pcistg_mio_inuser() local
84 : [src] "+a" (src), [cnt] "+d" (cnt), in __pcistg_mio_inuser()
94 if (!cc && cnt != 0) in __pcistg_mio_inuser()
214 u64 cnt = ulen; in __pcilg_mio_inuser() local
246 [dst] "+a" (dst), [cnt] "+d" (cnt), [tmp] "=d" (tmp), in __pcilg_mio_inuser()
253 if (!cc && cnt != 0) in __pcilg_mio_inuser()
/arch/powerpc/crypto/
A Daesp10-ppc.pl120 my ($inp,$bits,$out,$ptr,$cnt,$rounds)=map("r$_",(3..8));
184 li $cnt,8
186 mtctr $cnt
267 li $cnt,4
275 mtctr $cnt
342 li $cnt,7
350 mtctr $cnt
417 slwi $cnt,$rounds,4
420 add $out,$inp,$cnt # last round key

Completed in 45 milliseconds

12345