Lines Matching full:object
25 #include <nvif/object.h>
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()
46 return client->driver->ioctl(client->object.priv, data, size, hack); in nvif_object_ioctl()
57 nvif_object_sclass_get(struct nvif_object *object, struct nvif_sclass **psclass) in nvif_object_sclass_get() argument
75 ret = nvif_object_ioctl(object, args, size, NULL); in nvif_object_sclass_get()
101 nvif_object_mthd(struct nvif_object *object, u32 mthd, void *data, u32 size) in nvif_object_mthd() argument
127 ret = nvif_object_ioctl(object, args, args_size, NULL); in nvif_object_mthd()
135 nvif_object_unmap_handle(struct nvif_object *object) in nvif_object_unmap_handle() argument
144 nvif_object_ioctl(object, &args, sizeof(args), NULL); in nvif_object_unmap_handle()
148 nvif_object_map_handle(struct nvif_object *object, void *argv, u32 argc, in nvif_object_map_handle() argument
163 ret = nvif_object_ioctl(object, args, argn, NULL); in nvif_object_map_handle()
172 nvif_object_unmap(struct nvif_object *object) in nvif_object_unmap() argument
174 struct nvif_client *client = object->client; in nvif_object_unmap()
175 if (object->map.ptr) { in nvif_object_unmap()
176 if (object->map.size) { in nvif_object_unmap()
177 client->driver->unmap(client, object->map.ptr, in nvif_object_unmap()
178 object->map.size); in nvif_object_unmap()
179 object->map.size = 0; in nvif_object_unmap()
181 object->map.ptr = NULL; in nvif_object_unmap()
182 nvif_object_unmap_handle(object); in nvif_object_unmap()
187 nvif_object_map(struct nvif_object *object, void *argv, u32 argc) in nvif_object_map() argument
189 struct nvif_client *client = object->client; in nvif_object_map()
191 int ret = nvif_object_map_handle(object, argv, argc, &handle, &length); in nvif_object_map()
194 object->map.ptr = client->driver->map(client, in nvif_object_map()
197 if (ret = -ENOMEM, object->map.ptr) { in nvif_object_map()
198 object->map.size = length; in nvif_object_map()
202 object->map.ptr = (void *)(unsigned long)handle; in nvif_object_map()
205 nvif_object_unmap_handle(object); in nvif_object_map()
211 nvif_object_dtor(struct nvif_object *object) in nvif_object_dtor() argument
220 if (!nvif_object_constructed(object)) in nvif_object_dtor()
223 nvif_object_unmap(object); in nvif_object_dtor()
224 nvif_object_ioctl(object, &args, sizeof(args), NULL); in nvif_object_dtor()
225 object->client = NULL; in nvif_object_dtor()
230 s32 oclass, void *data, u32 size, struct nvif_object *object) in nvif_object_ctor() argument
238 object->client = NULL; in nvif_object_ctor()
239 object->name = name ? name : "nvifObject"; in nvif_object_ctor()
240 object->handle = handle; in nvif_object_ctor()
241 object->oclass = oclass; in nvif_object_ctor()
242 object->map.ptr = NULL; in nvif_object_ctor()
243 object->map.size = 0; in nvif_object_ctor()
249 nvif_object_dtor(object); in nvif_object_ctor()
255 nvif_object_dtor(object); in nvif_object_ctor()
259 object->parent = parent->parent; in nvif_object_ctor()
264 args->new.object = nvif_handle(object); in nvif_object_ctor()
269 ret = nvif_object_ioctl(parent, args, args_size, &object->priv); in nvif_object_ctor()
273 object->client = parent->client; in nvif_object_ctor()
277 nvif_object_dtor(object); in nvif_object_ctor()