/drivers/gpu/drm/nouveau/nvkm/core/ |
D | object.c | 29 nvkm_object_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_object_mthd() argument 31 if (likely(object->func->mthd)) in nvkm_object_mthd() 32 return object->func->mthd(object, mthd, data, size); in nvkm_object_mthd() 37 nvkm_object_ntfy(struct nvkm_object *object, u32 mthd, in nvkm_object_ntfy() argument 40 if (likely(object->func->ntfy)) in nvkm_object_ntfy() 41 return object->func->ntfy(object, mthd, pevent); in nvkm_object_ntfy() 46 nvkm_object_map(struct nvkm_object *object, u64 *addr, u32 *size) in nvkm_object_map() argument 48 if (likely(object->func->map)) in nvkm_object_map() 49 return object->func->map(object, addr, size); in nvkm_object_map() 54 nvkm_object_rd08(struct nvkm_object *object, u64 addr, u8 *data) in nvkm_object_rd08() argument [all …]
|
D | oproxy.c | 27 nvkm_oproxy_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_oproxy_mthd() argument 29 return nvkm_object_mthd(nvkm_oproxy(object)->object, mthd, data, size); in nvkm_oproxy_mthd() 33 nvkm_oproxy_ntfy(struct nvkm_object *object, u32 mthd, in nvkm_oproxy_ntfy() argument 36 return nvkm_object_ntfy(nvkm_oproxy(object)->object, mthd, pevent); in nvkm_oproxy_ntfy() 40 nvkm_oproxy_map(struct nvkm_object *object, u64 *addr, u32 *size) in nvkm_oproxy_map() argument 42 return nvkm_object_map(nvkm_oproxy(object)->object, addr, size); in nvkm_oproxy_map() 46 nvkm_oproxy_rd08(struct nvkm_object *object, u64 addr, u8 *data) in nvkm_oproxy_rd08() argument 48 return nvkm_object_rd08(nvkm_oproxy(object)->object, addr, data); in nvkm_oproxy_rd08() 52 nvkm_oproxy_rd16(struct nvkm_object *object, u64 addr, u16 *data) in nvkm_oproxy_rd16() argument 54 return nvkm_object_rd16(nvkm_oproxy(object)->object, addr, data); in nvkm_oproxy_rd16() [all …]
|
D | ioctl.c | 32 nvkm_ioctl_nop(struct nvkm_object *object, void *data, u32 size) in nvkm_ioctl_nop() argument 39 nvif_ioctl(object, "nop size %d\n", size); in nvkm_ioctl_nop() 41 nvif_ioctl(object, "nop vers %lld\n", args->v0.version); in nvkm_ioctl_nop() 49 nvkm_ioctl_sclass(struct nvkm_object *object, void *data, u32 size) in nvkm_ioctl_sclass() argument 57 nvif_ioctl(object, "sclass size %d\n", size); in nvkm_ioctl_sclass() 59 nvif_ioctl(object, "sclass vers %d count %d\n", in nvkm_ioctl_sclass() 64 while (object->func->sclass && in nvkm_ioctl_sclass() 65 object->func->sclass(object, i, &oclass) >= 0) { in nvkm_ioctl_sclass() 87 struct nvkm_object *object = NULL; in nvkm_ioctl_new() local 96 args->v0.route, args->v0.token, args->v0.object); in nvkm_ioctl_new() [all …]
|
D | client.c | 91 nvkm_client_notify_new(struct nvkm_object *object, in nvkm_client_notify_new() argument 94 struct nvkm_client *client = object->client; in nvkm_client_notify_new() 114 nvif_ioctl(object, "notify new size %d\n", size); in nvkm_client_notify_new() 116 nvif_ioctl(object, "notify new vers %d reply %d route %02x " in nvkm_client_notify_new() 128 ret = nvkm_notify_init(object, event, nvkm_client_notify, in nvkm_client_notify_new() 142 nvkm_client_mthd_devlist(struct nvkm_object *object, void *data, u32 size) in nvkm_client_mthd_devlist() argument 149 nvif_ioctl(object, "client devlist size %d\n", size); in nvkm_client_mthd_devlist() 151 nvif_ioctl(object, "client devlist vers %d count %d\n", in nvkm_client_mthd_devlist() 168 nvkm_client_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_client_mthd() argument 172 return nvkm_client_mthd_devlist(object, data, size); in nvkm_client_mthd() [all …]
|
/drivers/acpi/acpica/ |
D | utdelete.c | 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); 72 static void acpi_ut_delete_internal_obj(union acpi_operand_object *object) in acpi_ut_delete_internal_obj() argument 81 ACPI_FUNCTION_TRACE_PTR(ut_delete_internal_obj, object); in acpi_ut_delete_internal_obj() 83 if (!object) { in acpi_ut_delete_internal_obj() 91 switch (object->common.type) { in acpi_ut_delete_internal_obj() 95 "**** String %p, ptr %p\n", object, in acpi_ut_delete_internal_obj() 96 object->string.pointer)); in acpi_ut_delete_internal_obj() 100 if (!(object->common.flags & AOPOBJ_STATIC_POINTER)) { in acpi_ut_delete_internal_obj() 104 obj_pointer = object->string.pointer; in acpi_ut_delete_internal_obj() [all …]
|
D | nsobject.c | 74 union acpi_operand_object *object, acpi_object_type type) in acpi_ns_attach_object() argument 93 if (!object && (ACPI_TYPE_ANY != type)) { in acpi_ns_attach_object() 113 if (node->object == object) { in acpi_ns_attach_object() 116 object, node)); in acpi_ns_attach_object() 123 if (!object) { in acpi_ns_attach_object() 132 else if ((ACPI_GET_DESCRIPTOR_TYPE(object) == ACPI_DESC_TYPE_NAMED) && in acpi_ns_attach_object() 133 ((struct acpi_namespace_node *)object)->object) { in acpi_ns_attach_object() 138 obj_desc = ((struct acpi_namespace_node *)object)->object; in acpi_ns_attach_object() 139 object_type = ((struct acpi_namespace_node *)object)->type; in acpi_ns_attach_object() 147 obj_desc = (union acpi_operand_object *)object; in acpi_ns_attach_object() [all …]
|
D | dsmthdat.c | 61 union acpi_operand_object *object, 147 if (walk_state->local_variables[index].object) { in acpi_ds_method_data_delete_all() 151 object)); in acpi_ds_method_data_delete_all() 163 if (walk_state->arguments[index].object) { in acpi_ds_method_data_delete_all() 166 walk_state->arguments[index].object)); in acpi_ds_method_data_delete_all() 317 union acpi_operand_object *object, in acpi_ds_method_data_set_value() argument 326 "NewObj %p Type %2.2X, Refs=%u [%s]\n", object, in acpi_ds_method_data_set_value() 327 type, object->common.reference_count, in acpi_ds_method_data_set_value() 328 acpi_ut_get_type_name(object->common.type))); in acpi_ds_method_data_set_value() 343 acpi_ut_add_reference(object); in acpi_ds_method_data_set_value() [all …]
|
D | utobject.c | 93 union acpi_operand_object *object; in acpi_ut_create_internal_object_dbg() local 101 object = in acpi_ut_create_internal_object_dbg() 104 if (!object) { in acpi_ut_create_internal_object_dbg() 119 acpi_ut_delete_object_desc(object); in acpi_ut_create_internal_object_dbg() 128 object->common.next_object = second_object; in acpi_ut_create_internal_object_dbg() 139 object->common.type = (u8) type; in acpi_ut_create_internal_object_dbg() 143 object->common.reference_count = 1; in acpi_ut_create_internal_object_dbg() 147 return_PTR(object); in acpi_ut_create_internal_object_dbg() 337 u8 acpi_ut_valid_internal_object(void *object) in acpi_ut_valid_internal_object() argument 344 if (!object) { in acpi_ut_valid_internal_object() [all …]
|
D | utdecode.c | 271 const char *acpi_ut_get_node_name(void *object) in acpi_ut_get_node_name() argument 273 struct acpi_namespace_node *node = (struct acpi_namespace_node *)object; in acpi_ut_get_node_name() 277 if (!object) { in acpi_ut_get_node_name() 283 if ((object == ACPI_ROOT_OBJECT) || (object == acpi_gbl_root_node)) { in acpi_ut_get_node_name() 337 const char *acpi_ut_get_descriptor_name(void *object) in acpi_ut_get_descriptor_name() argument 340 if (!object) { in acpi_ut_get_descriptor_name() 344 if (ACPI_GET_DESCRIPTOR_TYPE(object) > ACPI_DESC_TYPE_MAX) { in acpi_ut_get_descriptor_name() 348 return (acpi_gbl_desc_type_names[ACPI_GET_DESCRIPTOR_TYPE(object)]); in acpi_ut_get_descriptor_name() 375 const char *acpi_ut_get_reference_name(union acpi_operand_object *object) in acpi_ut_get_reference_name() argument 378 if (!object) { in acpi_ut_get_reference_name() [all …]
|
D | utcache.c | 187 acpi_status acpi_os_release_object(struct acpi_memory_list *cache, void *object) in acpi_os_release_object() argument 193 if (!cache || !object) { in acpi_os_release_object() 200 ACPI_FREE(object); in acpi_os_release_object() 214 memset(object, 0xCA, cache->object_size); in acpi_os_release_object() 215 ACPI_SET_DESCRIPTOR_TYPE(object, ACPI_DESC_TYPE_CACHED); in acpi_os_release_object() 219 ACPI_SET_DESCRIPTOR_PTR(object, cache->list_head); in acpi_os_release_object() 220 cache->list_head = object; in acpi_os_release_object() 245 void *object; in acpi_os_acquire_object() local 266 object = cache->list_head; in acpi_os_acquire_object() 267 cache->list_head = ACPI_GET_DESCRIPTOR_PTR(object); in acpi_os_acquire_object() [all …]
|
D | dbconvert.c | 137 acpi_db_convert_to_buffer(char *string, union acpi_object *object) in acpi_db_convert_to_buffer() argument 177 object->type = ACPI_TYPE_BUFFER; in acpi_db_convert_to_buffer() 178 object->buffer.pointer = buffer; in acpi_db_convert_to_buffer() 179 object->buffer.length = length; in acpi_db_convert_to_buffer() 197 acpi_status acpi_db_convert_to_package(char *string, union acpi_object *object) in acpi_db_convert_to_package() argument 229 object->type = ACPI_TYPE_PACKAGE; in acpi_db_convert_to_package() 230 object->package.count = i; in acpi_db_convert_to_package() 231 object->package.elements = elements; in acpi_db_convert_to_package() 255 char *string, union acpi_object *object) in acpi_db_convert_to_object() argument 262 object->type = ACPI_TYPE_STRING; in acpi_db_convert_to_object() [all …]
|
D | dbobject.c | 282 [obj_desc->reference.value].object; in acpi_db_display_internal_object() 295 [obj_desc->reference.value].object; in acpi_db_display_internal_object() 309 object); in acpi_db_display_internal_object() 311 (obj_desc->reference.object); in acpi_db_display_internal_object() 340 if (!obj_desc->reference.object) { in acpi_db_display_internal_object() 349 (obj_desc->reference.object)) { in acpi_db_display_internal_object() 353 object); in acpi_db_display_internal_object() 359 (obj_desc->reference.object); in acpi_db_display_internal_object() 440 obj_desc = walk_state->local_variables[i].object; in acpi_db_decode_locals() 455 obj_desc = walk_state->local_variables[i].object; in acpi_db_decode_locals() [all …]
|
/drivers/gpu/drm/nouveau/nvif/ |
D | object.c | 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() [all …]
|
D | notify.c | 35 struct nvif_object *object = notify->object; in nvif_notify_put_() local 47 return nvif_object_ioctl(object, &args, sizeof(args), NULL); in nvif_notify_put_() 53 if (likely(notify->object) && in nvif_notify_put() 66 struct nvif_object *object = notify->object; in nvif_notify_get_() local 78 return nvif_object_ioctl(object, &args, sizeof(args), NULL); in nvif_notify_get_() 84 if (likely(notify->object) && in nvif_notify_get() 127 struct nvif_client *client = notify->object->client; in nvif_notify() 147 struct nvif_object *object = notify->object; in nvif_notify_fini() local 156 if (ret >= 0 && object) { in nvif_notify_fini() 157 ret = nvif_object_ioctl(object, &args, sizeof(args), NULL); in nvif_notify_fini() [all …]
|
D | client.c | 32 return client->driver->ioctl(client->object.priv, client->super, data, size, NULL); in nvif_client_ioctl() 38 return client->driver->suspend(client->object.priv); in nvif_client_suspend() 44 return client->driver->resume(client->object.priv); in nvif_client_resume() 51 client->driver->fini(client->object.priv); in nvif_client_fini() 53 client->object.client = NULL; in nvif_client_fini() 54 nvif_object_fini(&client->object); in nvif_client_fini() 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() 92 &client->object.priv); in nvif_client_init()
|
/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | chan.c | 41 struct nvkm_fifo_chan_object *object = in nvkm_fifo_chan_child_fini() local 42 container_of(base, typeof(*object), oproxy); in nvkm_fifo_chan_child_fini() 43 struct nvkm_engine *engine = object->oproxy.object->engine; in nvkm_fifo_chan_child_fini() 44 struct nvkm_fifo_chan *chan = object->chan; in nvkm_fifo_chan_child_fini() 55 nvif_error(&chan->object, in nvkm_fifo_chan_child_fini() 61 if (engn->object) { in nvkm_fifo_chan_child_fini() 62 ret = nvkm_object_fini(engn->object, suspend); in nvkm_fifo_chan_child_fini() 67 nvif_trace(&chan->object, "detached %s\n", name); in nvkm_fifo_chan_child_fini() 74 struct nvkm_fifo_chan_object *object = in nvkm_fifo_chan_child_init() local 75 container_of(base, typeof(*object), oproxy); in nvkm_fifo_chan_child_init() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
D | user.c | 24 #define nvkm_udevice(p) container_of((p), struct nvkm_udevice, object) 38 struct nvkm_object object; member 45 struct nvkm_object *object = &udev->object; in nvkm_udevice_info() local 54 nvif_ioctl(object, "device info size %d\n", size); in nvkm_udevice_info() 56 nvif_ioctl(object, "device info vers %d\n", args->v0.version); in nvkm_udevice_info() 128 struct nvkm_object *object = &udev->object; in nvkm_udevice_time() local 135 nvif_ioctl(object, "device time size %d\n", size); in nvkm_udevice_time() 137 nvif_ioctl(object, "device time vers %d\n", args->v0.version); in nvkm_udevice_time() 145 nvkm_udevice_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_udevice_mthd() argument 147 struct nvkm_udevice *udev = nvkm_udevice(object); in nvkm_udevice_mthd() [all …]
|
/drivers/gpu/drm/ |
D | drm_global.c | 38 void *object; member 51 item->object = NULL; in drm_global_init() 61 BUG_ON(item->object != NULL); in drm_global_release() 73 ref->object = kzalloc(ref->size, GFP_KERNEL); in drm_global_item_ref() 74 if (unlikely(ref->object == NULL)) { in drm_global_item_ref() 82 item->object = ref->object; in drm_global_item_ref() 84 ref->object = item->object; in drm_global_item_ref() 92 kfree(ref->object); in drm_global_item_ref() 93 ref->object = NULL; in drm_global_item_ref() 106 BUG_ON(ref->object != item->object); in drm_global_item_unref() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | dmacnv50.c | 43 struct nv50_disp_dmac_object *object = in nv50_disp_dmac_child_del_() local 44 container_of(base, typeof(*object), oproxy); in nv50_disp_dmac_child_del_() 45 nvkm_ramht_remove(object->root->ramht, object->hash); in nv50_disp_dmac_child_del_() 62 struct nv50_disp_dmac_object *object; in nv50_disp_dmac_child_new_() local 65 if (!(object = kzalloc(sizeof(*object), GFP_KERNEL))) in nv50_disp_dmac_child_new_() 67 nvkm_oproxy_ctor(&nv50_disp_dmac_child_func_, oclass, &object->oproxy); in nv50_disp_dmac_child_new_() 68 object->root = root; in nv50_disp_dmac_child_new_() 69 *pobject = &object->oproxy.base; in nv50_disp_dmac_child_new_() 71 ret = sclass->ctor(device, oclass, data, size, &object->oproxy.object); in nv50_disp_dmac_child_new_() 75 object->hash = chan->func->bind(chan, object->oproxy.object, in nv50_disp_dmac_child_new_() [all …]
|
D | rootnv50.c | 47 nvif_ioctl(object, "disp scanoutpos size %d\n", size); in nv50_disp_root_scanoutpos() 49 nvif_ioctl(object, "disp scanoutpos vers %d\n", in nv50_disp_root_scanoutpos() 70 nv50_disp_root_mthd_(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nv50_disp_root_mthd_() argument 76 struct nv50_disp_root *root = nv50_disp_root(object); in nv50_disp_root_mthd_() 87 nvif_ioctl(object, "disp mthd size %d\n", size); in nv50_disp_root_mthd_() 89 nvif_ioctl(object, "disp mthd vers %d mthd %02x head %d\n", in nv50_disp_root_mthd_() 95 nvif_ioctl(object, "disp mthd vers %d mthd %02x " in nv50_disp_root_mthd_() 123 return func->head.scanoutpos(object, disp, data, size, head); in nv50_disp_root_mthd_() 130 return func->dac.power(object, disp, data, size, head, outp); in nv50_disp_root_mthd_() 132 return func->dac.sense(object, disp, data, size, head, outp); in nv50_disp_root_mthd_() [all …]
|
D | rootnv04.c | 24 #define nv04_disp_root(p) container_of((p), struct nv04_disp_root, object) 34 struct nvkm_object object; member 43 struct nvkm_object *object = &root->object; in nv04_disp_scanoutpos() local 51 nvif_ioctl(object, "disp scanoutpos size %d\n", size); in nv04_disp_scanoutpos() 53 nvif_ioctl(object, "disp scanoutpos vers %d\n", in nv04_disp_scanoutpos() 83 nv04_disp_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nv04_disp_mthd() argument 85 struct nv04_disp_root *root = nv04_disp_root(object); in nv04_disp_mthd() 91 nvif_ioctl(object, "disp mthd size %d\n", size); in nv04_disp_mthd() 93 nvif_ioctl(object, "disp mthd vers %d mthd %02x head %d\n", in nv04_disp_mthd() 128 *pobject = &root->object; in nv04_disp_root_new() [all …]
|
D | channv50.c | 130 nv50_disp_chan_uevent_ctor(struct nvkm_object *object, void *data, u32 size, in nv50_disp_chan_uevent_ctor() argument 133 struct nv50_disp_chan *chan = nv50_disp_chan(object); in nv50_disp_chan_uevent_ctor() 157 nv50_disp_chan_rd32(struct nvkm_object *object, u64 addr, u32 *data) in nv50_disp_chan_rd32() argument 159 struct nv50_disp_chan *chan = nv50_disp_chan(object); in nv50_disp_chan_rd32() 167 nv50_disp_chan_wr32(struct nvkm_object *object, u64 addr, u32 data) in nv50_disp_chan_wr32() argument 169 struct nv50_disp_chan *chan = nv50_disp_chan(object); in nv50_disp_chan_wr32() 177 nv50_disp_chan_ntfy(struct nvkm_object *object, u32 type, in nv50_disp_chan_ntfy() argument 180 struct nv50_disp_chan *chan = nv50_disp_chan(object); in nv50_disp_chan_ntfy() 193 nv50_disp_chan_map(struct nvkm_object *object, u64 *addr, u32 *size) in nv50_disp_chan_map() argument 195 struct nv50_disp_chan *chan = nv50_disp_chan(object); in nv50_disp_chan_map() [all …]
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_usif.c | 258 usif_object_dtor(struct usif_object *object) in usif_object_dtor() argument 260 list_del(&object->head); in usif_object_dtor() 261 kfree(object); in usif_object_dtor() 272 struct usif_object *object; in usif_object_new() local 275 if (!(object = kmalloc(sizeof(*object), GFP_KERNEL))) in usif_object_new() 277 list_add(&object->head, &cli->objects); in usif_object_new() 280 object->route = args->v0.route; in usif_object_new() 281 object->token = args->v0.token; in usif_object_new() 283 args->v0.token = (unsigned long)(void *)object; in usif_object_new() 285 args->v0.token = object->token; in usif_object_new() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/pm/ |
D | base.c | 213 struct nvkm_object *object = &dom->object; in nvkm_perfdom_init() local 217 nvif_ioctl(object, "perfdom init size %d\n", size); in nvkm_perfdom_init() 219 nvif_ioctl(object, "perfdom init\n"); in nvkm_perfdom_init() 243 struct nvkm_object *object = &dom->object; in nvkm_perfdom_sample() local 247 nvif_ioctl(object, "perfdom sample size %d\n", size); in nvkm_perfdom_sample() 249 nvif_ioctl(object, "perfdom sample\n"); in nvkm_perfdom_sample() 267 struct nvkm_object *object = &dom->object; in nvkm_perfdom_read() local 271 nvif_ioctl(object, "perfdom read size %d\n", size); in nvkm_perfdom_read() 273 nvif_ioctl(object, "perfdom read vers %d\n", args->v0.version); in nvkm_perfdom_read() 293 nvkm_perfdom_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_perfdom_mthd() argument [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/ |
D | nv44.c | 41 #define nv44_mpeg_chan(p) container_of((p), struct nv44_mpeg_chan, object) 44 struct nvkm_object object; member 52 nv44_mpeg_chan_bind(struct nvkm_object *object, struct nvkm_gpuobj *parent, in nv44_mpeg_chan_bind() argument 55 struct nv44_mpeg_chan *chan = nv44_mpeg_chan(object); in nv44_mpeg_chan_bind() 56 int ret = nvkm_gpuobj_new(chan->object.engine->subdev.device, 264 * 4, in nv44_mpeg_chan_bind() 68 nv44_mpeg_chan_fini(struct nvkm_object *object, bool suspend) in nv44_mpeg_chan_fini() argument 71 struct nv44_mpeg_chan *chan = nv44_mpeg_chan(object); in nv44_mpeg_chan_fini() 84 nv44_mpeg_chan_dtor(struct nvkm_object *object) in nv44_mpeg_chan_dtor() argument 86 struct nv44_mpeg_chan *chan = nv44_mpeg_chan(object); in nv44_mpeg_chan_dtor() 113 nvkm_object_ctor(&nv44_mpeg_chan, oclass, &chan->object); in nv44_mpeg_chan_new() [all …]
|