Home
last modified time | relevance | path

Searched refs:read_csr (Results 1 – 25 of 26) sorted by relevance

12

/device/soc/hpmicro/sdk/hpm_sdk/drivers/src/
Dhpm_pmp_drv.c16 pmp_cfg = read_csr(CSR_PMPCFG0); in read_pmp_cfg()
19 pmp_cfg = read_csr(CSR_PMPCFG1); in read_pmp_cfg()
22 pmp_cfg = read_csr(CSR_PMPCFG2); in read_pmp_cfg()
25 pmp_cfg = read_csr(CSR_PMPCFG3); in read_pmp_cfg()
39 pma_cfg = read_csr(CSR_PMACFG0); in read_pma_cfg()
42 pma_cfg = read_csr(CSR_PMACFG1); in read_pma_cfg()
45 pma_cfg = read_csr(CSR_PMACFG2); in read_pma_cfg()
48 pma_cfg = read_csr(CSR_PMACFG3); in read_pma_cfg()
218 ret_val = read_csr(CSR_PMPADDR0); in read_pmp_addr()
221 ret_val = read_csr(CSR_PMPADDR1); in read_pmp_addr()
[all …]
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/arch/riscv/
Dpmp.c130 …write_csr(NDS_PMPCFG0, ((read_csr(NDS_PMPCFG0) & (~(0xFFLL << ((long)(entry%8) << 3)))) | (((long)… in pmp_tor_config()
133 …write_csr(NDS_PMPCFG2, ((read_csr(NDS_PMPCFG2) & (~(0xFFLL << ((long)(entry%8) << 3)))) | (((long)… in pmp_tor_config()
139 …write_csr(NDS_PMPCFG0, ((read_csr(NDS_PMPCFG0) & (~((0xFF) << ((entry%4) << 3)))) | (((long)pmpcfg… in pmp_tor_config()
142 …write_csr(NDS_PMPCFG1, ((read_csr(NDS_PMPCFG1) & (~((0xFF) << ((entry%4) << 3)))) | (((long)pmpcfg… in pmp_tor_config()
145 …write_csr(NDS_PMPCFG2, ((read_csr(NDS_PMPCFG2) & (~((0xFF) << ((entry%4) << 3)))) | (((long)pmpcfg… in pmp_tor_config()
148 …write_csr(NDS_PMPCFG3, ((read_csr(NDS_PMPCFG3) & (~((0xFF) << ((entry%4) << 3)))) | (((long)pmpcfg… in pmp_tor_config()
210 …write_csr(NDS_PMPCFG0, ((read_csr(NDS_PMPCFG0) & (~(0xFFLL << ((long)(entry%8) << 3)))) | (((long)… in pmp_napot_config()
213 …write_csr(NDS_PMPCFG2, ((read_csr(NDS_PMPCFG2) & (~(0xFFLL << ((long)(entry%8) << 3)))) | (((long)… in pmp_napot_config()
219 …write_csr(NDS_PMPCFG0, ((read_csr(NDS_PMPCFG0) & (~((0xFF) << ((entry%4) << 3)))) | (((long)pmpcfg… in pmp_napot_config()
222 …write_csr(NDS_PMPCFG1, ((read_csr(NDS_PMPCFG1) & (~((0xFF) << ((entry%4) << 3)))) | (((long)pmpcfg… in pmp_napot_config()
[all …]
Dcache.c186 if (read_csr(NDS_MMSC_CFG) & CCTLCSR_MSK) { in show_cache_config_info()
189 if (read_csr(NDS_MMSC_CFG) & VCCTL_MSK) { in show_cache_config_info()
204 icm_cfg = read_csr(NDS_MICM_CFG); in show_cache_config_info()
234 dcm_cfg = read_csr(NDS_MDCM_CFG); in show_cache_config_info()
263 if (read_csr(NDS_MCACHE_CTL) & 0x1) { in show_cache_config_info()
267 if (read_csr(NDS_MCACHE_CTL) & 0x2) { in show_cache_config_info()
271 if (!(read_csr(NDS_MCACHE_CTL) & 0x3)) { in show_cache_config_info()
282 if(read_csr(NDS_MMSC_CFG) & CCTLCSR_MSK) { in flush_dcache()
285 dsize = (unsigned int)(1 << (((read_csr(NDS_MDCM_CFG) & DSIZE_MSK) >> 6) + 2)); in flush_dcache()
288 if ((read_csr(NDS_MMSC_CFG) & VCCTL_MSK)) { in flush_dcache()
[all …]
Dtrap_base.c238 BK_DUMP_OUT("838 mtvec x 0x%lx\r\n", read_csr(NDS_MTVEC)); in arch_dump_cpu_registers()
239 BK_DUMP_OUT("897 mscratch x 0x%lx\r\n", read_csr(NDS_MSCRATCH)); in arch_dump_cpu_registers()
242 BK_DUMP_OUT("900 mtval x 0x%lx\r\n", read_csr(NDS_MTVAL)); in arch_dump_cpu_registers()
243 BK_DUMP_OUT("2058 mdcause x 0x%lx\r\n", read_csr(NDS_MDCAUSE)); in arch_dump_cpu_registers()
Driscv.c101 if (read_csr(NDS_MMISC_CTL) & (1 << 1)) { in system_init()
/device/soc/hpmicro/sdk/hpm_sdk/soc/HPM6360/toolchains/
Dtrap.c109 long mcause = read_csr(CSR_MCAUSE); in irq_handler_trap()
110 long mepc = read_csr(CSR_MEPC); in irq_handler_trap()
111 long mstatus = read_csr(CSR_MSTATUS); in irq_handler_trap()
113 long mxstatus = read_csr(CSR_MXSTATUS); in irq_handler_trap()
116 int ucode = read_csr(CSR_UCODE); in irq_handler_trap()
197 long scause = read_csr(CSR_SCAUSE); in irq_handler_s_trap()
198 long sepc = read_csr(CSR_SEPC); in irq_handler_s_trap()
199 long sstatus = read_csr(CSR_SSTATUS); in irq_handler_s_trap()
/device/soc/hpmicro/sdk/hpm_sdk/soc/HPM6750/toolchains/
Dtrap.c98 long mcause = read_csr(CSR_MCAUSE); in irq_handler_trap()
99 long mepc = read_csr(CSR_MEPC); in irq_handler_trap()
100 long mstatus = read_csr(CSR_MSTATUS); in irq_handler_trap()
102 long mxstatus = read_csr(CSR_MXSTATUS); in irq_handler_trap()
105 int ucode = read_csr(CSR_UCODE); in irq_handler_trap()
/device/soc/telink/b91/b91_ble_sdk/drivers/B91/
Dcore.h23 #define read_csr(reg) __nds__csrr(reg) macro
33 #define save_csr(r) long __##r = read_csr(r)
63 unsigned int r = read_csr(NDS_MIE); in core_interrupt_disable()
/device/soc/hpmicro/sdk/hpm_sdk/soc/HPM6750/
Dhpm_l1c_drv.h222 return read_csr(CSR_MCACHE_CTL); in l1c_get_control()
263 return read_csr(CSR_MCCTLBEGINADDR); in l1c_cctl_get_address()
323 *ecc_data = read_csr(CSR_MECC_CODE); in l1c_cctl_address_cmd_read()
324 return read_csr(CSR_MCCTLDATA); in l1c_cctl_address_cmd_read()
381 return read_csr(CSR_MICM_CFG); in l1c_ic_get_config()
391 return read_csr(CSR_MDCM_CFG); in l1c_dc_get_config()
Dhpm_clock_drv.c479 uint32_t resultl_first = read_csr(CSR_CYCLE); in get_core_mcycle()
480 uint32_t resulth = read_csr(CSR_CYCLEH); in get_core_mcycle()
481 uint32_t resultl_second = read_csr(CSR_CYCLE); in get_core_mcycle()
485 resulth = read_csr(CSR_CYCLEH); in get_core_mcycle()
509 uint32_t hart_id = read_csr(CSR_MHARTID); in clock_update_core_clock()
Dsystem.c36 uint32_t mcounteren = read_csr(CSR_MCOUNTEREN); in system_init()
Dhpm_l1c_drv.c27 if ((read_csr(CSR_MMSC_CFG) & CCTL_VERSION)) { in l1c_op()
Dhpm_interrupt.h297 #define SAVE_CSR(r) register long __##r = read_csr(r);
/device/soc/hpmicro/sdk/hpm_sdk/soc/HPM6360/
Dhpm_l1c_drv.h222 return read_csr(CSR_MCACHE_CTL); in l1c_get_control()
263 return read_csr(CSR_MCCTLBEGINADDR); in l1c_cctl_get_address()
323 *ecc_data = read_csr(CSR_MECC_CODE); in l1c_cctl_address_cmd_read()
324 return read_csr(CSR_MCCTLDATA); in l1c_cctl_address_cmd_read()
381 return read_csr(CSR_MICM_CFG); in l1c_ic_get_config()
391 return read_csr(CSR_MDCM_CFG); in l1c_dc_get_config()
Dhpm_clock_drv.c529 uint32_t resultl_first = read_csr(CSR_CYCLE); in get_core_mcycle()
530 uint32_t resulth = read_csr(CSR_CYCLEH); in get_core_mcycle()
531 uint32_t resultl_second = read_csr(CSR_CYCLE); in get_core_mcycle()
535 resulth = read_csr(CSR_MCYCLEH); in get_core_mcycle()
Dsystem.c30 uint32_t mcounteren = read_csr(CSR_MCOUNTEREN); in system_init()
Dhpm_l1c_drv.c27 if ((read_csr(CSR_MMSC_CFG) & CCTL_VERSION)) { in l1c_op()
Dhpm_interrupt.h492 #define SAVE_CSR(r) register long __##r = read_csr(r);
/device/soc/hpmicro/sdk/hpm_sdk/arch/riscv/
Driscv_core.h55 #define read_csr(csr_num) ({ uint32_t v; __asm volatile("csrr %0, %1" : "=r"(v) : "i"(csr_num)); v;… macro
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/bk_os/liteos_m_mst/
Dport.c119 uxSavedStatusValue = read_csr(NDS_MIE); in port_disable_mie_flag()
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/arch/riscv/include/
Dcore_v5.h137 #define read_csr(reg) __nds__csrr(reg) macro
Darch_interrupt.h85 #define SAVE_CSR(r) long __##r = read_csr(r);
/device/soc/hpmicro/sdk/hpm_sdk/components/dma_manager/
Dhpm_dma_manager.c107 uint32_t level = read_csr(CSR_MSTATUS); in dma_manager_enter_critical()
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/include/
Dwlioctl.h20480 uint32 read_csr; /* Read Back CSR */ member
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
Dwlioctl.h19870 uint32 read_csr; /* Read Back CSR */ member

12