/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/ |
H A D | mali_memory_secure.c | 81 dma_addr_t phys = sg_dma_address(sg); in mali_mem_secure_mali_map() local 85 MALI_DEBUG_ASSERT((phys & ~(uintptr_t)0xFFFFFFFF) == 0); in mali_mem_secure_mali_map() 87 mali_mmu_pagedir_update(pagedir, virt, phys, size, prop); in mali_mem_secure_mali_map() 90 ("The secure mem physical address: 0x%x gpu virtual address: 0x%x! \n", phys, virt)); in mali_mem_secure_mali_map() 121 phys_addr_t phys; in mali_mem_secure_cpu_map() local 126 phys = dma_to_phys(&mali_platform_device->dev, dev_addr); in mali_mem_secure_cpu_map() 128 phys = page_to_phys(pfn_to_page(dma_to_pfn(&mali_platform_device->dev, dev_addr))); in mali_mem_secure_cpu_map() 134 ret = vmf_insert_pfn(vma, addr, PFN_DOWN(phys)); in mali_mem_secure_cpu_map() 139 phys += MALI_OSK_MALI_PAGE_SIZE; in mali_mem_secure_cpu_map() 142 ("The secure mem physical address: 0x%x , cpu virtual address: 0x%x! \n", phys, add in mali_mem_secure_cpu_map() [all...] |
H A D | mali_osk_low_level_mem.c | 35 mali_io_address _mali_osk_mem_mapioregion(uintptr_t phys, u32 size, const char *description) in _mali_osk_mem_mapioregion() argument 37 return (mali_io_address)ioremap(phys, size); in _mali_osk_mem_mapioregion() 40 void _mali_osk_mem_unmapioregion(uintptr_t phys, u32 size, mali_io_address virt) in _mali_osk_mem_unmapioregion() argument 45 mali_osk_errcode_t inline _mali_osk_mem_reqregion(uintptr_t phys, u32 size, const char *description) in _mali_osk_mem_reqregion() argument 50 return ((request_mem_region(phys, size, description) == NULL) ? MALI_OSK_ERR_NOMEM : MALI_OSK_ERR_OK); in _mali_osk_mem_reqregion() 54 void inline _mali_osk_mem_unreqregion(uintptr_t phys, u32 size) in _mali_osk_mem_unreqregion() argument 57 release_mem_region(phys, size); in _mali_osk_mem_unreqregion()
|
H A D | mali_memory_external.c | 40 u32 virt, phys, size; in mali_mem_bind_ext_buf() local 70 phys = phys_addr; in mali_mem_bind_ext_buf() 78 mali_mmu_pagedir_update(session->page_directory, virt, phys, size, MALI_MMU_FLAGS_DEFAULT); in mali_mem_bind_ext_buf() 81 mali_mmu_pagedir_update(session->page_directory, virt + size, phys, MALI_OSK_MALI_PAGE_SIZE, in mali_mem_bind_ext_buf()
|
H A D | mali_memory_os_alloc.c | 251 /* Store page phys addr */ in mali_mem_os_alloc_pages() 304 dma_addr_t phys = page_private(m_page->page); in mali_mem_os_mali_map() local 309 MALI_DEBUG_ASSERT((phys >> MAIL_OFFSET_TH) == 0); in mali_mem_os_mali_map() 311 mali_mmu_pagedir_update(pagedir, virt, (mali_dma_addr)phys, MALI_MMU_PAGE_SIZE, prop); in mali_mem_os_mali_map() 323 dma_addr_t phys = page_private(m_page->page); in mali_mem_os_mali_map() local 329 MALI_DEBUG_ASSERT((phys >> MAIL_OFFSET_TH) == 0); in mali_mem_os_mali_map() 331 mali_mmu_pagedir_update(pagedir, virt, (mali_dma_addr)phys, MALI_MMU_PAGE_SIZE, prop); in mali_mem_os_mali_map() 485 mali_dma_addr phys; member 495 mali_osk_errcode_t mali_mem_os_get_table_page(mali_dma_addr *phys, mali_io_address *mapping) in mali_mem_os_get_table_page() argument 503 *phys in mali_mem_os_get_table_page() 534 mali_mem_os_release_table_page(mali_dma_addr phys, void *virt) mali_mem_os_release_table_page() argument [all...] |
H A D | mali_memory_os_alloc.h | 26 mali_osk_errcode_t mali_mem_os_get_table_page(mali_dma_addr *phys, mali_io_address *mapping); 28 void mali_mem_os_release_table_page(mali_dma_addr phys, void *virt);
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/ |
H A D | mali_memory_secure.c | 78 dma_addr_t phys = sg_dma_address(sg); in mali_mem_secure_mali_map() local 82 MALI_DEBUG_ASSERT(0 == (phys & ~(uintptr_t)0xFFFFFFFF)); in mali_mem_secure_mali_map() 84 mali_mmu_pagedir_update(pagedir, virt, phys, size, prop); in mali_mem_secure_mali_map() 86 MALI_DEBUG_PRINT(3, ("The secure mem physical address: 0x%x gpu virtual address: 0x%x! \n", phys, virt)); in mali_mem_secure_mali_map() 119 phys_addr_t phys; in mali_mem_secure_cpu_map() local 124 phys = dma_to_phys(&mali_platform_device->dev, dev_addr); in mali_mem_secure_cpu_map() 126 phys = page_to_phys(pfn_to_page(dma_to_pfn(&mali_platform_device->dev, dev_addr))); in mali_mem_secure_cpu_map() 132 ret = vmf_insert_pfn(vma, addr, PFN_DOWN(phys)); in mali_mem_secure_cpu_map() 138 phys += _MALI_OSK_MALI_PAGE_SIZE; in mali_mem_secure_cpu_map() 140 MALI_DEBUG_PRINT(3, ("The secure mem physical address: 0x%x , cpu virtual address: 0x%x! \n", phys, add in mali_mem_secure_cpu_map() [all...] |
H A D | mali_osk_low_level_mem.c | 34 mali_io_address _mali_osk_mem_mapioregion(uintptr_t phys, u32 size, const char *description) in _mali_osk_mem_mapioregion() argument 36 return (mali_io_address)ioremap(phys, size); in _mali_osk_mem_mapioregion() 39 void _mali_osk_mem_unmapioregion(uintptr_t phys, u32 size, mali_io_address virt) in _mali_osk_mem_unmapioregion() argument 44 _mali_osk_errcode_t inline _mali_osk_mem_reqregion(uintptr_t phys, u32 size, const char *description) in _mali_osk_mem_reqregion() argument 49 return ((NULL == request_mem_region(phys, size, description)) ? _MALI_OSK_ERR_NOMEM : _MALI_OSK_ERR_OK); in _mali_osk_mem_reqregion() 53 void inline _mali_osk_mem_unreqregion(uintptr_t phys, u32 size) in _mali_osk_mem_unreqregion() argument 56 release_mem_region(phys, size); in _mali_osk_mem_unreqregion()
|
H A D | mali_memory_external.c | 42 u32 virt, phys, size; in mali_mem_bind_ext_buf() local 68 phys = phys_addr; in mali_mem_bind_ext_buf() 76 mali_mmu_pagedir_update(session->page_directory, virt, phys, size, MALI_MMU_FLAGS_DEFAULT); in mali_mem_bind_ext_buf() 79 mali_mmu_pagedir_update(session->page_directory, virt + size, phys, _MALI_OSK_MALI_PAGE_SIZE, MALI_MMU_FLAGS_DEFAULT); in mali_mem_bind_ext_buf()
|
H A D | mali_memory_os_alloc.c | 249 /* Store page phys addr */ in mali_mem_os_alloc_pages() 302 dma_addr_t phys = page_private(m_page->page); in mali_mem_os_mali_map() local 307 MALI_DEBUG_ASSERT(0 == (phys >> 32)); in mali_mem_os_mali_map() 309 mali_mmu_pagedir_update(pagedir, virt, (mali_dma_addr)phys, MALI_MMU_PAGE_SIZE, prop); in mali_mem_os_mali_map() 322 dma_addr_t phys = page_private(m_page->page); in mali_mem_os_mali_map() local 328 MALI_DEBUG_ASSERT(0 == (phys >> 32)); in mali_mem_os_mali_map() 330 mali_mmu_pagedir_update(pagedir, virt, (mali_dma_addr)phys, MALI_MMU_PAGE_SIZE, prop); in mali_mem_os_mali_map() 489 mali_dma_addr phys; member 499 _mali_osk_errcode_t mali_mem_os_get_table_page(mali_dma_addr *phys, mali_io_address *mapping) in mali_mem_os_get_table_page() argument 507 *phys in mali_mem_os_get_table_page() 540 mali_mem_os_release_table_page(mali_dma_addr phys, void *virt) mali_mem_os_release_table_page() argument [all...] |
H A D | mali_memory_os_alloc.h | 26 _mali_osk_errcode_t mali_mem_os_get_table_page(mali_dma_addr *phys, mali_io_address *mapping); 28 void mali_mem_os_release_table_page(mali_dma_addr phys, void *virt);
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_mem_lowlevel.h | 60 #define phys_to_page(phys) (pfn_to_page((phys) >> PAGE_SHIFT)) 89 * @phys: physical address to be converted to tagged type 98 static inline struct tagged_addr as_tagged(phys_addr_t phys) in as_tagged() argument 102 t.tagged_addr = phys & PAGE_MASK; in as_tagged() 109 * @phys: physical address to be converted to tagged address 116 static inline struct tagged_addr as_tagged_tag(phys_addr_t phys, int tag) in as_tagged_tag() argument 120 t.tagged_addr = (phys & PAGE_MASK) | (tag & ~PAGE_MASK); in as_tagged_tag()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_mem_lowlevel.h | 57 #define phys_to_page(phys) (pfn_to_page((phys) >> PAGE_SHIFT)) 86 * @phys: physical address to be converted to tagged type 95 static inline struct tagged_addr as_tagged(phys_addr_t phys) in as_tagged() argument 99 t.tagged_addr = phys & PAGE_MASK; in as_tagged() 106 * @phys: physical address to be converted to tagged address 113 static inline struct tagged_addr as_tagged_tag(phys_addr_t phys, int tag) in as_tagged_tag() argument 117 t.tagged_addr = (phys & PAGE_MASK) | (tag & ~PAGE_MASK); in as_tagged_tag()
|
H A D | mali_kbase_hwcnt_backend_csf_if_fw.c | 60 * @phys: Physical memory allocation used by the mapping. 68 struct tagged_addr *phys; member 296 struct tagged_addr *phys; in kbasep_hwcnt_backend_csf_if_fw_ring_buf_alloc() local 335 phys = kmalloc_array(num_pages, sizeof(*phys), GFP_KERNEL); in kbasep_hwcnt_backend_csf_if_fw_ring_buf_alloc() 336 if (!phys) in kbasep_hwcnt_backend_csf_if_fw_ring_buf_alloc() 346 phys, false); in kbasep_hwcnt_backend_csf_if_fw_ring_buf_alloc() 352 page_list[i] = as_page(phys[i]); in kbasep_hwcnt_backend_csf_if_fw_ring_buf_alloc() 363 gpu_va_base >> PAGE_SHIFT, phys, num_pages, in kbasep_hwcnt_backend_csf_if_fw_ring_buf_alloc() 373 fw_ring_buf->phys in kbasep_hwcnt_backend_csf_if_fw_ring_buf_alloc() [all...] |
/device/board/hisilicon/hispark_aries/liteos_a/board/ |
H A D | board.c | 41 .phys = SYS_MEM_BASE, 48 .phys = SYS_MEM_BASE, 55 .phys = PERIPH_PMM_BASE, 62 .phys = PERIPH_PMM_BASE, 69 .phys = PERIPH_PMM_BASE,
|
/device/qemu/arm_virt/liteos_a/board/ |
H A D | platform.c | 58 .phys = SYS_MEM_BASE, 65 .phys = SYS_MEM_BASE, 72 .phys = PERIPH_PMM_BASE, 79 .phys = PERIPH_PMM_BASE, 86 .phys = PERIPH_PMM_BASE,
|
/device/board/hisilicon/hispark_taurus/liteos_a/board/ |
H A D | board.c | 128 .phys = SYS_MEM_BASE, 135 .phys = SYS_MEM_BASE, 142 .phys = PERIPH_PMM_BASE, 149 .phys = PERIPH_PMM_BASE, 156 .phys = PERIPH_PMM_BASE, 164 .phys = BOOTROM_PHYS_BASE,
|
/device/soc/rockchip/common/sdk_linux/drivers/nvmem/ |
H A D | rockchip-efuse.c | 101 phys_addr_t phys;
member 281 sip_smc_secure_reg_write(efuse->phys + REG_EFUSE_CTRL, RK3288_LOAD | RK3288_PGENB);
in rockchip_rk3288_efuse_secure_read() 284 wr_val = sip_smc_secure_reg_read(efuse->phys + REG_EFUSE_CTRL) & (~(RK3288_A_MASK << RK3288_A_SHIFT));
in rockchip_rk3288_efuse_secure_read() 285 sip_smc_secure_reg_write(efuse->phys + REG_EFUSE_CTRL, wr_val);
in rockchip_rk3288_efuse_secure_read() 286 wr_val = sip_smc_secure_reg_read(efuse->phys + REG_EFUSE_CTRL) | ((offset++ & RK3288_A_MASK) << RK3288_A_SHIFT);
in rockchip_rk3288_efuse_secure_read() 287 sip_smc_secure_reg_write(efuse->phys + REG_EFUSE_CTRL, wr_val);
in rockchip_rk3288_efuse_secure_read() 289 wr_val = sip_smc_secure_reg_read(efuse->phys + REG_EFUSE_CTRL) | RK3288_STROBE;
in rockchip_rk3288_efuse_secure_read() 290 sip_smc_secure_reg_write(efuse->phys + REG_EFUSE_CTRL, wr_val);
in rockchip_rk3288_efuse_secure_read() 292 *buf++ = sip_smc_secure_reg_read(efuse->phys + REG_EFUSE_DOUT);
in rockchip_rk3288_efuse_secure_read() 293 wr_val = sip_smc_secure_reg_read(efuse->phys in rockchip_rk3288_efuse_secure_read() [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/mmu/ |
H A D | mali_kbase_mmu.h | 107 struct tagged_addr *phys, size_t nr, unsigned long flags, int group_id); 108 int kbase_mmu_insert_pages(struct kbase_device *kbdev, struct kbase_mmu_table *mmut, u64 vpfn, struct tagged_addr *phys, 110 int kbase_mmu_insert_single_page(struct kbase_context *kctx, u64 vpfn, struct tagged_addr phys, size_t nr, 114 int kbase_mmu_update_pages(struct kbase_context *kctx, u64 vpfn, struct tagged_addr *phys, size_t nr,
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/mmu/ |
H A D | mali_kbase_mmu.h | 133 struct tagged_addr *phys, size_t nr, 137 struct tagged_addr *phys, size_t nr, 141 struct tagged_addr phys, size_t nr, 149 struct tagged_addr *phys, size_t nr,
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/ |
H A D | mali_osk.h | 564 * @param phys CPU-physical base address of the memory to map in. This must 572 mali_io_address _mali_osk_mem_mapioregion(uintptr_t phys, u32 size, const char *description); 585 * - provide a mapping that does not map to phys. 587 * @param phys CPU-physical base address of the memory that was originally 594 void _mali_osk_mem_unmapioregion(uintptr_t phys, u32 size, mali_io_address mapping); 611 * @param[out] phys CPU-physical base address of memory that was allocated. 612 * (*phys) will be guaranteed to be aligned to at least 619 * memory/registers can be accessed. NULL on failure, and (*phys) is unmodified. 621 mali_io_address _mali_osk_mem_allocioregion(u32 *phys, u32 size); 634 * - provide a mapping that does not map to phys [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/ |
H A D | mali_osk.h | 578 * @param phys CPU-physical base address of the memory to map in. This must 586 mali_io_address _mali_osk_mem_mapioregion(uintptr_t phys, u32 size, const char *description); 599 * - provide a mapping that does not map to phys. 601 * @param phys CPU-physical base address of the memory that was originally 608 void _mali_osk_mem_unmapioregion(uintptr_t phys, u32 size, mali_io_address mapping); 625 * @param[out] phys CPU-physical base address of memory that was allocated. 626 * (*phys) will be guaranteed to be aligned to at least 633 * memory/registers can be accessed. NULL on failure, and (*phys) is unmodified. 635 mali_io_address _mali_osk_mem_allocioregion(u32 *phys, u32 size); 648 * - provide a mapping that does not map to phys [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/phy/rockchip/ |
H A D | phy-rockchip-pcie.c | 72 } phys[PHY_MAX_LANE_NUM];
member 82 return container_of(inst, struct rockchip_pcie_phy, phys[inst->index]);
in to_pcie_phy() 90 return rk_phy->phys[0].phy;
in rockchip_pcie_phy_of_xlate() 97 return rk_phy->phys[args->args[0]].phy;
in rockchip_pcie_phy_of_xlate() 387 rk_phy->phys[i].phy = devm_phy_create(dev, dev->of_node, &ops);
in rockchip_pcie_phy_probe() 388 if (IS_ERR(rk_phy->phys[i].phy)) {
in rockchip_pcie_phy_probe() 390 return PTR_ERR(rk_phy->phys[i].phy);
in rockchip_pcie_phy_probe() 392 rk_phy->phys[i].index = i;
in rockchip_pcie_phy_probe() 393 phy_set_drvdata(rk_phy->phys[i].phy, &rk_phy->phys[ in rockchip_pcie_phy_probe() [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/csf/ |
H A D | mali_kbase_csf_firmware.c | 390 struct tagged_addr *phys, u32 num_pages, u32 flags, in load_fw_image_section() 404 struct page *const page = as_page(phys[page_num]); in load_fw_image_section() 459 load_fw_image_section(kbdev, firmware->data, interface->phys, in reload_fw_data_sections() 497 struct tagged_addr *phys = NULL; in parse_memory_setup_entry() local 545 phys = kmalloc_array(num_pages, sizeof(*phys), GFP_KERNEL); in parse_memory_setup_entry() 546 if (!phys) in parse_memory_setup_entry() 550 pma = kbase_csf_protected_memory_alloc(kbdev, phys, num_pages); in parse_memory_setup_entry() 559 num_pages, phys, false); in parse_memory_setup_entry() 565 load_fw_image_section(kbdev, fw->data, phys, num_page in parse_memory_setup_entry() 389 load_fw_image_section(struct kbase_device *kbdev, const u8 *data, struct tagged_addr *phys, u32 num_pages, u32 flags, u32 data_start, u32 data_end) load_fw_image_section() argument 2322 struct tagged_addr *phys; kbase_csf_firmware_mcu_shared_mapping_init() local [all...] |
H A D | mali_kbase_csf_protected_memory.c | 73 struct tagged_addr *phys, in kbase_csf_protected_memory_alloc() 82 if (WARN_ON(!pma_dev) || WARN_ON(!phys) || !pma) in kbase_csf_protected_memory_alloc() 91 phys[i] = as_tagged(pma_dev->ops.pma_get_phys_addr(pma_dev, in kbase_csf_protected_memory_alloc() 71 kbase_csf_protected_memory_alloc( struct kbase_device *const kbdev, struct tagged_addr *phys, size_t num_pages) kbase_csf_protected_memory_alloc() argument
|
/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | rockchip-iovmm.h | 61 static inline int rockchip_iovmm_map_oto(struct device *dev, phys_addr_t phys, size_t size) in rockchip_iovmm_map_oto() argument 66 static inline void rockchip_iovmm_unmap_oto(struct device *dev, phys_addr_t phys) in rockchip_iovmm_unmap_oto() argument
|