Home
last modified time | relevance | path

Searched defs:c (Results 1 – 25 of 431) sorted by relevance

12345678910>>...18

/arch/riscv/include/asm/
Dmmio.h88 #define readb_cpu(c) ({ u8 __r = __raw_readb(c); __r; }) argument
89 #define readw_cpu(c) ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; }) argument
90 #define readl_cpu(c) ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; }) argument
92 #define writeb_cpu(v, c) ((void)__raw_writeb((v), (c))) argument
93 #define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c))) argument
94 #define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c))) argument
97 #define readq_cpu(c) ({ u64 __r = le64_to_cpu((__force __le64)__raw_readq(c)); __r; }) argument
98 #define writeq_cpu(v, c) ((void)__raw_writeq((__force u64)cpu_to_le64(v), (c))) argument
115 #define readb_relaxed(c) ({ u8 __v; __io_rbr(); __v = readb_cpu(c); __io_rar(); __v; }) argument
116 #define readw_relaxed(c) ({ u16 __v; __io_rbr(); __v = readw_cpu(c); __io_rar(); __v; }) argument
[all …]
/arch/csky/include/asm/
Dio.h20 #define readb(c) ({ u8 __v = readb_relaxed(c); rmb(); __v; }) argument
21 #define readw(c) ({ u16 __v = readw_relaxed(c); rmb(); __v; }) argument
22 #define readl(c) ({ u32 __v = readl_relaxed(c); rmb(); __v; }) argument
25 #define writeb(v,c) ({ wmb(); writeb_relaxed((v),(c)); }) argument
26 #define writew(v,c) ({ wmb(); writew_relaxed((v),(c)); }) argument
27 #define writel(v,c) ({ wmb(); writel_relaxed((v),(c)); }) argument
29 #define writeb(v,c) ({ wmb(); writeb_relaxed((v),(c)); mb(); }) argument
30 #define writew(v,c) ({ wmb(); writew_relaxed((v),(c)); mb(); }) argument
31 #define writel(v,c) ({ wmb(); writel_relaxed((v),(c)); mb(); }) argument
41 #define memset_io(c,v,l) __memset_io((c),(v),(l)) argument
[all …]
/arch/mips/kernel/
Dcpu-probe.c144 static inline void cpu_set_mt_per_tc_perf(struct cpuinfo_mips *c) in cpu_set_mt_per_tc_perf()
152 struct cpuinfo_mips *c = &current_cpu_data; in check_errata() local
208 static inline void cpu_probe_vmbits(struct cpuinfo_mips *c) in cpu_probe_vmbits()
217 static void set_isa(struct cpuinfo_mips *c, unsigned int isa) in set_isa()
277 static unsigned int calculate_ftlb_probability(struct cpuinfo_mips *c) in calculate_ftlb_probability()
303 static int set_ftlb_enable(struct cpuinfo_mips *c, enum ftlb_flags flags) in set_ftlb_enable()
355 static int mm_config(struct cpuinfo_mips *c) in mm_config()
401 static inline unsigned int decode_config0(struct cpuinfo_mips *c) in decode_config0()
459 static inline unsigned int decode_config1(struct cpuinfo_mips *c) in decode_config1()
488 static inline unsigned int decode_config2(struct cpuinfo_mips *c) in decode_config2()
[all …]
Dfpu-probe.c49 static inline void cpu_set_fpu_fcsr_mask(struct cpuinfo_mips *c) in cpu_set_fpu_fcsr_mask()
78 static void cpu_set_fpu_2008(struct cpuinfo_mips *c) in cpu_set_fpu_2008()
155 static void cpu_set_nofpu_2008(struct cpuinfo_mips *c) in cpu_set_nofpu_2008()
193 static void cpu_set_nan_2008(struct cpuinfo_mips *c) in cpu_set_nan_2008()
257 static void cpu_set_nofpu_id(struct cpuinfo_mips *c) in cpu_set_nofpu_id()
282 void cpu_set_fpu_opts(struct cpuinfo_mips *c) in cpu_set_fpu_opts()
307 void cpu_set_nofpu_opts(struct cpuinfo_mips *c) in cpu_set_nofpu_opts()
/arch/x86/kernel/cpu/
Damd.c88 static void init_amd_k5(struct cpuinfo_x86 *c) in init_amd_k5()
107 static void init_amd_k6(struct cpuinfo_x86 *c) in init_amd_k6()
201 static void init_amd_k7(struct cpuinfo_x86 *c) in init_amd_k7()
298 static void srat_detect_node(struct cpuinfo_x86 *c) in srat_detect_node()
349 static void bsp_determine_snp(struct cpuinfo_x86 *c) in bsp_determine_snp()
373 struct cpuinfo_x86 *c = &boot_cpu_data; in amd_check_tsa_microcode() local
416 static void tsa_init(struct cpuinfo_x86 *c) in tsa_init()
431 static void bsp_init_amd(struct cpuinfo_x86 *c) in bsp_init_amd()
547 static void early_detect_mem_encrypt(struct cpuinfo_x86 *c) in early_detect_mem_encrypt()
599 static void early_init_amd(struct cpuinfo_x86 *c) in early_init_amd()
[all …]
Dhygon.c45 static void srat_detect_node(struct cpuinfo_x86 *c) in srat_detect_node()
95 static void bsp_init_hygon(struct cpuinfo_x86 *c) in bsp_init_hygon()
124 static void early_init_hygon(struct cpuinfo_x86 *c) in early_init_hygon()
170 static void init_hygon(struct cpuinfo_x86 *c) in init_hygon()
236 static void cpu_detect_tlb_hygon(struct cpuinfo_x86 *c) in cpu_detect_tlb_hygon()
Dzhaoxin.c20 static void init_zhaoxin_cap(struct cpuinfo_x86 *c) in init_zhaoxin_cap()
57 static void early_init_zhaoxin(struct cpuinfo_x86 *c) in early_init_zhaoxin()
70 static void init_zhaoxin(struct cpuinfo_x86 *c) in init_zhaoxin()
98 zhaoxin_size_cache(struct cpuinfo_x86 *c, unsigned int size) in zhaoxin_size_cache()
Dintel.c73 static void check_memory_type_self_snoop_errata(struct cpuinfo_x86 *c) in check_memory_type_self_snoop_errata()
101 static void probe_xeon_phi_r3mwait(struct cpuinfo_x86 *c) in probe_xeon_phi_r3mwait()
165 static bool bad_spectre_microcode(struct cpuinfo_x86 *c) in bad_spectre_microcode()
192 static void detect_tme_early(struct cpuinfo_x86 *c) in detect_tme_early()
221 void intel_unlock_cpuid_leafs(struct cpuinfo_x86 *c) in intel_unlock_cpuid_leafs()
237 static void early_init_intel(struct cpuinfo_x86 *c) in early_init_intel()
366 static void bsp_init_intel(struct cpuinfo_x86 *c) in bsp_init_intel()
391 static void intel_smp_check(struct cpuinfo_x86 *c) in intel_smp_check()
419 static void intel_workarounds(struct cpuinfo_x86 *c) in intel_workarounds()
502 static void intel_workarounds(struct cpuinfo_x86 *c) in intel_workarounds()
[all …]
Dcommon.c134 static void ppin_init(struct cpuinfo_x86 *c) in ppin_init()
175 static void default_init(struct cpuinfo_x86 *c) in default_init()
325 static void squash_the_stupid_serial_number(struct cpuinfo_x86 *c) in squash_the_stupid_serial_number()
356 static inline void squash_the_stupid_serial_number(struct cpuinfo_x86 *c) in squash_the_stupid_serial_number()
361 static __always_inline void setup_smep(struct cpuinfo_x86 *c) in setup_smep()
367 static __always_inline void setup_smap(struct cpuinfo_x86 *c) in setup_smap()
378 static __always_inline void setup_umip(struct cpuinfo_x86 *c) in setup_umip()
517 static __always_inline void setup_pku(struct cpuinfo_x86 *c) in setup_pku()
587 static __always_inline void setup_cet(struct cpuinfo_x86 *c) in setup_cet()
646 static void filter_cpuid_features(struct cpuinfo_x86 *c, bool warn) in filter_cpuid_features()
[all …]
Dtopology_common.c30 static unsigned int __maybe_unused parse_num_cores_legacy(struct cpuinfo_x86 *c) in parse_num_cores_legacy()
51 struct cpuinfo_x86 *c = tscan->c; in parse_legacy() local
91 struct cpuinfo_x86 *c = tscan->c; in parse_topology() local
145 struct cpuinfo_x86 *c = tscan->c; in topo_set_ids() local
166 void cpu_parse_topology(struct cpuinfo_x86 *c) in cpu_parse_topology()
195 void __init cpu_init_topology(struct cpuinfo_x86 *c) in cpu_init_topology()
Dcpuid-deps.c89 static inline void clear_feature(struct cpuinfo_x86 *c, unsigned int feature) in clear_feature()
107 static void do_clear_cpu_cap(struct cpuinfo_x86 *c, unsigned int feature) in do_clear_cpu_cap()
140 void clear_cpu_cap(struct cpuinfo_x86 *c, unsigned int feature) in clear_cpu_cap()
/arch/mips/loongson64/
Dcpucfg-emul.c12 static bool is_loongson(struct cpuinfo_mips *c) in is_loongson()
27 static u32 get_loongson_fprev(struct cpuinfo_mips *c) in get_loongson_fprev()
50 static void probe_uca(struct cpuinfo_mips *c) in probe_uca()
56 static void decode_loongson_config6(struct cpuinfo_mips *c) in decode_loongson_config6()
68 static void patch_cpucfg_sel1(struct cpuinfo_mips *c) in patch_cpucfg_sel1()
86 static void patch_cpucfg_sel2(struct cpuinfo_mips *c) in patch_cpucfg_sel2()
107 static void patch_cpucfg_sel3(struct cpuinfo_mips *c) in patch_cpucfg_sel3()
124 void loongson3_cpucfg_synthesize_data(struct cpuinfo_mips *c) in loongson3_cpucfg_synthesize_data()
/arch/arm64/include/asm/
Darch_gicv3.h143 #define gic_read_typer(c) readq_relaxed(c) argument
144 #define gic_write_irouter(v, c) writeq_relaxed(v, c) argument
145 #define gic_read_lpir(c) readq_relaxed(c) argument
146 #define gic_write_lpir(v, c) writeq_relaxed(v, c) argument
151 #define gits_read_baser(c) readq_relaxed(c) argument
152 #define gits_write_baser(v, c) writeq_relaxed(v, c) argument
154 #define gits_read_cbaser(c) readq_relaxed(c) argument
155 #define gits_write_cbaser(v, c) writeq_relaxed(v, c) argument
157 #define gits_write_cwriter(v, c) writeq_relaxed(v, c) argument
159 #define gicr_read_propbaser(c) readq_relaxed(c) argument
[all …]
Ddcc.h25 char c = read_sysreg(dbgdtrrx_el0); in __dcc_getchar() local
31 static inline void __dcc_putchar(char c) in __dcc_putchar()
/arch/mips/include/asm/mach-loongson64/
Dcpucfg-emul.h15 static inline bool loongson3_cpucfg_emulation_enabled(struct cpuinfo_mips *c) in loongson3_cpucfg_emulation_enabled()
21 static inline u32 loongson3_cpucfg_read_synthesized(struct cpuinfo_mips *c, in loongson3_cpucfg_read_synthesized()
58 static inline void loongson3_cpucfg_synthesize_data(struct cpuinfo_mips *c) in loongson3_cpucfg_synthesize_data()
62 static inline bool loongson3_cpucfg_emulation_enabled(struct cpuinfo_mips *c) in loongson3_cpucfg_emulation_enabled()
67 static inline u32 loongson3_cpucfg_read_synthesized(struct cpuinfo_mips *c, in loongson3_cpucfg_read_synthesized()
/arch/powerpc/kernel/
Dtm.S20 #define __SAVE_32FPRS_VSRS(n,c,base) \ argument
28 #define __REST_32FPRS_VSRS(n,c,base) \ argument
37 #define __SAVE_32FPRS_VSRS(n,c,base) SAVE_32FPRS(n, base) argument
38 #define __REST_32FPRS_VSRS(n,c,base) REST_32FPRS(n, base) argument
40 #define SAVE_32FPRS_VSRS(n,c,base) \ argument
42 #define REST_32FPRS_VSRS(n,c,base) \ argument
Dfpu.S26 #define __REST_1FPVSR(n,c,base) \ argument
35 #define __REST_32FPVSRS(n,c,base) \ argument
44 #define __SAVE_32FPVSRS(n,c,base) \ argument
57 #define REST_1FPVSR(n,c,base) __REST_1FPVSR(n,__REG_##c,__REG_##base) argument
58 #define REST_32FPVSRS(n,c,base) __REST_32FPVSRS(n,__REG_##c,__REG_##base) argument
59 #define SAVE_32FPVSRS(n,c,base) __SAVE_32FPVSRS(n,__REG_##c,__REG_##base) argument
/arch/mips/include/asm/octeon/
Dcvmx-ciu-defs.h16 #define CVMX_CIU_EN2_PPX_IP4(c) CVMX_CIU_ADDR(0xA400, c, 0x0F, 8) argument
17 #define CVMX_CIU_EN2_PPX_IP4_W1C(c) CVMX_CIU_ADDR(0xCC00, c, 0x0F, 8) argument
18 #define CVMX_CIU_EN2_PPX_IP4_W1S(c) CVMX_CIU_ADDR(0xAC00, c, 0x0F, 8) argument
21 #define CVMX_CIU_INTX_EN0(c) CVMX_CIU_ADDR(0x0200, c, 0x3F, 16) argument
22 #define CVMX_CIU_INTX_EN0_W1C(c) CVMX_CIU_ADDR(0x2200, c, 0x3F, 16) argument
23 #define CVMX_CIU_INTX_EN0_W1S(c) CVMX_CIU_ADDR(0x6200, c, 0x3F, 16) argument
24 #define CVMX_CIU_INTX_EN1(c) CVMX_CIU_ADDR(0x0208, c, 0x3F, 16) argument
25 #define CVMX_CIU_INTX_EN1_W1C(c) CVMX_CIU_ADDR(0x2208, c, 0x3F, 16) argument
26 #define CVMX_CIU_INTX_EN1_W1S(c) CVMX_CIU_ADDR(0x6208, c, 0x3F, 16) argument
27 #define CVMX_CIU_INTX_SUM0(c) CVMX_CIU_ADDR(0x0000, c, 0x3F, 8) argument
[all …]
/arch/arm/include/asm/
Darch_gicv3.h165 #define gic_write_irouter(v, c) __gic_writeq_nonatomic(v, c) argument
170 #define gic_read_typer(c) __gic_readq_nonatomic(c) argument
175 #define gits_read_baser(c) __gic_readq_nonatomic(c) argument
176 #define gits_write_baser(v, c) __gic_writeq_nonatomic(v, c) argument
182 #define gicr_read_propbaser(c) __gic_readq_nonatomic(c) argument
183 #define gicr_write_propbaser(v, c) __gic_writeq_nonatomic(v, c) argument
184 #define gicr_read_pendbaser(c) __gic_readq_nonatomic(c) argument
185 #define gicr_write_pendbaser(v, c) __gic_writeq_nonatomic(v, c) argument
190 #define gic_read_lpir(c) readl_relaxed(c) argument
191 #define gic_write_lpir(v, c) writel_relaxed(lower_32_bits(v), c) argument
[all …]
Dio.h274 #define readb_relaxed(c) ({ u8 __r = __raw_readb(c); __r; }) argument
275 #define readw_relaxed(c) ({ u16 __r = le16_to_cpu((__force __le16) \ argument
277 #define readl_relaxed(c) ({ u32 __r = le32_to_cpu((__force __le32) \ argument
280 #define writeb_relaxed(v,c) __raw_writeb(v,c) argument
281 #define writew_relaxed(v,c) __raw_writew((__force u16) cpu_to_le16(v),c) argument
282 #define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c) argument
284 #define readb(c) ({ u8 __v = readb_relaxed(c); __iormb(); __v; }) argument
285 #define readw(c) ({ u16 __v = readw_relaxed(c); __iormb(); __v; }) argument
286 #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; }) argument
288 #define writeb(v,c) ({ __iowmb(); writeb_relaxed(v,c); }) argument
[all …]
/arch/sparc/crypto/
Dopcodes.h18 #define CRC32C(a,b,c) \ argument
30 #define AES_EROUND01(a,b,c,d) \ argument
32 #define AES_EROUND23(a,b,c,d) \ argument
34 #define AES_DROUND01(a,b,c,d) \ argument
36 #define AES_DROUND23(a,b,c,d) \ argument
38 #define AES_EROUND01_L(a,b,c,d) \ argument
40 #define AES_EROUND23_L(a,b,c,d) \ argument
42 #define AES_DROUND01_L(a,b,c,d) \ argument
44 #define AES_DROUND23_L(a,b,c,d) \ argument
46 #define AES_KEXPAND1(a,b,c,d) \ argument
[all …]
/arch/loongarch/kernel/
Dcpu-probe.c30 static inline void cpu_set_fpu_fcsr_mask(struct cpuinfo_loongarch *c) in cpu_set_fpu_fcsr_mask()
65 static void cpu_probe_addrbits(struct cpuinfo_loongarch *c) in cpu_probe_addrbits()
74 static void set_isa(struct cpuinfo_loongarch *c, unsigned int isa) in set_isa()
89 static void cpu_probe_common(struct cpuinfo_loongarch *c) in cpu_probe_common()
230 static inline void cpu_probe_loongson(struct cpuinfo_loongarch *c, unsigned int cpu) in cpu_probe_loongson()
307 struct cpuinfo_loongarch *c = &current_cpu_data; in cpu_report() local
318 struct cpuinfo_loongarch *c = &current_cpu_data; in cpu_probe() local
/arch/mips/alchemy/common/
Dclock.c245 struct clk *c; in alchemy_clk_setup_aux() local
276 struct clk *c; in alchemy_clk_setup_sysbus() local
290 struct clk *c; in alchemy_clk_setup_periph() local
305 struct clk *c; in alchemy_clk_setup_mem() local
344 struct clk *c; in alchemy_clk_setup_lrclk() local
493 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv1_en() local
507 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv1_isen() local
515 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv1_dis() local
527 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv1_setp() local
544 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv1_getp() local
[all …]
/arch/arc/include/asm/
Dio.h196 #define readb(c) ({ u8 __v = readb_relaxed(c); __iormb(); __v; }) argument
197 #define readw(c) ({ u16 __v = readw_relaxed(c); __iormb(); __v; }) argument
198 #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; }) argument
203 #define writeb(v,c) ({ __iowmb(); writeb_relaxed(v,c); }) argument
204 #define writew(v,c) ({ __iowmb(); writew_relaxed(v,c); }) argument
205 #define writel(v,c) ({ __iowmb(); writel_relaxed(v,c); }) argument
219 #define readb_relaxed(c) __raw_readb(c) argument
220 #define readw_relaxed(c) ({ u16 __r = le16_to_cpu((__force __le16) \ argument
222 #define readl_relaxed(c) ({ u32 __r = le32_to_cpu((__force __le32) \ argument
225 #define writeb_relaxed(v,c) __raw_writeb(v,c) argument
[all …]
/arch/um/include/asm/
Dcpufeature.h23 #define test_cpu_cap(c, bit) \ argument
36 #define cpu_has(c, bit) \ argument
56 #define set_cpu_cap(c, bit) set_bit(bit, (unsigned long *)((c)->x86_capability)) argument
126 #define cpu_has_bug(c, bit) cpu_has(c, (bit)) argument
127 #define set_cpu_bug(c, bit) set_cpu_cap(c, (bit)) argument

12345678910>>...18