Lines Matching refs:dmaobj
41 struct gv100_dmaobj *dmaobj = gv100_dmaobj(base); in gv100_dmaobj_bind() local
42 struct nvkm_device *device = dmaobj->base.dma->engine.subdev.device; in gv100_dmaobj_bind()
43 u64 start = dmaobj->base.start >> 8; in gv100_dmaobj_bind()
44 u64 limit = dmaobj->base.limit >> 8; in gv100_dmaobj_bind()
50 nvkm_wo32(*pgpuobj, 0x00, dmaobj->flags0); in gv100_dmaobj_bind()
74 struct gv100_dmaobj *dmaobj; in gv100_dmaobj_new() local
78 if (!(dmaobj = kzalloc(sizeof(*dmaobj), GFP_KERNEL))) in gv100_dmaobj_new()
80 *pdmaobj = &dmaobj->base; in gv100_dmaobj_new()
83 &data, &size, &dmaobj->base); in gv100_dmaobj_new()
105 dmaobj->flags0 |= 0x00100000; in gv100_dmaobj_new()
107 dmaobj->flags0 |= 0x00000040; in gv100_dmaobj_new()
108 dmaobj->flags0 |= 0x00000004; /* rw */ in gv100_dmaobj_new()
110 switch (dmaobj->base.target) { in gv100_dmaobj_new()
111 case NV_MEM_TARGET_VRAM : dmaobj->flags0 |= 0x00000001; break; in gv100_dmaobj_new()
112 case NV_MEM_TARGET_PCI : dmaobj->flags0 |= 0x00000002; break; in gv100_dmaobj_new()
113 case NV_MEM_TARGET_PCI_NOSNOOP: dmaobj->flags0 |= 0x00000003; break; in gv100_dmaobj_new()