Lines Matching refs:object

31 nvif_object_ioctl(struct nvif_object *object, void *data, u32 size, void **hack)  in nvif_object_ioctl()  argument
33 struct nvif_client *client = object->client; in nvif_object_ioctl()
39 if (object != &client->object) in nvif_object_ioctl()
40 args->v0.object = nvif_handle(object); in nvif_object_ioctl()
42 args->v0.object = 0; in nvif_object_ioctl()
47 return client->driver->ioctl(client->object.priv, client->super, in nvif_object_ioctl()
59 nvif_object_sclass_get(struct nvif_object *object, struct nvif_sclass **psclass) in nvif_object_sclass_get() argument
77 ret = nvif_object_ioctl(object, args, size, NULL); in nvif_object_sclass_get()
103 nvif_object_rd(struct nvif_object *object, int size, u64 addr) in nvif_object_rd() argument
113 int ret = nvif_object_ioctl(object, &args, sizeof(args), NULL); in nvif_object_rd()
122 nvif_object_wr(struct nvif_object *object, int size, u64 addr, u32 data) in nvif_object_wr() argument
133 int ret = nvif_object_ioctl(object, &args, sizeof(args), NULL); in nvif_object_wr()
140 nvif_object_mthd(struct nvif_object *object, u32 mthd, void *data, u32 size) in nvif_object_mthd() argument
161 ret = nvif_object_ioctl(object, args, sizeof(*args) + size, NULL); in nvif_object_mthd()
169 nvif_object_unmap(struct nvif_object *object) in nvif_object_unmap() argument
171 if (object->map.size) { in nvif_object_unmap()
172 struct nvif_client *client = object->client; in nvif_object_unmap()
180 if (object->map.ptr) { in nvif_object_unmap()
181 client->driver->unmap(client, object->map.ptr, in nvif_object_unmap()
182 object->map.size); in nvif_object_unmap()
183 object->map.ptr = NULL; in nvif_object_unmap()
186 nvif_object_ioctl(object, &args, sizeof(args), NULL); in nvif_object_unmap()
187 object->map.size = 0; in nvif_object_unmap()
192 nvif_object_map(struct nvif_object *object) in nvif_object_map() argument
194 struct nvif_client *client = object->client; in nvif_object_map()
201 int ret = nvif_object_ioctl(object, &args, sizeof(args), NULL); in nvif_object_map()
203 object->map.size = args.map.length; in nvif_object_map()
204 object->map.ptr = client->driver->map(client, args.map.handle, in nvif_object_map()
205 object->map.size); in nvif_object_map()
206 if (ret = -ENOMEM, object->map.ptr) in nvif_object_map()
208 nvif_object_unmap(object); in nvif_object_map()
214 nvif_object_fini(struct nvif_object *object) in nvif_object_fini() argument
223 if (!object->client) in nvif_object_fini()
226 nvif_object_unmap(object); in nvif_object_fini()
227 nvif_object_ioctl(object, &args, sizeof(args), NULL); in nvif_object_fini()
228 object->client = NULL; in nvif_object_fini()
233 void *data, u32 size, struct nvif_object *object) in nvif_object_init() argument
241 object->client = NULL; in nvif_object_init()
242 object->handle = handle; in nvif_object_init()
243 object->oclass = oclass; in nvif_object_init()
244 object->map.ptr = NULL; in nvif_object_init()
245 object->map.size = 0; in nvif_object_init()
249 nvif_object_fini(object); in nvif_object_init()
257 args->new.token = nvif_handle(object); in nvif_object_init()
258 args->new.object = nvif_handle(object); in nvif_object_init()
264 &object->priv); in nvif_object_init()
268 object->client = parent->client; in nvif_object_init()
272 nvif_object_fini(object); in nvif_object_init()