Lines Matching refs:client
25 #include <nvif/client.h>
33 nvif_client_ioctl(struct nvif_client *client, void *data, u32 size)
35 return client->driver->ioctl(client->object.priv, data, size, NULL);
39 nvif_client_suspend(struct nvif_client *client)
41 return client->driver->suspend(client->object.priv);
45 nvif_client_resume(struct nvif_client *client)
47 return client->driver->resume(client->object.priv);
51 nvif_client_dtor(struct nvif_client *client)
53 nvif_object_dtor(&client->object);
54 if (client->driver) {
55 if (client->driver->fini)
56 client->driver->fini(client->object.priv);
57 client->driver = NULL;
63 struct nvif_client *client)
73 ret = nvif_object_ctor(parent != client ? &parent->object : NULL,
76 &client->object);
80 client->object.client = client;
81 client->object.handle = ~0;
82 client->route = NVIF_IOCTL_V0_ROUTE_NVIF;
83 client->driver = parent->driver;
86 ret = nvif_client_ioctl(client, &nop, sizeof(nop));
87 client->version = nop.nop.version;
91 nvif_client_dtor(client);