Lines Matching refs:device

42 	int ret = nvkm_gpuobj_new(object->engine->subdev.device, 16, align,
116 struct nvkm_device *device = mpeg->engine.subdev.device;
118 nvkm_wr32(device, 0x00b008 + (i * 0x10), tile->pitch);
119 nvkm_wr32(device, 0x00b004 + (i * 0x10), tile->limit);
120 nvkm_wr32(device, 0x00b000 + (i * 0x10), tile->addr);
124 nv31_mpeg_mthd_dma(struct nvkm_device *device, u32 mthd, u32 data)
126 struct nv31_mpeg *mpeg = nv31_mpeg(device->mpeg);
129 u32 dma0 = nvkm_rd32(device, 0x700000 + inst);
130 u32 dma1 = nvkm_rd32(device, 0x700004 + inst);
131 u32 dma2 = nvkm_rd32(device, 0x700008 + inst);
144 nvkm_mask(device, 0x00b300, 0x00010000,
146 nvkm_wr32(device, 0x00b334, base);
147 nvkm_wr32(device, 0x00b324, size);
151 nvkm_mask(device, 0x00b300, 0x00020000,
153 nvkm_wr32(device, 0x00b360, base);
154 nvkm_wr32(device, 0x00b364, size);
160 nvkm_wr32(device, 0x00b370, base);
161 nvkm_wr32(device, 0x00b374, size);
170 struct nvkm_device *device = mpeg->engine.subdev.device;
175 return mpeg->func->mthd_dma(device, mthd, data);
187 struct nvkm_device *device = subdev->device;
188 u32 stat = nvkm_rd32(device, 0x00b100);
189 u32 type = nvkm_rd32(device, 0x00b230);
190 u32 mthd = nvkm_rd32(device, 0x00b234);
191 u32 data = nvkm_rd32(device, 0x00b238);
200 nvkm_mask(device, 0x00b308, 0x00000000, 0x00000000);
210 nvkm_wr32(device, 0x00b100, stat);
211 nvkm_wr32(device, 0x00b230, 0x00000001);
227 struct nvkm_device *device = subdev->device;
230 nvkm_wr32(device, 0x00b0e0, 0x00000020); /* nvidia: rd 0x01, wr 0x20 */
231 nvkm_wr32(device, 0x00b0e8, 0x00000020); /* nvidia: rd 0x01, wr 0x20 */
234 nvkm_wr32(device, 0x00b32c, 0x00000000);
235 nvkm_wr32(device, 0x00b314, 0x00000100);
236 nvkm_wr32(device, 0x00b220, 0x00000031);
237 nvkm_wr32(device, 0x00b300, 0x02001ec1);
238 nvkm_mask(device, 0x00b32c, 0x00000001, 0x00000001);
240 nvkm_wr32(device, 0x00b100, 0xffffffff);
241 nvkm_wr32(device, 0x00b140, 0xffffffff);
243 if (nvkm_msec(device, 2000,
244 if (!(nvkm_rd32(device, 0x00b200) & 0x00000001))
248 nvkm_rd32(device, 0x00b200));
275 nv31_mpeg_new_(const struct nv31_mpeg_func *func, struct nvkm_device *device,
285 return nvkm_engine_ctor(&nv31_mpeg_, device, type, inst, true, &mpeg->engine);
294 nv31_mpeg_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
297 return nv31_mpeg_new_(&nv31_mpeg, device, type, inst, pmpeg);