| /OK3568_Linux_fs/kernel/drivers/staging/gasket/ |
| H A D | gasket_page_table.h | 64 void gasket_page_table_cleanup(struct gasket_page_table *page_table); 79 int gasket_page_table_partition(struct gasket_page_table *page_table, 97 int gasket_page_table_map(struct gasket_page_table *page_table, ulong host_addr, 108 void gasket_page_table_unmap(struct gasket_page_table *page_table, 115 void gasket_page_table_unmap_all(struct gasket_page_table *page_table); 122 void gasket_page_table_reset(struct gasket_page_table *page_table); 131 void gasket_page_table_garbage_collect(struct gasket_page_table *page_table); 148 int gasket_page_table_lookup_page(struct gasket_page_table *page_table, 165 bool gasket_page_table_are_addrs_bad(struct gasket_page_table *page_table, 181 bool gasket_page_table_is_dev_addr_bad(struct gasket_page_table *page_table, [all …]
|
| H A D | gasket_page_table.c | 1176 uint gasket_page_table_max_size(struct gasket_page_table *page_table) in gasket_page_table_max_size() argument 1178 if (!page_table) in gasket_page_table_max_size() 1180 return page_table->config.total_entries; in gasket_page_table_max_size() 1212 int gasket_page_table_system_status(struct gasket_page_table *page_table) in gasket_page_table_system_status() argument 1214 if (!page_table) in gasket_page_table_system_status() 1217 if (gasket_page_table_num_entries(page_table) == 0) { in gasket_page_table_system_status() 1218 dev_dbg(page_table->device, "Page table size is 0\n"); in gasket_page_table_system_status() 1238 pg_tbl = gasket_dev->page_table[0]; in gasket_set_user_virt() 1262 if (!gasket_dev->page_table[index]) in gasket_alloc_coherent_memory() 1273 gasket_dev->page_table[index]->num_coherent_pages = num_pages; in gasket_alloc_coherent_memory() [all …]
|
| H A D | gasket_ioctl.c | 55 gasket_dev->page_table[ibuf.page_table_index]); in gasket_read_page_table_size() 81 gasket_page_table_num_simple_entries(gasket_dev->page_table[ibuf.page_table_index]); in gasket_read_simple_page_table_size() 111 gasket_dev->page_table[ibuf.page_table_index]); in gasket_partition_page_table() 123 gasket_dev->page_table[ibuf.page_table_index], ibuf.size); in gasket_partition_page_table() 145 if (gasket_page_table_are_addrs_bad(gasket_dev->page_table[ibuf.page_table_index], in gasket_map_buffers() 150 return gasket_page_table_map(gasket_dev->page_table[ibuf.page_table_index], in gasket_map_buffers() 171 if (gasket_page_table_is_dev_addr_bad(gasket_dev->page_table[ibuf.page_table_index], in gasket_unmap_buffers() 175 gasket_page_table_unmap(gasket_dev->page_table[ibuf.page_table_index], in gasket_unmap_buffers()
|
| H A D | gasket_core.c | 423 status = gasket_page_table_system_status(gasket_dev->page_table[i]); in gasket_get_hw_status() 639 if (gasket_dev->page_table[i]) { in gasket_disable_device() 640 gasket_page_table_reset(gasket_dev->page_table[i]); in gasket_disable_device() 641 gasket_page_table_cleanup(gasket_dev->page_table[i]); in gasket_disable_device() 1279 gasket_page_table_unmap_all(gasket_dev->page_table[i]); in gasket_release() 1280 gasket_page_table_garbage_collect(gasket_dev->page_table[i]); in gasket_release() 1364 ret = gasket_page_table_init(&gasket_dev->page_table[tbl_idx], in gasket_enable_device() 1379 gasket_page_table_reset(gasket_dev->page_table[tbl_idx]); in gasket_enable_device() 1611 gasket_page_table_reset(gasket_dev->page_table[i]); in gasket_reset_nolock()
|
| /OK3568_Linux_fs/kernel/arch/s390/kernel/ |
| H A D | vdso.c | 109 unsigned long segment_table, page_table, page_frame; in vdso_alloc_per_cpu() local 113 page_table = get_zeroed_page(GFP_KERNEL); in vdso_alloc_per_cpu() 115 if (!segment_table || !page_table || !page_frame) in vdso_alloc_per_cpu() 118 arch_set_page_dat(virt_to_page(page_table), 0); in vdso_alloc_per_cpu() 127 memset64((u64 *)page_table, _PAGE_INVALID, PTRS_PER_PTE); in vdso_alloc_per_cpu() 129 *(unsigned long *) segment_table = _SEGMENT_ENTRY + page_table; in vdso_alloc_per_cpu() 130 *(unsigned long *) page_table = _PAGE_PROTECT + page_frame; in vdso_alloc_per_cpu() 140 free_page(page_table); in vdso_alloc_per_cpu() 147 unsigned long segment_table, page_table, page_frame; in vdso_free_per_cpu() local 150 page_table = *(unsigned long *) segment_table; in vdso_free_per_cpu() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/iommu/ |
| H A D | sun50i-iommu.c | 454 u32 *page_table; in sun50i_iommu_alloc_page_table() local 456 page_table = kmem_cache_zalloc(iommu->pt_pool, gfp); in sun50i_iommu_alloc_page_table() 457 if (!page_table) in sun50i_iommu_alloc_page_table() 460 pt_dma = dma_map_single(iommu->dev, page_table, PT_SIZE, DMA_TO_DEVICE); in sun50i_iommu_alloc_page_table() 463 kmem_cache_free(iommu->pt_pool, page_table); in sun50i_iommu_alloc_page_table() 468 WARN_ON(pt_dma != virt_to_phys(page_table)); in sun50i_iommu_alloc_page_table() 470 return page_table; in sun50i_iommu_alloc_page_table() 474 u32 *page_table) in sun50i_iommu_free_page_table() argument 476 phys_addr_t pt_phys = virt_to_phys(page_table); in sun50i_iommu_free_page_table() 479 kmem_cache_free(iommu->pt_pool, page_table); in sun50i_iommu_free_page_table() [all …]
|
| H A D | rockchip-iommu.c | 807 u32 *page_table; in rk_iommu_iova_to_phys() local 816 page_table = (u32 *)phys_to_virt(pt_phys); in rk_iommu_iova_to_phys() 817 pte = page_table[rk_iova_pte_index(iova)]; in rk_iommu_iova_to_phys() 873 u32 *page_table, *dte_addr; in rk_dte_get_page_table() local 886 page_table = (u32 *)get_zeroed_page(GFP_ATOMIC | GFP_DMA32); in rk_dte_get_page_table() 887 if (!page_table) in rk_dte_get_page_table() 890 pt_dma = dma_map_single(dma_dev, page_table, SPAGE_SIZE, DMA_TO_DEVICE); in rk_dte_get_page_table() 893 free_page((unsigned long)page_table); in rk_dte_get_page_table() 1006 u32 *page_table, *pte_addr; in rk_iommu_map() local 1019 page_table = rk_dte_get_page_table(rk_domain, iova); in rk_iommu_map() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/video/rockchip/rga3/ |
| H A D | rga_iommu.c | 57 if (job->src_buffer.page_table) { in rga_set_mmu_base() 58 rga_dma_sync_flush_range(job->src_buffer.page_table, in rga_set_mmu_base() 59 (job->src_buffer.page_table + in rga_set_mmu_base() 62 req->mmu_info.src0_base_addr = virt_to_phys(job->src_buffer.page_table); in rga_set_mmu_base() 65 if (job->src1_buffer.page_table) { in rga_set_mmu_base() 66 rga_dma_sync_flush_range(job->src1_buffer.page_table, in rga_set_mmu_base() 67 (job->src1_buffer.page_table + in rga_set_mmu_base() 70 req->mmu_info.src1_base_addr = virt_to_phys(job->src1_buffer.page_table); in rga_set_mmu_base() 73 if (job->dst_buffer.page_table) { in rga_set_mmu_base() 74 rga_dma_sync_flush_range(job->dst_buffer.page_table, in rga_set_mmu_base() [all …]
|
| H A D | rga_mm.c | 1083 uint32_t *page_table, in rga_mm_sgt_to_page_table() argument 1124 page_table[mapped_size + i] = (uint32_t)(Address + (i << PAGE_SHIFT)); in rga_mm_sgt_to_page_table() 1145 uint32_t *page_table = NULL; in rga_mm_set_mmu_base() local 1190 page_table = (uint32_t *)__get_free_pages(GFP_KERNEL | GFP_DMA32, order); in rga_mm_set_mmu_base() 1191 if (page_table == NULL) { in rga_mm_set_mmu_base() 1199 page_table = rga_mmu_buf_get(rga_drvdata->mmu_base, page_count); in rga_mm_set_mmu_base() 1200 if (page_table == NULL) { in rga_mm_set_mmu_base() 1215 rga_mm_sgt_to_page_table(sgt, page_table, yrgb_count, false); in rga_mm_set_mmu_base() 1223 rga_mm_sgt_to_page_table(sgt, page_table + yrgb_count, uv_count, false); in rga_mm_set_mmu_base() 1231 rga_mm_sgt_to_page_table(sgt, page_table + yrgb_count + uv_count, v_count, false); in rga_mm_set_mmu_base() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/lib/ |
| H A D | cache-cp15.c | 28 u64 *page_table = (u64 *)gd->arch.tlb_addr; in set_section_dcache() local 32 u32 *page_table = (u32 *)gd->arch.tlb_addr; in set_section_dcache() 43 page_table[section] = value; in set_section_dcache() 55 u64 *page_table = (u64 *)gd->arch.tlb_addr; in mmu_set_region_dcache_behaviour() local 57 u32 *page_table = (u32 *)gd->arch.tlb_addr; in mmu_set_region_dcache_behaviour() 80 startpt = (unsigned long)&page_table[start]; in mmu_set_region_dcache_behaviour() 82 stoppt = (unsigned long)&page_table[end]; in mmu_set_region_dcache_behaviour() 143 u64 *page_table = (u64 *)(gd->arch.tlb_addr + (4096 * 4)); in mmu_setup() local 145 page_table[i] = tpt | TTB_PAGETABLE; in mmu_setup()
|
| /OK3568_Linux_fs/kernel/arch/x86/power/ |
| H A D | hibernate_32.c | 62 pte_t *page_table = (pte_t *)get_safe_page(GFP_ATOMIC); in resume_one_page_table_init() local 63 if (!page_table) in resume_one_page_table_init() 66 set_pmd(pmd, __pmd(__pa(page_table) | _PAGE_TABLE)); in resume_one_page_table_init() 68 BUG_ON(page_table != pte_offset_kernel(pmd, 0)); in resume_one_page_table_init() 70 return page_table; in resume_one_page_table_init()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/common/ |
| H A D | mali_mmu_page_directory.c | 55 mali_dma_addr *page_table, mali_io_address *page_table_mapping, in mali_create_fault_flush_pages() argument 62 err = mali_mmu_get_table_page(page_table, page_table_mapping); in mali_create_fault_flush_pages() 68 fill_page(*page_directory_mapping, *page_table | MALI_MMU_FLAGS_PRESENT); in mali_create_fault_flush_pages() 71 mali_mmu_release_table_page(*page_table, *page_table_mapping); in mali_create_fault_flush_pages() 72 *page_table = MALI_INVALID_PAGE; in mali_create_fault_flush_pages() 82 mali_dma_addr *page_table, mali_io_address *page_table_mapping, in mali_destroy_fault_flush_pages() argument 91 if (MALI_INVALID_PAGE != *page_table) { in mali_destroy_fault_flush_pages() 92 mali_mmu_release_table_page(*page_table, *page_table_mapping); in mali_destroy_fault_flush_pages() 93 *page_table = MALI_INVALID_PAGE; in mali_destroy_fault_flush_pages() 168 MALI_STATIC_INLINE void mali_mmu_zero_pte(mali_io_address page_table, u32 mali_address, u32 size) in mali_mmu_zero_pte() argument [all …]
|
| H A D | mali_mmu_page_directory.h | 98 mali_dma_addr *page_table, mali_io_address *page_table_mapping, 102 mali_dma_addr *page_table, mali_io_address *page_table_mapping,
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/ls102xa/ |
| H A D | cpu.c | 99 static inline void set_pgtable(u32 *page_table, u32 index, u32 phy_addr) in set_pgtable() argument 103 page_table[2 * index] = value; in set_pgtable() 104 page_table[2 * index + 1] = 0; in set_pgtable() 108 static inline void set_pgsection(u32 *page_table, u32 index, u64 phy_addr, in set_pgsection() argument 115 page_table[2 * index] = value & 0xFFFFFFFF; in set_pgsection() 116 page_table[2 * index + 1] = (value >> 32) & 0xFFFFFFFF; in set_pgsection()
|
| /OK3568_Linux_fs/kernel/drivers/video/rockchip/mpp/ |
| H A D | mpp_iommu_av1d.c | 445 u32 *page_table; in av1_iommu_iova_to_phys() local 454 page_table = (u32 *)phys_to_virt(pt_phys); in av1_iommu_iova_to_phys() 455 pte = page_table[av1_iova_pte_index(iova)]; in av1_iommu_iova_to_phys() 468 u32 *page_table, *dte_addr; in av1_dte_get_page_table() local 481 page_table = (u32 *)get_zeroed_page(GFP_ATOMIC | GFP_DMA32); in av1_dte_get_page_table() 482 if (!page_table) in av1_dte_get_page_table() 485 pt_dma = dma_map_single(dma_dev, page_table, SPAGE_SIZE, DMA_TO_DEVICE); in av1_dte_get_page_table() 488 free_page((unsigned long)page_table); in av1_dte_get_page_table() 599 u32 *page_table, *pte_addr; in av1_iommu_map() local 605 page_table = av1_dte_get_page_table(av1_domain, iova); in av1_iommu_map() [all …]
|
| /OK3568_Linux_fs/kernel/arch/sparc/mm/ |
| H A D | iommu.c | 101 iommu->page_table = (iopte_t *)tmp; in sbus_iommu_init() 104 memset(iommu->page_table, 0, IOMMU_NPTES*sizeof(iopte_t)); in sbus_iommu_init() 108 base = __pa((unsigned long)iommu->page_table) >> 4; in sbus_iommu_init() 128 impl, vers, iommu->page_table, in sbus_iommu_init() 217 iopte0 = &iommu->page_table[ioptex]; in __sbus_iommu_map_page() 291 iopte_val(iommu->page_table[ioptex + i]) = 0; in sbus_iommu_unmap_page() 317 iopte_t *iopte = iommu->page_table; in sbus_iommu_alloc() 398 iopte_t *iopte = iommu->page_table; in sbus_iommu_free()
|
| H A D | io-unit.c | 66 iounit->page_table = xpt; in iounit_iommu_init() 69 xptend = iounit->page_table + (16 * PAGE_SIZE) / sizeof(iopte_t); in iounit_iommu_init() 138 sbus_writel(iopte_val(iopte), &iounit->page_table[scan]); in iounit_get_area() 253 iopte = iounit->page_table + i; in iounit_alloc()
|
| /OK3568_Linux_fs/kernel/arch/sparc/kernel/ |
| H A D | iommu.c | 138 iommu->page_table = (iopte_t *)page_address(page); in iommu_table_init() 141 iopte_make_dummy(iommu, &iommu->page_table[i]); in iommu_table_init() 167 return iommu->page_table + entry; in alloc_npages() 231 ((iopte - iommu->page_table) << IO_PAGE_SHIFT)); in dma_4u_alloc_coherent() 297 ((base - iommu->page_table) << IO_PAGE_SHIFT)); in dma_4u_map_page() 406 base = iommu->page_table + in dma_4u_unmap_page() 501 base = iommu->page_table + entry; in dma_4u_map_sg() 567 base = iommu->page_table + entry; in dma_4u_map_sg() 599 base = iommu->page_table + in fetch_sg_ctx() 639 base = iommu->page_table + entry; in dma_4u_unmap_sg() [all …]
|
| H A D | ldc.c | 108 struct ldc_mtable_entry *page_table; member 1029 base = iommu->page_table + entry; in ldc_demap() 1079 ldc_iommu->page_table = table; in ldc_iommu_init() 1091 ldc_iommu->page_table = NULL; in ldc_iommu_init() 1112 free_pages((unsigned long) ldc_iommu->page_table, order); in ldc_iommu_release() 1113 ldc_iommu->page_table = NULL; in ldc_iommu_release() 2027 return iommu->page_table + entry; in alloc_npages() 2076 struct ldc_mtable_entry *page_table; member 2091 sp->page_table[sp->pte_idx].mte = sp->mte_base | pa; in fill_cookies() 2177 state.page_table = iommu->page_table; in ldc_map_sg() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_mob.c | 124 BUG_ON(otable->page_table != NULL); in vmw_setup_otable_base() 174 otable->page_table = mob; in vmw_setup_otable_base() 202 if (otable->page_table == NULL) in vmw_takedown_otable_base() 205 bo = otable->page_table->pt_bo; in vmw_takedown_otable_base() 230 vmw_mob_destroy(otable->page_table); in vmw_takedown_otable_base() 231 otable->page_table = NULL; in vmw_takedown_otable_base()
|
| /OK3568_Linux_fs/kernel/sound/core/ |
| H A D | sgbuf.c | 45 kfree(sgbuf->page_table); in snd_free_sgbuf_pages() 87 sgbuf->page_table = pgtable; in snd_malloc_sgbuf_pages() 124 dmab->area = vmap(sgbuf->page_table, sgbuf->pages, VM_MAP, prot); in snd_malloc_sgbuf_pages()
|
| /OK3568_Linux_fs/kernel/arch/arm64/kernel/ |
| H A D | hibernate-asm.S | 25 .macro break_before_make_ttbr_switch zero_page, page_table, tmp, tmp2 31 phys_to_ttbr \tmp, \page_table
|
| /OK3568_Linux_fs/kernel/sound/soc/sof/ |
| H A D | utils.c | 124 unsigned char *page_table, size_t size) in snd_sof_create_page_table() argument 147 pg_table = (u8 *)(page_table + idx); in snd_sof_create_page_table()
|
| /OK3568_Linux_fs/kernel/arch/x86/mm/ |
| H A D | init_32.c | 100 pte_t *page_table = (pte_t *)alloc_low_page(); in one_page_table_init() local 102 paravirt_alloc_pte(&init_mm, __pa(page_table) >> PAGE_SHIFT); in one_page_table_init() 103 set_pmd(pmd, __pmd(__pa(page_table) | _PAGE_TABLE)); in one_page_table_init() 104 BUG_ON(page_table != pte_offset_kernel(pmd, 0)); in one_page_table_init()
|
| /OK3568_Linux_fs/kernel/arch/sparc/include/asm/ |
| H A D | io-unit.h | 47 iopte_t __iomem *page_table; member
|