Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 879) sorted by relevance

12345678910>>...36

/arch/mips/kernel/
Dcpu-probe.c73 static inline void cpu_set_fpu_fcsr_mask(struct cpuinfo_mips *c) in cpu_set_fpu_fcsr_mask() argument
77 fcsr = c->fpu_csr31; in cpu_set_fpu_fcsr_mask()
95 c->fpu_msk31 = ~(fcsr0 ^ fcsr1) & ~mask; in cpu_set_fpu_fcsr_mask()
101 static void cpu_set_nofpu_id(struct cpuinfo_mips *c) in cpu_set_nofpu_id() argument
106 if (c->isa_level & (MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M64R1 | in cpu_set_nofpu_id()
110 if (c->isa_level & (MIPS_CPU_ISA_M32R2 | MIPS_CPU_ISA_M64R2 | in cpu_set_nofpu_id()
113 if (c->options & MIPS_CPU_NAN_2008) in cpu_set_nofpu_id()
115 c->fpu_id = value; in cpu_set_nofpu_id()
124 static void cpu_set_fpu_opts(struct cpuinfo_mips *c) in cpu_set_fpu_opts() argument
126 c->fpu_id = cpu_get_fpu_id(); in cpu_set_fpu_opts()
[all …]
Dwatch.c103 void mips_probe_watch_registers(struct cpuinfo_mips *c) in mips_probe_watch_registers() argument
107 if ((c->options & MIPS_CPU_WATCH) == 0) in mips_probe_watch_registers()
117 c->watch_reg_masks[0] = t & 7; in mips_probe_watch_registers()
121 c->watch_reg_count = 1; in mips_probe_watch_registers()
122 c->watch_reg_use_cnt = 1; in mips_probe_watch_registers()
127 c->watch_reg_masks[0] |= (t & 0xff8); in mips_probe_watch_registers()
135 c->watch_reg_masks[1] = t & 7; in mips_probe_watch_registers()
137 c->watch_reg_count = 2; in mips_probe_watch_registers()
138 c->watch_reg_use_cnt = 2; in mips_probe_watch_registers()
143 c->watch_reg_masks[1] |= (t & 0xff8); in mips_probe_watch_registers()
[all …]
/arch/x86/kernel/cpu/
Damd.c71 static void init_amd_k5(struct cpuinfo_x86 *c) in init_amd_k5() argument
83 if (c->x86_model == 9 || c->x86_model == 10) { in init_amd_k5()
90 static void init_amd_k6(struct cpuinfo_x86 *c) in init_amd_k6() argument
96 if (c->x86_model < 6) { in init_amd_k6()
98 if (c->x86_model == 0) { in init_amd_k6()
99 clear_cpu_cap(c, X86_FEATURE_APIC); in init_amd_k6()
100 set_cpu_cap(c, X86_FEATURE_PGE); in init_amd_k6()
105 if (c->x86_model == 6 && c->x86_mask == 1) { in init_amd_k6()
134 if (c->x86_model < 8 || in init_amd_k6()
135 (c->x86_model == 8 && c->x86_mask < 8)) { in init_amd_k6()
[all …]
Dintel.c28 static void early_init_intel(struct cpuinfo_x86 *c) in early_init_intel() argument
33 if (c->x86 > 6 || (c->x86 == 6 && c->x86_model >= 0xd)) { in early_init_intel()
36 c->cpuid_level = cpuid_eax(0); in early_init_intel()
37 get_cpu_cap(c); in early_init_intel()
41 if ((c->x86 == 0xf && c->x86_model >= 0x03) || in early_init_intel()
42 (c->x86 == 0x6 && c->x86_model >= 0x0e)) in early_init_intel()
43 set_cpu_cap(c, X86_FEATURE_CONSTANT_TSC); in early_init_intel()
45 if (c->x86 >= 6 && !cpu_has(c, X86_FEATURE_IA64)) { in early_init_intel()
51 rdmsr(MSR_IA32_UCODE_REV, lower_word, c->microcode); in early_init_intel()
62 if (c->x86 == 6 && c->x86_model == 0x1c && c->x86_mask <= 2 && in early_init_intel()
[all …]
Dcommon.c69 static void default_init(struct cpuinfo_x86 *c) in default_init() argument
72 cpu_detect_cache_sizes(c); in default_init()
76 if (c->cpuid_level == -1) { in default_init()
78 if (c->x86 == 4) in default_init()
79 strcpy(c->x86_model_id, "486"); in default_init()
80 else if (c->x86 == 3) in default_init()
81 strcpy(c->x86_model_id, "386"); in default_init()
236 static void squash_the_stupid_serial_number(struct cpuinfo_x86 *c) in squash_the_stupid_serial_number() argument
240 if (!cpu_has(c, X86_FEATURE_PN) || !disable_x86_serial_nr) in squash_the_stupid_serial_number()
250 clear_cpu_cap(c, X86_FEATURE_PN); in squash_the_stupid_serial_number()
[all …]
Dproc.c10 static void show_cpuinfo_core(struct seq_file *m, struct cpuinfo_x86 *c, in show_cpuinfo_core() argument
14 seq_printf(m, "physical id\t: %d\n", c->phys_proc_id); in show_cpuinfo_core()
16 seq_printf(m, "core id\t\t: %d\n", c->cpu_core_id); in show_cpuinfo_core()
17 seq_printf(m, "cpu cores\t: %d\n", c->booted_cores); in show_cpuinfo_core()
18 seq_printf(m, "apicid\t\t: %d\n", c->apicid); in show_cpuinfo_core()
19 seq_printf(m, "initial apicid\t: %d\n", c->initial_apicid); in show_cpuinfo_core()
24 static void show_cpuinfo_misc(struct seq_file *m, struct cpuinfo_x86 *c) in show_cpuinfo_misc() argument
39 c->cpuid_level, in show_cpuinfo_misc()
40 c->wp_works_ok ? "yes" : "no"); in show_cpuinfo_misc()
43 static void show_cpuinfo_misc(struct seq_file *m, struct cpuinfo_x86 *c) in show_cpuinfo_misc() argument
[all …]
Dcentaur.c19 static void init_c3(struct cpuinfo_x86 *c) in init_c3() argument
46 c->x86_capability[5] = cpuid_edx(0xC0000001); in init_c3()
50 if (c->x86_model >= 6 && c->x86_model <= 13) { in init_c3()
54 set_cpu_cap(c, X86_FEATURE_CX8); in init_c3()
58 if (c->x86_model >= 6 && c->x86_model < 9) in init_c3()
59 set_cpu_cap(c, X86_FEATURE_3DNOW); in init_c3()
61 if (c->x86 == 0x6 && c->x86_model >= 0xf) { in init_c3()
62 c->x86_cache_alignment = c->x86_clflush_size * 2; in init_c3()
63 set_cpu_cap(c, X86_FEATURE_REP_GOOD); in init_c3()
66 cpu_detect_cache_sizes(c); in init_c3()
[all …]
Dcyrix.c89 static void check_cx686_slop(struct cpuinfo_x86 *c) in check_cx686_slop() argument
108 c->loops_per_jiffy = loops_per_jiffy; in check_cx686_slop()
168 static void early_init_cyrix(struct cpuinfo_x86 *c) in early_init_cyrix() argument
178 set_cpu_cap(c, X86_FEATURE_CYRIX_ARR); in early_init_cyrix()
182 set_cpu_cap(c, X86_FEATURE_CYRIX_ARR); in early_init_cyrix()
187 static void init_cyrix(struct cpuinfo_x86 *c) in init_cyrix() argument
190 char *buf = c->x86_model_id; in init_cyrix()
197 clear_cpu_cap(c, 0*32+31); in init_cyrix()
200 if (test_cpu_cap(c, 1*32+24)) { in init_cyrix()
201 clear_cpu_cap(c, 1*32+24); in init_cyrix()
[all …]
Dtopology.c29 void detect_extended_topology(struct cpuinfo_x86 *c) in detect_extended_topology() argument
37 if (c->cpuid_level < 0xb) in detect_extended_topology()
48 set_cpu_cap(c, X86_FEATURE_XTOPOLOGY); in detect_extended_topology()
53 c->initial_apicid = edx; in detect_extended_topology()
79 c->cpu_core_id = apic->phys_pkg_id(c->initial_apicid, ht_mask_width) in detect_extended_topology()
81 c->phys_proc_id = apic->phys_pkg_id(c->initial_apicid, core_plus_mask_width); in detect_extended_topology()
85 c->apicid = apic->phys_pkg_id(c->initial_apicid, 0); in detect_extended_topology()
87 c->x86_max_cores = (core_level_siblings / smp_num_siblings); in detect_extended_topology()
91 c->phys_proc_id); in detect_extended_topology()
92 if (c->x86_max_cores > 1) in detect_extended_topology()
[all …]
/arch/mips/mm/
Dc-octeon.c190 struct cpuinfo_mips *c = &current_cpu_data; in probe_octeon() local
197 c->icache.linesz = 2 << ((config1 >> 19) & 7); in probe_octeon()
198 c->icache.sets = 64 << ((config1 >> 22) & 7); in probe_octeon()
199 c->icache.ways = 1 + ((config1 >> 16) & 7); in probe_octeon()
200 c->icache.flags |= MIPS_CACHE_VTAG; in probe_octeon()
202 c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
203 c->icache.waybit = ffs(icache_size / c->icache.ways) - 1; in probe_octeon()
204 c->dcache.linesz = 128; in probe_octeon()
206 c->dcache.sets = 2; /* CN5XXX has two Dcache sets */ in probe_octeon()
208 c->dcache.sets = 1; /* CN3XXX has one Dcache set */ in probe_octeon()
[all …]
Dc-r4k.c899 static inline int alias_74k_erratum(struct cpuinfo_mips *c) in alias_74k_erratum() argument
901 unsigned int imp = c->processor_id & PRID_IMP_MASK; in alias_74k_erratum()
902 unsigned int rev = c->processor_id & PRID_REV_MASK; in alias_74k_erratum()
942 struct cpuinfo_mips *c = &current_cpu_data; in probe_pcache() local
955 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache()
956 c->icache.ways = 2; in probe_pcache()
957 c->icache.waybit = __ffs(icache_size/2); in probe_pcache()
960 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
961 c->dcache.ways = 2; in probe_pcache()
962 c->dcache.waybit= __ffs(dcache_size/2); in probe_pcache()
[all …]
/arch/microblaze/lib/
Dmemmove.c35 void *memmove(void *v_dst, const void *v_src, __kernel_size_t c) in memmove() argument
40 if (!c) in memmove()
45 return memcpy(v_dst, v_src, c); in memmove()
48 src += c; in memmove()
49 dst += c; in memmove()
52 while (c--) in memmove()
58 void *memmove(void *v_dst, const void *v_src, __kernel_size_t c) in memmove() argument
65 if (!c) in memmove()
70 return memcpy(v_dst, v_src, c); in memmove()
80 dst += c; in memmove()
[all …]
Dmemcpy.c36 void *memcpy(void *v_dst, const void *v_src, __kernel_size_t c) in memcpy() argument
42 while (c--) in memcpy()
48 void *memcpy(void *v_dst, const void *v_src, __kernel_size_t c) in memcpy() argument
62 if (likely(c >= 4)) { in memcpy()
70 --c; in memcpy()
73 --c; in memcpy()
76 --c; in memcpy()
87 for (; c >= 4; c -= 4) in memcpy()
99 for (; c >= 4; c -= 4) { in memcpy()
108 for (; c >= 4; c -= 4) { in memcpy()
[all …]
Dmemset.c35 void *memset(void *v_src, int c, __kernel_size_t n) in memset() argument
40 c = (c & 0xFF); in memset()
44 *src++ = c; in memset()
49 void *memset(void *v_src, int c, __kernel_size_t n) in memset() argument
56 c = (c & 0xFF); in memset()
58 if (unlikely(c)) { in memset()
60 w32 = c; in memset()
70 *src++ = c; in memset()
73 *src++ = c; in memset()
76 *src++ = c; in memset()
[all …]
/arch/mips/alchemy/common/
Dclock.c231 struct clk *c; in alchemy_clk_setup_aux() local
248 c = clk_register(NULL, &a->hw); in alchemy_clk_setup_aux()
249 if (!IS_ERR(c)) in alchemy_clk_setup_aux()
250 clk_register_clkdev(c, name, NULL); in alchemy_clk_setup_aux()
254 return c; in alchemy_clk_setup_aux()
262 struct clk *c; in alchemy_clk_setup_sysbus() local
264 c = clk_register_fixed_factor(NULL, ALCHEMY_SYSBUS_CLK, in alchemy_clk_setup_sysbus()
266 if (!IS_ERR(c)) in alchemy_clk_setup_sysbus()
267 clk_register_clkdev(c, ALCHEMY_SYSBUS_CLK, NULL); in alchemy_clk_setup_sysbus()
268 return c; in alchemy_clk_setup_sysbus()
[all …]
/arch/x86/boot/
Dcmdline.c17 static inline int myisspace(u8 c) in myisspace() argument
19 return c <= ' '; /* Close enough approximation */ in myisspace()
33 char c; in __cmdline_find_option() local
50 while (cptr < 0x10000 && (c = rdfs8(cptr++))) { in __cmdline_find_option()
53 if (myisspace(c)) in __cmdline_find_option()
62 if (c == '=' && !*opptr) { in __cmdline_find_option()
66 } else if (myisspace(c)) { in __cmdline_find_option()
68 } else if (c != *opptr++) { in __cmdline_find_option()
74 if (myisspace(c)) in __cmdline_find_option()
79 if (myisspace(c)) { in __cmdline_find_option()
[all …]
/arch/powerpc/xmon/
Dnonstdio.c27 int xmon_putchar(int c) in xmon_putchar() argument
29 char ch = c; in xmon_putchar()
31 if (c == '\n') in xmon_putchar()
33 return xmon_write(&ch, 1) == 1? c: -1; in xmon_putchar()
42 int c; in xmon_getchar() local
47 c = xmon_readchar(); in xmon_getchar()
48 if (c == -1 || c == 4) in xmon_getchar()
50 if (c == '\r' || c == '\n') { in xmon_getchar()
55 switch (c) { in xmon_getchar()
77 xmon_putchar(c); in xmon_getchar()
[all …]
/arch/powerpc/boot/
DMakefile60 zlib := inffast.c inflate.c inftrees.c
67 libfdt := fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c
73 src-wlib-y := string.S crt0.S crtsavres.S stdio.c main.c \
74 $(libfdt) libfdt-wrapper.c \
75 ns16550.c serial.c simple_alloc.c div64.S util.S \
76 gunzip_util.c elf_util.c $(zlib) devtree.c stdlib.c \
77 oflib.c ofconsole.c cuboot.c mpsc.c cpm-serial.c \
78 uartlite.c mpc52xx-psc.c
79 src-wlib-$(CONFIG_40x) += 4xx.c planetcore.c
80 src-wlib-$(CONFIG_44x) += 4xx.c ebony.c bamboo.c
[all …]
D.gitignore2 empty.c
4 inffast.c
7 inflate.c
9 inftrees.c
11 infutil.c
13 kernel-vmlinux.strip.c
35 fdt.c
37 fdt_ro.c
38 fdt_rw.c
39 fdt_strerror.c
[all …]
/arch/sparc/crypto/
Dopcodes.h17 #define CRC32C(a,b,c) \ argument
18 .word (F3F(2,0x36,0x147)|RS1(a)|RS2(b)|RD(c));
29 #define AES_EROUND01(a,b,c,d) \ argument
30 .word (F3F(2, 0x19, 0)|RS1(a)|RS2(b)|RS3(c)|RD(d));
31 #define AES_EROUND23(a,b,c,d) \ argument
32 .word (F3F(2, 0x19, 1)|RS1(a)|RS2(b)|RS3(c)|RD(d));
33 #define AES_DROUND01(a,b,c,d) \ argument
34 .word (F3F(2, 0x19, 2)|RS1(a)|RS2(b)|RS3(c)|RD(d));
35 #define AES_DROUND23(a,b,c,d) \ argument
36 .word (F3F(2, 0x19, 3)|RS1(a)|RS2(b)|RS3(c)|RD(d));
[all …]
/arch/x86/lib/
Dcmdline.c12 static inline int myisspace(u8 c) in myisspace() argument
14 return c <= ' '; /* Close enough approximation */ in myisspace()
28 char c; in cmdline_find_option_bool() local
45 c = *(char *)cmdline++; in cmdline_find_option_bool()
50 if (!c) in cmdline_find_option_bool()
52 else if (myisspace(c)) in cmdline_find_option_bool()
62 if (!c || myisspace(c)) in cmdline_find_option_bool()
66 else if (!c) in cmdline_find_option_bool()
68 else if (c != *opptr++) in cmdline_find_option_bool()
75 if (!c) in cmdline_find_option_bool()
[all …]
/arch/sh/kernel/cpu/
Dproc.c33 const char *get_cpu_subtype(struct sh_cpuinfo *c) in get_cpu_subtype() argument
35 return cpu_name[c->type]; in get_cpu_subtype()
46 static void show_cpuflags(struct seq_file *m, struct sh_cpuinfo *c) in show_cpuflags() argument
52 if (!c->flags) { in show_cpuflags()
58 if ((c->flags & (1 << i))) in show_cpuflags()
80 struct sh_cpuinfo *c = v; in show_cpuinfo() local
81 unsigned int cpu = c - cpu_data; in show_cpuinfo()
93 seq_printf(m, "cpu type\t: %s\n", get_cpu_subtype(c)); in show_cpuinfo()
94 if (c->cut_major == -1) in show_cpuinfo()
96 else if (c->cut_minor == -1) in show_cpuinfo()
[all …]
/arch/m68k/lib/
Dmemset.c10 void *memset(void *s, int c, size_t count) in memset() argument
17 c &= 0xff; in memset()
18 c |= c << 8; in memset()
19 c |= c << 16; in memset()
22 *cs++ = c; in memset()
28 *ss++ = c; in memset()
37 *ls++ = c; in memset()
59 : "d" (c), "0" (ls), "1" (temp)); in memset()
65 *ss++ = c; in memset()
70 *cs = c; in memset()
/arch/m32r/boot/compressed/
Dm32r_sio.c11 static void putc(char c);
15 char c; in puts() local
16 while ((c = *s++)) putc(c); in puts()
44 static void putc(char c) in putc() argument
48 if (c == '\n') { in putc()
53 *BOOT_SIO0TXB = c; in putc()
64 static void putc(char c) in putc() argument
68 if (c == '\n') { in putc()
73 *SIO0TXB = c; in putc()
/arch/arm64/include/asm/
Dio.h111 #define readb_relaxed(c) ({ u8 __v = __raw_readb(c); __v; }) argument
112 #define readw_relaxed(c) ({ u16 __v = le16_to_cpu((__force __le16)__raw_readw(c)); __v; }) argument
113 #define readl_relaxed(c) ({ u32 __v = le32_to_cpu((__force __le32)__raw_readl(c)); __v; }) argument
114 #define readq_relaxed(c) ({ u64 __v = le64_to_cpu((__force __le64)__raw_readq(c)); __v; }) argument
116 #define writeb_relaxed(v,c) ((void)__raw_writeb((v),(c))) argument
117 #define writew_relaxed(v,c) ((void)__raw_writew((__force u16)cpu_to_le16(v),(c))) argument
118 #define writel_relaxed(v,c) ((void)__raw_writel((__force u32)cpu_to_le32(v),(c))) argument
119 #define writeq_relaxed(v,c) ((void)__raw_writeq((__force u64)cpu_to_le64(v),(c))) argument
126 #define readb(c) ({ u8 __v = readb_relaxed(c); __iormb(); __v; }) argument
127 #define readw(c) ({ u16 __v = readw_relaxed(c); __iormb(); __v; }) argument
[all …]

12345678910>>...36