Lines Matching refs:device
80 nvif_device_ref(NULL, &chan->device); in nouveau_channel_del()
87 nouveau_channel_prep(struct nouveau_drm *drm, struct nvif_device *device, in nouveau_channel_prep() argument
90 struct nouveau_cli *cli = (void *)nvif_client(&device->base); in nouveau_channel_prep()
91 struct nvkm_mmu *mmu = nvxx_mmu(device); in nouveau_channel_prep()
101 nvif_device_ref(device, &chan->device); in nouveau_channel_prep()
128 if (device->info.family >= NV_DEVICE_INFO_V0_TESLA) { in nouveau_channel_prep()
142 if (device->info.family == NV_DEVICE_INFO_V0_TNT) { in nouveau_channel_prep()
149 args.start = nv_device_resource_start(nvxx_device(device), 1); in nouveau_channel_prep()
150 args.limit = args.start + device->info.ram_user - 1; in nouveau_channel_prep()
155 args.limit = device->info.ram_user - 1; in nouveau_channel_prep()
172 ret = nvif_object_init(nvif_object(device), NULL, NVDRM_PUSH | in nouveau_channel_prep()
184 nouveau_channel_ind(struct nouveau_drm *drm, struct nvif_device *device, in nouveau_channel_ind() argument
203 ret = nouveau_channel_prep(drm, device, handle, 0x12000, &chan); in nouveau_channel_ind()
225 ret = nvif_object_new(nvif_object(device), handle, *oclass++, in nouveau_channel_ind()
242 nouveau_channel_dma(struct nouveau_drm *drm, struct nvif_device *device, in nouveau_channel_dma() argument
256 ret = nouveau_channel_prep(drm, device, handle, 0x10000, &chan); in nouveau_channel_dma()
267 ret = nvif_object_new(nvif_object(device), handle, *oclass++, in nouveau_channel_dma()
283 struct nvif_device *device = chan->device; in nouveau_channel_init() local
284 struct nouveau_cli *cli = (void *)nvif_client(&device->base); in nouveau_channel_init()
285 struct nvkm_mmu *mmu = nvxx_mmu(device); in nouveau_channel_init()
293 if (device->info.family < NV_DEVICE_INFO_V0_FERMI) { in nouveau_channel_init()
294 if (device->info.family >= NV_DEVICE_INFO_V0_TESLA) { in nouveau_channel_init()
303 args.limit = device->info.ram_user - 1; in nouveau_channel_init()
312 if (device->info.family >= NV_DEVICE_INFO_V0_TESLA) { in nouveau_channel_init()
370 if (device->info.family < NV_DEVICE_INFO_V0_CELSIUS) { in nouveau_channel_init()
394 nouveau_channel_new(struct nouveau_drm *drm, struct nvif_device *device, in nouveau_channel_new() argument
398 struct nouveau_cli *cli = (void *)nvif_client(&device->base); in nouveau_channel_new()
406 ret = nouveau_channel_ind(drm, device, handle, arg0, pchan); in nouveau_channel_new()
409 ret = nouveau_channel_dma(drm, device, handle, pchan); in nouveau_channel_new()