| /arch/riscv/include/asm/ |
| D | mmio.h | 87 #define readb_cpu(c) ({ u8 __r = __raw_readb(c); __r; }) argument 88 #define readw_cpu(c) ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; }) argument 89 #define readl_cpu(c) ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; }) argument 91 #define writeb_cpu(v, c) ((void)__raw_writeb((v), (c))) argument 92 #define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c))) argument 93 #define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c))) argument 96 #define readq_cpu(c) ({ u64 __r = le64_to_cpu((__force __le64)__raw_readq(c)); __r; }) argument 97 #define writeq_cpu(v, c) ((void)__raw_writeq((__force u64)cpu_to_le64(v), (c))) argument 114 #define readb_relaxed(c) ({ u8 __v; __io_rbr(); __v = readb_cpu(c); __io_rar(); __v; }) argument 115 #define readw_relaxed(c) ({ u16 __v; __io_rbr(); __v = readw_cpu(c); __io_rar(); __v; }) argument [all …]
|
| /arch/csky/include/asm/ |
| D | io.h | 20 #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/ |
| D | cpu-probe.c | 144 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 = ¤t_cpu_data; in check_errata() local 209 static inline void cpu_probe_vmbits(struct cpuinfo_mips *c) in cpu_probe_vmbits() 218 static void set_isa(struct cpuinfo_mips *c, unsigned int isa) in set_isa() 278 static unsigned int calculate_ftlb_probability(struct cpuinfo_mips *c) in calculate_ftlb_probability() 304 static int set_ftlb_enable(struct cpuinfo_mips *c, enum ftlb_flags flags) in set_ftlb_enable() 356 static int mm_config(struct cpuinfo_mips *c) in mm_config() 402 static inline unsigned int decode_config0(struct cpuinfo_mips *c) in decode_config0() 460 static inline unsigned int decode_config1(struct cpuinfo_mips *c) in decode_config1() 489 static inline unsigned int decode_config2(struct cpuinfo_mips *c) in decode_config2() [all …]
|
| D | fpu-probe.c | 49 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() 192 static void cpu_set_nan_2008(struct cpuinfo_mips *c) in cpu_set_nan_2008() 250 static void cpu_set_nofpu_id(struct cpuinfo_mips *c) in cpu_set_nofpu_id() 275 void cpu_set_fpu_opts(struct cpuinfo_mips *c) in cpu_set_fpu_opts() 300 void cpu_set_nofpu_opts(struct cpuinfo_mips *c) in cpu_set_nofpu_opts()
|
| /arch/mips/loongson64/ |
| D | cpucfg-emul.c | 12 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/x86/kernel/cpu/ |
| D | amd.c | 160 static void init_amd_k5(struct cpuinfo_x86 *c) in init_amd_k5() 179 static void init_amd_k6(struct cpuinfo_x86 *c) in init_amd_k6() 273 static void init_amd_k7(struct cpuinfo_x86 *c) in init_amd_k7() 375 static void legacy_fixup_core_id(struct cpuinfo_x86 *c) in legacy_fixup_core_id() 392 static void amd_get_topology(struct cpuinfo_x86 *c) in amd_get_topology() 445 static void amd_detect_cmp(struct cpuinfo_x86 *c) in amd_detect_cmp() 465 static void srat_detect_node(struct cpuinfo_x86 *c) in srat_detect_node() 516 static void early_init_amd_mc(struct cpuinfo_x86 *c) in early_init_amd_mc() 542 static void bsp_init_amd(struct cpuinfo_x86 *c) in bsp_init_amd() 654 static void early_detect_mem_encrypt(struct cpuinfo_x86 *c) in early_detect_mem_encrypt() [all …]
|
| D | hygon.c | 52 static void hygon_get_topology_early(struct cpuinfo_x86 *c) in hygon_get_topology_early() 64 static void hygon_get_topology(struct cpuinfo_x86 *c) in hygon_get_topology() 116 static void hygon_detect_cmp(struct cpuinfo_x86 *c) in hygon_detect_cmp() 130 static void srat_detect_node(struct cpuinfo_x86 *c) in srat_detect_node() 180 static void early_init_hygon_mc(struct cpuinfo_x86 *c) in early_init_hygon_mc() 206 static void bsp_init_hygon(struct cpuinfo_x86 *c) in bsp_init_hygon() 245 static void early_init_hygon(struct cpuinfo_x86 *c) in early_init_hygon() 295 static void init_hygon(struct cpuinfo_x86 *c) in init_hygon() 356 static void cpu_detect_tlb_hygon(struct cpuinfo_x86 *c) in cpu_detect_tlb_hygon()
|
| D | common.c | 126 static void ppin_init(struct cpuinfo_x86 *c) in ppin_init() 167 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() 518 static __always_inline void setup_pku(struct cpuinfo_x86 *c) in setup_pku() 588 static __always_inline void setup_cet(struct cpuinfo_x86 *c) in setup_cet() 647 static void filter_cpuid_features(struct cpuinfo_x86 *c, bool warn) in filter_cpuid_features() [all …]
|
| D | zhaoxin.c | 20 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() 84 static void init_zhaoxin(struct cpuinfo_x86 *c) in init_zhaoxin() 116 zhaoxin_size_cache(struct cpuinfo_x86 *c, unsigned int size) in zhaoxin_size_cache()
|
| D | intel.c | 73 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() 207 static void detect_tme_early(struct cpuinfo_x86 *c) in detect_tme_early() 271 static void early_init_intel(struct cpuinfo_x86 *c) in early_init_intel() 431 static void bsp_init_intel(struct cpuinfo_x86 *c) in bsp_init_intel() 456 static void intel_smp_check(struct cpuinfo_x86 *c) in intel_smp_check() 484 static void intel_workarounds(struct cpuinfo_x86 *c) in intel_workarounds() 567 static void intel_workarounds(struct cpuinfo_x86 *c) in intel_workarounds() 572 static void srat_detect_node(struct cpuinfo_x86 *c) in srat_detect_node() [all …]
|
| D | cpuid-deps.c | 88 static inline void clear_feature(struct cpuinfo_x86 *c, unsigned int feature) in clear_feature() 106 static void do_clear_cpu_cap(struct cpuinfo_x86 *c, unsigned int feature) in do_clear_cpu_cap() 136 void clear_cpu_cap(struct cpuinfo_x86 *c, unsigned int feature) in clear_cpu_cap()
|
| /arch/arm64/include/asm/ |
| D | arch_gicv3.h | 135 #define gic_read_typer(c) readq_relaxed(c) argument 136 #define gic_write_irouter(v, c) writeq_relaxed(v, c) argument 137 #define gic_read_lpir(c) readq_relaxed(c) argument 138 #define gic_write_lpir(v, c) writeq_relaxed(v, c) argument 143 #define gits_read_baser(c) readq_relaxed(c) argument 144 #define gits_write_baser(v, c) writeq_relaxed(v, c) argument 146 #define gits_read_cbaser(c) readq_relaxed(c) argument 147 #define gits_write_cbaser(v, c) writeq_relaxed(v, c) argument 149 #define gits_write_cwriter(v, c) writeq_relaxed(v, c) argument 151 #define gicr_read_propbaser(c) readq_relaxed(c) argument [all …]
|
| D | dcc.h | 25 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/ |
| D | cpucfg-emul.h | 15 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/ |
| D | tm.S | 20 #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
|
| D | fpu.S | 26 #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/ |
| D | cvmx-ciu-defs.h | 16 #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/ |
| D | arch_gicv3.h | 165 #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 …]
|
| D | io.h | 274 #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/ |
| D | opcodes.h | 18 #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/ |
| D | cpu-probe.c | 30 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() 220 static inline void cpu_probe_loongson(struct cpuinfo_loongarch *c, unsigned int cpu) in cpu_probe_loongson() 282 struct cpuinfo_loongarch *c = ¤t_cpu_data; in cpu_report() local 293 struct cpuinfo_loongarch *c = ¤t_cpu_data; in cpu_probe() local
|
| D | topology.c | 19 struct cpu *c = &per_cpu(cpu_devices, cpu); in arch_register_cpu() local 32 struct cpu *c = &per_cpu(cpu_devices, cpu); in arch_unregister_cpu() local 45 struct cpu *c = &per_cpu(cpu_devices, i); in topology_init() local
|
| /arch/mips/alchemy/common/ |
| D | clock.c | 245 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/ |
| D | io.h | 199 #define readb(c) ({ u8 __v = readb_relaxed(c); __iormb(); __v; }) argument 200 #define readw(c) ({ u16 __v = readw_relaxed(c); __iormb(); __v; }) argument 201 #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; }) argument 206 #define writeb(v,c) ({ __iowmb(); writeb_relaxed(v,c); }) argument 207 #define writew(v,c) ({ __iowmb(); writew_relaxed(v,c); }) argument 208 #define writel(v,c) ({ __iowmb(); writel_relaxed(v,c); }) argument 222 #define readb_relaxed(c) __raw_readb(c) argument 223 #define readw_relaxed(c) ({ u16 __r = le16_to_cpu((__force __le16) \ argument 225 #define readl_relaxed(c) ({ u32 __r = le32_to_cpu((__force __le32) \ argument 228 #define writeb_relaxed(v,c) __raw_writeb(v,c) argument [all …]
|
| /arch/um/include/asm/ |
| D | cpufeature.h | 23 #define test_cpu_cap(c, bit) \ argument 36 #define cpu_has(c, bit) \ argument 57 #define set_cpu_cap(c, bit) set_bit(bit, (unsigned long *)((c)->x86_capability)) argument 127 #define cpu_has_bug(c, bit) cpu_has(c, (bit)) argument 128 #define set_cpu_bug(c, bit) set_cpu_cap(c, (bit)) argument
|