/linux/arch/alpha/kernel/ |
H A D | sys_marvel.c | 96 ctl = &io7->csrs->PO7_LSI_CTL[irq & 0xff].csr; /* assume LSI */ in io7_get_irq_ctl() 98 ctl = &io7->csrs->PO7_MSI_CTL[((irq - 0x80) >> 5) & 0x0f].csr; in io7_get_irq_ctl() 196 val = io7->csrs->PO7_LSI_CTL[which].csr; in io7_redirect_one_lsi() 200 io7->csrs->PO7_LSI_CTL[which].csr = val; in io7_redirect_one_lsi() 202 io7->csrs->PO7_LSI_CTL[which].csr; in io7_redirect_one_lsi() 213 val = io7->csrs->PO7_MSI_CTL[which].csr; in io7_redirect_one_msi() 217 io7->csrs->PO7_MSI_CTL[which].csr = val; in io7_redirect_one_msi() 219 io7->csrs->PO7_MSI_CTL[which].csr; in io7_redirect_one_msi() 228 io7->csrs->PO7_LSI_CTL[which].csr = ((unsigned long)where << 14); in init_one_io7_lsi() 230 io7->csrs->PO7_LSI_CTL[which].csr; in init_one_io7_lsi() [all …]
|
H A D | core_marvel.c | 174 io7_ioport_csrs *csrs; in io7_clear_errors() local 182 csrs = IO7_CSRS_KERN(io7->pe, port); in io7_clear_errors() 184 csrs->POx_ERR_SUM.csr = -1UL; in io7_clear_errors() 185 csrs->POx_TLB_ERR.csr = -1UL; in io7_clear_errors() 186 csrs->POx_SPL_COMPLT.csr = -1UL; in io7_clear_errors() 187 csrs->POx_TRANS_SUM.csr = -1UL; in io7_clear_errors() 211 io7_ioport_csrs *csrs = IO7_CSRS_KERN(io7->pe, port); in io7_init_hose() local 227 io7_port->csrs = csrs; in io7_init_hose() 268 io7_port->saved_wbase[i] = csrs->POx_WBASE[i].csr; in io7_init_hose() 269 io7_port->saved_wmask[i] = csrs->POx_WMASK[i].csr; in io7_init_hose() [all …]
|
H A D | err_marvel.c | 818 err_sum |= io7->csrs->PO7_ERROR_SUM.csr; in marvel_find_io7_with_error() 822 err_sum |= io7->ports[i].csrs->POx_ERR_SUM.csr; in marvel_find_io7_with_error() 843 io->io_asic_rev = io7->csrs->IO_ASIC_REV.csr; in marvel_find_io7_with_error() 844 io->io_sys_rev = io7->csrs->IO_SYS_REV.csr; in marvel_find_io7_with_error() 845 io->io7_uph = io7->csrs->IO7_UPH.csr; in marvel_find_io7_with_error() 846 io->hpi_ctl = io7->csrs->HPI_CTL.csr; in marvel_find_io7_with_error() 847 io->crd_ctl = io7->csrs->CRD_CTL.csr; in marvel_find_io7_with_error() 848 io->hei_ctl = io7->csrs->HEI_CTL.csr; in marvel_find_io7_with_error() 849 io->po7_error_sum = io7->csrs->PO7_ERROR_SUM.csr; in marvel_find_io7_with_error() 850 io->po7_uncrr_sym = io7->csrs->PO7_UNCRR_SYM.csr; in marvel_find_io7_with_error() [all …]
|
/linux/arch/loongarch/include/asm/ |
H A D | kvm_csr.h | 47 /* Guest CSRS read and write */ 152 /* Guest related CSRs */ 182 #define kvm_save_hw_gcsr(csr, gid) (csr->csrs[gid] = gcsr_read(gid)) 183 #define kvm_restore_hw_gcsr(csr, gid) (gcsr_write(csr->csrs[gid], gid)) 185 #define kvm_read_clear_hw_gcsr(csr, gid) (csr->csrs[gid] = gcsr_write(0, gid)) 191 return csr->csrs[gid]; in kvm_read_sw_gcsr() 196 csr->csrs[gid] = val; in kvm_write_sw_gcsr() 202 csr->csrs[gid] |= val; in kvm_set_sw_gcsr() 210 csr->csrs[gid] &= ~_mask; in kvm_change_sw_gcsr() 211 csr->csrs[gid] |= val & _mask; in kvm_change_sw_gcsr()
|
/linux/arch/alpha/include/asm/ |
H A D | core_t2.h | 60 /* The CSRs below are T3/T4 only */ 87 /* T2 CSRs are in the non-cachable primary IO space from 3.8000.0000 to 91 * | CPU 0 CSRs | 93 * | CPU 1 CSRs | 95 * | CPU 2 CSRs | 97 * | CPU 3 CSRs | 103 * | Mem 0 CSRs | 105 * | Mem 1 CSRs | 107 * | Mem 2 CSRs | 109 * | Mem 3 CSRs | [all …]
|
/linux/Documentation/devicetree/bindings/net/pcs/ |
H A D | snps,dw-xpcs.yaml | 21 The PCS CSRs can be accessible either over the Ethernet MDIO bus or directly 49 of the MDIO bus device. If DW XPCS CSRs space is accessed over the 57 so the corresponding subset would be mapped to the lowest 255 CSRs. 65 The way the CSRs are mapped to the memory is platform depended. Since
|
/linux/Documentation/devicetree/bindings/pci/ |
H A D | snps,dw-pcie-ep.yaml | 47 with all spaces. Note iATU/eDMA CSRs are indirectly accessible 73 set of viewport CSRs mapped into the PL space. Note iATU is 79 CSRs mapped in a non-standard base address. The registers offset 86 PCS and PHY CSRs accessible over a dedicated memory mapped
|
/linux/include/linux/ |
H A D | litex.h | 4 * helper functions for accessing CSRs. 34 * means that only larger-than-32-bit CSRs will be split across multiple
|
/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp_arm.h | 145 /* Gasket CSRs */ 151 /* BAR CSRs 210 /* MP Core CSRs */ 213 /* PL320 CSRs */
|
/linux/arch/riscv/kernel/ |
H A D | fpu.S | 26 csrs CSR_STATUS, t1 70 csrs CSR_STATUS, t1 127 csrs CSR_STATUS, t1
|
H A D | suspend_entry.S | 45 /* Save CSRs */ 84 /* Restore CSRs */
|
H A D | suspend.c | 62 /* Save additional CSRs*/ in cpu_suspend() 90 /* Restore additional CSRs */ in cpu_suspend()
|
H A D | head.S | 401 csrs CSR_STATUS, t1 451 csrs CSR_STATUS, t1 452 csrs CSR_VCSR, x0
|
/linux/Documentation/devicetree/bindings/interrupt-controller/ |
H A D | riscv,cpu-intc.yaml | 10 RISC-V cores include Control Status Registers (CSRs) which are local to 12 software. Some of these CSRs are used to control local interrupts connected
|
/linux/tools/arch/riscv/include/asm/ |
H A D | csr.h | 309 /* Supervisor-Level High-Half CSRs (AIA) */ 356 /* Hypervisor and VS-Level High-Half CSRs (H-extension with AIA) */ 365 /* Hypervisor stateen CSRs */ 400 /* Machine-Level High-Half CSRs (AIA) */ 517 __asm__ __volatile__ ("csrs " __ASM_STR(csr) ", %0" \
|
/linux/arch/riscv/include/asm/ |
H A D | csr.h | 326 /* Supervisor-Level High-Half CSRs (AIA) */ 373 /* Hypervisor and VS-Level High-Half CSRs (H-extension with AIA) */ 382 /* Hypervisor stateen CSRs */ 419 /* Machine-Level High-Half CSRs (AIA) */ 541 __asm__ __volatile__ ("csrs " __ASM_STR(csr) ", %0" \
|
/linux/arch/riscv/kvm/ |
H A D | vcpu.c | 94 /* Reset the guest CSRs for hotplug usecase */ in kvm_riscv_reset_vcpu() 129 /* Setup reset state of shadow SSTATUS and HSTATUS CSRs */ in kvm_arch_vcpu_create() 370 /* Read current HVIP and VSIE CSRs */ in kvm_riscv_vcpu_sync_interrupts() 397 /* Sync-up timer CSRs */ in kvm_riscv_vcpu_sync_interrupts() 779 * We save trap CSRs (such as SEPC, SCAUSE, STVAL, HTVAL, and in kvm_riscv_vcpu_enter_exit() 783 * potentially change trap CSRs. in kvm_riscv_vcpu_enter_exit()
|
/linux/drivers/pci/controller/dwc/ |
H A D | pcie-designware.h | 149 * iATU inbound and outbound windows CSRs. Before the IP-core v4.80a each 150 * iATU region CSRs had been indirectly accessible by means of the dedicated 151 * viewport selector. The iATU/eDMA CSRs space was re-designed in DWC PCIe 153 * iATU/eDMA CSRs space. 193 * eDMA CSRs. DW PCIe IP-core v4.70a and older had the eDMA registers accessible
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | lmac_common.h | 57 /* Features like RXSTAT, TXSTAT, DMAC FILTER csrs differs by fixed 158 /* Lock to serialize read/write of global csrs like
|
/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | io.h | 22 * Many CSRs are very wide and cannot be read or written atomically. 30 * Writes to different CSRs and 64-bit SRAM words must be serialised, 34 * We also serialise reads from 128-bit CSRs and SRAM with the same
|
/linux/drivers/tty/serial/ |
H A D | liteuart.c | 23 * CSRs definitions (base address offsets + width) 29 * generic way of indexing the LiteX CSRs. 31 * For more details on how CSRs are defined and handled in LiteX, see comments
|
/linux/drivers/char/hw_random/ |
H A D | cn10k-rng.c | 17 /* CSRs */ 191 return dev_err_probe(&pdev->dev, -ENOMEM, "Error while mapping CSRs, exiting\n"); in cn10k_rng_probe()
|
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | io.h | 22 * Many CSRs are very wide and cannot be read or written atomically. 30 * Writes to different CSRs and 64-bit SRAM words must be serialised, 34 * We also serialise reads from 128-bit CSRs and SRAM with the same
|
/linux/Documentation/devicetree/bindings/soc/litex/ |
H A D | litex,soc-controller.yaml | 13 operations and provide functions for other drivers to read/write CSRs
|
/linux/arch/riscv/lib/ |
H A D | uaccess.S | 26 csrs CSR_STATUS, t6 203 csrs CSR_STATUS, t6
|