/Linux-v5.15/drivers/char/hw_random/ |
D | xgene-rng.c | 80 void __iomem *csr_base; member 112 writel(fro_val, ctx->csr_base + RNG_FRODETUNE); in xgene_rng_init_fro() 113 writel(0x00000000, ctx->csr_base + RNG_ALARMMASK); in xgene_rng_init_fro() 114 writel(0x00000000, ctx->csr_base + RNG_ALARMSTOP); in xgene_rng_init_fro() 115 writel(0xFFFFFFFF, ctx->csr_base + RNG_FROENABLE); in xgene_rng_init_fro() 122 val = readl(ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_chk_overflow() 168 frostopped = readl(ctx->csr_base + RNG_ALARMSTOP); in xgene_rng_chk_overflow() 193 frostopped = readl(ctx->csr_base + RNG_ALARMSTOP); in xgene_rng_chk_overflow() 198 writel(val, ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_chk_overflow() 217 val = readl(ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_data_present() [all …]
|
/Linux-v5.15/drivers/rtc/ |
D | rtc-xgene.c | 37 void __iomem *csr_base; member 47 rtc_time64_to_tm(readl(pdata->csr_base + RTC_CCVR), tm); in xgene_rtc_read_time() 59 writel((u32)rtc_tm_to_time64(tm), pdata->csr_base + RTC_CLR); in xgene_rtc_set_time() 60 readl(pdata->csr_base + RTC_CLR); /* Force a barrier */ in xgene_rtc_set_time() 71 alrm->enabled = readl(pdata->csr_base + RTC_CCR) & RTC_CCR_IE; in xgene_rtc_read_alarm() 81 ccr = readl(pdata->csr_base + RTC_CCR); in xgene_rtc_alarm_irq_enable() 89 writel(ccr, pdata->csr_base + RTC_CCR); in xgene_rtc_alarm_irq_enable() 98 return readl(pdata->csr_base + RTC_CCR) & RTC_CCR_IE ? 1 : 0; in xgene_rtc_alarm_irq_enabled() 105 writel((u32)rtc_tm_to_time64(&alrm->time), pdata->csr_base + RTC_CMR); in xgene_rtc_set_alarm() 125 if (!(readl(pdata->csr_base + RTC_STAT) & RTC_STAT_BIT)) in xgene_rtc_interrupt() [all …]
|
/Linux-v5.15/drivers/mtd/maps/ |
D | intel_vr_nor.c | 43 void __iomem *csr_base; member 103 exp_timing_cs0 = readl(p->csr_base + EXP_TIMING_CS0); in vr_nor_destroy_maps() 105 writel(exp_timing_cs0, p->csr_base + EXP_TIMING_CS0); in vr_nor_destroy_maps() 111 iounmap(p->csr_base); in vr_nor_destroy_maps() 136 p->csr_base = ioremap(csr_phys, csr_len); in vr_nor_init_maps() 137 if (!p->csr_base) in vr_nor_init_maps() 140 exp_timing_cs0 = readl(p->csr_base + EXP_TIMING_CS0); in vr_nor_init_maps() 164 writel(exp_timing_cs0, p->csr_base + EXP_TIMING_CS0); in vr_nor_init_maps() 169 iounmap(p->csr_base); in vr_nor_init_maps() 232 exp_timing_cs0 = readl(p->csr_base + EXP_TIMING_CS0); in vr_nor_pci_probe() [all …]
|
/Linux-v5.15/drivers/mtd/nand/raw/ |
D | denali_pci.c | 32 resource_size_t csr_base, mem_base; in denali_pci_probe() local 51 csr_base = pci_resource_start(dev, 1); in denali_pci_probe() 54 csr_base = pci_resource_start(dev, 0); in denali_pci_probe() 59 mem_base = csr_base + csr_len; in denali_pci_probe() 77 denali->reg = ioremap(csr_base, csr_len); in denali_pci_probe()
|
/Linux-v5.15/drivers/pci/controller/ |
D | pcie-altera-msi.c | 34 void __iomem *csr_base; member 44 writel_relaxed(value, msi->csr_base + reg); in msi_writel() 49 return readl_relaxed(msi->csr_base + reg); in msi_readl() 228 msi->csr_base = devm_platform_ioremap_resource_byname(pdev, "csr"); in altera_msi_probe() 229 if (IS_ERR(msi->csr_base)) { in altera_msi_probe() 231 return PTR_ERR(msi->csr_base); in altera_msi_probe()
|
D | pci-xgene.c | 68 void __iomem *csr_base; member 77 return readl(port->csr_base + reg); in xgene_pcie_readl() 82 writel(val, port->csr_base + reg); in xgene_pcie_writel() 244 port->csr_base = devm_pci_remap_cfg_resource(dev, &csr); in xgene_pcie_ecam_init() 245 if (IS_ERR(port->csr_base)) in xgene_pcie_ecam_init() 246 return PTR_ERR(port->csr_base); in xgene_pcie_ecam_init() 353 port->csr_base = devm_pci_remap_cfg_resource(dev, res); in xgene_pcie_map_reg() 354 if (IS_ERR(port->csr_base)) in xgene_pcie_map_reg() 355 return PTR_ERR(port->csr_base); in xgene_pcie_map_reg()
|
/Linux-v5.15/arch/ia64/kernel/ |
D | acpi-ext.c | 91 acpi_status hp_acpi_csr_space(acpi_handle obj, u64 *csr_base, u64 *csr_length) in hp_acpi_csr_space() argument 95 status = hp_ccsr_locate(obj, csr_base, csr_length); in hp_acpi_csr_space() 99 return hp_crs_locate(obj, csr_base, csr_length); in hp_acpi_csr_space()
|
/Linux-v5.15/drivers/net/mdio/ |
D | mdio-xgene.c | 332 void __iomem *csr_base; in xgene_mdio_probe() local 357 csr_base = devm_platform_ioremap_resource(pdev, 0); in xgene_mdio_probe() 358 if (IS_ERR(csr_base)) in xgene_mdio_probe() 359 return PTR_ERR(csr_base); in xgene_mdio_probe() 360 pdata->mac_csr_addr = csr_base; in xgene_mdio_probe() 361 pdata->mdio_csr_addr = csr_base + BLOCK_XG_MDIO_CSR_OFFSET; in xgene_mdio_probe() 362 pdata->diag_csr_addr = csr_base + BLOCK_DIAG_CSR_OFFSET; in xgene_mdio_probe()
|
/Linux-v5.15/drivers/ata/ |
D | sata_fsl.c | 282 void __iomem *csr_base; member 353 void __iomem *csr_base = host_priv->csr_base; in fsl_sata_rx_watermark_show() local 356 rx_watermark = ioread32(csr_base + TRANSCFG); in fsl_sata_rx_watermark_show() 371 void __iomem *csr_base = host_priv->csr_base; in fsl_sata_rx_watermark_store() local 380 temp = ioread32(csr_base + TRANSCFG); in fsl_sata_rx_watermark_store() 382 iowrite32(temp | rx_watermark, csr_base + TRANSCFG); in fsl_sata_rx_watermark_store() 579 ioread32(COMMANDSTAT + host_priv->csr_base)); in sata_fsl_qc_issue() 657 ioread32(host_priv->csr_base + COMMANDSTAT)); in sata_fsl_freeze() 1447 void __iomem *csr_base = NULL; in sata_fsl_probe() local 1463 csr_base = hcr_base + 0x140; in sata_fsl_probe() [all …]
|
/Linux-v5.15/drivers/net/wan/lmc/ |
D | lmc_main.c | 95 static void lmc_initcsrs(lmc_softc_t * const sc, lmc_csrptr_t csr_base, size_t csr_size); 1939 static void lmc_initcsrs(lmc_softc_t * const sc, lmc_csrptr_t csr_base, /*fold00*/ in lmc_initcsrs() argument 1942 sc->lmc_csrs.csr_busmode = csr_base + 0 * csr_size; in lmc_initcsrs() 1943 sc->lmc_csrs.csr_txpoll = csr_base + 1 * csr_size; in lmc_initcsrs() 1944 sc->lmc_csrs.csr_rxpoll = csr_base + 2 * csr_size; in lmc_initcsrs() 1945 sc->lmc_csrs.csr_rxlist = csr_base + 3 * csr_size; in lmc_initcsrs() 1946 sc->lmc_csrs.csr_txlist = csr_base + 4 * csr_size; in lmc_initcsrs() 1947 sc->lmc_csrs.csr_status = csr_base + 5 * csr_size; in lmc_initcsrs() 1948 sc->lmc_csrs.csr_command = csr_base + 6 * csr_size; in lmc_initcsrs() 1949 sc->lmc_csrs.csr_intr = csr_base + 7 * csr_size; in lmc_initcsrs() [all …]
|
/Linux-v5.15/drivers/crypto/qat/qat_common/ |
D | adf_accel_devices.h | 201 #define ADF_CSR_WR(csr_base, csr_offset, val) \ argument 202 __raw_writel(val, csr_base + csr_offset) 205 #define ADF_CSR_RD(csr_base, csr_offset) __raw_readl(csr_base + csr_offset) argument
|
/Linux-v5.15/drivers/phy/ |
D | phy-xgene.c | 550 static void sds_wr(void __iomem *csr_base, u32 indirect_cmd_reg, in sds_wr() argument 559 writel(data, csr_base + indirect_data_reg); in sds_wr() 560 readl(csr_base + indirect_data_reg); /* Force a barrier */ in sds_wr() 561 writel(cmd, csr_base + indirect_cmd_reg); in sds_wr() 562 readl(csr_base + indirect_cmd_reg); /* Force a barrier */ in sds_wr() 564 val = readl(csr_base + indirect_cmd_reg); in sds_wr() 569 csr_base + indirect_cmd_reg, addr, data); in sds_wr() 572 static void sds_rd(void __iomem *csr_base, u32 indirect_cmd_reg, in sds_rd() argument 581 writel(cmd, csr_base + indirect_cmd_reg); in sds_rd() 582 readl(csr_base + indirect_cmd_reg); /* Force a barrier */ in sds_rd() [all …]
|