| /OK3568_Linux_fs/kernel/arch/powerpc/sysdev/ |
| H A D | fsl_85xx_l2ctlr.c | 17 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 D | fsl_85xx_cache_ctlr.h | 80 unsigned int sram_size; member
|
| H A D | fsl_85xx_cache_sram.c | 87 cache_sram->size = sram_params.sram_size; in instantiate_cache_sram()
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-mmp/ |
| H A D | sram.c | 31 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 D | cesa.c | 385 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 D | cesa.h | 196 #define CESA_SA_SRAM_PAYLOAD_SIZE (cesa_dev->sram_size - \ 420 unsigned int sram_size; member
|
| /OK3568_Linux_fs/kernel/drivers/rknpu/ |
| H A D | rknpu_gem.c | 437 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 D | rknpu_mm.c | 234 rknpu_dev->sram_size, rknpu_dev->sram_size - free_size, in rknpu_mm_dump()
|
| H A D | rknpu_drv.c | 1655 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 D | mpc52xx_pm.c | 23 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 D | lite5200_pm.c | 20 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 D | mpp_rkvdec2.c | 1409 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 D | mpp_rkvenc2.c | 286 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 D | mpp_rkvdec2.h | 205 u32 sram_size; member
|
| /OK3568_Linux_fs/kernel/drivers/rknpu/include/ |
| H A D | rknpu_gem.h | 50 unsigned long sram_size; member 74 unsigned long sram_size);
|
| H A D | rknpu_drv.h | 156 uint32_t sram_size; member
|
| H A D | rknpu_ioctl.h | 157 __u64 sram_size; member
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/myricom/myri10ge/ |
| H A D | myri10ge_mcp_gen_header.h | 23 unsigned sram_size; member
|
| /OK3568_Linux_fs/kernel/arch/arm/plat-orion/include/plat/ |
| H A D | common.h | 100 unsigned long sram_size,
|
| /OK3568_Linux_fs/kernel/drivers/remoteproc/ |
| H A D | mtk_common.h | 90 size_t sram_size; member
|
| H A D | mtk_scp.c | 412 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 D | rrunner.c | 507 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 D | common.c | 847 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 D | c8sectpfe-core.h | 94 unsigned long sram_size; member
|
| /OK3568_Linux_fs/kernel/drivers/misc/habanalabs/common/ |
| H A D | habanalabs_ioctl.c | 62 hw_ip.sram_size = prop->sram_size - sram_kmd_size; in hw_ip_info()
|