/Linux-v5.15/drivers/iommu/ |
D | sun50i-iommu.c | 453 u32 *page_table; in sun50i_iommu_alloc_page_table() local 455 page_table = kmem_cache_zalloc(iommu->pt_pool, gfp); in sun50i_iommu_alloc_page_table() 456 if (!page_table) in sun50i_iommu_alloc_page_table() 459 pt_dma = dma_map_single(iommu->dev, page_table, PT_SIZE, DMA_TO_DEVICE); in sun50i_iommu_alloc_page_table() 462 kmem_cache_free(iommu->pt_pool, page_table); in sun50i_iommu_alloc_page_table() 467 WARN_ON(pt_dma != virt_to_phys(page_table)); in sun50i_iommu_alloc_page_table() 469 return page_table; in sun50i_iommu_alloc_page_table() 473 u32 *page_table) in sun50i_iommu_free_page_table() argument 475 phys_addr_t pt_phys = virt_to_phys(page_table); in sun50i_iommu_free_page_table() 478 kmem_cache_free(iommu->pt_pool, page_table); in sun50i_iommu_free_page_table() [all …]
|
D | rockchip-iommu.c | 685 u32 *page_table; in rk_iommu_iova_to_phys() local 694 page_table = (u32 *)phys_to_virt(pt_phys); in rk_iommu_iova_to_phys() 695 pte = page_table[rk_iova_pte_index(iova)]; in rk_iommu_iova_to_phys() 747 u32 *page_table, *dte_addr; in rk_dte_get_page_table() local 760 page_table = (u32 *)get_zeroed_page(GFP_ATOMIC | GFP_DMA32); in rk_dte_get_page_table() 761 if (!page_table) in rk_dte_get_page_table() 764 pt_dma = dma_map_single(dma_dev, page_table, SPAGE_SIZE, DMA_TO_DEVICE); in rk_dte_get_page_table() 767 free_page((unsigned long)page_table); in rk_dte_get_page_table() 854 u32 *page_table, *pte_addr; in rk_iommu_map() local 867 page_table = rk_dte_get_page_table(rk_domain, iova); in rk_iommu_map() [all …]
|
/Linux-v5.15/arch/x86/power/ |
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()
|
/Linux-v5.15/sound/core/ |
D | sgbuf.c | 25 struct page **page_table; /* page table (for vmap/vunmap) */ member 59 kfree(sgbuf->page_table); in snd_dma_sg_free() 96 sgbuf->page_table = pgtable; in snd_dma_sg_alloc() 131 area = vmap(sgbuf->page_table, sgbuf->pages, VM_MAP, prot); in snd_dma_sg_alloc() 160 return sgbuf->page_table[idx]; in snd_dma_sg_get_page()
|
/Linux-v5.15/arch/sparc/mm/ |
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()
|
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()
|
/Linux-v5.15/arch/sparc/kernel/ |
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 + entry; in dma_4u_unmap_sg() [all …]
|
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 …]
|
D | psycho_common.c | 429 upa_writeq(__pa(iommu->page_table), iommu->iommu_tsbbase); in psycho_iommu_init()
|
D | pci_fire.c | 64 upa_writeq(__pa(iommu->page_table) | 0x7UL, iommu->iommu_tsbbase); in pci_fire_pbm_iommu_init()
|
D | sbus.c | 625 upa_writeq(__pa(iommu->page_table), iommu->iommu_tsbbase); in sbus_iommu_init()
|
/Linux-v5.15/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_mob.c | 134 BUG_ON(otable->page_table != NULL); in vmw_setup_otable_base() 184 otable->page_table = mob; in vmw_setup_otable_base() 212 if (otable->page_table == NULL) in vmw_takedown_otable_base() 215 bo = otable->page_table->pt_bo; in vmw_takedown_otable_base() 240 vmw_mob_destroy(otable->page_table); in vmw_takedown_otable_base() 241 otable->page_table = NULL; in vmw_takedown_otable_base()
|
/Linux-v5.15/arch/arm64/kernel/ |
D | hibernate-asm.S | 25 .macro break_before_make_ttbr_switch zero_page, page_table, tmp, tmp2 31 phys_to_ttbr \tmp, \page_table
|
/Linux-v5.15/sound/soc/sof/ |
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()
|
D | sof-audio.h | 34 struct snd_dma_buffer page_table; member
|
D | pcm.c | 38 spcm->stream[stream].page_table.area, size); in create_page_table() 171 spcm->stream[substream->stream].page_table.addr; in sof_pcm_hw_params()
|
D | topology.c | 2706 PAGE_SIZE, &spcm->stream[stream].page_table); in sof_dai_load() 2736 PAGE_SIZE, &spcm->stream[stream].page_table); in sof_dai_load() 2748 snd_dma_free_pages(&spcm->stream[stream].page_table); in sof_dai_load() 2756 snd_dma_free_pages(&spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].page_table); in sof_dai_load() 2768 snd_dma_free_pages(&spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].page_table); in sof_dai_unload() 2771 snd_dma_free_pages(&spcm->stream[SNDRV_PCM_STREAM_CAPTURE].page_table); in sof_dai_unload()
|
D | sof-priv.h | 483 unsigned char *page_table, size_t size);
|
/Linux-v5.15/arch/sparc/include/asm/ |
D | io-unit.h | 47 iopte_t __iomem *page_table; member
|
D | iommu_32.h | 104 iopte_t *page_table; member
|
D | iommu_64.h | 60 iopte_t *page_table; member
|
/Linux-v5.15/arch/x86/mm/ |
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()
|
/Linux-v5.15/drivers/firewire/ |
D | sbp2.c | 314 struct sbp2_pointer page_table[SG_ALL] __attribute__((aligned(8))); member 1285 sizeof(orb->page_table), DMA_TO_DEVICE); in sbp2_unmap_scatterlist() 1409 orb->page_table[i].high = cpu_to_be32(sg_dma_len(sg) << 16); in sbp2_map_scatterlist() 1410 orb->page_table[i].low = cpu_to_be32(sg_dma_address(sg)); in sbp2_map_scatterlist() 1414 dma_map_single(device->card->device, orb->page_table, in sbp2_map_scatterlist() 1415 sizeof(orb->page_table), DMA_TO_DEVICE); in sbp2_map_scatterlist()
|
/Linux-v5.15/sound/soc/intel/catpt/ |
D | pcm.c | 164 u32 *page_table; in catpt_arrange_page_table() local 169 page_table = (u32 *)(pgtbl->area + offset); in catpt_arrange_page_table() 172 *page_table |= (pfn << 4); in catpt_arrange_page_table() 174 *page_table |= pfn; in catpt_arrange_page_table()
|
/Linux-v5.15/drivers/net/wireless/realtek/rtw88/ |
D | mac.c | 1164 pg_tbl = &chip->page_table[1]; in priority_queue_cfg() 1168 pg_tbl = &chip->page_table[2]; in priority_queue_cfg() 1170 pg_tbl = &chip->page_table[3]; in priority_queue_cfg() 1172 pg_tbl = &chip->page_table[4]; in priority_queue_cfg()
|