Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/char/hw_random/
Dxgene-rng.c80 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.10/drivers/rtc/
Drtc-xgene.c37 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.10/drivers/mtd/maps/
Dintel_vr_nor.c43 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.10/drivers/mtd/nand/raw/
Ddenali_pci.c32 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.10/drivers/pci/controller/
Dpcie-altera-msi.c34 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()
231 msi->csr_base = devm_platform_ioremap_resource_byname(pdev, "csr"); in altera_msi_probe()
232 if (IS_ERR(msi->csr_base)) { in altera_msi_probe()
234 return PTR_ERR(msi->csr_base); in altera_msi_probe()
Dpci-xgene.c68 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()
243 port->csr_base = devm_pci_remap_cfg_resource(dev, &csr); in xgene_pcie_ecam_init()
244 if (IS_ERR(port->csr_base)) in xgene_pcie_ecam_init()
245 return PTR_ERR(port->csr_base); in xgene_pcie_ecam_init()
354 port->csr_base = devm_pci_remap_cfg_resource(dev, res); in xgene_pcie_map_reg()
355 if (IS_ERR(port->csr_base)) in xgene_pcie_map_reg()
356 return PTR_ERR(port->csr_base); in xgene_pcie_map_reg()
/Linux-v5.10/arch/ia64/kernel/
Dacpi-ext.c91 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.10/drivers/crypto/qat/qat_common/
Dadf_accel_devices.h148 #define ADF_CSR_WR(csr_base, csr_offset, val) \ argument
149 __raw_writel(val, csr_base + csr_offset)
152 #define ADF_CSR_RD(csr_base, csr_offset) __raw_readl(csr_base + csr_offset) argument
/Linux-v5.10/drivers/net/mdio/
Dmdio-xgene.c332 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.10/drivers/ata/
Dsata_fsl.c282 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.10/drivers/net/wan/lmc/
Dlmc_main.c95 static void lmc_initcsrs(lmc_softc_t * const sc, lmc_csrptr_t csr_base, size_t csr_size);
1943 static void lmc_initcsrs(lmc_softc_t * const sc, lmc_csrptr_t csr_base, /*fold00*/ in lmc_initcsrs() argument
1946 sc->lmc_csrs.csr_busmode = csr_base + 0 * csr_size; in lmc_initcsrs()
1947 sc->lmc_csrs.csr_txpoll = csr_base + 1 * csr_size; in lmc_initcsrs()
1948 sc->lmc_csrs.csr_rxpoll = csr_base + 2 * csr_size; in lmc_initcsrs()
1949 sc->lmc_csrs.csr_rxlist = csr_base + 3 * csr_size; in lmc_initcsrs()
1950 sc->lmc_csrs.csr_txlist = csr_base + 4 * csr_size; in lmc_initcsrs()
1951 sc->lmc_csrs.csr_status = csr_base + 5 * csr_size; in lmc_initcsrs()
1952 sc->lmc_csrs.csr_command = csr_base + 6 * csr_size; in lmc_initcsrs()
1953 sc->lmc_csrs.csr_intr = csr_base + 7 * csr_size; in lmc_initcsrs()
[all …]
/Linux-v5.10/drivers/phy/
Dphy-xgene.c550 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 …]
/Linux-v5.10/drivers/block/
Dumem.c794 unsigned long csr_base; in mm_pci_probe() local
811 csr_base = pci_resource_start(dev, 0); in mm_pci_probe()
813 if (!csr_base || !csr_len) in mm_pci_probe()
832 card->csr_remap = ioremap(csr_base, csr_len); in mm_pci_probe()
843 csr_base, card->csr_remap, csr_len); in mm_pci_probe()