Lines Matching full:args

148 	struct nv_dma_v0 args = {};  in nouveau_channel_prep()  local
205 args.target = NV_DMA_V0_TARGET_VM; in nouveau_channel_prep()
206 args.access = NV_DMA_V0_ACCESS_VM; in nouveau_channel_prep()
207 args.start = 0; in nouveau_channel_prep()
208 args.limit = chan->vmm->vmm.limit - 1; in nouveau_channel_prep()
216 args.target = NV_DMA_V0_TARGET_PCI; in nouveau_channel_prep()
217 args.access = NV_DMA_V0_ACCESS_RDWR; in nouveau_channel_prep()
218 args.start = nvxx_device(drm)->func->resource_addr(nvxx_device(drm), 1); in nouveau_channel_prep()
219 args.limit = args.start + device->info.ram_user - 1; in nouveau_channel_prep()
221 args.target = NV_DMA_V0_TARGET_VRAM; in nouveau_channel_prep()
222 args.access = NV_DMA_V0_ACCESS_RDWR; in nouveau_channel_prep()
223 args.start = 0; in nouveau_channel_prep()
224 args.limit = device->info.ram_user - 1; in nouveau_channel_prep()
228 args.target = NV_DMA_V0_TARGET_AGP; in nouveau_channel_prep()
229 args.access = NV_DMA_V0_ACCESS_RDWR; in nouveau_channel_prep()
230 args.start = drm->agp.base; in nouveau_channel_prep()
231 args.limit = drm->agp.base + drm->agp.size - 1; in nouveau_channel_prep()
233 args.target = NV_DMA_V0_TARGET_VM; in nouveau_channel_prep()
234 args.access = NV_DMA_V0_ACCESS_RDWR; in nouveau_channel_prep()
235 args.start = 0; in nouveau_channel_prep()
236 args.limit = chan->vmm->vmm.limit - 1; in nouveau_channel_prep()
241 NV_DMA_FROM_MEMORY, &args, sizeof(args), in nouveau_channel_prep()
276 } args; in nouveau_channel_ctor() local
302 args.chan.version = 0; in nouveau_channel_ctor()
303 args.chan.namelen = sizeof(args.name); in nouveau_channel_ctor()
304 args.chan.runlist = __ffs64(runm); in nouveau_channel_ctor()
305 args.chan.runq = 0; in nouveau_channel_ctor()
306 args.chan.priv = priv; in nouveau_channel_ctor()
307 args.chan.devm = BIT(0); in nouveau_channel_ctor()
309 args.chan.vmm = 0; in nouveau_channel_ctor()
310 args.chan.ctxdma = nvif_handle(&chan->push.ctxdma); in nouveau_channel_ctor()
311 args.chan.offset = chan->push.addr; in nouveau_channel_ctor()
312 args.chan.length = 0; in nouveau_channel_ctor()
314 args.chan.vmm = nvif_handle(&chan->vmm->vmm.object); in nouveau_channel_ctor()
316 args.chan.ctxdma = nvif_handle(&chan->push.ctxdma); in nouveau_channel_ctor()
318 args.chan.ctxdma = 0; in nouveau_channel_ctor()
319 args.chan.offset = ioffset + chan->push.addr; in nouveau_channel_ctor()
320 args.chan.length = ilength; in nouveau_channel_ctor()
322 args.chan.huserd = 0; in nouveau_channel_ctor()
323 args.chan.ouserd = 0; in nouveau_channel_ctor()
333 args.chan.huserd = nvif_handle(&chan->mem_userd.object); in nouveau_channel_ctor()
334 args.chan.ouserd = 0; in nouveau_channel_ctor()
342 snprintf(args.name, sizeof(args.name), "%s[%d]", name, task_pid_nr(current)); in nouveau_channel_ctor()
345 &args, sizeof(args), &chan->user); in nouveau_channel_ctor()
351 chan->runlist = args.chan.runlist; in nouveau_channel_ctor()
352 chan->chid = args.chan.chid; in nouveau_channel_ctor()
353 chan->inst = args.chan.inst; in nouveau_channel_ctor()
354 chan->token = args.chan.token; in nouveau_channel_ctor()
364 struct nv_dma_v0 args = {}; in nouveau_channel_init() local
375 } args; in nouveau_channel_init() local
377 args.host.version = 0; in nouveau_channel_init()
378 args.host.type = NVIF_CHAN_EVENT_V0_KILLED; in nouveau_channel_init()
382 &args.base, sizeof(args), &chan->kill); in nouveau_channel_init()
395 args.target = NV_DMA_V0_TARGET_VM; in nouveau_channel_init()
396 args.access = NV_DMA_V0_ACCESS_VM; in nouveau_channel_init()
397 args.start = 0; in nouveau_channel_init()
398 args.limit = chan->vmm->vmm.limit - 1; in nouveau_channel_init()
400 args.target = NV_DMA_V0_TARGET_VRAM; in nouveau_channel_init()
401 args.access = NV_DMA_V0_ACCESS_RDWR; in nouveau_channel_init()
402 args.start = 0; in nouveau_channel_init()
403 args.limit = device->info.ram_user - 1; in nouveau_channel_init()
407 NV_DMA_IN_MEMORY, &args, sizeof(args), in nouveau_channel_init()
413 args.target = NV_DMA_V0_TARGET_VM; in nouveau_channel_init()
414 args.access = NV_DMA_V0_ACCESS_VM; in nouveau_channel_init()
415 args.start = 0; in nouveau_channel_init()
416 args.limit = chan->vmm->vmm.limit - 1; in nouveau_channel_init()
419 args.target = NV_DMA_V0_TARGET_AGP; in nouveau_channel_init()
420 args.access = NV_DMA_V0_ACCESS_RDWR; in nouveau_channel_init()
421 args.start = drm->agp.base; in nouveau_channel_init()
422 args.limit = drm->agp.base + drm->agp.size - 1; in nouveau_channel_init()
424 args.target = NV_DMA_V0_TARGET_VM; in nouveau_channel_init()
425 args.access = NV_DMA_V0_ACCESS_RDWR; in nouveau_channel_init()
426 args.start = 0; in nouveau_channel_init()
427 args.limit = chan->vmm->vmm.limit - 1; in nouveau_channel_init()
431 NV_DMA_IN_MEMORY, &args, sizeof(args), in nouveau_channel_init()
531 } args = { in nouveau_channels_init() local
533 .m.count = sizeof(args.v) / sizeof(args.v.channels), in nouveau_channels_init()
540 ret = nvif_object_mthd(device, NV_DEVICE_V0_INFO, &args, sizeof(args)); in nouveau_channels_init()
542 args.v.runlists.mthd == NV_DEVICE_INFO_INVALID || !args.v.runlists.data || in nouveau_channels_init()
543 args.v.channels.mthd == NV_DEVICE_INFO_INVALID) in nouveau_channels_init()
546 drm->chan_nr = drm->chan_total = args.v.channels.data; in nouveau_channels_init()
547 drm->runl_nr = fls64(args.v.runlists.data); in nouveau_channels_init()
554 if (!(args.v.runlists.data & BIT(i))) in nouveau_channels_init()
557 args.v.channels.mthd = NV_DEVICE_HOST_RUNLIST_CHANNELS; in nouveau_channels_init()
558 args.v.channels.data = i; in nouveau_channels_init()
560 ret = nvif_object_mthd(device, NV_DEVICE_V0_INFO, &args, sizeof(args)); in nouveau_channels_init()
561 if (ret || args.v.channels.mthd == NV_DEVICE_INFO_INVALID) in nouveau_channels_init()
564 drm->runl[i].chan_nr = args.v.channels.data; in nouveau_channels_init()