/drivers/gpu/drm/nouveau/core/core/ |
H A D | object.c | 25 #include <core/object.h> 39 struct nouveau_object *object; local 41 object = *pobject = kzalloc(size, GFP_KERNEL); 42 if (!object) 45 nouveau_object_ref(parent, &object->parent); 46 nouveau_object_ref(engine, &object->engine); 47 object->oclass = oclass; 48 object->oclass->handle |= pclass; 49 atomic_set(&object->refcount, 1); 50 atomic_set(&object 73 nouveau_object_destroy(struct nouveau_object *object) argument 86 nouveau_object_init(struct nouveau_object *object) argument 92 nouveau_object_fini(struct nouveau_object *object, bool suspend) argument 112 struct nouveau_object *object = NULL; local 140 nouveau_object_dtor(struct nouveau_object *object) argument 165 nouveau_object_inc(struct nouveau_object *object) argument 218 nouveau_object_decf(struct nouveau_object *object) argument 243 nouveau_object_decs(struct nouveau_object *object) argument 295 nouveau_object_dec(struct nouveau_object *object, bool suspend) argument 321 struct nouveau_object *object; local [all...] |
H A D | printk.c | 25 #include <core/object.h> 33 nv_printk_(struct nouveau_object *object, int level, const char *fmt, ...) argument 62 if (object && !nv_iclass(object, NV_CLIENT_CLASS)) { 63 struct nouveau_object *device = object; 64 struct nouveau_object *subdev = object; 67 if (object->engine) { 69 nv_hclass(object), object); 71 subdev = object [all...] |
H A D | ioctl.c | 25 #include <core/object.h> 40 struct nouveau_object *object = handle->object; local 46 nv_ioctl(object, "nop size %d\n", size); 48 nv_ioctl(object, "nop\n"); 57 struct nouveau_object *object = handle->object; local 63 if (!nv_iclass(object, NV_PARENT_CLASS)) { 64 nv_debug(object, "cannot have children (sclass)\n"); 68 nv_ioctl(object, "sclas 95 struct nouveau_object *object = NULL; local 187 struct nouveau_object *object = handle->object; local 206 struct nouveau_object *object = handle->object; local 228 struct nouveau_object *object = handle->object; local 270 struct nouveau_object *object = handle->object; local 313 struct nouveau_object *object = handle->object; local 335 struct nouveau_object *object = handle->object; local 352 struct nouveau_object *object = handle->object; local 382 struct nouveau_object *object = handle->object; local 402 struct nouveau_object *object = handle->object; local 422 struct nouveau_object *object = handle->object; local 465 struct nouveau_object *object; local [all...] |
H A D | namedb.c | 25 #include <core/object.h> 49 if (nv_mclass(handle->object) == oclass) 62 if (nv_iclass(handle->object, NV_GPUOBJ_CLASS)) { 63 if (nv_gpuobj(handle->object)->addr == vinst) 77 if (nv_iclass(handle->object, NV_GPUOBJ_CLASS)) { 78 if (nv_gpuobj(handle->object)->node && 79 nv_gpuobj(handle->object)->node->offset == cinst) 89 struct nouveau_object *object, 95 nouveau_object_ref(object, &handle->object); 88 nouveau_namedb_insert(struct nouveau_namedb *namedb, u32 name, struct nouveau_object *object, struct nouveau_handle *handle) argument 108 struct nouveau_object *object = handle->object; local 194 struct nouveau_namedb *object; local [all...] |
H A D | subdev.c | 25 #include <core/object.h> 50 _nouveau_subdev_init(struct nouveau_object *object) argument 52 return nouveau_subdev_init(nv_subdev(object)); 67 _nouveau_subdev_fini(struct nouveau_object *object, bool suspend) argument 69 return nouveau_subdev_fini(nv_subdev(object), suspend); 81 _nouveau_subdev_dtor(struct nouveau_object *object) argument 83 nouveau_subdev_destroy(nv_subdev(object));
|
H A D | engctx.c | 25 #include <core/object.h> 66 /* check if this engine already has a context for the parent object, 94 * it's not possible to allocate the object with it held. 137 struct nouveau_object *object = nv_object(engctx); local 138 struct nouveau_subdev *subdev = nv_subdev(object->engine); 147 parent = nv_pclass(object->parent, NV_PARENT_CLASS); 151 ret = nv_parent(parent)->context_attach(parent, object); 168 struct nouveau_object *object = nv_object(engctx); local 169 struct nouveau_subdev *subdev = nv_subdev(object->engine); 174 parent = nv_pclass(object 208 _nouveau_engctx_dtor(struct nouveau_object *object) argument 214 _nouveau_engctx_init(struct nouveau_object *object) argument 221 _nouveau_engctx_fini(struct nouveau_object *object, bool suspend) argument 244 nouveau_engctx_put(struct nouveau_object *object) argument [all...] |
/drivers/acpi/acpica/ |
H A D | utdelete.c | 3 * Module Name: utdelete - object deletion and reference count utilities 54 static void acpi_ut_delete_internal_obj(union acpi_operand_object *object); 57 acpi_ut_update_ref_count(union acpi_operand_object *object, u32 action); 63 * PARAMETERS: object - Object to be deleted 67 * DESCRIPTION: Low level object deletion, after reference counts have been 72 static void acpi_ut_delete_internal_obj(union acpi_operand_object *object) argument 81 ACPI_FUNCTION_TRACE_PTR(ut_delete_internal_obj, object); 83 if (!object) { 88 * Must delete or free any pointers within the object that are not 91 switch (object 383 acpi_ut_update_ref_count(union acpi_operand_object *object, u32 action) argument 493 acpi_ut_update_object_reference(union acpi_operand_object *object, u16 action) argument 691 acpi_ut_add_reference(union acpi_operand_object *object) argument 724 acpi_ut_remove_reference(union acpi_operand_object *object) argument [all...] |
H A D | utcache.c | 56 * object_size - Size of each cached object 58 * return_cache - Where the new cache object is returned 62 * DESCRIPTION: Create a cache object 78 /* Create the cache object */ 85 /* Populate the cache object and return it */ 100 * PARAMETERS: cache - Handle to cache object 128 /* Delete and unlink one cached state object */ 145 * PARAMETERS: cache - Handle to cache object 150 * cache object. 167 /* Now we can delete the cache object */ 188 acpi_os_release_object(struct acpi_memory_list * cache, void *object) argument 246 void *object; local [all...] |
H A D | utdecode.c | 169 * PARAMETERS: type - An ACPI object type 171 * RETURN: Decoded ACPI object type name 187 /* Printable names of the ACPI object types */ 247 * PARAMETERS: object - A namespace node 255 char *acpi_ut_get_node_name(void *object) argument 257 struct acpi_namespace_node *node = (struct acpi_namespace_node *)object; 261 if (!object) { 267 if ((object == ACPI_ROOT_OBJECT) || (object == acpi_gbl_root_node)) { 292 * PARAMETERS: object 321 acpi_ut_get_descriptor_name(void *object) argument 362 acpi_ut_get_reference_name(union acpi_operand_object *object) argument [all...] |
H A D | nsobject.c | 57 * object - Object to be attached 58 * type - Type of object, or ACPI_TYPE_ANY if not 63 * DESCRIPTION: Record the given object as the value associated with the 74 union acpi_operand_object *object, acpi_object_type type) 93 if (!object && (ACPI_TYPE_ANY != type)) { 95 /* Null object */ 98 "Null object, but type not ACPI_TYPE_ANY")); 111 /* Check if this object is already attached */ 113 if (node->object == object) { 73 acpi_ns_attach_object(struct acpi_namespace_node *node, union acpi_operand_object *object, acpi_object_type type) argument [all...] |
H A D | dsmthdat.c | 61 union acpi_operand_object *object, 74 * PARAMETERS: walk_state - Current walk state object 128 * PARAMETERS: walk_state - Current walk state object 146 if (walk_state->local_variables[index].object) { 150 object)); 152 /* Detach object (if present) and remove a reference */ 162 if (walk_state->arguments[index].object) { 165 walk_state->arguments[index].object)); 167 /* Detach object (if present) and remove a reference */ 182 * walk_state - Current walk state object 314 acpi_ds_method_data_set_value(u8 type, u32 index, union acpi_operand_object *object, struct acpi_walk_state *walk_state) argument 375 union acpi_operand_object *object; local 479 union acpi_operand_object *object; local 689 union acpi_operand_object *object; local [all...] |
H A D | utobject.c | 3 * Module Name: utobject - ACPI object create/delete/size/cache routines 72 * type - ACPI Type of the new object 74 * RETURN: A new internal object, null on failure 76 * DESCRIPTION: Create and initialize a new internal object. 78 * NOTE: We always allocate the worst-case object descriptor because 81 * the most memory efficient, but the efficiency of the object 93 union acpi_operand_object *object; local 99 /* Allocate the raw object descriptor */ 101 object = 104 if (!object) { 335 acpi_ut_valid_internal_object(void *object) argument 385 union acpi_operand_object *object; local 419 acpi_ut_delete_object_desc(union acpi_operand_object *object) argument [all...] |
/drivers/gpu/drm/nouveau/core/subdev/fuse/ |
H A D | priv.h | 6 int _nouveau_fuse_init(struct nouveau_object *object); 7 void _nouveau_fuse_dtor(struct nouveau_object *object);
|
H A D | base.c | 28 _nouveau_fuse_init(struct nouveau_object *object) argument 30 struct nouveau_fuse *fuse = (void *)object; 35 _nouveau_fuse_dtor(struct nouveau_object *object) argument 37 struct nouveau_fuse *fuse = (void *)object;
|
/drivers/gpu/drm/nouveau/nvif/ |
H A D | client.h | 4 #include "object.h" 8 struct nvif_object *object; /*XXX: hack for nvif_object() */ member in struct:nvif_client 14 nvif_client(struct nvif_object *object) argument 16 while (object && object->parent != object) 17 object = object->parent; 18 return (void *)object;
|
H A D | object.c | 25 #include "object.h" 31 nvif_object_ioctl(struct nvif_object *object, void *data, u32 size, void **hack) argument 33 struct nvif_client *client = nvif_client(object); 42 args->v0.path[args->v0.path_nr++] = object->handle; 43 if (object->parent == object) 45 object = object->parent; 54 nvif_object_sclass(struct nvif_object *object, u32 *oclass, int count) argument 71 ret = nvif_object_ioctl(object, arg 79 nvif_object_rd(struct nvif_object *object, int size, u64 addr) argument 98 nvif_object_wr(struct nvif_object *object, int size, u64 addr, u32 data) argument 116 nvif_object_mthd(struct nvif_object *object, u32 mthd, void *data, u32 size) argument 145 nvif_object_unmap(struct nvif_object *object) argument 168 nvif_object_map(struct nvif_object *object) argument 195 nvif_object_fini(struct nvif_object *object) argument 218 nvif_object_init(struct nvif_object *parent, void (*dtor)(struct nvif_object *), u32 handle, u32 oclass, void *data, u32 size, struct nvif_object *object) argument 264 nvif_object_del(struct nvif_object *object) argument 274 struct nvif_object *object = kzalloc(sizeof(*object), GFP_KERNEL); local 291 struct nvif_object *object = local 297 nvif_object_ref(struct nvif_object *object, struct nvif_object **pobject) argument [all...] |
H A D | notify.c | 28 #include <nvif/object.h> 35 struct nvif_object *object = notify->object; local 47 return nvif_object_ioctl(object, &args, sizeof(args), NULL); 53 if (likely(notify->object) && 66 struct nvif_object *object = notify->object; local 78 return nvif_object_ioctl(object, &args, sizeof(args), NULL); 84 if (likely(notify->object) && 127 struct nvif_client *client = nvif_client(notify->object); 147 struct nvif_object *object = notify->object; local 167 nvif_notify_init(struct nvif_object *object, void (*dtor)(struct nvif_notify *), int (*func)(struct nvif_notify *), bool work, u8 event, void *data, u32 size, u32 reply, struct nvif_notify *notify) argument 232 nvif_notify_new(struct nvif_object *object, int (*func)(struct nvif_notify *), bool work, u8 type, void *data, u32 size, u32 reply, struct nvif_notify **pnotify) argument [all...] |
/drivers/gpu/drm/ |
H A D | drm_global.c | 38 void *object; member in struct:drm_global_item 51 item->object = NULL; 61 BUG_ON(item->object != NULL); 73 item->object = kzalloc(ref->size, GFP_KERNEL); 74 if (unlikely(item->object == NULL)) { 79 ref->object = item->object; 86 ref->object = item->object; 91 item->object [all...] |
H A D | drm_crtc_internal.h | 37 struct drm_mode_object *object);
|
/drivers/gpu/drm/nouveau/core/subdev/devinit/ |
H A D | base.c | 34 _nouveau_devinit_fini(struct nouveau_object *object, bool suspend) argument 36 struct nouveau_devinit *devinit = (void *)object; 49 _nouveau_devinit_init(struct nouveau_object *object) argument 51 struct nouveau_devinit_impl *impl = (void *)object->oclass; 52 struct nouveau_devinit *devinit = (void *)object; 69 _nouveau_devinit_dtor(struct nouveau_object *object) argument 71 struct nouveau_devinit *devinit = (void *)object;
|
/drivers/gpu/drm/nouveau/core/subdev/i2c/ |
H A D | padnv94.c | 33 nv94_i2c_pad_fini(struct nouveau_object *object, bool suspend) argument 35 struct nouveau_i2c *i2c = (void *)object->engine; 36 struct nv94_i2c_pad *pad = (void *)object; 42 nv94_i2c_pad_init(struct nouveau_object *object) argument 44 struct nouveau_i2c *i2c = (void *)object->engine; 45 struct nv94_i2c_pad *pad = (void *)object;
|
/drivers/gpu/drm/nouveau/core/subdev/instmem/ |
H A D | nv04.c | 28 * instmem object implementation 32 nv04_instobj_rd32(struct nouveau_object *object, u64 addr) argument 34 struct nv04_instobj_priv *node = (void *)object; 35 return nv_ro32(object->engine, node->mem->offset + addr); 39 nv04_instobj_wr32(struct nouveau_object *object, u64 addr, u32 data) argument 41 struct nv04_instobj_priv *node = (void *)object; 42 nv_wo32(object->engine, node->mem->offset + addr, data); 46 nv04_instobj_dtor(struct nouveau_object *object) argument 48 struct nv04_instmem_priv *priv = (void *)object->engine; 49 struct nv04_instobj_priv *node = (void *)object; 99 nv04_instmem_rd32(struct nouveau_object *object, u64 addr) argument 105 nv04_instmem_wr32(struct nouveau_object *object, u64 addr, u32 data) argument 111 nv04_instmem_dtor(struct nouveau_object *object) argument [all...] |
/drivers/gpu/drm/nouveau/core/subdev/bar/ |
H A D | base.c | 25 #include <core/object.h> 70 nouveau_barobj_dtor(struct nouveau_object *object) argument 72 struct nouveau_bar *bar = (void *)object->engine; 73 struct nouveau_barobj *barobj = (void *)object; 83 nouveau_barobj_rd32(struct nouveau_object *object, u64 addr) argument 85 struct nouveau_barobj *barobj = (void *)object; 90 nouveau_barobj_wr32(struct nouveau_object *object, u64 addr, u32 data) argument 92 struct nouveau_barobj *barobj = (void *)object; 145 _nouveau_bar_dtor(struct nouveau_object *object) argument 147 struct nouveau_bar *bar = (void *)object; [all...] |
/drivers/gpu/drm/nouveau/core/engine/fifo/ |
H A D | base.c | 26 #include <core/object.h> 37 nouveau_fifo_event_ctor(struct nouveau_object *object, void *data, u32 size, argument 68 /* create base object class */ 75 /* validate dma object representing push buffer */ 134 _nouveau_fifo_channel_dtor(struct nouveau_object *object) argument 136 struct nouveau_fifo_chan *chan = (void *)object; 141 _nouveau_fifo_channel_map(struct nouveau_object *object, u64 *addr, u32 *size) argument 143 struct nouveau_fifo_chan *chan = (void *)object; 150 _nouveau_fifo_channel_rd32(struct nouveau_object *object, u64 addr) argument 152 struct nouveau_fifo_chan *chan = (void *)object; 162 _nouveau_fifo_channel_wr32(struct nouveau_object *object, u64 addr, u32 data) argument 174 nouveau_fifo_uevent_ctor(struct nouveau_object *object, void *data, u32 size, struct nvkm_notify *notify) argument 200 _nouveau_fifo_channel_ntfy(struct nouveau_object *object, u32 type, struct nvkm_event **event) argument 218 nouveau_fifo_chid(struct nouveau_fifo *priv, struct nouveau_object *object) argument [all...] |
/drivers/gpu/drm/nouveau/core/subdev/mc/ |
H A D | nv44.c | 28 nv44_mc_init(struct nouveau_object *object) argument 30 struct nv04_mc_priv *priv = (void *)object;
|