Home
last modified time | relevance | path

Searched refs:sram_size (Results 1 – 25 of 36) sorted by relevance

12

/OK3568_Linux_fs/kernel/arch/powerpc/sysdev/
H A Dfsl_85xx_l2ctlr.c17 static char *sram_size; variable
26 if (!sram_size || (kstrtouint(sram_size, 0, &size) < 0)) in get_cache_sram_params()
33 sram_params->sram_size = size; in get_cache_sram_params()
43 sram_size = str; in get_size_from_cmdline()
83 rem = l2cache_size % sram_params.sram_size; in mpc85xx_l2ctlr_of_probe()
84 ways = LOCK_WAYS_FULL * sram_params.sram_size / l2cache_size; in mpc85xx_l2ctlr_of_probe()
H A Dfsl_85xx_cache_ctlr.h80 unsigned int sram_size; member
H A Dfsl_85xx_cache_sram.c87 cache_sram->size = sram_params.sram_size; in instantiate_cache_sram()
/OK3568_Linux_fs/kernel/arch/arm/mach-mmp/
H A Dsram.c31 u32 sram_size; member
88 info->sram_size = resource_size(res); in sram_probe()
89 info->sram_virt = ioremap(info->sram_phys, info->sram_size); in sram_probe()
101 info->sram_phys, info->sram_size, -1); in sram_probe()
131 if (info->sram_size) { in sram_remove()
/OK3568_Linux_fs/kernel/drivers/crypto/marvell/cesa/
H A Dcesa.c385 cesa->sram_size, in mv_cesa_get_sram()
403 if (!res || resource_size(res) < cesa->sram_size) in mv_cesa_get_sram()
411 cesa->sram_size, in mv_cesa_get_sram()
426 cesa->sram_size); in mv_cesa_put_sram()
429 cesa->sram_size, DMA_BIDIRECTIONAL, 0); in mv_cesa_put_sram()
441 u32 sram_size; in mv_cesa_probe() local
463 sram_size = CESA_SA_DEFAULT_SRAM_SIZE; in mv_cesa_probe()
465 &sram_size); in mv_cesa_probe()
466 if (sram_size < CESA_SA_MIN_SRAM_SIZE) in mv_cesa_probe()
467 sram_size = CESA_SA_MIN_SRAM_SIZE; in mv_cesa_probe()
[all …]
H A Dcesa.h196 #define CESA_SA_SRAM_PAYLOAD_SIZE (cesa_dev->sram_size - \
420 unsigned int sram_size; member
/OK3568_Linux_fs/kernel/drivers/rknpu/
H A Drknpu_gem.c437 cache_size = rknpu_obj->sram_size; in rknpu_gem_alloc_buf_with_cache()
584 cache_size = rknpu_obj->sram_size; in rknpu_gem_free_buf_with_cache()
618 unsigned long sram_size) in rknpu_gem_object_create() argument
643 (flags & RKNPU_MEM_TRY_ALLOC_SRAM) && rknpu_dev->sram_size > 0) { in rknpu_gem_object_create()
647 if (sram_size != 0) in rknpu_gem_object_create()
648 sram_size = round_up(sram_size, PAGE_SIZE); in rknpu_gem_object_create()
661 if (sram_size != 0 && remain_ddr_size > sram_size) in rknpu_gem_object_create()
662 real_sram_size = sram_size; in rknpu_gem_object_create()
679 rknpu_obj->sram_size = real_sram_size; in rknpu_gem_object_create()
731 rknpu_obj->size, rknpu_obj->sram_size, in rknpu_gem_object_create()
[all …]
H A Drknpu_mm.c234 rknpu_dev->sram_size, rknpu_dev->sram_size - free_size, in rknpu_mm_dump()
H A Drknpu_drv.c1655 uint32_t sram_size = 0; in rknpu_find_sram_resource() local
1660 rknpu_dev->sram_size = 0; in rknpu_find_sram_resource()
1682 sram_size = rknpu_dev->sram_end - rknpu_dev->sram_start; in rknpu_find_sram_resource()
1685 devm_ioremap(dev, rknpu_dev->sram_start, sram_size); in rknpu_find_sram_resource()
1691 rknpu_dev->sram_size = sram_size; in rknpu_find_sram_resource()
1695 rknpu_dev->sram_size); in rknpu_find_sram_resource()
1947 ret = rknpu_mm_create(rknpu_dev->sram_size, PAGE_SIZE, in rknpu_probe()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/52xx/
H A Dmpc52xx_pm.c23 static int sram_size; variable
92 sram_size = 0x4000; /* bestcomm driver soon */ in mpc52xx_pm_prepare()
133 memcpy(saved_sram, sram, sram_size); in mpc52xx_pm_enter()
176 memcpy(sram, saved_sram, sram_size); in mpc52xx_pm_enter()
H A Dlite5200_pm.c20 static const int sram_size = 0x4000; /* 16 kBytes */ variable
109 _memcpy_fromio(saved_sram, sram, sram_size); in lite5200_save_regs()
115 _memcpy_toio(sram, saved_sram, sram_size); in lite5200_restore_regs()
/OK3568_Linux_fs/kernel/drivers/video/rockchip/mpp/
H A Dmpp_rkvdec2.c1409 u32 rcb_size, sram_size; in rkvdec2_alloc_rcbbuf() local
1455 sram_size = sram_end - sram_start; in rkvdec2_alloc_rcbbuf()
1456 sram_size = rcb_size < sram_size ? rcb_size : sram_size; in rkvdec2_alloc_rcbbuf()
1459 ret = iommu_map(domain, iova, sram_start, sram_size, IOMMU_READ | IOMMU_WRITE); in rkvdec2_alloc_rcbbuf()
1465 if (sram_size < rcb_size) { in rkvdec2_alloc_rcbbuf()
1467 size_t page_size = PAGE_ALIGN(rcb_size - sram_size); in rkvdec2_alloc_rcbbuf()
1476 ret = iommu_map(domain, iova + sram_size, page_to_phys(page), in rkvdec2_alloc_rcbbuf()
1485 dec->sram_size = sram_size; in rkvdec2_alloc_rcbbuf()
1490 dev_info(dev, "sram_size %u\n", dec->sram_size); in rkvdec2_alloc_rcbbuf()
1516 iommu_unmap(domain, iova, sram_size); in rkvdec2_alloc_rcbbuf()
[all …]
H A Dmpp_rkvenc2.c286 u32 sram_size; member
823 if (rcb_offset > enc->sram_size || in rkvenc2_set_rcbbuf()
2314 u32 sram_used, sram_size; in rkvenc2_alloc_rcbbuf() local
2359 sram_size = sram_end - sram_start; in rkvenc2_alloc_rcbbuf()
2360 sram_size = sram_used < sram_size ? sram_used : sram_size; in rkvenc2_alloc_rcbbuf()
2363 ret = iommu_map(domain, iova, sram_start, sram_size, IOMMU_READ | IOMMU_WRITE); in rkvenc2_alloc_rcbbuf()
2369 if (sram_size < sram_used) { in rkvenc2_alloc_rcbbuf()
2371 size_t page_size = PAGE_ALIGN(sram_used - sram_size); in rkvenc2_alloc_rcbbuf()
2380 ret = iommu_map(domain, iova + sram_size, page_to_phys(page), in rkvenc2_alloc_rcbbuf()
2390 enc->sram_size = sram_size; in rkvenc2_alloc_rcbbuf()
[all …]
H A Dmpp_rkvdec2.h205 u32 sram_size; member
/OK3568_Linux_fs/kernel/drivers/rknpu/include/
H A Drknpu_gem.h50 unsigned long sram_size; member
74 unsigned long sram_size);
H A Drknpu_drv.h156 uint32_t sram_size; member
H A Drknpu_ioctl.h157 __u64 sram_size; member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/myricom/myri10ge/
H A Dmyri10ge_mcp_gen_header.h23 unsigned sram_size; member
/OK3568_Linux_fs/kernel/arch/arm/plat-orion/include/plat/
H A Dcommon.h100 unsigned long sram_size,
/OK3568_Linux_fs/kernel/drivers/remoteproc/
H A Dmtk_common.h90 size_t sram_size; member
H A Dmtk_scp.c412 if (da < scp->sram_size) { in scp_da_to_va()
414 if (offset >= 0 && (offset + len) < scp->sram_size) in scp_da_to_va()
661 scp->sram_size = resource_size(res); in scp_probe()
/OK3568_Linux_fs/kernel/drivers/net/hippi/
H A Drrunner.c507 u32 sram_size, rev; in rr_init() local
547 sram_size = rr_read_eeprom_word(rrpriv, 8); in rr_init()
548 printk(" SRAM size 0x%06x\n", sram_size); in rr_init()
1475 u32 p2len, p2size, nr_seg, revision, io, sram_size; in rr_load_firmware() local
1503 sram_size = rr_read_eeprom_word(rrpriv, 8); in rr_load_firmware()
1505 for (i = 200; i < sram_size / 4; i++){ in rr_load_firmware()
/OK3568_Linux_fs/kernel/arch/arm/plat-orion/
H A Dcommon.c847 unsigned long sram_size, in orion_crypto_init() argument
854 orion_crypto_resources[2].end = srambase + sram_size - 1; in orion_crypto_init()
/OK3568_Linux_fs/kernel/drivers/media/platform/sti/c8sectpfe/
H A Dc8sectpfe-core.h94 unsigned long sram_size; member
/OK3568_Linux_fs/kernel/drivers/misc/habanalabs/common/
H A Dhabanalabs_ioctl.c62 hw_ip.sram_size = prop->sram_size - sram_kmd_size; in hw_ip_info()

12