Lines Matching full:args

142 	struct nv_dma_v0 args = {};  in nouveau_channel_prep()  local
201 args.target = NV_DMA_V0_TARGET_VM; in nouveau_channel_prep()
202 args.access = NV_DMA_V0_ACCESS_VM; in nouveau_channel_prep()
203 args.start = 0; in nouveau_channel_prep()
204 args.limit = chan->vmm->vmm.limit - 1; in nouveau_channel_prep()
212 args.target = NV_DMA_V0_TARGET_PCI; in nouveau_channel_prep()
213 args.access = NV_DMA_V0_ACCESS_RDWR; in nouveau_channel_prep()
214 args.start = nvxx_device(device)->func-> in nouveau_channel_prep()
216 args.limit = args.start + device->info.ram_user - 1; in nouveau_channel_prep()
218 args.target = NV_DMA_V0_TARGET_VRAM; in nouveau_channel_prep()
219 args.access = NV_DMA_V0_ACCESS_RDWR; in nouveau_channel_prep()
220 args.start = 0; in nouveau_channel_prep()
221 args.limit = device->info.ram_user - 1; in nouveau_channel_prep()
225 args.target = NV_DMA_V0_TARGET_AGP; in nouveau_channel_prep()
226 args.access = NV_DMA_V0_ACCESS_RDWR; in nouveau_channel_prep()
227 args.start = chan->drm->agp.base; in nouveau_channel_prep()
228 args.limit = chan->drm->agp.base + in nouveau_channel_prep()
231 args.target = NV_DMA_V0_TARGET_VM; in nouveau_channel_prep()
232 args.access = NV_DMA_V0_ACCESS_RDWR; in nouveau_channel_prep()
233 args.start = 0; in nouveau_channel_prep()
234 args.limit = chan->vmm->vmm.limit - 1; in nouveau_channel_prep()
239 NV_DMA_FROM_MEMORY, &args, sizeof(args), in nouveau_channel_prep()
270 } args; in nouveau_channel_ind() local
284 args.volta.version = 0; in nouveau_channel_ind()
285 args.volta.ilength = 0x02000; in nouveau_channel_ind()
286 args.volta.ioffset = 0x10000 + chan->push.addr; in nouveau_channel_ind()
287 args.volta.runlist = runlist; in nouveau_channel_ind()
288 args.volta.vmm = nvif_handle(&chan->vmm->vmm.object); in nouveau_channel_ind()
289 args.volta.priv = priv; in nouveau_channel_ind()
290 size = sizeof(args.volta); in nouveau_channel_ind()
293 args.kepler.version = 0; in nouveau_channel_ind()
294 args.kepler.ilength = 0x02000; in nouveau_channel_ind()
295 args.kepler.ioffset = 0x10000 + chan->push.addr; in nouveau_channel_ind()
296 args.kepler.runlist = runlist; in nouveau_channel_ind()
297 args.kepler.vmm = nvif_handle(&chan->vmm->vmm.object); in nouveau_channel_ind()
298 args.kepler.priv = priv; in nouveau_channel_ind()
299 size = sizeof(args.kepler); in nouveau_channel_ind()
302 args.fermi.version = 0; in nouveau_channel_ind()
303 args.fermi.ilength = 0x02000; in nouveau_channel_ind()
304 args.fermi.ioffset = 0x10000 + chan->push.addr; in nouveau_channel_ind()
305 args.fermi.vmm = nvif_handle(&chan->vmm->vmm.object); in nouveau_channel_ind()
306 size = sizeof(args.fermi); in nouveau_channel_ind()
308 args.nv50.version = 0; in nouveau_channel_ind()
309 args.nv50.ilength = 0x02000; in nouveau_channel_ind()
310 args.nv50.ioffset = 0x10000 + chan->push.addr; in nouveau_channel_ind()
311 args.nv50.pushbuf = nvif_handle(&chan->push.ctxdma); in nouveau_channel_ind()
312 args.nv50.vmm = nvif_handle(&chan->vmm->vmm.object); in nouveau_channel_ind()
313 size = sizeof(args.nv50); in nouveau_channel_ind()
317 *oclass++, &args, size, &chan->user); in nouveau_channel_ind()
320 chan->chid = args.volta.chid; in nouveau_channel_ind()
321 chan->inst = args.volta.inst; in nouveau_channel_ind()
322 chan->token = args.volta.token; in nouveau_channel_ind()
325 chan->chid = args.kepler.chid; in nouveau_channel_ind()
326 chan->inst = args.kepler.inst; in nouveau_channel_ind()
329 chan->chid = args.fermi.chid; in nouveau_channel_ind()
331 chan->chid = args.nv50.chid; in nouveau_channel_ind()
351 struct nv03_channel_dma_v0 args; in nouveau_channel_dma() local
362 args.version = 0; in nouveau_channel_dma()
363 args.pushbuf = nvif_handle(&chan->push.ctxdma); in nouveau_channel_dma()
364 args.offset = chan->push.addr; in nouveau_channel_dma()
368 *oclass++, &args, sizeof(args), in nouveau_channel_dma()
371 chan->chid = args.chid; in nouveau_channel_dma()
385 struct nv_dma_v0 args = {}; in nouveau_channel_init() local
410 args.target = NV_DMA_V0_TARGET_VM; in nouveau_channel_init()
411 args.access = NV_DMA_V0_ACCESS_VM; in nouveau_channel_init()
412 args.start = 0; in nouveau_channel_init()
413 args.limit = chan->vmm->vmm.limit - 1; in nouveau_channel_init()
415 args.target = NV_DMA_V0_TARGET_VRAM; in nouveau_channel_init()
416 args.access = NV_DMA_V0_ACCESS_RDWR; in nouveau_channel_init()
417 args.start = 0; in nouveau_channel_init()
418 args.limit = device->info.ram_user - 1; in nouveau_channel_init()
422 NV_DMA_IN_MEMORY, &args, sizeof(args), in nouveau_channel_init()
428 args.target = NV_DMA_V0_TARGET_VM; in nouveau_channel_init()
429 args.access = NV_DMA_V0_ACCESS_VM; in nouveau_channel_init()
430 args.start = 0; in nouveau_channel_init()
431 args.limit = chan->vmm->vmm.limit - 1; in nouveau_channel_init()
434 args.target = NV_DMA_V0_TARGET_AGP; in nouveau_channel_init()
435 args.access = NV_DMA_V0_ACCESS_RDWR; in nouveau_channel_init()
436 args.start = chan->drm->agp.base; in nouveau_channel_init()
437 args.limit = chan->drm->agp.base + in nouveau_channel_init()
440 args.target = NV_DMA_V0_TARGET_VM; in nouveau_channel_init()
441 args.access = NV_DMA_V0_ACCESS_RDWR; in nouveau_channel_init()
442 args.start = 0; in nouveau_channel_init()
443 args.limit = chan->vmm->vmm.limit - 1; in nouveau_channel_init()
447 NV_DMA_IN_MEMORY, &args, sizeof(args), in nouveau_channel_init()
545 } args = { in nouveau_channels_init() local
547 .m.count = sizeof(args.v) / sizeof(args.v.channels), in nouveau_channels_init()
553 ret = nvif_object_mthd(device, NV_DEVICE_V0_INFO, &args, sizeof(args)); in nouveau_channels_init()
554 if (ret || args.v.channels.mthd == NV_DEVICE_INFO_INVALID) in nouveau_channels_init()
557 drm->chan.nr = args.v.channels.data; in nouveau_channels_init()