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->base.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->base.priv); in nvif_client_suspend()
42 nvif_client_resume(struct nvif_client *client) in nvif_client_resume() argument
44 return client->driver->resume(client->base.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->base.priv); in nvif_client_fini()
52 client->driver = NULL; in nvif_client_fini()
53 client->base.parent = NULL; in nvif_client_fini()
54 nvif_object_fini(&client->base); in nvif_client_fini()
73 struct nvif_client *client) in nvif_client_init() argument
77 ret = nvif_object_init(NULL, (void*)dtor, 0, 0, NULL, 0, &client->base); in nvif_client_init()
81 client->base.parent = &client->base; in nvif_client_init()
82 client->base.handle = ~0; in nvif_client_init()
83 client->object = &client->base; in nvif_client_init()
84 client->super = true; in nvif_client_init()
86 for (i = 0, ret = -EINVAL; (client->driver = nvif_drivers[i]); i++) { in nvif_client_init()
87 if (!driver || !strcmp(client->driver->name, driver)) { in nvif_client_init()
88 ret = client->driver->init(name, device, cfg, dbg, in nvif_client_init()
89 &client->base.priv); in nvif_client_init()
96 nvif_client_fini(client); in nvif_client_init()
101 nvif_client_del(struct nvif_client *client) in nvif_client_del() argument
103 nvif_client_fini(client); in nvif_client_del()
104 kfree(client); in nvif_client_del()
112 struct nvif_client *client = kzalloc(sizeof(*client), GFP_KERNEL); in nvif_client_new() local
113 if (client) { in nvif_client_new()
115 device, cfg, dbg, client); in nvif_client_new()
117 kfree(client); in nvif_client_new()
118 client = NULL; in nvif_client_new()
120 *pclient = client; in nvif_client_new()
127 nvif_client_ref(struct nvif_client *client, struct nvif_client **pclient) in nvif_client_ref() argument
129 nvif_object_ref(&client->base, (struct nvif_object **)pclient); in nvif_client_ref()