Lines Matching refs:dmaobj
50 struct nvkm_dmaobj *dmaobj = nvkm_dmaobj(base); in nvkm_dmaobj_bind() local
51 return dmaobj->func->bind(dmaobj, gpuobj, align, pgpuobj); in nvkm_dmaobj_bind()
69 struct nvkm_dmaobj *dmaobj) in nvkm_dmaobj_ctor() argument
79 nvkm_object_ctor(&nvkm_dmaobj_func, oclass, &dmaobj->object); in nvkm_dmaobj_ctor()
80 dmaobj->func = func; in nvkm_dmaobj_ctor()
81 dmaobj->dma = dma; in nvkm_dmaobj_ctor()
89 dmaobj->target = args->v0.target; in nvkm_dmaobj_ctor()
90 dmaobj->access = args->v0.access; in nvkm_dmaobj_ctor()
91 dmaobj->start = args->v0.start; in nvkm_dmaobj_ctor()
92 dmaobj->limit = args->v0.limit; in nvkm_dmaobj_ctor()
99 if (dmaobj->start > dmaobj->limit) in nvkm_dmaobj_ctor()
102 switch (dmaobj->target) { in nvkm_dmaobj_ctor()
104 dmaobj->target = NV_MEM_TARGET_VM; in nvkm_dmaobj_ctor()
107 dmaobj->target = NV_MEM_TARGET_VRAM; in nvkm_dmaobj_ctor()
110 dmaobj->target = NV_MEM_TARGET_PCI; in nvkm_dmaobj_ctor()
114 dmaobj->target = NV_MEM_TARGET_PCI_NOSNOOP; in nvkm_dmaobj_ctor()
120 switch (dmaobj->access) { in nvkm_dmaobj_ctor()
122 dmaobj->access = NV_MEM_ACCESS_VM; in nvkm_dmaobj_ctor()
125 dmaobj->access = NV_MEM_ACCESS_RO; in nvkm_dmaobj_ctor()
128 dmaobj->access = NV_MEM_ACCESS_WO; in nvkm_dmaobj_ctor()
131 dmaobj->access = NV_MEM_ACCESS_RW; in nvkm_dmaobj_ctor()