Lines Matching defs:device
23 #include <nvif/device.h>
28 nvif_user_dtor(struct nvif_device *device)
30 if (device->user.func) {
31 nvif_object_dtor(&device->user.object);
32 device->user.func = NULL;
37 nvif_user_ctor(struct nvif_device *device, const char *name)
51 if (device->user.func)
54 cid = nvif_mclass(&device->object, users);
58 ret = nvif_object_ctor(&device->object, name ? name : "nvifUsermode",
60 &device->user.object);
64 nvif_object_map(&device->user.object, NULL, 0);
65 device->user.func = users[cid].func;