Home
last modified time | relevance | path

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

/openbmc/linux/arch/loongarch/power/
H A 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()
H A Dhibernate.c33 csr_write64(saved_pcpu_base, PERCPU_BASE_KS); in restore_processor_state()
/openbmc/linux/arch/loongarch/mm/
H A 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()
H A 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()
/openbmc/linux/arch/loongarch/kernel/
H A 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()
H A Dtraps.c1095 csr_write64(eentry, LOONGARCH_CSR_EENTRY); in configure_exception_vector()
1096 csr_write64(eentry, LOONGARCH_CSR_MERRENTRY); in configure_exception_vector()
1097 csr_write64(tlbrentry, LOONGARCH_CSR_TLBRENTRY); in configure_exception_vector()
H A Dhw_breakpoint.c223 csr_write64(CSR_CRMD_WE | enable, LOONGARCH_CSR_CRMD); in hw_breakpoint_control()
H A Dptrace.c1068 csr_write64(attr.bp_addr, LOONGARCH_CSR_IB0ADDR); in set_single_step()
/openbmc/linux/arch/loongarch/include/asm/
H A 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 …]
H A Dhw_breakpoint.h68 csr_write64(VAL, LOONGARCH_CSR_##IB##N##REG); \
70 csr_write64(VAL, LOONGARCH_CSR_##DB##N##REG); \
H A 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()
H A Dpercpu.h30 csr_write64(off, PERCPU_BASE_KS); in set_my_cpu_offset()
/openbmc/linux/drivers/firmware/efi/libstub/
H A Dloongarch.c75 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()