Home
last modified time | relevance | path

Searched refs:pgt (Results 1 – 12 of 12) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dnv44.c39 nv44_vm_fill(struct nvkm_gpuobj *pgt, dma_addr_t null, in nv44_vm_fill() argument
45 tmp[0] = nv_ro32(pgt, base + 0x0); in nv44_vm_fill()
46 tmp[1] = nv_ro32(pgt, base + 0x4); in nv44_vm_fill()
47 tmp[2] = nv_ro32(pgt, base + 0x8); in nv44_vm_fill()
48 tmp[3] = nv_ro32(pgt, base + 0xc); in nv44_vm_fill()
78 nv_wo32(pgt, base + 0x0, tmp[0]); in nv44_vm_fill()
79 nv_wo32(pgt, base + 0x4, tmp[1]); in nv44_vm_fill()
80 nv_wo32(pgt, base + 0x8, tmp[2]); in nv44_vm_fill()
81 nv_wo32(pgt, base + 0xc, tmp[3] | 0x40000000); in nv44_vm_fill()
85 nv44_vm_map_sg(struct nvkm_vma *vma, struct nvkm_gpuobj *pgt, in nv44_vm_map_sg() argument
[all …]
Dnv50.c37 nv50_vm_map_pgt(struct nvkm_gpuobj *pgd, u32 pde, struct nvkm_gpuobj *pgt[2]) in nv50_vm_map_pgt()
42 if (pgt[0]) { in nv50_vm_map_pgt()
43 phys = 0x00000003 | pgt[0]->addr; /* present, 4KiB pages */ in nv50_vm_map_pgt()
44 coverage = (pgt[0]->size >> 3) << 12; in nv50_vm_map_pgt()
46 if (pgt[1]) { in nv50_vm_map_pgt()
47 phys = 0x00000001 | pgt[1]->addr; /* present */ in nv50_vm_map_pgt()
48 coverage = (pgt[1]->size >> 3) << 16; in nv50_vm_map_pgt()
78 nv50_vm_map(struct nvkm_vma *vma, struct nvkm_gpuobj *pgt, in nv50_vm_map() argument
116 nv_wo32(pgt, pte + 0, offset_l); in nv50_vm_map()
117 nv_wo32(pgt, pte + 4, offset_h); in nv50_vm_map()
[all …]
Dgf100.c78 gf100_vm_map_pgt(struct nvkm_gpuobj *pgd, u32 index, struct nvkm_gpuobj *pgt[2]) in gf100_vm_map_pgt()
82 if (pgt[0]) in gf100_vm_map_pgt()
83 pde[1] = 0x00000001 | (pgt[0]->addr >> 8); in gf100_vm_map_pgt()
84 if (pgt[1]) in gf100_vm_map_pgt()
85 pde[0] = 0x00000001 | (pgt[1]->addr >> 8); in gf100_vm_map_pgt()
106 gf100_vm_map(struct nvkm_vma *vma, struct nvkm_gpuobj *pgt, in gf100_vm_map() argument
123 nv_wo32(pgt, pte + 0, lower_32_bits(phys)); in gf100_vm_map()
124 nv_wo32(pgt, pte + 4, upper_32_bits(phys)); in gf100_vm_map()
131 gf100_vm_map_sg(struct nvkm_vma *vma, struct nvkm_gpuobj *pgt, in gf100_vm_map_sg() argument
141 nv_wo32(pgt, pte + 0, lower_32_bits(phys)); in gf100_vm_map_sg()
[all …]
Dbase.c49 struct nvkm_gpuobj *pgt = vm->pgt[pde].obj[big]; in nvkm_vm_map_at() local
56 mmu->map(vma, pgt, node, pte, len, phys, delta); in nvkm_vm_map_at()
92 struct nvkm_gpuobj *pgt = vm->pgt[pde].obj[big]; in nvkm_vm_map_sg_table() local
103 mmu->map_sg(vma, pgt, mem, pte, 1, &addr); in nvkm_vm_map_sg_table()
118 mmu->map_sg(vma, pgt, mem, pte, 1, &addr); in nvkm_vm_map_sg_table()
148 struct nvkm_gpuobj *pgt = vm->pgt[pde].obj[big]; in nvkm_vm_map_sg() local
155 mmu->map_sg(vma, pgt, mem, pte, len, list); in nvkm_vm_map_sg()
196 struct nvkm_gpuobj *pgt = vm->pgt[pde].obj[big]; in nvkm_vm_unmap_at() local
203 mmu->unmap(pgt, pte, len); in nvkm_vm_unmap_at()
228 struct nvkm_gpuobj *pgt; in nvkm_vm_unmap_pgt() local
[all …]
Dnv04.c37 nv04_vm_map_sg(struct nvkm_vma *vma, struct nvkm_gpuobj *pgt, in nv04_vm_map_sg() argument
45 nv_wo32(pgt, pte, phys | 3); in nv04_vm_map_sg()
54 nv04_vm_unmap(struct nvkm_gpuobj *pgt, u32 pte, u32 cnt) in nv04_vm_unmap() argument
58 nv_wo32(pgt, pte, 0x00000000); in nv04_vm_unmap()
116 &priv->vm->pgt[0].obj[0]); in nv04_mmu_ctor()
117 dma = priv->vm->pgt[0].obj[0]; in nv04_mmu_ctor()
118 priv->vm->pgt[0].refcount[0] = 1; in nv04_mmu_ctor()
132 nvkm_gpuobj_ref(NULL, &priv->vm->pgt[0].obj[0]); in nv04_mmu_dtor()
Dnv41.c39 nv41_vm_map_sg(struct nvkm_vma *vma, struct nvkm_gpuobj *pgt, in nv41_vm_map_sg() argument
47 nv_wo32(pgt, pte, (phys >> 7) | 1); in nv41_vm_map_sg()
56 nv41_vm_unmap(struct nvkm_gpuobj *pgt, u32 pte, u32 cnt) in nv41_vm_unmap() argument
60 nv_wo32(pgt, pte, 0x00000000); in nv41_vm_unmap()
123 &priv->vm->pgt[0].obj[0]); in nv41_mmu_ctor()
124 priv->vm->pgt[0].refcount[0] = 1; in nv41_mmu_ctor()
135 struct nvkm_gpuobj *dma = priv->vm->pgt[0].obj[0]; in nv41_mmu_init()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/dmaobj/
Dnv04.c64 struct nvkm_gpuobj *pgt = mmu->vm->pgt[0].obj[0]; in nv04_dmaobj_bind() local
66 return nvkm_gpuobj_dup(parent, pgt, pgpuobj); in nv04_dmaobj_bind()
67 offset = nv_ro32(pgt, 8 + (offset >> 10)); in nv04_dmaobj_bind()
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dmmu.h35 struct nvkm_vm_pgt *pgt; member
53 struct nvkm_gpuobj *pgt[2]);
59 void (*unmap)(struct nvkm_gpuobj *pgt, u32 pte, u32 cnt);
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bar/
Dgf100.c115 &vm->pgt[0].obj[0]); in gf100_bar_ctor_vm()
116 vm->pgt[0].refcount[0] = 1; in gf100_bar_ctor_vm()
181 nvkm_gpuobj_ref(NULL, &priv->bar[0].vm->pgt[0].obj[0]); in gf100_bar_dtor()
Dnv50.c150 NVOBJ_FLAG_ZERO_ALLOC, &vm->pgt[0].obj[0]); in nv50_bar_ctor()
151 vm->pgt[0].refcount[0] = 1; in nv50_bar_ctor()
219 nvkm_gpuobj_ref(NULL, &priv->bar3_vm->pgt[0].obj[0]); in nv50_bar_dtor()
/linux-4.1.27/arch/x86/platform/efi/
Defi_stub_64.S61 movq efi_scratch+16(%rip), %r15 # EFI pgt
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event_intel_uncore_nhmex.c870 DEFINE_UNCORE_FORMAT_ATTR(pgt, pgt, "config1:0-31");