Home
last modified time | relevance | path

Searched refs:csr_write64 (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/arch/loongarch/power/
Dsuspend.c47 csr_write64(per_cpu_offset(0), PERCPU_BASE_KS); in loongarch_common_resume()
48 csr_write64(eentry, LOONGARCH_CSR_EENTRY); in loongarch_common_resume()
49 csr_write64(eentry, LOONGARCH_CSR_MERRENTRY); in loongarch_common_resume()
50 csr_write64(tlbrentry, LOONGARCH_CSR_TLBRENTRY); in loongarch_common_resume()
52 csr_write64(saved_regs.pgd, LOONGARCH_CSR_PGDL); in loongarch_common_resume()
53 csr_write64(saved_regs.kpgd, LOONGARCH_CSR_PGDH); in loongarch_common_resume()
Dhibernate.c33 csr_write64(saved_pcpu_base, PERCPU_BASE_KS); in restore_processor_state()
/linux-6.6.21/arch/loongarch/mm/
Dtlb.c231 csr_write64(pwctl0, LOONGARCH_CSR_PWCTL0); in setup_ptwalker()
232 csr_write64(pwctl1, LOONGARCH_CSR_PWCTL1); in setup_ptwalker()
233 csr_write64((long)swapper_pg_dir, LOONGARCH_CSR_PGDH); in setup_ptwalker()
234 csr_write64((long)invalid_pg_dir, LOONGARCH_CSR_PGDL); in setup_ptwalker()
235 csr_write64((long)smp_processor_id(), LOONGARCH_CSR_TMID); in setup_ptwalker()
309 csr_write64(pcpu_handlers[cpu], LOONGARCH_CSR_EENTRY); in setup_tlb_handler()
310 csr_write64(pcpu_handlers[cpu], LOONGARCH_CSR_MERRENTRY); in setup_tlb_handler()
311 csr_write64(pcpu_handlers[cpu] + 80*VECSIZE, LOONGARCH_CSR_TLBRENTRY); in setup_tlb_handler()
Dkasan_init.c254 csr_write64(__pa_symbol(kasan_pg_dir), LOONGARCH_CSR_PGDH); in kasan_init()
291 csr_write64(__pa_symbol(swapper_pg_dir), LOONGARCH_CSR_PGDH); in kasan_init()
/linux-6.6.21/arch/loongarch/kernel/
Dtime.c54 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_oneshot()
71 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_periodic()
86 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_shutdown()
99 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_timer_next_event()
123 csr_write64(init_offset, LOONGARCH_CSR_CNTC); in sync_counter()
Dtraps.c1090 csr_write64(eentry, LOONGARCH_CSR_EENTRY); in configure_exception_vector()
1091 csr_write64(eentry, LOONGARCH_CSR_MERRENTRY); in configure_exception_vector()
1092 csr_write64(tlbrentry, LOONGARCH_CSR_TLBRENTRY); in configure_exception_vector()
Dhw_breakpoint.c213 csr_write64(CSR_CRMD_WE | enable, LOONGARCH_CSR_CRMD); in hw_breakpoint_control()
Dptrace.c1058 csr_write64(attr.bp_addr, LOONGARCH_CSR_IB0ADDR); in set_single_step()
/linux-6.6.21/arch/loongarch/include/asm/
Dloongarch.h167 #define csr_write64(val, reg) __csrwr_d(val, reg) macro
1153 #define write_csr_entryhi(val) csr_write64(val, LOONGARCH_CSR_TLBEHI)
1155 #define write_csr_entrylo0(val) csr_write64(val, LOONGARCH_CSR_TLBELO0)
1157 #define write_csr_entrylo1(val) csr_write64(val, LOONGARCH_CSR_TLBELO1)
1168 #define write_csr_prcfg1(val) csr_write64(val, LOONGARCH_CSR_PRCFG1)
1170 #define write_csr_prcfg2(val) csr_write64(val, LOONGARCH_CSR_PRCFG2)
1172 #define write_csr_prcfg3(val) csr_write64(val, LOONGARCH_CSR_PRCFG3)
1179 #define write_csr_impctl1(val) csr_write64(val, LOONGARCH_CSR_IMPCTL1)
1180 #define write_csr_impctl2(val) csr_write64(val, LOONGARCH_CSR_IMPCTL2)
1190 #define write_csr_perfctrl0(val) csr_write64(val, LOONGARCH_CSR_PERFCTRL0)
[all …]
Dhw_breakpoint.h68 csr_write64(VAL, LOONGARCH_CSR_##IB##N##REG); \
70 csr_write64(VAL, LOONGARCH_CSR_##DB##N##REG); \
Dmmu_context.h89 csr_write64((unsigned long)next->pgd, LOONGARCH_CSR_PGDL); in switch_mm_irqs_off()
91 csr_write64((unsigned long)invalid_pg_dir, LOONGARCH_CSR_PGDL); in switch_mm_irqs_off()
Dpercpu.h30 csr_write64(off, PERCPU_BASE_KS); in set_my_cpu_offset()
/linux-6.6.21/drivers/firmware/efi/libstub/
Dloongarch.c73 csr_write64(CSR_DMW0_INIT, LOONGARCH_CSR_DMWIN0); in efi_boot_kernel()
74 csr_write64(CSR_DMW1_INIT, LOONGARCH_CSR_DMWIN1); in efi_boot_kernel()