/Linux-v6.6/drivers/char/hw_random/ |
D | xgene-rng.c | 80 void __iomem *csr_base; member 111 writel(fro_val, ctx->csr_base + RNG_FRODETUNE); in xgene_rng_init_fro() 112 writel(0x00000000, ctx->csr_base + RNG_ALARMMASK); in xgene_rng_init_fro() 113 writel(0x00000000, ctx->csr_base + RNG_ALARMSTOP); in xgene_rng_init_fro() 114 writel(0xFFFFFFFF, ctx->csr_base + RNG_FROENABLE); in xgene_rng_init_fro() 121 val = readl(ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_chk_overflow() 167 frostopped = readl(ctx->csr_base + RNG_ALARMSTOP); in xgene_rng_chk_overflow() 192 frostopped = readl(ctx->csr_base + RNG_ALARMSTOP); in xgene_rng_chk_overflow() 197 writel(val, ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_chk_overflow() 216 val = readl(ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_data_present() [all …]
|
/Linux-v6.6/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-v6.6/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-v6.6/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 = devm_ioremap(denali->dev, csr_base, csr_len); in denali_pci_probe()
|
/Linux-v6.6/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() 227 msi->csr_base = devm_platform_ioremap_resource_byname(pdev, "csr"); in altera_msi_probe() 228 if (IS_ERR(msi->csr_base)) { in altera_msi_probe() 230 return PTR_ERR(msi->csr_base); in altera_msi_probe()
|
D | pci-xgene.c | 65 void __iomem *csr_base; member 74 return readl(port->csr_base + reg); in xgene_pcie_readl() 79 writel(val, port->csr_base + reg); in xgene_pcie_writel() 241 port->csr_base = devm_pci_remap_cfg_resource(dev, &csr); in xgene_pcie_ecam_init() 242 if (IS_ERR(port->csr_base)) in xgene_pcie_ecam_init() 243 return PTR_ERR(port->csr_base); in xgene_pcie_ecam_init() 350 port->csr_base = devm_pci_remap_cfg_resource(dev, res); in xgene_pcie_map_reg() 351 if (IS_ERR(port->csr_base)) in xgene_pcie_map_reg() 352 return PTR_ERR(port->csr_base); in xgene_pcie_map_reg()
|
/Linux-v6.6/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-v6.6/drivers/net/mdio/ |
D | mdio-xgene.c | 331 void __iomem *csr_base; in xgene_mdio_probe() local 356 csr_base = devm_platform_ioremap_resource(pdev, 0); in xgene_mdio_probe() 357 if (IS_ERR(csr_base)) in xgene_mdio_probe() 358 return PTR_ERR(csr_base); in xgene_mdio_probe() 359 pdata->mac_csr_addr = csr_base; in xgene_mdio_probe() 360 pdata->mdio_csr_addr = csr_base + BLOCK_XG_MDIO_CSR_OFFSET; in xgene_mdio_probe() 361 pdata->diag_csr_addr = csr_base + BLOCK_DIAG_CSR_OFFSET; in xgene_mdio_probe()
|
/Linux-v6.6/drivers/ata/ |
D | sata_fsl.c | 284 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() 641 ioread32(host_priv->csr_base + COMMANDSTAT)); in sata_fsl_freeze() 1427 void __iomem *csr_base = NULL; in sata_fsl_probe() local 1443 csr_base = hcr_base + 0x140; in sata_fsl_probe() [all …]
|
/Linux-v6.6/drivers/crypto/intel/qat/qat_common/ |
D | adf_accel_devices.h | 241 #define ADF_CSR_WR(csr_base, csr_offset, val) \ argument 242 __raw_writel(val, csr_base + csr_offset) 245 #define ADF_CSR_RD(csr_base, csr_offset) __raw_readl(csr_base + csr_offset) argument
|
/Linux-v6.6/drivers/phy/ |
D | phy-xgene.c | 551 static void sds_wr(void __iomem *csr_base, u32 indirect_cmd_reg, in sds_wr() argument 560 writel(data, csr_base + indirect_data_reg); in sds_wr() 561 readl(csr_base + indirect_data_reg); /* Force a barrier */ in sds_wr() 562 writel(cmd, csr_base + indirect_cmd_reg); in sds_wr() 563 readl(csr_base + indirect_cmd_reg); /* Force a barrier */ in sds_wr() 565 val = readl(csr_base + indirect_cmd_reg); in sds_wr() 570 csr_base + indirect_cmd_reg, addr, data); in sds_wr() 573 static void sds_rd(void __iomem *csr_base, u32 indirect_cmd_reg, in sds_rd() argument 582 writel(cmd, csr_base + indirect_cmd_reg); in sds_rd() 583 readl(csr_base + indirect_cmd_reg); /* Force a barrier */ in sds_rd() [all …]
|