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