sram 59 arch/arm/mach-pxa/pxa3xx.c static void __iomem *sram; sram 72 arch/arm/mach-pxa/pxa3xx.c void (*fn)(unsigned int) = (void __force *)(sram + 0x8000); sram 74 arch/arm/mach-pxa/pxa3xx.c memcpy_toio(sram + 0x8000, pm_enter_standby_start, sram 173 arch/arm/mach-pxa/pxa3xx.c sram = ioremap(ISRAM_START, ISRAM_SIZE); sram 174 arch/arm/mach-pxa/pxa3xx.c if (!sram) { sram 63 arch/arm/plat-omap/sram.c void *sram; sram 68 arch/arm/plat-omap/sram.c sram = omap_sram_push_address(size); sram 69 arch/arm/plat-omap/sram.c if (!sram) sram 72 arch/arm/plat-omap/sram.c base = (unsigned long)sram & PAGE_MASK; sram 77 arch/arm/plat-omap/sram.c dst = fncpy(sram, funcp, size); sram 22 arch/powerpc/boot/treeboot-walnut.c void *devp, *sram; sram 44 arch/powerpc/boot/treeboot-walnut.c sram = finddevice("/plb/ebc/sram"); sram 45 arch/powerpc/boot/treeboot-walnut.c if (!sram) sram 48 arch/powerpc/boot/treeboot-walnut.c if (getprop(sram, "reg", reg_sram, sizeof(reg_sram)) != sizeof(reg_sram)) sram 57 arch/powerpc/boot/treeboot-walnut.c setprop(sram, "reg", reg_sram, sizeof(reg_sram)); sram 10 arch/powerpc/platforms/52xx/lite5200_pm.c extern void lite5200_low_power(void __iomem *sram, void __iomem *mbar); sram 19 arch/powerpc/platforms/52xx/lite5200_pm.c static void __iomem *sram; sram 85 arch/powerpc/platforms/52xx/lite5200_pm.c sram = mbar + 0x8000; sram 109 arch/powerpc/platforms/52xx/lite5200_pm.c _memcpy_fromio(saved_sram, sram, sram_size); sram 115 arch/powerpc/platforms/52xx/lite5200_pm.c _memcpy_toio(sram, saved_sram, sram_size); sram 217 arch/powerpc/platforms/52xx/lite5200_pm.c lite5200_low_power(sram, mbar); sram 10 arch/powerpc/platforms/52xx/mpc52xx_pm.c extern void mpc52xx_deep_sleep(void __iomem *sram, void __iomem *sdram_regs, sram 22 arch/powerpc/platforms/52xx/mpc52xx_pm.c static void __iomem *sram; sram 91 arch/powerpc/platforms/52xx/mpc52xx_pm.c sram = mbar + 0x8000; /* Those will be handled by the */ sram 133 arch/powerpc/platforms/52xx/mpc52xx_pm.c memcpy(saved_sram, sram, sram_size); sram 136 arch/powerpc/platforms/52xx/mpc52xx_pm.c memcpy(sram, mpc52xx_ds_sram, mpc52xx_ds_sram_size); sram 160 arch/powerpc/platforms/52xx/mpc52xx_pm.c mpc52xx_deep_sleep(sram, sdram, cdm, intr); sram 176 arch/powerpc/platforms/52xx/mpc52xx_pm.c memcpy(sram, saved_sram, sram_size); sram 76 arch/x86/platform/ts5500/ts5500.c bool sram; sram 134 arch/x86/platform/ts5500/ts5500.c sbc->sram = tmp & TS5500_SRAM; sram 187 arch/x86/platform/ts5500/ts5500.c TS5500_ATTR_BOOL(sram); sram 384 drivers/crypto/marvell/cesa.c engine->sram = gen_pool_dma_alloc(engine->pool, sram 387 drivers/crypto/marvell/cesa.c if (engine->sram) sram 406 drivers/crypto/marvell/cesa.c engine->sram = devm_ioremap_resource(cesa->dev, res); sram 407 drivers/crypto/marvell/cesa.c if (IS_ERR(engine->sram)) sram 408 drivers/crypto/marvell/cesa.c return PTR_ERR(engine->sram); sram 425 drivers/crypto/marvell/cesa.c gen_pool_free(engine->pool, (unsigned long)engine->sram, sram 447 drivers/crypto/marvell/cesa.h void __iomem *sram; sram 90 drivers/crypto/marvell/cipher.c memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op)); sram 93 drivers/crypto/marvell/cipher.c engine->sram + CESA_SA_DATA_SRAM_OFFSET, sram 101 drivers/crypto/marvell/cipher.c memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op)); sram 104 drivers/crypto/marvell/cipher.c memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op.desc)); sram 123 drivers/crypto/marvell/cipher.c engine->sram + CESA_SA_DATA_SRAM_OFFSET, sram 216 drivers/crypto/marvell/cipher.c engine->sram + CESA_SA_CRYPT_IV_SRAM_OFFSET, sram 166 drivers/crypto/marvell/hash.c memcpy_toio(engine->sram, &creq->op_tmpl, sizeof(creq->op_tmpl)); sram 175 drivers/crypto/marvell/hash.c memcpy_toio(engine->sram + CESA_SA_DATA_SRAM_OFFSET, sram 188 drivers/crypto/marvell/hash.c engine->sram + sram 218 drivers/crypto/marvell/hash.c engine->sram + sram 223 drivers/crypto/marvell/hash.c engine->sram + len + sram 238 drivers/crypto/marvell/hash.c memcpy_toio(engine->sram, op, sizeof(*op)); sram 111 drivers/fsi/fsi-master-ast-cf.c void __iomem *sram; sram 315 drivers/fsi/fsi-master-ast-cf.c iowrite32be(op, master->sram + CMD_STAT_REG); sram 328 drivers/fsi/fsi-master-ast-cf.c stat = ioread8(master->sram + CMD_STAT_REG); sram 366 drivers/fsi/fsi-master-ast-cf.c iowrite32be((cmd->msg >> 32), master->sram + CMD_DATA); sram 367 drivers/fsi/fsi-master-ast-cf.c iowrite32be((cmd->msg & 0xffffffff), master->sram + CMD_DATA + 4); sram 380 drivers/fsi/fsi-master-ast-cf.c uint8_t rtag = ioread8(master->sram + STAT_RTAG) & 0xf; sram 381 drivers/fsi/fsi-master-ast-cf.c uint8_t rcrc = ioread8(master->sram + STAT_RCRC) & 0xf; sram 392 drivers/fsi/fsi-master-ast-cf.c rdata = ioread32be(master->sram + RSP_DATA); sram 448 drivers/fsi/fsi-master-ast-cf.c ioread32be(master->sram + CMD_STAT_REG), sram 449 drivers/fsi/fsi-master-ast-cf.c ioread8(master->sram + STAT_RTAG), sram 450 drivers/fsi/fsi-master-ast-cf.c ioread8(master->sram + STAT_RCRC), sram 451 drivers/fsi/fsi-master-ast-cf.c ioread32be(master->sram + RSP_DATA), sram 452 drivers/fsi/fsi-master-ast-cf.c ioread32be(master->sram + INT_CNT)); sram 458 drivers/fsi/fsi-master-ast-cf.c v = ioread8(master->sram + TRACEBUF + i); sram 937 drivers/fsi/fsi-master-ast-cf.c memset_io(master->sram, 0, SRAM_SIZE); sram 970 drivers/fsi/fsi-master-ast-cf.c val = ioread8(master->sram + CF_STARTED); sram 982 drivers/fsi/fsi-master-ast-cf.c iowrite8(master->t_send_delay, master->sram + SEND_DLY_REG); sram 983 drivers/fsi/fsi-master-ast-cf.c iowrite8(master->t_echo_delay, master->sram + ECHO_DLY_REG); sram 1019 drivers/fsi/fsi-master-ast-cf.c iowrite32(0, master->sram + CF_STARTED); sram 1024 drivers/fsi/fsi-master-ast-cf.c iowrite8(ARB_ARM_ACK, master->sram + ARB_REG); sram 1073 drivers/fsi/fsi-master-ast-cf.c iowrite8(master->t_send_delay, master->sram + SEND_DLY_REG); sram 1074 drivers/fsi/fsi-master-ast-cf.c iowrite8(master->t_echo_delay, master->sram + ECHO_DLY_REG); sram 1136 drivers/fsi/fsi-master-ast-cf.c iowrite8(ARB_ARM_REQ, master->sram + ARB_REG); sram 1150 drivers/fsi/fsi-master-ast-cf.c if (ioread32(master->sram + CF_STARTED) == 0) { sram 1163 drivers/fsi/fsi-master-ast-cf.c val = ioread8(master->sram + ARB_REG); sram 1181 drivers/fsi/fsi-master-ast-cf.c iowrite8(0, master->sram + ARB_REG); sram 1201 drivers/fsi/fsi-master-ast-cf.c gen_pool_free(master->sram_pool, (unsigned long)master->sram, SRAM_SIZE); sram 1349 drivers/fsi/fsi-master-ast-cf.c master->sram = (void __iomem *)gen_pool_alloc_algo(master->sram_pool, SRAM_SIZE, sram 1351 drivers/fsi/fsi-master-ast-cf.c if (!master->sram) { sram 1358 drivers/fsi/fsi-master-ast-cf.c (unsigned long)master->sram)); sram 1405 drivers/fsi/fsi-master-ast-cf.c gen_pool_free(master->sram_pool, (unsigned long)master->sram, SRAM_SIZE); sram 155 drivers/media/dvb-frontends/dib7000m.c sram = 0x0005; /* by default SRAM output is disabled */ sram 177 drivers/media/dvb-frontends/dib7000m.c sram |= 0x0c00; sram 198 drivers/media/dvb-frontends/dib7000m.c ret |= dib7000m_write_word(state, 1805, sram); sram 408 drivers/media/dvb-frontends/dib8000.c u16 outreg, fifo_threshold, smo_mode, sram = 0x0205; /* by default SDRAM deintlv is enabled */ sram 431 drivers/media/dvb-frontends/dib8000.c sram &= 0xfdff; sram 433 drivers/media/dvb-frontends/dib8000.c sram |= 0x0c00; sram 461 drivers/media/dvb-frontends/dib8000.c dib8000_write_word(state, 1291, sram); sram 291 drivers/media/pci/bt8xx/bttv-driver.c .sram = 0, sram 325 drivers/media/pci/bt8xx/bttv-driver.c .sram = 1, sram 352 drivers/media/pci/bt8xx/bttv-driver.c .sram = 0, /* like PAL, correct? */ sram 378 drivers/media/pci/bt8xx/bttv-driver.c .sram = -1, sram 404 drivers/media/pci/bt8xx/bttv-driver.c .sram = -1, sram 430 drivers/media/pci/bt8xx/bttv-driver.c .sram = -1, sram 456 drivers/media/pci/bt8xx/bttv-driver.c .sram = -1, sram 486 drivers/media/pci/bt8xx/bttv-driver.c .sram = -1, sram 850 drivers/media/pci/bt8xx/bttv-driver.c int table_idx = bttv_tvnorms[btv->tvnorm].sram; sram 89 drivers/media/pci/bt8xx/bttvp.h int sram; sram 689 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c fei->sram = devm_ioremap_resource(dev, res); sram 690 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c if (IS_ERR(fei->sram)) sram 691 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c return PTR_ERR(fei->sram); sram 724 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c memset_io(fei->sram, 0x0, fei->sram_size); sram 92 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.h void __iomem *sram; sram 30 drivers/misc/sram-exec.c int sram_check_protect_exec(struct sram_dev *sram, struct sram_reserve *block, sram 37 drivers/misc/sram-exec.c dev_err(sram->dev, sram 55 drivers/misc/sram.c static int sram_add_pool(struct sram_dev *sram, struct sram_reserve *block, sram 60 drivers/misc/sram.c part->pool = devm_gen_pool_create(sram->dev, ilog2(SRAM_GRANULARITY), sram 68 drivers/misc/sram.c dev_err(sram->dev, "failed to register subpool: %d\n", ret); sram 75 drivers/misc/sram.c static int sram_add_export(struct sram_dev *sram, struct sram_reserve *block, sram 79 drivers/misc/sram.c part->battr.attr.name = devm_kasprintf(sram->dev, GFP_KERNEL, sram 90 drivers/misc/sram.c return device_create_bin_file(sram->dev, &part->battr); sram 93 drivers/misc/sram.c static int sram_add_partition(struct sram_dev *sram, struct sram_reserve *block, sram 97 drivers/misc/sram.c struct sram_partition *part = &sram->partition[sram->partitions]; sram 100 drivers/misc/sram.c part->base = sram->virt_base + block->start; sram 103 drivers/misc/sram.c ret = sram_add_pool(sram, block, start, part); sram 108 drivers/misc/sram.c ret = sram_add_export(sram, block, start, part); sram 113 drivers/misc/sram.c ret = sram_check_protect_exec(sram, block, part); sram 117 drivers/misc/sram.c ret = sram_add_pool(sram, block, start, part); sram 124 drivers/misc/sram.c sram->partitions++; sram 129 drivers/misc/sram.c static void sram_free_partitions(struct sram_dev *sram) sram 133 drivers/misc/sram.c if (!sram->partitions) sram 136 drivers/misc/sram.c part = &sram->partition[sram->partitions - 1]; sram 137 drivers/misc/sram.c for (; sram->partitions; sram->partitions--, part--) { sram 139 drivers/misc/sram.c device_remove_bin_file(sram->dev, &part->battr); sram 143 drivers/misc/sram.c dev_err(sram->dev, "removed pool while SRAM allocated\n"); sram 156 drivers/misc/sram.c static int sram_reserve_regions(struct sram_dev *sram, struct resource *res) sram 158 drivers/misc/sram.c struct device_node *np = sram->dev->of_node, *child; sram 185 drivers/misc/sram.c dev_err(sram->dev, sram 192 drivers/misc/sram.c dev_err(sram->dev, sram 219 drivers/misc/sram.c dev_err(sram->dev, sram 227 drivers/misc/sram.c block->label = devm_kstrdup(sram->dev, sram 234 drivers/misc/sram.c dev_dbg(sram->dev, "found %sblock '%s' 0x%x-0x%x\n", sram 238 drivers/misc/sram.c dev_dbg(sram->dev, "found reserved block 0x%x-0x%x\n", sram 254 drivers/misc/sram.c sram->partition = devm_kcalloc(sram->dev, sram 255 drivers/misc/sram.c exports, sizeof(*sram->partition), sram 257 drivers/misc/sram.c if (!sram->partition) { sram 267 drivers/misc/sram.c dev_err(sram->dev, sram 271 drivers/misc/sram.c sram_free_partitions(sram); sram 277 drivers/misc/sram.c ret = sram_add_partition(sram, block, sram 280 drivers/misc/sram.c sram_free_partitions(sram); sram 298 drivers/misc/sram.c dev_dbg(sram->dev, "adding chunk 0x%lx-0x%lx\n", sram 301 drivers/misc/sram.c ret = gen_pool_add_virt(sram->pool, sram 302 drivers/misc/sram.c (unsigned long)sram->virt_base + cur_start, sram 305 drivers/misc/sram.c sram_free_partitions(sram); sram 342 drivers/misc/sram.c struct sram_dev *sram; sram 348 drivers/misc/sram.c sram = devm_kzalloc(&pdev->dev, sizeof(*sram), GFP_KERNEL); sram 349 drivers/misc/sram.c if (!sram) sram 352 drivers/misc/sram.c sram->dev = &pdev->dev; sram 356 drivers/misc/sram.c dev_err(sram->dev, "found no memory resource\n"); sram 362 drivers/misc/sram.c if (!devm_request_mem_region(sram->dev, res->start, size, pdev->name)) { sram 363 drivers/misc/sram.c dev_err(sram->dev, "could not request region for resource\n"); sram 368 drivers/misc/sram.c sram->virt_base = devm_ioremap(sram->dev, res->start, size); sram 370 drivers/misc/sram.c sram->virt_base = devm_ioremap_wc(sram->dev, res->start, size); sram 371 drivers/misc/sram.c if (!sram->virt_base) sram 374 drivers/misc/sram.c sram->pool = devm_gen_pool_create(sram->dev, ilog2(SRAM_GRANULARITY), sram 376 drivers/misc/sram.c if (IS_ERR(sram->pool)) sram 377 drivers/misc/sram.c return PTR_ERR(sram->pool); sram 379 drivers/misc/sram.c sram->clk = devm_clk_get(sram->dev, NULL); sram 380 drivers/misc/sram.c if (IS_ERR(sram->clk)) sram 381 drivers/misc/sram.c sram->clk = NULL; sram 383 drivers/misc/sram.c clk_prepare_enable(sram->clk); sram 385 drivers/misc/sram.c ret = sram_reserve_regions(sram, res); sram 389 drivers/misc/sram.c platform_set_drvdata(pdev, sram); sram 398 drivers/misc/sram.c dev_dbg(sram->dev, "SRAM pool: %zu KiB @ 0x%p\n", sram 399 drivers/misc/sram.c gen_pool_size(sram->pool) / 1024, sram->virt_base); sram 404 drivers/misc/sram.c sram_free_partitions(sram); sram 406 drivers/misc/sram.c if (sram->clk) sram 407 drivers/misc/sram.c clk_disable_unprepare(sram->clk); sram 414 drivers/misc/sram.c struct sram_dev *sram = platform_get_drvdata(pdev); sram 416 drivers/misc/sram.c sram_free_partitions(sram); sram 418 drivers/misc/sram.c if (gen_pool_avail(sram->pool) < gen_pool_size(sram->pool)) sram 419 drivers/misc/sram.c dev_err(sram->dev, "removed while SRAM allocated\n"); sram 421 drivers/misc/sram.c if (sram->clk) sram 422 drivers/misc/sram.c clk_disable_unprepare(sram->clk); sram 39 drivers/misc/sram.h int sram_check_protect_exec(struct sram_dev *sram, struct sram_reserve *block, sram 43 drivers/misc/sram.h static inline int sram_check_protect_exec(struct sram_dev *sram, sram 257 drivers/mtd/nand/raw/atmel/nand-controller.c } sram; sram 657 drivers/mtd/nand/raw/atmel/nand-controller.c nc->sram.dma, mtd->writesize, sram 662 drivers/mtd/nand/raw/atmel/nand-controller.c memcpy_toio(nc->sram.virt, buf, mtd->writesize); sram 665 drivers/mtd/nand/raw/atmel/nand-controller.c memcpy_toio(nc->sram.virt + mtd->writesize, chip->oob_poi, sram 679 drivers/mtd/nand/raw/atmel/nand-controller.c ret = atmel_nand_dma_transfer(&nc->base, buf, nc->sram.dma, sram 684 drivers/mtd/nand/raw/atmel/nand-controller.c memcpy_fromio(buf, nc->sram.virt, mtd->writesize); sram 687 drivers/mtd/nand/raw/atmel/nand-controller.c memcpy_fromio(chip->oob_poi, nc->sram.virt + mtd->writesize, sram 2168 drivers/mtd/nand/raw/atmel/nand-controller.c nc->sram.virt = devm_ioremap_resource(dev, &res); sram 2169 drivers/mtd/nand/raw/atmel/nand-controller.c if (IS_ERR(nc->sram.virt)) { sram 2170 drivers/mtd/nand/raw/atmel/nand-controller.c ret = PTR_ERR(nc->sram.virt); sram 2174 drivers/mtd/nand/raw/atmel/nand-controller.c nc->sram.dma = res.start; sram 2221 drivers/mtd/nand/raw/atmel/nand-controller.c nc->sram.pool = of_gen_pool_get(nc->base.dev->of_node, sram 2223 drivers/mtd/nand/raw/atmel/nand-controller.c if (!nc->sram.pool) { sram 2228 drivers/mtd/nand/raw/atmel/nand-controller.c nc->sram.virt = (void __iomem *)gen_pool_dma_alloc(nc->sram.pool, sram 2230 drivers/mtd/nand/raw/atmel/nand-controller.c &nc->sram.dma); sram 2231 drivers/mtd/nand/raw/atmel/nand-controller.c if (!nc->sram.virt) { sram 2251 drivers/mtd/nand/raw/atmel/nand-controller.c if (hsmc_nc->sram.pool) sram 2252 drivers/mtd/nand/raw/atmel/nand-controller.c gen_pool_free(hsmc_nc->sram.pool, sram 2253 drivers/mtd/nand/raw/atmel/nand-controller.c (unsigned long)hsmc_nc->sram.virt, sram 1605 drivers/net/ethernet/amd/pcnet32.c int fdx, mii, fset, dxsuflo, sram; sram 1642 drivers/net/ethernet/amd/pcnet32.c fdx = mii = fset = dxsuflo = sram = 0; sram 1675 drivers/net/ethernet/amd/pcnet32.c sram = 1; sram 1699 drivers/net/ethernet/amd/pcnet32.c sram = 1; sram 1734 drivers/net/ethernet/amd/pcnet32.c if (sram) { sram 411 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c seq_printf(s, "%*phN\n", 14, pe.sram); sram 40 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c mvpp2_write(priv, MVPP2_PRS_SRAM_DATA_REG(i), pe->sram[i]); sram 71 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c pe->sram[i] = mvpp2_read(priv, MVPP2_PRS_SRAM_DATA_REG(i)); sram 213 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c pe->sram[MVPP2_BIT_TO_WORD(bit_num)] |= (val << (MVPP2_BIT_IN_WORD(bit_num))); sram 220 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c pe->sram[MVPP2_BIT_TO_WORD(bit_num)] &= ~(val << (MVPP2_BIT_IN_WORD(bit_num))); sram 248 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c return pe->sram[MVPP2_PRS_SRAM_RI_WORD]; sram 281 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c bits = (pe->sram[ai_off] >> ai_shift) | sram 282 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c (pe->sram[ai_off + 1] << (32 - ai_shift)); sram 315 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c pe->sram[MVPP2_BIT_TO_WORD(MVPP2_PRS_SRAM_SHIFT_OFFS)] |= sram 918 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c pe.sram[MVPP2_PRS_SRAM_RI_WORD] = 0x0; sram 919 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c pe.sram[MVPP2_PRS_SRAM_RI_CTRL_WORD] = 0x0; sram 1424 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c pe.sram[MVPP2_PRS_SRAM_RI_WORD] = 0x0; sram 1425 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c pe.sram[MVPP2_PRS_SRAM_RI_CTRL_WORD] = 0x0; sram 1626 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c pe.sram[MVPP2_PRS_SRAM_RI_WORD] = 0x0; sram 1627 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c pe.sram[MVPP2_PRS_SRAM_RI_CTRL_WORD] = 0x0; sram 272 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.h u32 sram[MVPP2_PRS_SRAM_WORDS]; sram 205 drivers/net/ethernet/myricom/myri10ge/myri10ge.c u8 __iomem *sram; sram 383 drivers/net/ethernet/myricom/myri10ge/myri10ge.c char __iomem *cmd_addr = mgp->sram + MXGEFW_ETH_CMD; sram 532 drivers/net/ethernet/myricom/myri10ge/myri10ge.c submit = mgp->sram + MXGEFW_BOOT_DUMMY_RDMA; sram 613 drivers/net/ethernet/myricom/myri10ge/myri10ge.c myri10ge_pio_copy(mgp->sram + MYRI10GE_FW_OFFSET + i, sram 617 drivers/net/ethernet/myricom/myri10ge/myri10ge.c readb(mgp->sram); sram 625 drivers/net/ethernet/myricom/myri10ge/myri10ge.c memcpy_fromio(fw_readback, mgp->sram + MYRI10GE_FW_OFFSET, fw->size); sram 652 drivers/net/ethernet/myricom/myri10ge/myri10ge.c hdr_offset = swab32(readl(mgp->sram + MCP_HEADER_PTR_OFFSET)); sram 666 drivers/net/ethernet/myricom/myri10ge/myri10ge.c memcpy_fromio(hdr, mgp->sram + hdr_offset, bytes); sram 778 drivers/net/ethernet/myricom/myri10ge/myri10ge.c submit = mgp->sram + MXGEFW_BOOT_HANDOFF; sram 1013 drivers/net/ethernet/myricom/myri10ge/myri10ge.c (__iomem __be32 *) (mgp->sram + cmd.data0 + 8 * i); sram 1017 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mgp->irq_deassert = (__iomem __be32 *) (mgp->sram + cmd.data0); sram 1021 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mgp->intr_coal_delay_ptr = (__iomem __be32 *) (mgp->sram + cmd.data0); sram 1035 drivers/net/ethernet/myricom/myri10ge/myri10ge.c (mgp->sram + dca_tag_off + 4 * i); sram 1881 drivers/net/ethernet/myricom/myri10ge/myri10ge.c hdr_off = swab32(readl(mgp->sram + MCP_HEADER_PTR_OFFSET)); sram 1887 drivers/net/ethernet/myricom/myri10ge/myri10ge.c hdr_len = swab32(readl(mgp->sram + hdr_off + sram 1895 drivers/net/ethernet/myricom/myri10ge/myri10ge.c pattern = swab32(readl(mgp->sram + pattern_off + 4)); sram 1896 drivers/net/ethernet/myricom/myri10ge/myri10ge.c writel(swab32(pattern), mgp->sram + pattern_off); sram 2247 drivers/net/ethernet/myricom/myri10ge/myri10ge.c (mgp->sram + cmd.data0); sram 2253 drivers/net/ethernet/myricom/myri10ge/myri10ge.c (mgp->sram + cmd.data0); sram 2258 drivers/net/ethernet/myricom/myri10ge/myri10ge.c (mgp->sram + cmd.data0); sram 2261 drivers/net/ethernet/myricom/myri10ge/myri10ge.c (mgp->sram + MXGEFW_ETH_SEND_GO + 64 * slice); sram 2263 drivers/net/ethernet/myricom/myri10ge/myri10ge.c (mgp->sram + MXGEFW_ETH_SEND_STOP + 64 * slice); sram 2340 drivers/net/ethernet/myricom/myri10ge/myri10ge.c itable = mgp->sram + cmd.data0; sram 3836 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mgp->sram = ioremap_wc(mgp->iomem_base, mgp->board_span); sram 3837 drivers/net/ethernet/myricom/myri10ge/myri10ge.c if (mgp->sram == NULL) { sram 3844 drivers/net/ethernet/myricom/myri10ge/myri10ge.c swab32(readl(mgp->sram + MCP_HEADER_PTR_OFFSET)) & 0xffffc; sram 3846 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mgp->sram_size = swab32(readl(mgp->sram + ss_offset)); sram 3855 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mgp->sram + mgp->sram_size, MYRI10GE_EEPROM_STRINGS_SIZE); sram 3965 drivers/net/ethernet/myricom/myri10ge/myri10ge.c iounmap(mgp->sram); sram 4009 drivers/net/ethernet/myricom/myri10ge/myri10ge.c iounmap(mgp->sram); sram 279 drivers/net/wireless/ath/ath9k/ar9003_aic.c struct ath_aic_sram_info sram; sram 282 drivers/net/wireless/ath/ath9k/ar9003_aic.c cal_sram_valid[i] = sram.valid = sram 284 drivers/net/wireless/ath/ath9k/ar9003_aic.c sram.rot_quad_att_db = sram 286 drivers/net/wireless/ath/ath9k/ar9003_aic.c sram.vga_quad_sign = sram 288 drivers/net/wireless/ath/ath9k/ar9003_aic.c sram.rot_dir_att_db = sram 290 drivers/net/wireless/ath/ath9k/ar9003_aic.c sram.vga_dir_sign = sram 292 drivers/net/wireless/ath/ath9k/ar9003_aic.c sram.com_att_6db = sram 295 drivers/net/wireless/ath/ath9k/ar9003_aic.c if (sram.valid) { sram 296 drivers/net/wireless/ath/ath9k/ar9003_aic.c dir_path_gain_idx = sram.rot_dir_att_db + sram 297 drivers/net/wireless/ath/ath9k/ar9003_aic.c com_att_db_table[sram.com_att_6db]; sram 298 drivers/net/wireless/ath/ath9k/ar9003_aic.c quad_path_gain_idx = sram.rot_quad_att_db + sram 299 drivers/net/wireless/ath/ath9k/ar9003_aic.c com_att_db_table[sram.com_att_6db]; sram 301 drivers/net/wireless/ath/ath9k/ar9003_aic.c dir_path_sign = (sram.vga_dir_sign) ? 1 : -1; sram 302 drivers/net/wireless/ath/ath9k/ar9003_aic.c quad_path_sign = (sram.vga_quad_sign) ? 1 : -1; sram 392 drivers/net/wireless/ath/ath9k/ar9003_aic.c struct ath_aic_sram_info sram; sram 394 drivers/net/wireless/ath/ath9k/ar9003_aic.c sram.vga_dir_sign = sram 396 drivers/net/wireless/ath/ath9k/ar9003_aic.c sram.vga_quad_sign = sram 406 drivers/net/wireless/ath/ath9k/ar9003_aic.c sram.com_att_6db = sram 409 drivers/net/wireless/ath/ath9k/ar9003_aic.c sram.valid = 1; sram 411 drivers/net/wireless/ath/ath9k/ar9003_aic.c sram.rot_dir_att_db = sram 415 drivers/net/wireless/ath/ath9k/ar9003_aic.c sram.rot_quad_att_db = sram 420 drivers/net/wireless/ath/ath9k/ar9003_aic.c aic->aic_sram[i] = (SM(sram.vga_dir_sign, sram 422 drivers/net/wireless/ath/ath9k/ar9003_aic.c SM(sram.vga_quad_sign, sram 424 drivers/net/wireless/ath/ath9k/ar9003_aic.c SM(sram.com_att_6db, sram 426 drivers/net/wireless/ath/ath9k/ar9003_aic.c SM(sram.valid, sram 428 drivers/net/wireless/ath/ath9k/ar9003_aic.c SM(sram.rot_dir_att_db, sram 430 drivers/net/wireless/ath/ath9k/ar9003_aic.c SM(sram.rot_quad_att_db, sram 802 drivers/net/wireless/intel/iwlegacy/debug.c DEBUGFS_READ_WRITE_FILE_OPS(sram); sram 1329 drivers/net/wireless/intel/iwlegacy/debug.c DEBUGFS_ADD_FILE(sram, dir_data, 0600); sram 67 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c int sram; sram 102 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c sram = priv->dbgfs_sram_offset & ~0x3; sram 105 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c val = iwl_trans_read_mem32(priv->trans, sram); sram 111 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c "%08X: ", sram + offset); sram 122 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c sram += 4; sram 124 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c val = iwl_trans_read_mem32(priv->trans, sram); sram 628 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c DEBUGFS_READ_WRITE_FILE_OPS(sram); sram 2326 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c DEBUGFS_ADD_FILE(sram, dir_data, 0600); sram 1802 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c MVM_DEBUGFS_READ_WRITE_FILE_OPS(sram, 64); sram 1999 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c MVM_DEBUGFS_ADD_FILE(sram, mvm->debugfs_dir, 0600); sram 188 drivers/net/wireless/marvell/mwl8k.c void __iomem *sram; sram 2567 drivers/net/wireless/marvell/mwl8k.c iowrite32(priv->rxq[0].rxd_dma, priv->sram + off); sram 2570 drivers/net/wireless/marvell/mwl8k.c iowrite32(priv->rxq[0].rxd_dma, priv->sram + off); sram 5857 drivers/net/wireless/marvell/mwl8k.c priv->sram + priv->txq_offset[i]); sram 6232 drivers/net/wireless/marvell/mwl8k.c priv->sram = pci_iomap(pdev, 0, 0x10000); sram 6233 drivers/net/wireless/marvell/mwl8k.c if (priv->sram == NULL) { sram 6290 drivers/net/wireless/marvell/mwl8k.c if (priv->sram != NULL) sram 6291 drivers/net/wireless/marvell/mwl8k.c pci_iounmap(pdev, priv->sram); sram 6345 drivers/net/wireless/marvell/mwl8k.c pci_iounmap(pdev, priv->sram); sram 383 drivers/net/wireless/ray_cs.c local->sram = ioremap(link->resource[2]->start, sram 414 drivers/net/wireless/ray_cs.c dev_dbg(&link->dev, "ray_config sram=%p\n", local->sram); sram 442 drivers/net/wireless/ray_cs.c return dev->sram + CCS_BASE; sram 454 drivers/net/wireless/ray_cs.c return dev->sram + CCS_BASE; sram 474 drivers/net/wireless/ray_cs.c memcpy_fromio(&local->startup_res, local->sram + ECF_TO_HOST_BASE, sram 531 drivers/net/wireless/ray_cs.c memcpy_toio(local->sram + HOST_TO_ECF_BASE, &local->sparm.b4, sram 534 drivers/net/wireless/ray_cs.c memcpy_toio(local->sram + HOST_TO_ECF_BASE, &local->sparm.b5, sram 645 drivers/net/wireless/ray_cs.c (unsigned int)readb(local->sram + sram 733 drivers/net/wireless/ray_cs.c iounmap(local->sram); sram 897 drivers/net/wireless/ray_cs.c ptx = local->sram + addr; sram 1388 drivers/net/wireless/ray_cs.c struct status __iomem *p = local->sram + STATUS_BASE; sram 1557 drivers/net/wireless/ray_cs.c writeb(ccs, local->sram + SCB_BASE); sram 1677 drivers/net/wireless/ray_cs.c struct status __iomem *p = local->sram + STATUS_BASE; sram 1726 drivers/net/wireless/ray_cs.c writeb(value[i], local->sram + HOST_TO_ECF_BASE); sram 1742 drivers/net/wireless/ray_cs.c void __iomem *p = local->sram + HOST_TO_ECF_BASE; sram 1848 drivers/net/wireless/ray_cs.c rcsindex = readb(&((struct scb __iomem *)(local->sram))->rcs_index); sram 2680 drivers/net/wireless/ray_cs.c ptx = local->sram + addr; sram 30 drivers/net/wireless/ray_cs.h void __iomem *sram; /* pointer to beginning of shared RAM */ sram 685 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c CYGNUS_PIN_FUNCTION(sram), sram 119 drivers/soc/bcm/brcmstb/pm/pm-arm.c void __iomem *sram; sram 128 drivers/soc/bcm/brcmstb/pm/pm-arm.c sram = __arm_ioremap_exec(res.start, resource_size(&res), false); sram 129 drivers/soc/bcm/brcmstb/pm/pm-arm.c if (!sram) sram 132 drivers/soc/bcm/brcmstb/pm/pm-arm.c ctrl.boot_sram = sram; sram 285 drivers/soc/ixp4xx/ixp4xx-qmgr.c if (__raw_readl(&qmgr_regs->sram[queue])) { sram 299 drivers/soc/ixp4xx/ixp4xx-qmgr.c if (addr + len > ARRAY_SIZE(qmgr_regs->sram)) { sram 311 drivers/soc/ixp4xx/ixp4xx-qmgr.c __raw_writel(cfg | (addr << 14), &qmgr_regs->sram[queue]); sram 334 drivers/soc/ixp4xx/ixp4xx-qmgr.c cfg = __raw_readl(&qmgr_regs->sram[queue]); sram 361 drivers/soc/ixp4xx/ixp4xx-qmgr.c __raw_writel(0, &qmgr_regs->sram[queue]); sram 412 drivers/soc/ixp4xx/ixp4xx-qmgr.c __raw_writel(0, &qmgr_regs->sram[i]); sram 124 drivers/staging/media/allegro-dvt/allegro-core.c struct regmap *sram; sram 768 drivers/staging/media/allegro-dvt/allegro-core.c regmap_write(dev->sram, mbox->head, 0); sram 769 drivers/staging/media/allegro-dvt/allegro-core.c regmap_write(dev->sram, mbox->tail, 0); sram 804 drivers/staging/media/allegro-dvt/allegro-core.c regmap_read(dev->sram, mbox->tail, &tail); sram 813 drivers/staging/media/allegro-dvt/allegro-core.c regmap_bulk_write(dev->sram, mbox->data + tail, src, size_no_wrap / 4); sram 814 drivers/staging/media/allegro-dvt/allegro-core.c regmap_bulk_write(dev->sram, mbox->data, sram 816 drivers/staging/media/allegro-dvt/allegro-core.c regmap_write(dev->sram, mbox->tail, (tail + size) % mbox->size); sram 833 drivers/staging/media/allegro-dvt/allegro-core.c regmap_read(dev->sram, mbox->head, &head); sram 842 drivers/staging/media/allegro-dvt/allegro-core.c regmap_bulk_read(dev->sram, mbox->data + head, sram 870 drivers/staging/media/allegro-dvt/allegro-core.c regmap_bulk_read(dev->sram, mbox->data + head + sizeof(*header), sram 872 drivers/staging/media/allegro-dvt/allegro-core.c regmap_bulk_read(dev->sram, mbox->data, sram 876 drivers/staging/media/allegro-dvt/allegro-core.c regmap_write(dev->sram, mbox->head, (head + size) % mbox->size); sram 1809 drivers/staging/media/allegro-dvt/allegro-core.c err = regmap_bulk_write(dev->sram, 0x0, buf, size / 4); sram 2945 drivers/staging/media/allegro-dvt/allegro-core.c dev->sram = devm_regmap_init_mmio(&pdev->dev, sram_regs, sram 2947 drivers/staging/media/allegro-dvt/allegro-core.c if (IS_ERR(dev->sram)) { sram 2949 drivers/staging/media/allegro-dvt/allegro-core.c return PTR_ERR(dev->sram); sram 169 drivers/staging/media/sunxi/cedrus/cedrus_h264.c enum cedrus_h264_sram_off sram) sram 210 drivers/staging/media/sunxi/cedrus/cedrus_h264.c cedrus_h264_write_sram(dev, sram, &sram_array, size); sram 192 drivers/usb/host/ohci-tmio.c struct resource *sram = platform_get_resource(dev, IORESOURCE_MEM, 2); sram 240 drivers/usb/host/ohci-tmio.c ret = usb_hcd_setup_local_mem(hcd, sram->start, sram->start, sram 241 drivers/usb/host/ohci-tmio.c resource_size(sram)); sram 54 include/linux/soc/ixp4xx/qmgr.h u32 sram[2048]; /* 0x2000 - 0x3FFF - config and buffer */ sram 476 sound/soc/intel/atom/sst/sst.c fw_save->sram = kvzalloc(SST_MAILBOX_SIZE, GFP_KERNEL); sram 477 sound/soc/intel/atom/sst/sst.c if (!fw_save->sram) { sram 479 sound/soc/intel/atom/sst/sst.c goto sram; sram 490 sound/soc/intel/atom/sst/sst.c memcpy32_fromio(fw_save->sram, ctx->mailbox, SST_MAILBOX_SIZE); sram 497 sound/soc/intel/atom/sst/sst.c kvfree(fw_save->sram); sram 498 sound/soc/intel/atom/sst/sst.c sram: sram 526 sound/soc/intel/atom/sst/sst.c memcpy32_toio(ctx->mailbox, fw_save->sram, SST_MAILBOX_SIZE); sram 529 sound/soc/intel/atom/sst/sst.c kvfree(fw_save->sram); sram 312 sound/soc/intel/atom/sst/sst.h void *sram; /* allocated via kvmalloc() */