Lines Matching defs:device
25 #include <nvif/device.h>
28 nvif_device_time(struct nvif_device *device)
30 if (!device->user.func) {
32 int ret = nvif_object_mthd(&device->object, NV_DEVICE_V0_TIME,
38 return device->user.func->time(&device->user);
42 nvif_device_dtor(struct nvif_device *device)
44 nvif_user_dtor(device);
45 kfree(device->runlist);
46 device->runlist = NULL;
47 nvif_object_dtor(&device->object);
52 s32 oclass, void *data, u32 size, struct nvif_device *device)
55 oclass, data, size, &device->object);
56 device->runlist = NULL;
57 device->user.func = NULL;
59 device->info.version = 0;
60 ret = nvif_object_mthd(&device->object, NV_DEVICE_V0_INFO,
61 &device->info, sizeof(device->info));