Home
last modified time | relevance | path

Searched refs:sram (Results 1 - 25 of 129) sorted by relevance

123456

/kernel/linux/linux-6.6/drivers/misc/
H A Dsram.c21 #include "sram.h"
55 static int sram_add_pool(struct sram_dev *sram, struct sram_reserve *block, in sram_add_pool() argument
60 part->pool = devm_gen_pool_create(sram->dev, ilog2(SRAM_GRANULARITY), in sram_add_pool()
68 dev_err(sram->dev, "failed to register subpool: %d\n", ret); in sram_add_pool()
75 static int sram_add_export(struct sram_dev *sram, struct sram_reserve *block, in sram_add_export() argument
79 part->battr.attr.name = devm_kasprintf(sram->dev, GFP_KERNEL, in sram_add_export()
80 "%llx.sram", in sram_add_export()
90 return device_create_bin_file(sram->dev, &part->battr); in sram_add_export()
93 static int sram_add_partition(struct sram_dev *sram, struct sram_reserve *block, in sram_add_partition() argument
97 struct sram_partition *part = &sram in sram_add_partition()
146 sram_free_partitions(struct sram_dev *sram) sram_free_partitions() argument
173 sram_reserve_regions(struct sram_dev *sram, struct resource *res) sram_reserve_regions() argument
377 struct sram_dev *sram; sram_probe() local
440 struct sram_dev *sram = platform_get_drvdata(pdev); sram_remove() local
[all...]
H A Dsram-exec.c12 #include <linux/sram.h>
17 #include "sram.h"
22 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()
47 * sram_exec_copy - copy data to a protected executable region of sram
49 * @pool: struct gen_pool retrieved that is part of this sram
57 * This helper function allows sram driver to act as central control location
58 * of 'protect-exec' pools which are normal sram pools but are always set
H 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
/kernel/linux/linux-5.10/drivers/misc/
H A Dsram.c21 #include "sram.h"
55 static int sram_add_pool(struct sram_dev *sram, struct sram_reserve *block, in sram_add_pool() argument
60 part->pool = devm_gen_pool_create(sram->dev, ilog2(SRAM_GRANULARITY), in sram_add_pool()
68 dev_err(sram->dev, "failed to register subpool: %d\n", ret); in sram_add_pool()
75 static int sram_add_export(struct sram_dev *sram, struct sram_reserve *block, in sram_add_export() argument
79 part->battr.attr.name = devm_kasprintf(sram->dev, GFP_KERNEL, in sram_add_export()
80 "%llx.sram", in sram_add_export()
90 return device_create_bin_file(sram->dev, &part->battr); in sram_add_export()
93 static int sram_add_partition(struct sram_dev *sram, struct sram_reserve *block, in sram_add_partition() argument
97 struct sram_partition *part = &sram in sram_add_partition()
129 sram_free_partitions(struct sram_dev *sram) sram_free_partitions() argument
156 sram_reserve_regions(struct sram_dev *sram, struct resource *res) sram_reserve_regions() argument
342 struct sram_dev *sram; sram_probe() local
402 struct sram_dev *sram = platform_get_drvdata(pdev); sram_remove() local
[all...]
H A Dsram-exec.c20 #include <linux/sram.h>
25 #include "sram.h"
30 int sram_check_protect_exec(struct sram_dev *sram, struct sram_reserve *block, in sram_check_protect_exec() argument
37 dev_err(sram->dev, in sram_check_protect_exec()
55 * sram_exec_copy - copy data to a protected executable region of sram
57 * @pool: struct gen_pool retrieved that is part of this sram
65 * This helper function allows sram driver to act as central control location
66 * of 'protect-exec' pools which are normal sram pools but are always set
H A Dsram.h39 int sram_check_protect_exec(struct sram_dev *sram, struct sram_reserve *block,
43 static inline int sram_check_protect_exec(struct sram_dev *sram, in sram_check_protect_exec() argument
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
H A Dar9003_aic.c279 struct ath_aic_sram_info sram; in ar9003_aic_cal_post_process() local
282 cal_sram_valid[i] = sram.valid = in ar9003_aic_cal_post_process()
284 sram.rot_quad_att_db = in ar9003_aic_cal_post_process()
286 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()
296 dir_path_gain_idx = sram.rot_dir_att_db + in ar9003_aic_cal_post_process()
297 com_att_db_table[sram in ar9003_aic_cal_post_process()
392 struct ath_aic_sram_info sram; ar9003_aic_cal_post_process() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/
H A Dar9003_aic.c279 struct ath_aic_sram_info sram; in ar9003_aic_cal_post_process() local
282 cal_sram_valid[i] = sram.valid = in ar9003_aic_cal_post_process()
284 sram.rot_quad_att_db = in ar9003_aic_cal_post_process()
286 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()
296 dir_path_gain_idx = sram.rot_dir_att_db + in ar9003_aic_cal_post_process()
297 com_att_db_table[sram in ar9003_aic_cal_post_process()
392 struct ath_aic_sram_info sram; ar9003_aic_cal_post_process() local
[all...]
/kernel/linux/linux-5.10/arch/arm/plat-omap/
H A Dsram.c3 * linux/arch/arm/plat-omap/sram.c
27 #include <plat/sram.h>
63 void *sram; in omap_sram_push() local
68 sram = omap_sram_push_address(size); in omap_sram_push()
69 if (!sram) in omap_sram_push()
72 base = (unsigned long)sram & PAGE_MASK; in omap_sram_push()
77 dst = fncpy(sram, funcp, size); in omap_sram_push()
/kernel/linux/linux-5.10/arch/powerpc/platforms/52xx/
H A Dmpc52xx_pm.c10 extern void mpc52xx_deep_sleep(void __iomem *sram, void __iomem *sdram_regs,
22 static void __iomem *sram; variable
91 sram = mbar + 0x8000; /* Those will be handled by the */ in mpc52xx_pm_prepare()
133 memcpy(saved_sram, sram, sram_size); in mpc52xx_pm_enter()
135 /* copy low level suspend code to sram */ in mpc52xx_pm_enter()
136 memcpy(sram, mpc52xx_ds_sram, mpc52xx_ds_sram_size); in mpc52xx_pm_enter()
160 mpc52xx_deep_sleep(sram, sdram, cdm, intr); in mpc52xx_pm_enter()
176 memcpy(sram, saved_sram, sram_size); in mpc52xx_pm_enter()
H A Dlite5200_pm.c10 extern void lite5200_low_power(void __iomem *sram, void __iomem *mbar);
19 static void __iomem *sram; variable
85 sram = mbar + 0x8000; in lite5200_pm_prepare()
109 _memcpy_fromio(saved_sram, sram, sram_size); in lite5200_save_regs()
115 _memcpy_toio(sram, saved_sram, sram_size); in lite5200_restore_regs()
217 lite5200_low_power(sram, mbar); in lite5200_pm_enter()
/kernel/linux/linux-6.6/arch/powerpc/platforms/52xx/
H A Dmpc52xx_pm.c12 extern void mpc52xx_deep_sleep(void __iomem *sram, void __iomem *sdram_regs,
24 static void __iomem *sram; variable
93 sram = mbar + 0x8000; /* Those will be handled by the */ in mpc52xx_pm_prepare()
135 memcpy(saved_sram, sram, sram_size); in mpc52xx_pm_enter()
137 /* copy low level suspend code to sram */ in mpc52xx_pm_enter()
138 memcpy(sram, mpc52xx_ds_sram, mpc52xx_ds_sram_size); in mpc52xx_pm_enter()
162 mpc52xx_deep_sleep(sram, sdram, cdm, intr); in mpc52xx_pm_enter()
178 memcpy(sram, saved_sram, sram_size); in mpc52xx_pm_enter()
H A Dlite5200_pm.c12 extern void lite5200_low_power(void __iomem *sram, void __iomem *mbar);
21 static void __iomem *sram; variable
84 sram = mbar + 0x8000; in lite5200_pm_prepare()
108 _memcpy_fromio(saved_sram, sram, sram_size); in lite5200_save_regs()
114 _memcpy_toio(sram, saved_sram, sram_size); in lite5200_restore_regs()
216 lite5200_low_power(sram, mbar); in lite5200_pm_enter()
/kernel/linux/linux-5.10/drivers/fsi/
H A Dfsi-master-ast-cf.c111 void __iomem *sram; member
315 iowrite32be(op, master->sram + CMD_STAT_REG); in do_copro_command()
328 stat = ioread8(master->sram + CMD_STAT_REG); in do_copro_command()
366 iowrite32be((cmd->msg >> 32), master->sram + CMD_DATA); in send_request()
367 iowrite32be((cmd->msg & 0xffffffff), master->sram + CMD_DATA + 4); in send_request()
380 uint8_t rtag = ioread8(master->sram + STAT_RTAG) & 0xf; in read_copro_response()
381 uint8_t rcrc = ioread8(master->sram + STAT_RCRC) & 0xf; in read_copro_response()
392 rdata = ioread32be(master->sram + RSP_DATA); in read_copro_response()
448 ioread32be(master->sram + CMD_STAT_REG), in dump_ucode_trace()
449 ioread8(master->sram in dump_ucode_trace()
[all...]
/kernel/linux/linux-6.6/drivers/fsi/
H A Dfsi-master-ast-cf.c111 void __iomem *sram; member
315 iowrite32be(op, master->sram + CMD_STAT_REG); in do_copro_command()
328 stat = ioread8(master->sram + CMD_STAT_REG); in do_copro_command()
366 iowrite32be((cmd->msg >> 32), master->sram + CMD_DATA); in send_request()
367 iowrite32be((cmd->msg & 0xffffffff), master->sram + CMD_DATA + 4); in send_request()
380 uint8_t rtag = ioread8(master->sram + STAT_RTAG) & 0xf; in read_copro_response()
381 uint8_t rcrc = ioread8(master->sram + STAT_RCRC) & 0xf; in read_copro_response()
392 rdata = ioread32be(master->sram + RSP_DATA); in read_copro_response()
448 ioread32be(master->sram + CMD_STAT_REG), in dump_ucode_trace()
449 ioread8(master->sram in dump_ucode_trace()
[all...]
/kernel/linux/linux-6.6/arch/arm/mach-omap1/
H A Dsram-init.c22 #include "sram.h"
61 void *sram; in omap_sram_push() local
66 sram = omap_sram_push_address(size); in omap_sram_push()
67 if (!sram) in omap_sram_push()
70 base = (unsigned long)sram & PAGE_MASK; in omap_sram_push()
75 dst = fncpy(sram, funcp, size); in omap_sram_push()
/kernel/linux/linux-5.10/drivers/memory/
H A DMakefile30 obj-$(CONFIG_TI_EMIF_SRAM) += ti-emif-sram.o
31 ti-emif-sram-objs := ti-emif-pm.o ti-emif-sram-pm.o
33 AFLAGS_ti-emif-sram-pm.o :=-Wa,-march=armv7-a
35 $(obj)/ti-emif-sram-pm.o: $(obj)/ti-emif-asm-offsets.h
/kernel/linux/linux-6.6/drivers/firmware/tegra/
H 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()
244 priv->tx.sram = (void __iomem *)gen_pool_dma_alloc(priv->tx.pool, 4096, in tegra186_bpmp_sram_init()
246 if (!priv->tx.sram) { in tegra186_bpmp_sram_init()
258 priv->rx.sram = (void __iomem *)gen_pool_dma_alloc(priv->rx.pool, 4096, in tegra186_bpmp_sram_init()
260 if (!priv->rx.sram) { in tegra186_bpmp_sram_init()
269 gen_pool_free(priv->tx.pool, (unsigned long)priv->tx.sram, 409 in tegra186_bpmp_sram_init()
[all...]
/kernel/linux/linux-6.6/drivers/memory/
H A DMakefile30 obj-$(CONFIG_TI_EMIF_SRAM) += ti-emif-sram.o
33 ti-emif-sram-objs := ti-emif-pm.o ti-emif-sram-pm.o
35 $(obj)/ti-emif-sram-pm.o: $(obj)/ti-emif-asm-offsets.h
/kernel/linux/linux-6.6/arch/arm/mach-omap2/
H A Dsram.c29 #include "sram.h"
83 void *sram; in omap_sram_push() local
88 sram = omap_sram_push_address(size); in omap_sram_push()
89 if (!sram) in omap_sram_push()
92 base = (unsigned long)sram & PAGE_MASK; in omap_sram_push()
97 dst = fncpy(sram, funcp, size); in omap_sram_push()
/kernel/linux/linux-5.10/sound/soc/intel/catpt/
H A Dloader.c53 void catpt_sram_init(struct resource *sram, u32 start, u32 size) in catpt_sram_init() argument
55 sram->start = start; in catpt_sram_init()
56 sram->end = start + size - 1; in catpt_sram_init()
59 void catpt_sram_free(struct resource *sram) in catpt_sram_free() argument
63 for (res = sram->child; res;) { in catpt_sram_free()
293 struct resource *sram, *res; in catpt_load_block() local
302 sram = &cdev->iram; in catpt_load_block()
305 sram = &cdev->dram; in catpt_load_block()
309 dst_addr = sram->start + blk->ram_offset; in catpt_load_block()
311 res = __request_region(sram, dst_add in catpt_load_block()
[all...]
/kernel/linux/linux-6.6/sound/soc/intel/catpt/
H A Dloader.c53 void catpt_sram_init(struct resource *sram, u32 start, u32 size) in catpt_sram_init() argument
55 sram->start = start; in catpt_sram_init()
56 sram->end = start + size - 1; in catpt_sram_init()
59 void catpt_sram_free(struct resource *sram) in catpt_sram_free() argument
63 for (res = sram->child; res;) { in catpt_sram_free()
293 struct resource *sram, *res; in catpt_load_block() local
302 sram = &cdev->iram; in catpt_load_block()
305 sram = &cdev->dram; in catpt_load_block()
309 dst_addr = sram->start + blk->ram_offset; in catpt_load_block()
311 res = __request_region(sram, dst_add in catpt_load_block()
[all...]
/kernel/linux/linux-5.10/drivers/remoteproc/
H A Dti_k3_r5_remoteproc.c88 * @sram: on-chip SRAM memory regions data
104 struct k3_r5_mem *sram; member
596 dev_addr = core->sram[i].dev_addr; in k3_r5_rproc_da_to_va()
597 size = core->sram[i].size; in k3_r5_rproc_da_to_va()
601 va = core->sram[i].cpu_addr + offset; in k3_r5_rproc_da_to_va()
1056 num_sram = of_property_count_elems_of_size(np, "sram", sizeof(phandle)); in k3_r5_core_of_get_sram_memories()
1063 core->sram = devm_kcalloc(dev, num_sram, sizeof(*core->sram), GFP_KERNEL); in k3_r5_core_of_get_sram_memories()
1064 if (!core->sram) in k3_r5_core_of_get_sram_memories()
1068 sram_np = of_parse_phandle(np, "sram", in k3_r5_core_of_get_sram_memories()
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-pxa/
H A Dpxa3xx.c59 static void __iomem *sram; variable
72 void (*fn)(unsigned int) = (void __force *)(sram + 0x8000); in pxa3xx_cpu_standby()
74 memcpy_toio(sram + 0x8000, pm_enter_standby_start, in pxa3xx_cpu_standby()
173 sram = ioremap(ISRAM_START, ISRAM_SIZE); in pxa3xx_init_pm()
174 if (!sram) { in pxa3xx_init_pm()
/kernel/linux/linux-6.6/arch/arm/mach-pxa/
H A Dpxa3xx.c64 static void __iomem *sram; variable
77 void (*fn)(unsigned int) = (void __force *)(sram + 0x8000); in pxa3xx_cpu_standby()
79 memcpy_toio(sram + 0x8000, pm_enter_standby_start, in pxa3xx_cpu_standby()
186 sram = ioremap(ISRAM_START, ISRAM_SIZE); in pxa3xx_init_pm()
187 if (!sram) { in pxa3xx_init_pm()

Completed in 22 milliseconds

123456