Lines Matching refs:client
30 nvif_client_ioctl(struct nvif_client *client, void *data, u32 size) in nvif_client_ioctl() argument
32 return client->driver->ioctl(client->object.priv, client->super, data, size, NULL); in nvif_client_ioctl()
36 nvif_client_suspend(struct nvif_client *client) in nvif_client_suspend() argument
38 return client->driver->suspend(client->object.priv); in nvif_client_suspend()
42 nvif_client_resume(struct nvif_client *client) in nvif_client_resume() argument
44 return client->driver->resume(client->object.priv); in nvif_client_resume()
48 nvif_client_fini(struct nvif_client *client) in nvif_client_fini() argument
50 if (client->driver) { in nvif_client_fini()
51 client->driver->fini(client->object.priv); in nvif_client_fini()
52 client->driver = NULL; in nvif_client_fini()
53 client->object.client = NULL; in nvif_client_fini()
54 nvif_object_fini(&client->object); in nvif_client_fini()
72 const char *cfg, const char *dbg, struct nvif_client *client) in nvif_client_init() argument
80 ret = nvif_object_init(NULL, 0, 0, NULL, 0, &client->object); in nvif_client_init()
84 client->object.client = client; in nvif_client_init()
85 client->object.handle = ~0; in nvif_client_init()
86 client->route = NVIF_IOCTL_V0_ROUTE_NVIF; in nvif_client_init()
87 client->super = true; in nvif_client_init()
89 for (i = 0, ret = -EINVAL; (client->driver = nvif_drivers[i]); i++) { in nvif_client_init()
90 if (!driver || !strcmp(client->driver->name, driver)) { in nvif_client_init()
91 ret = client->driver->init(name, device, cfg, dbg, in nvif_client_init()
92 &client->object.priv); in nvif_client_init()
99 ret = nvif_client_ioctl(client, &args, sizeof(args)); in nvif_client_init()
100 client->version = args.nop.version; in nvif_client_init()
104 nvif_client_fini(client); in nvif_client_init()