Home
last modified time | relevance | path

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

/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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 = devm_ioremap(denali->dev, csr_base, csr_len); in denali_pci_probe()
/Linux-v6.1/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()
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()
Dpci-xgene.c66 void __iomem *csr_base; member
75 return readl(port->csr_base + reg); in xgene_pcie_readl()
80 writel(val, port->csr_base + reg); in xgene_pcie_writel()
242 port->csr_base = devm_pci_remap_cfg_resource(dev, &csr); in xgene_pcie_ecam_init()
243 if (IS_ERR(port->csr_base)) in xgene_pcie_ecam_init()
244 return PTR_ERR(port->csr_base); in xgene_pcie_ecam_init()
351 port->csr_base = devm_pci_remap_cfg_resource(dev, res); in xgene_pcie_map_reg()
352 if (IS_ERR(port->csr_base)) in xgene_pcie_map_reg()
353 return PTR_ERR(port->csr_base); in xgene_pcie_map_reg()
/Linux-v6.1/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-v6.1/drivers/net/mdio/
Dmdio-xgene.c333 void __iomem *csr_base; in xgene_mdio_probe() local
358 csr_base = devm_platform_ioremap_resource(pdev, 0); in xgene_mdio_probe()
359 if (IS_ERR(csr_base)) in xgene_mdio_probe()
360 return PTR_ERR(csr_base); in xgene_mdio_probe()
361 pdata->mac_csr_addr = csr_base; in xgene_mdio_probe()
362 pdata->mdio_csr_addr = csr_base + BLOCK_XG_MDIO_CSR_OFFSET; in xgene_mdio_probe()
363 pdata->diag_csr_addr = csr_base + BLOCK_DIAG_CSR_OFFSET; in xgene_mdio_probe()
/Linux-v6.1/drivers/ata/
Dsata_fsl.c284 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()
564 ioread32(COMMANDSTAT + host_priv->csr_base)); in sata_fsl_qc_issue()
642 ioread32(host_priv->csr_base + COMMANDSTAT)); in sata_fsl_freeze()
1428 void __iomem *csr_base = NULL; in sata_fsl_probe() local
1444 csr_base = hcr_base + 0x140; in sata_fsl_probe()
[all …]
/Linux-v6.1/drivers/crypto/qat/qat_common/
Dadf_accel_devices.h228 #define ADF_CSR_WR(csr_base, csr_offset, val) \ argument
229 __raw_writel(val, csr_base + csr_offset)
232 #define ADF_CSR_RD(csr_base, csr_offset) __raw_readl(csr_base + csr_offset) argument
/Linux-v6.1/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 …]