Home
last modified time | relevance | path

Searched refs:sram (Results 1 – 25 of 40) sorted by relevance

12

/drivers/misc/
A Dsram.c99 struct sram_partition *part = &sram->partition[sram->partitions]; in sram_add_partition()
103 if (sram->config && sram->config->map_only_reserved) { in sram_add_partition()
143 sram->partitions++; in sram_add_partition()
155 part = &sram->partition[sram->partitions - 1]; in sram_free_partitions()
156 for (; sram->partitions; sram->partitions--, part--) { in sram_free_partitions()
270 sram->partition = devm_kcalloc(sram->dev, in sram_reserve_regions()
386 sram = devm_kzalloc(&pdev->dev, sizeof(*sram), GFP_KERNEL); in sram_probe()
387 if (!sram) in sram_probe()
428 if (sram->pool) in sram_probe()
430 gen_pool_size(sram->pool) / 1024, sram->virt_base); in sram_probe()
[all …]
A Dsram.h47 int sram_check_protect_exec(struct sram_dev *sram, struct sram_reserve *block,
51 static inline int sram_check_protect_exec(struct sram_dev *sram, in sram_check_protect_exec() argument
A Dsram-exec.c22 int sram_check_protect_exec(struct sram_dev *sram, struct sram_reserve *block, in sram_check_protect_exec() argument
29 dev_err(sram->dev, in sram_check_protect_exec()
A DMakefile50 obj-$(CONFIG_SRAM) += sram.o
51 obj-$(CONFIG_SRAM_EXEC) += sram-exec.o
/drivers/net/wireless/ath/ath9k/
A Dar9003_aic.c286 sram.vga_quad_sign = in ar9003_aic_cal_post_process()
288 sram.rot_dir_att_db = in ar9003_aic_cal_post_process()
290 sram.vga_dir_sign = in ar9003_aic_cal_post_process()
292 sram.com_att_6db = in ar9003_aic_cal_post_process()
295 if (sram.valid) { in ar9003_aic_cal_post_process()
394 sram.vga_dir_sign = in ar9003_aic_cal_post_process()
396 sram.vga_quad_sign = in ar9003_aic_cal_post_process()
406 sram.com_att_6db = in ar9003_aic_cal_post_process()
409 sram.valid = true; in ar9003_aic_cal_post_process()
411 sram.rot_dir_att_db = in ar9003_aic_cal_post_process()
[all …]
/drivers/fsi/
A Dfsi-master-ast-cf.c111 void __iomem *sram; member
448 ioread32be(master->sram + CMD_STAT_REG), in dump_ucode_trace()
449 ioread8(master->sram + STAT_RTAG), in dump_ucode_trace()
450 ioread8(master->sram + STAT_RCRC), in dump_ucode_trace()
451 ioread32be(master->sram + RSP_DATA), in dump_ucode_trace()
452 ioread32be(master->sram + INT_CNT)); in dump_ucode_trace()
937 memset_io(master->sram, 0, SRAM_SIZE); in fsi_master_acf_setup()
1019 iowrite32(0, master->sram + CF_STARTED); in fsi_master_acf_terminate()
1164 val = ioread8(master->sram + ARB_REG); in fsi_master_acf_gpio_request()
1182 iowrite8(0, master->sram + ARB_REG); in fsi_master_acf_gpio_release()
[all …]
/drivers/firmware/tegra/
A Dbpmp-tegra186.c24 void __iomem *sram; member
127 iosys_map_set_vaddr_iomem(&rx, priv->rx.sram + offset); in tegra186_bpmp_channel_init()
128 iosys_map_set_vaddr_iomem(&tx, priv->tx.sram + offset); in tegra186_bpmp_channel_init()
187 gen_pool_free(priv->tx.pool, (unsigned long)priv->tx.sram, 4096); in tegra186_bpmp_teardown_channels()
188 gen_pool_free(priv->rx.pool, (unsigned long)priv->rx.sram, 4096); in tegra186_bpmp_teardown_channels()
239 priv->tx.sram = (void __iomem *)gen_pool_dma_alloc(priv->tx.pool, 4096, in tegra186_bpmp_sram_init()
241 if (!priv->tx.sram) { in tegra186_bpmp_sram_init()
253 priv->rx.sram = (void __iomem *)gen_pool_dma_alloc(priv->rx.pool, 4096, in tegra186_bpmp_sram_init()
255 if (!priv->rx.sram) { in tegra186_bpmp_sram_init()
264 gen_pool_free(priv->tx.pool, (unsigned long)priv->tx.sram, 4096); in tegra186_bpmp_sram_init()
/drivers/remoteproc/
A Dxlnx_r5_remoteproc.c147 struct zynqmp_sram_bank *sram; member
548 struct zynqmp_sram_bank *sram; in add_sram_carveouts() local
554 sram = &r5_core->sram[i]; in add_sram_carveouts()
559 da = sram->da; in add_sram_carveouts()
566 sram->sram_res.name); in add_sram_carveouts()
982 struct zynqmp_sram_bank *sram; in zynqmp_r5_get_sram_banks() local
1000 if (!sram) in zynqmp_r5_get_sram_banks()
1029 sram[i].da = (u32)abs_addr; in zynqmp_r5_get_sram_banks()
1034 i, sram[i].sram_res.name, sram[i].sram_res.start, in zynqmp_r5_get_sram_banks()
1035 sram[i].da, resource_size(&sram[i].sram_res)); in zynqmp_r5_get_sram_banks()
[all …]
A Dti_k3_r5_remoteproc.c124 struct k3_rproc_mem *sram; member
584 dev_addr = core->sram[i].dev_addr; in k3_r5_rproc_da_to_va()
585 size = core->sram[i].size; in k3_r5_rproc_da_to_va()
980 core->sram = devm_kcalloc(dev, num_sram, sizeof(*core->sram), GFP_KERNEL); in k3_r5_core_of_get_sram_memories()
981 if (!core->sram) in k3_r5_core_of_get_sram_memories()
999 core->sram[i].bus_addr = res.start; in k3_r5_core_of_get_sram_memories()
1000 core->sram[i].dev_addr = res.start; in k3_r5_core_of_get_sram_memories()
1004 if (!core->sram[i].cpu_addr) { in k3_r5_core_of_get_sram_memories()
1011 i, &core->sram[i].bus_addr, in k3_r5_core_of_get_sram_memories()
1012 core->sram[i].size, core->sram[i].cpu_addr, in k3_r5_core_of_get_sram_memories()
[all …]
/drivers/memory/
A DMakefile31 obj-$(CONFIG_TI_EMIF_SRAM) += ti-emif-sram.o
34 ti-emif-sram-objs := ti-emif-pm.o ti-emif-sram-pm.o
36 $(obj)/ti-emif-sram-pm.o: $(obj)/ti-emif-asm-offsets.h
/drivers/soc/ixp4xx/
A Dixp4xx-qmgr.c287 if (__raw_readl(&qmgr_regs->sram[queue])) { in qmgr_request_queue()
301 if (addr + len > ARRAY_SIZE(qmgr_regs->sram)) { in qmgr_request_queue()
313 __raw_writel(cfg | (addr << 14), &qmgr_regs->sram[queue]); in qmgr_request_queue()
336 cfg = __raw_readl(&qmgr_regs->sram[queue]); in qmgr_release_queue()
363 __raw_writel(0, &qmgr_regs->sram[queue]); in qmgr_release_queue()
414 __raw_writel(0, &qmgr_regs->sram[i]); in ixp4xx_qmgr_probe()
/drivers/dma/
A Dapple-admac.c154 struct admac_sram *sram; in admac_alloc_sram_carveout() local
160 sram = &ad->txcache; in admac_alloc_sram_carveout()
162 sram = &ad->rxcache; in admac_alloc_sram_carveout()
166 nblocks = sram->size / SRAM_BLOCK; in admac_alloc_sram_carveout()
168 if (!(sram->allocated & BIT(i))) in admac_alloc_sram_carveout()
174 sram->allocated |= BIT(i); in admac_alloc_sram_carveout()
188 struct admac_sram *sram; in admac_free_sram_carveout() local
193 sram = &ad->txcache; in admac_free_sram_carveout()
195 sram = &ad->rxcache; in admac_free_sram_carveout()
197 if (WARN_ON(base >= sram->size)) in admac_free_sram_carveout()
[all …]
/drivers/mtd/nand/raw/atmel/
A Dnand-controller.c259 } sram; member
728 nc->sram.dma, mtd->writesize, in atmel_nfc_copy_to_sram()
2238 if (IS_ERR(nc->sram.virt)) { in atmel_hsmc_nand_controller_legacy_init()
2239 ret = PTR_ERR(nc->sram.virt); in atmel_hsmc_nand_controller_legacy_init()
2243 nc->sram.dma = res.start; in atmel_hsmc_nand_controller_legacy_init()
2292 if (!nc->sram.pool) { in atmel_hsmc_nand_controller_init()
2297 nc->sram.virt = (void __iomem *)gen_pool_dma_alloc(nc->sram.pool, in atmel_hsmc_nand_controller_init()
2299 &nc->sram.dma); in atmel_hsmc_nand_controller_init()
2300 if (!nc->sram.virt) { in atmel_hsmc_nand_controller_init()
2323 if (hsmc_nc->sram.pool) in atmel_hsmc_nand_controller_remove()
[all …]
/drivers/net/ethernet/myricom/myri10ge/
A Dmyri10ge.c206 u8 __iomem *sram; member
617 readb(mgp->sram); in myri10ge_load_hotplug_firmware()
778 submit = mgp->sram + MXGEFW_BOOT_HANDOFF; in myri10ge_load_firmware()
1037 (mgp->sram + dca_tag_off + 4 * i); in myri10ge_reset()
2244 (mgp->sram + cmd.data0); in myri10ge_get_txrx()
2250 (mgp->sram + cmd.data0); in myri10ge_get_txrx()
2255 (mgp->sram + cmd.data0); in myri10ge_get_txrx()
2337 itable = mgp->sram + cmd.data0; in myri10ge_open()
3798 if (mgp->sram == NULL) { in myri10ge_probe()
3924 iounmap(mgp->sram); in myri10ge_probe()
[all …]
/drivers/mfd/
A Dmacsmc.c315 if (bfr->iova < smc->sram->start || bfr->iova > smc->sram->end || in apple_smc_rtkit_shmem_setup()
316 bfr_end > smc->sram->end) { in apple_smc_rtkit_shmem_setup()
323 bfr->iomem = smc->sram_base + (bfr->iova - smc->sram->start); in apple_smc_rtkit_shmem_setup()
417 smc->sram_base = devm_platform_get_and_ioremap_resource(pdev, 1, &smc->sram); in apple_smc_probe()
/drivers/media/platform/allegro-dvt/
A Dallegro-core.c154 struct regmap *sram; member
790 regmap_write(dev->sram, mbox->head, 0); in allegro_mbox_init()
791 regmap_write(dev->sram, mbox->tail, 0); in allegro_mbox_init()
799 struct regmap *sram = mbox->dev->sram; in allegro_mbox_write() local
812 regmap_read(sram, mbox->tail, &tail); in allegro_mbox_write()
820 regmap_bulk_write(sram, mbox->data, in allegro_mbox_write()
838 struct regmap *sram = mbox->dev->sram; in allegro_mbox_read() local
844 regmap_read(sram, mbox->head, &head); in allegro_mbox_read()
872 regmap_bulk_read(sram, mbox->data, in allegro_mbox_read()
3876 if (IS_ERR(dev->sram)) { in allegro_probe()
[all …]
/drivers/media/common/b2c2/
A DMakefile3 b2c2-flexcop-objs += flexcop-sram.o flexcop-eeprom.o flexcop-misc.o
/drivers/dma/bestcomm/
A DMakefile6 bestcomm-core-objs := bestcomm.o sram.o
/drivers/crypto/marvell/cesa/
A Dcipher.c98 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op)); in mv_cesa_skcipher_std_step()
112 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op)); in mv_cesa_skcipher_std_step()
117 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op.desc)); in mv_cesa_skcipher_std_step()
232 engine->sram + CESA_SA_CRYPT_IV_SRAM_OFFSET, in mv_cesa_skcipher_complete()
A Dcesa.c393 engine->sram = devm_platform_get_and_ioremap_resource(pdev, idx, &res); in mv_cesa_get_sram()
394 if (IS_ERR(engine->sram)) in mv_cesa_get_sram()
395 return PTR_ERR(engine->sram); in mv_cesa_get_sram()
A Dtdma.c394 memcpy_toio(engine->sram + sram_off + offset, in mv_cesa_sg_copy()
403 engine->sram + sram_off + offset, in mv_cesa_sg_copy()
A Dhash.c178 memcpy_toio(engine->sram, &creq->op_tmpl, in mv_cesa_ahash_std_step()
193 memcpy_toio(engine->sram + CESA_SA_DATA_SRAM_OFFSET, in mv_cesa_ahash_std_step()
241 engine->sram + in mv_cesa_ahash_std_step()
253 memcpy_toio(engine->sram + len + in mv_cesa_ahash_std_step()
272 memcpy_toio(engine->sram, op, sizeof(*op)); in mv_cesa_ahash_std_step()
/drivers/net/ethernet/marvell/mvpp2/
A Dmvpp2_prs.c37 mvpp2_write(priv, MVPP2_PRS_SRAM_DATA_REG(i), pe->sram[i]); in mvpp2_prs_hw_write()
75 pe->sram[i] = mvpp2_read(priv, MVPP2_PRS_SRAM_DATA_REG(i)); in __mvpp2_prs_init_from_hw()
229 pe->sram[MVPP2_BIT_TO_WORD(bit_num)] |= (val << (MVPP2_BIT_IN_WORD(bit_num))); in mvpp2_prs_sram_bits_set()
236 pe->sram[MVPP2_BIT_TO_WORD(bit_num)] &= ~(val << (MVPP2_BIT_IN_WORD(bit_num))); in mvpp2_prs_sram_bits_clear()
264 return pe->sram[MVPP2_PRS_SRAM_RI_WORD]; in mvpp2_prs_sram_ri_get()
297 bits = (pe->sram[ai_off] >> ai_shift) | in mvpp2_prs_sram_ai_get()
298 (pe->sram[ai_off + 1] << (32 - ai_shift)); in mvpp2_prs_sram_ai_get()
331 pe->sram[MVPP2_BIT_TO_WORD(MVPP2_PRS_SRAM_SHIFT_OFFS)] |= in mvpp2_prs_sram_shift_set()
974 pe.sram[MVPP2_PRS_SRAM_RI_WORD] = 0x0; in mvpp2_prs_ip4_proto()
975 pe.sram[MVPP2_PRS_SRAM_RI_CTRL_WORD] = 0x0; in mvpp2_prs_ip4_proto()
/drivers/media/platform/st/sti/c8sectpfe/
A Dc8sectpfe-core.c681 fei->sram = devm_ioremap_resource(dev, res); in c8sectpfe_probe()
682 if (IS_ERR(fei->sram)) in c8sectpfe_probe()
683 return PTR_ERR(fei->sram); in c8sectpfe_probe()
710 memset_io(fei->sram, 0x0, fei->sram_size); in c8sectpfe_probe()
/drivers/media/pci/bt8xx/
A Dbttv-driver.c291 .sram = 0,
325 .sram = 1,
352 .sram = 0, /* like PAL, correct? */
378 .sram = -1,
404 .sram = -1,
430 .sram = -1,
456 .sram = -1,
486 .sram = -1,
835 int table_idx = bttv_tvnorms[btv->tvnorm].sram; in bt848A_set_timing()

Completed in 83 milliseconds

12