/kernel/linux/linux-5.10/drivers/staging/gasket/ |
H A D | gasket_page_table.h | 56 * @page_table: Gasket page table pointer. 58 * Description: The inverse of gasket_init; frees page_table and its contained 64 void gasket_page_table_cleanup(struct gasket_page_table *page_table); 68 * @page_table: Gasket page table pointer. 79 int gasket_page_table_partition(struct gasket_page_table *page_table, 84 * @page_table: Gasket page table pointer. 97 int gasket_page_table_map(struct gasket_page_table *page_table, ulong host_addr, 102 * @page_table: Gasket page table pointer. 108 void gasket_page_table_unmap(struct gasket_page_table *page_table, 113 * @page_table [all...] |
H A D | gasket_page_table.c | 427 * A Gasket page_table currently support one contiguous dma range, mapped to one 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[inde 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()
|
/kernel/linux/linux-5.10/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 in vdso_free_per_cpu() [all...] |
/kernel/linux/linux-5.10/drivers/iommu/ |
H A D | sun50i-iommu.c | 455 u32 *page_table; in sun50i_iommu_alloc_page_table() local 457 page_table = kmem_cache_zalloc(iommu->pt_pool, gfp); in sun50i_iommu_alloc_page_table() 458 if (!page_table) in sun50i_iommu_alloc_page_table() 461 pt_dma = dma_map_single(iommu->dev, page_table, PT_SIZE, DMA_TO_DEVICE); in sun50i_iommu_alloc_page_table() 464 kmem_cache_free(iommu->pt_pool, page_table); in sun50i_iommu_alloc_page_table() 469 WARN_ON(pt_dma != virt_to_phys(page_table)); in sun50i_iommu_alloc_page_table() 471 return page_table; in sun50i_iommu_alloc_page_table() 475 u32 *page_table) in sun50i_iommu_free_page_table() 477 phys_addr_t pt_phys = virt_to_phys(page_table); in sun50i_iommu_free_page_table() 480 kmem_cache_free(iommu->pt_pool, page_table); in sun50i_iommu_free_page_table() 474 sun50i_iommu_free_page_table(struct sun50i_iommu *iommu, u32 *page_table) sun50i_iommu_free_page_table() argument 487 u32 *page_table; sun50i_dte_get_page_table() local 528 u32 *page_table, *pte_addr; sun50i_iommu_map() local 584 u32 *page_table; sun50i_iommu_iova_to_phys() local 675 u32 *page_table; sun50i_iommu_detach_domain() local [all...] |
H A D | rockchip-iommu.c | 596 u32 *page_table; in rk_iommu_iova_to_phys() local 605 page_table = (u32 *)phys_to_virt(pt_phys); in rk_iommu_iova_to_phys() 606 pte = page_table[rk_iova_pte_index(iova)]; in rk_iommu_iova_to_phys() 658 u32 *page_table, *dte_addr; in rk_dte_get_page_table() local 671 page_table = (u32 *)get_zeroed_page(GFP_ATOMIC | GFP_DMA32); in rk_dte_get_page_table() 672 if (!page_table) in rk_dte_get_page_table() 675 pt_dma = dma_map_single(dma_dev, page_table, SPAGE_SIZE, DMA_TO_DEVICE); in rk_dte_get_page_table() 678 free_page((unsigned long)page_table); in rk_dte_get_page_table() 766 u32 *page_table, *pte_addr; in rk_iommu_map() local 779 page_table in rk_iommu_map() 1041 u32 *page_table = phys_to_virt(pt_phys); rk_iommu_domain_free() local [all...] |
/kernel/linux/linux-6.6/drivers/iommu/ |
H A D | sun50i-iommu.c | 524 u32 *page_table; in sun50i_iommu_alloc_page_table() local 526 page_table = kmem_cache_zalloc(iommu->pt_pool, gfp); in sun50i_iommu_alloc_page_table() 527 if (!page_table) in sun50i_iommu_alloc_page_table() 530 pt_dma = dma_map_single(iommu->dev, page_table, PT_SIZE, DMA_TO_DEVICE); in sun50i_iommu_alloc_page_table() 533 kmem_cache_free(iommu->pt_pool, page_table); in sun50i_iommu_alloc_page_table() 538 WARN_ON(pt_dma != virt_to_phys(page_table)); in sun50i_iommu_alloc_page_table() 540 return page_table; in sun50i_iommu_alloc_page_table() 544 u32 *page_table) in sun50i_iommu_free_page_table() 546 phys_addr_t pt_phys = virt_to_phys(page_table); in sun50i_iommu_free_page_table() 549 kmem_cache_free(iommu->pt_pool, page_table); in sun50i_iommu_free_page_table() 543 sun50i_iommu_free_page_table(struct sun50i_iommu *iommu, u32 *page_table) sun50i_iommu_free_page_table() argument 556 u32 *page_table; sun50i_dte_get_page_table() local 597 u32 *page_table, *pte_addr; sun50i_iommu_map() local 653 u32 *page_table; sun50i_iommu_iova_to_phys() local 734 u32 *page_table; sun50i_iommu_detach_domain() local [all...] |
H A D | rockchip-iommu.c | 656 u32 *page_table; in rk_iommu_iova_to_phys() local 665 page_table = (u32 *)phys_to_virt(pt_phys); in rk_iommu_iova_to_phys() 666 pte = page_table[rk_iova_pte_index(iova)]; in rk_iommu_iova_to_phys() 718 u32 *page_table, *dte_addr; in rk_dte_get_page_table() local 731 page_table = (u32 *)get_zeroed_page(GFP_ATOMIC | rk_ops->gfp_flags); in rk_dte_get_page_table() 732 if (!page_table) in rk_dte_get_page_table() 735 pt_dma = dma_map_single(dma_dev, page_table, SPAGE_SIZE, DMA_TO_DEVICE); in rk_dte_get_page_table() 738 free_page((unsigned long)page_table); in rk_dte_get_page_table() 825 u32 *page_table, *pte_addr; in rk_iommu_map() local 838 page_table in rk_iommu_map() 1120 u32 *page_table = phys_to_virt(pt_phys); rk_iommu_domain_free() local [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/arch/sparc/mm/ |
H A D | iommu.c | 102 iommu->page_table = (iopte_t *)tmp; in sbus_iommu_init() 105 memset(iommu->page_table, 0, IOMMU_NPTES*sizeof(iopte_t)); in sbus_iommu_init() 109 base = __pa((unsigned long)iommu->page_table) >> 4; in sbus_iommu_init() 129 impl, vers, iommu->page_table, in sbus_iommu_init() 218 iopte0 = &iommu->page_table[ioptex]; in __sbus_iommu_map_page() 292 iopte_val(iommu->page_table[ioptex + i]) = 0; in sbus_iommu_unmap_page() 318 iopte_t *iopte = iommu->page_table; in sbus_iommu_alloc() 399 iopte_t *iopte = iommu->page_table; in sbus_iommu_free()
|
H A D | io-unit.c | 67 iounit->page_table = xpt; in iounit_iommu_init() 70 xptend = iounit->page_table + (16 * PAGE_SIZE) / sizeof(iopte_t); in iounit_iommu_init() 139 sbus_writel(iopte_val(iopte), &iounit->page_table[scan]); in iounit_get_area() 254 iopte = iounit->page_table + i; in iounit_alloc()
|
/kernel/linux/linux-6.6/sound/soc/sof/ |
H A D | sof-utils.c | 27 unsigned char *page_table, size_t size) in snd_sof_create_page_table() 39 * idx determines the byte position within page_table in snd_sof_create_page_table() 41 * in the compressed page_table. in snd_sof_create_page_table() 48 pg_table = (u8 *)(page_table + idx); in snd_sof_create_page_table() 25 snd_sof_create_page_table(struct device *dev, struct snd_dma_buffer *dmab, unsigned char *page_table, size_t size) snd_sof_create_page_table() argument
|
H A D | sof-utils.h | 17 unsigned char *page_table, size_t size);
|
/kernel/linux/linux-5.10/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 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 in ldc_map_sg() [all...] |
/kernel/linux/linux-6.6/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() 566 base = iommu->page_table + entry; in dma_4u_map_sg() 597 base = iommu->page_table + in fetch_sg_ctx() 637 base = iommu->page_table 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 in ldc_map_sg() [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_mob.c | 70 * @page_table: Pointer to a struct vmw_mob holding the page table. 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_mob.c | 65 * @page_table: Pointer to a struct vmw_mob holding the page table. 129 BUG_ON(otable->page_table != NULL); in vmw_setup_otable_base() 176 otable->page_table = mob; in vmw_setup_otable_base() 204 if (otable->page_table == NULL) in vmw_takedown_otable_base() 207 bo = &otable->page_table->pt_bo->tbo; in vmw_takedown_otable_base() 232 vmw_mob_destroy(otable->page_table); in vmw_takedown_otable_base() 233 otable->page_table = NULL; in vmw_takedown_otable_base()
|
/kernel/linux/linux-5.10/sound/soc/sof/ |
H A D | utils.c | 124 unsigned char *page_table, size_t size) in snd_sof_create_page_table() 136 * idx determines the byte position within page_table in snd_sof_create_page_table() 138 * in the compressed page_table. in snd_sof_create_page_table() 147 pg_table = (u8 *)(page_table + idx); in snd_sof_create_page_table() 122 snd_sof_create_page_table(struct device *dev, struct snd_dma_buffer *dmab, unsigned char *page_table, size_t size) snd_sof_create_page_table() argument
|