Searched refs:csr_write64 (Results 1 – 13 of 13) sorted by relevance
/linux-6.12.1/arch/loongarch/power/ |
D | suspend.c | 49 csr_write64(eentry, LOONGARCH_CSR_EENTRY); in loongarch_common_resume() 50 csr_write64(eentry, LOONGARCH_CSR_MERRENTRY); in loongarch_common_resume() 51 csr_write64(tlbrentry, LOONGARCH_CSR_TLBRENTRY); in loongarch_common_resume() 53 csr_write64(saved_regs.pgd, LOONGARCH_CSR_PGDL); in loongarch_common_resume() 54 csr_write64(saved_regs.kpgd, LOONGARCH_CSR_PGDH); in loongarch_common_resume() 59 csr_write64(saved_regs.pcpu_base, PERCPU_BASE_KS); in loongarch_common_resume()
|
D | hibernate.c | 33 csr_write64(saved_pcpu_base, PERCPU_BASE_KS); in restore_processor_state()
|
/linux-6.12.1/arch/loongarch/mm/ |
D | tlb.c | 232 csr_write64(pwctl0, LOONGARCH_CSR_PWCTL0); in setup_ptwalker() 233 csr_write64(pwctl1, LOONGARCH_CSR_PWCTL1); in setup_ptwalker() 234 csr_write64((long)swapper_pg_dir, LOONGARCH_CSR_PGDH); in setup_ptwalker() 235 csr_write64((long)invalid_pg_dir, LOONGARCH_CSR_PGDL); in setup_ptwalker() 236 csr_write64((long)smp_processor_id(), LOONGARCH_CSR_TMID); in setup_ptwalker() 306 csr_write64(pcpu_handlers[cpu], LOONGARCH_CSR_EENTRY); in setup_tlb_handler() 307 csr_write64(pcpu_handlers[cpu], LOONGARCH_CSR_MERRENTRY); in setup_tlb_handler() 308 csr_write64(pcpu_handlers[cpu] + 80*VECSIZE, LOONGARCH_CSR_TLBRENTRY); in setup_tlb_handler()
|
D | kasan_init.c | 290 csr_write64(__pa_symbol(kasan_pg_dir), LOONGARCH_CSR_PGDH); in kasan_init() 327 csr_write64(__pa_symbol(swapper_pg_dir), LOONGARCH_CSR_PGDH); in kasan_init()
|
/linux-6.12.1/drivers/firmware/efi/libstub/ |
D | loongarch.c | 75 csr_write64(CSR_DMW0_INIT, LOONGARCH_CSR_DMWIN0); in efi_boot_kernel() 76 csr_write64(CSR_DMW1_INIT, LOONGARCH_CSR_DMWIN1); in efi_boot_kernel() 77 csr_write64(CSR_DMW2_INIT, LOONGARCH_CSR_DMWIN2); in efi_boot_kernel() 78 csr_write64(CSR_DMW3_INIT, LOONGARCH_CSR_DMWIN3); in efi_boot_kernel()
|
/linux-6.12.1/arch/loongarch/kernel/ |
D | time.c | 55 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_oneshot() 72 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_periodic() 87 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_shutdown() 100 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_timer_next_event() 124 csr_write64(init_offset, LOONGARCH_CSR_CNTC); in sync_counter()
|
D | traps.c | 1121 csr_write64(eentry, LOONGARCH_CSR_EENTRY); in configure_exception_vector() 1122 csr_write64(eentry, LOONGARCH_CSR_MERRENTRY); in configure_exception_vector() 1123 csr_write64(tlbrentry, LOONGARCH_CSR_TLBRENTRY); in configure_exception_vector()
|
D | hw_breakpoint.c | 223 csr_write64(CSR_CRMD_WE | enable, LOONGARCH_CSR_CRMD); in hw_breakpoint_control()
|
D | ptrace.c | 1068 csr_write64(attr.bp_addr, LOONGARCH_CSR_IB0ADDR); in set_single_step()
|
/linux-6.12.1/arch/loongarch/include/asm/ |
D | loongarch.h | 174 #define csr_write64(val, reg) __csrwr_d(val, reg) macro 1188 #define write_csr_entryhi(val) csr_write64(val, LOONGARCH_CSR_TLBEHI) 1190 #define write_csr_entrylo0(val) csr_write64(val, LOONGARCH_CSR_TLBELO0) 1192 #define write_csr_entrylo1(val) csr_write64(val, LOONGARCH_CSR_TLBELO1) 1203 #define write_csr_prcfg1(val) csr_write64(val, LOONGARCH_CSR_PRCFG1) 1205 #define write_csr_prcfg2(val) csr_write64(val, LOONGARCH_CSR_PRCFG2) 1207 #define write_csr_prcfg3(val) csr_write64(val, LOONGARCH_CSR_PRCFG3) 1214 #define write_csr_impctl1(val) csr_write64(val, LOONGARCH_CSR_IMPCTL1) 1215 #define write_csr_impctl2(val) csr_write64(val, LOONGARCH_CSR_IMPCTL2) 1225 #define write_csr_perfctrl0(val) csr_write64(val, LOONGARCH_CSR_PERFCTRL0) [all …]
|
D | kvm_csr.h | 154 #define write_csr_gtlbc(val) csr_write64(val, LOONGARCH_CSR_GTLBC) 157 #define write_csr_gcfg(val) csr_write64(val, LOONGARCH_CSR_GCFG) 159 #define write_csr_gstat(val) csr_write64(val, LOONGARCH_CSR_GSTAT) 161 #define write_csr_gintc(val) csr_write64(val, LOONGARCH_CSR_GINTC) 163 #define write_csr_gcntc(val) csr_write64(val, LOONGARCH_CSR_GCNTC)
|
D | hw_breakpoint.h | 68 csr_write64(VAL, LOONGARCH_CSR_##IB##N##REG); \ 70 csr_write64(VAL, LOONGARCH_CSR_##DB##N##REG); \
|
D | percpu.h | 30 csr_write64(off, PERCPU_BASE_KS); in set_my_cpu_offset()
|