Home
last modified time | relevance | path

Searched refs:page_table (Results 1 – 25 of 40) sorted by relevance

12

/openbmc/linux/drivers/iommu/
H A Dsun50i-iommu.c525 u32 *page_table; in sun50i_iommu_alloc_page_table() local
527 page_table = kmem_cache_zalloc(iommu->pt_pool, gfp); in sun50i_iommu_alloc_page_table()
528 if (!page_table) in sun50i_iommu_alloc_page_table()
531 pt_dma = dma_map_single(iommu->dev, page_table, PT_SIZE, DMA_TO_DEVICE); in sun50i_iommu_alloc_page_table()
534 kmem_cache_free(iommu->pt_pool, page_table); in sun50i_iommu_alloc_page_table()
539 WARN_ON(pt_dma != virt_to_phys(page_table)); in sun50i_iommu_alloc_page_table()
541 return page_table; in sun50i_iommu_alloc_page_table()
545 u32 *page_table) in sun50i_iommu_free_page_table() argument
547 phys_addr_t pt_phys = virt_to_phys(page_table); in sun50i_iommu_free_page_table()
550 kmem_cache_free(iommu->pt_pool, page_table); in sun50i_iommu_free_page_table()
[all …]
H A Drockchip-iommu.c656 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 = rk_dte_get_page_table(rk_domain, iova); in rk_iommu_map()
[all …]
/openbmc/u-boot/arch/arm/lib/
H A Dcache-cp15.c29 u64 *page_table = (u64 *)gd->arch.tlb_addr; in set_section_dcache() local
33 u32 *page_table = (u32 *)gd->arch.tlb_addr; in set_section_dcache()
44 page_table[section] = value; in set_section_dcache()
56 u64 *page_table = (u64 *)gd->arch.tlb_addr; in mmu_set_region_dcache_behaviour() local
58 u32 *page_table = (u32 *)gd->arch.tlb_addr; in mmu_set_region_dcache_behaviour()
81 startpt = (unsigned long)&page_table[start]; in mmu_set_region_dcache_behaviour()
83 stoppt = (unsigned long)&page_table[end]; in mmu_set_region_dcache_behaviour()
126 u64 *page_table = (u64 *)(gd->arch.tlb_addr + (4096 * 4)); in mmu_setup() local
128 page_table[i] = tpt | TTB_PAGETABLE; in mmu_setup()
/openbmc/qemu/tests/tcg/s390x/
H A Dsam.S62 .quad page_table
64 page_table: label
65 .org page_table + ((VIRTUAL_BASE >> 12) & 0xff) * 8
67 .org page_table + 0x100 * 8
/openbmc/linux/arch/x86/power/
H A Dhibernate_32.c62 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()
/openbmc/u-boot/arch/arm/cpu/armv7/ls102xa/
H A Dcpu.c98 static inline void set_pgtable(u32 *page_table, u32 index, u32 phy_addr) in set_pgtable() argument
102 page_table[2 * index] = value; in set_pgtable()
103 page_table[2 * index + 1] = 0; in set_pgtable()
107 static inline void set_pgsection(u32 *page_table, u32 index, u64 phy_addr, in set_pgsection() argument
114 page_table[2 * index] = value & 0xFFFFFFFF; in set_pgsection()
115 page_table[2 * index + 1] = (value >> 32) & 0xFFFFFFFF; in set_pgsection()
/openbmc/linux/arch/sparc/mm/
H A Diommu.c102 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 Dio-unit.c67 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()
/openbmc/linux/arch/sparc/kernel/
H A Diommu.c138 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 …]
H A Dldc.c108 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 …]
H A Dpsycho_common.c430 upa_writeq(__pa(iommu->page_table), iommu->iommu_tsbbase); in psycho_iommu_init()
H A Dpci_fire.c65 upa_writeq(__pa(iommu->page_table) | 0x7UL, iommu->iommu_tsbbase); in pci_fire_pbm_iommu_init()
/openbmc/linux/sound/soc/sof/
H A Dsof-utils.c27 unsigned char *page_table, size_t size) in snd_sof_create_page_table() argument
48 pg_table = (u8 *)(page_table + idx); in snd_sof_create_page_table()
H A Dsof-utils.h17 unsigned char *page_table, size_t size);
H A Dcompress.c92 spcm->stream[dir].page_table.area, size); in create_page_table()
218 pcm->params.buffer.phy_addr = spcm->stream[cstream->direction].page_table.addr; in sof_compr_set_params()
H A Dtopology.c1767 PAGE_SIZE, &spcm->stream[stream].page_table); in sof_dai_load()
1794 PAGE_SIZE, &spcm->stream[stream].page_table); in sof_dai_load()
1806 snd_dma_free_pages(&spcm->stream[stream].page_table); in sof_dai_load()
1814 snd_dma_free_pages(&spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].page_table); in sof_dai_load()
1828 snd_dma_free_pages(&spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].page_table); in sof_dai_unload()
1831 snd_dma_free_pages(&spcm->stream[SNDRV_PCM_STREAM_CAPTURE].page_table); in sof_dai_unload()
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_mob.c129 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()
/openbmc/linux/arch/sparc/include/asm/
H A Dio-unit.h47 iopte_t __iomem *page_table; member
H A Diommu_64.h60 iopte_t *page_table; member
H A Diommu_32.h104 iopte_t *page_table; member
/openbmc/linux/arch/x86/mm/
H A Dinit_32.c98 pte_t *page_table = (pte_t *)alloc_low_page(); in one_page_table_init() local
100 set_pmd(pmd, __pmd(__pa(page_table) | _PAGE_TABLE)); in one_page_table_init()
101 BUG_ON(page_table != pte_offset_kernel(pmd, 0)); in one_page_table_init()
/openbmc/linux/drivers/firewire/
H A Dsbp2.c315 struct sbp2_pointer page_table[SG_ALL] __attribute__((aligned(8))); member
1287 sizeof(orb->page_table), DMA_TO_DEVICE); in sbp2_unmap_scatterlist()
1411 orb->page_table[i].high = cpu_to_be32(sg_dma_len(sg) << 16); in sbp2_map_scatterlist()
1412 orb->page_table[i].low = cpu_to_be32(sg_dma_address(sg)); in sbp2_map_scatterlist()
1416 dma_map_single(device->card->device, orb->page_table, in sbp2_map_scatterlist()
1417 sizeof(orb->page_table), DMA_TO_DEVICE); in sbp2_map_scatterlist()
/openbmc/linux/drivers/net/wireless/realtek/rtw88/
H A Dmac.c1249 pg_tbl = &chip->page_table[1]; in priority_queue_cfg()
1253 pg_tbl = &chip->page_table[2]; in priority_queue_cfg()
1255 pg_tbl = &chip->page_table[3]; in priority_queue_cfg()
1257 pg_tbl = &chip->page_table[4]; in priority_queue_cfg()
1262 pg_tbl = &chip->page_table[0]; in priority_queue_cfg()
/openbmc/linux/sound/soc/intel/catpt/
H A Dpcm.c164 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()
/openbmc/linux/arch/arm64/include/asm/
H A Dassembler.h487 .macro break_before_make_ttbr_switch zero_page, page_table, tmp, tmp2
493 load_ttbr1 \page_table, \tmp, \tmp2

12