| /drivers/gpu/drm/nouveau/nvkm/core/ |
| A D | object.c | 40 if (handle < object->object) in nvkm_object_search() 43 if (handle > object->object) in nvkm_object_search() 53 object = &client->object; in nvkm_object_search() 85 if (object->object < this->object) { in nvkm_object_insert() 87 } else if (object->object > this->object) { in nvkm_object_insert() 131 return object->func->unmap(object); in nvkm_object_unmap() 176 int rret = object->func->init(object); in nvkm_object_fini() 197 ret = object->func->init(object); in nvkm_object_init() 219 object->func->fini(object, false); in nvkm_object_init() 239 data = object->func->dtor(object); in nvkm_object_dtor() [all …]
|
| A D | oproxy.c | 29 return nvkm_object_mthd(nvkm_oproxy(object)->object, mthd, data, size); in nvkm_oproxy_mthd() 36 return nvkm_object_ntfy(nvkm_oproxy(object)->object, mthd, pevent); in nvkm_oproxy_ntfy() 52 if (unlikely(!oproxy->object)) in nvkm_oproxy_unmap() 62 return nvkm_object_bind(nvkm_oproxy(object)->object, in nvkm_oproxy_bind() 71 oclass->parent = oproxy->object; in nvkm_oproxy_sclass() 74 return oproxy->object->func->sclass(oproxy->object, index, oclass); in nvkm_oproxy_sclass() 86 return oproxy->object->func->uevent(oproxy->object, argv, argc, uevent); in nvkm_oproxy_uevent() 101 if (oproxy->object->func->fini) { in nvkm_oproxy_fini() 102 ret = oproxy->object->func->fini(oproxy->object, suspend); in nvkm_oproxy_fini() 128 if (oproxy->object->func->init) { in nvkm_oproxy_init() [all …]
|
| A D | ioctl.c | 45 !object->func->uevent(object, NULL, 0, NULL) && index-- == 0) { in nvkm_ioctl_sclass_() 53 if (object->func->sclass) in nvkm_ioctl_sclass_() 54 return object->func->sclass(object, index, oclass); in nvkm_ioctl_sclass_() 106 args->v0.object); in nvkm_ioctl_new() 118 oclass.object = args->v0.object; in nvkm_ioctl_new() 139 client->data = object; in nvkm_ioctl_new() 147 nvkm_object_del(&object); in nvkm_ioctl_new() 271 if (IS_ERR(object)) { in nvkm_ioctl_path() 273 return PTR_ERR(object); in nvkm_ioctl_path() 287 struct nvkm_object *object = &client->object; in nvkm_ioctl() local [all …]
|
| A D | uevent.c | 29 struct nvkm_object object; member 63 struct nvkm_uevent *uevent = nvkm_uevent(object); in nvkm_uevent_mthd() 78 struct nvkm_uevent *uevent = nvkm_uevent(object); in nvkm_uevent_fini() 85 nvkm_uevent_init(struct nvkm_object *object) in nvkm_uevent_init() argument 87 struct nvkm_uevent *uevent = nvkm_uevent(object); in nvkm_uevent_init() 96 nvkm_uevent_dtor(struct nvkm_object *object) in nvkm_uevent_dtor() argument 98 struct nvkm_uevent *uevent = nvkm_uevent(object); in nvkm_uevent_dtor() 116 struct nvkm_client *client = uevent->object.client; in nvkm_uevent_ntfy() 119 return uevent->func(uevent->parent, uevent->object.object, bits); in nvkm_uevent_ntfy() 121 return client->event(uevent->object.object, NULL, 0); in nvkm_uevent_ntfy() [all …]
|
| A D | client.c | 52 client->object.client = oclass->client; in nvkm_uclient_new() 53 client->object.handle = oclass->handle; in nvkm_uclient_new() 54 client->object.object = oclass->object; in nvkm_uclient_new() 56 *pobject = &client->object; in nvkm_uclient_new() 76 nvkm_client_child_get(struct nvkm_object *object, int index, in nvkm_client_child_get() argument 94 nvkm_client_dtor(struct nvkm_object *object) in nvkm_client_dtor() argument 96 return nvkm_client(object); in nvkm_client_dtor() 116 nvkm_object_ctor(&nvkm_client, &oclass, &client->object); in nvkm_client_new()
|
| /drivers/acpi/acpica/ |
| A D | utdelete.c | 47 if (!object) { in acpi_ut_delete_internal_obj() 134 object, object->mutex.os_mutex)); in acpi_ut_delete_internal_obj() 157 object, object->event.os_semaphore)); in acpi_ut_delete_internal_obj() 374 if (!object) { in acpi_ut_update_ref_count() 404 object, object->common.type, in acpi_ut_update_ref_count() 456 new_count, object, object->common.type, message)); in acpi_ut_update_ref_count() 616 next_object = object->reference.object; in acpi_ut_update_object_reference() 633 object = NULL; in acpi_ut_update_object_reference() 642 object = state->update.object; in acpi_ut_update_object_reference() 690 object, object->common.reference_count)); in acpi_ut_add_reference() [all …]
|
| A D | nsobject.c | 77 if (node->object == object) { in acpi_ns_attach_object() 80 object, node)); in acpi_ns_attach_object() 87 if (!object) { in acpi_ns_attach_object() 97 ((struct acpi_namespace_node *)object)->object) { in acpi_ns_attach_object() 102 obj_desc = ((struct acpi_namespace_node *)object)->object; in acpi_ns_attach_object() 123 if (node->object) { in acpi_ns_attach_object() 149 node->object = obj_desc; in acpi_ns_attach_object() 195 node->object = NULL; in acpi_ns_detach_object() 204 if (node->object && in acpi_ns_detach_object() 206 node->object = node->object->common.next_object; in acpi_ns_detach_object() [all …]
|
| A D | dsmthdat.c | 115 object)); in acpi_ds_method_data_delete_all() 312 node->object = object; in acpi_ds_method_data_set_value() 361 object = node->object; in acpi_ds_method_data_get_value() 365 if (!object) { in acpi_ds_method_data_get_value() 378 if (!object) { in acpi_ds_method_data_get_value() 382 node->object = object; in acpi_ds_method_data_get_value() 417 *dest_desc = object; in acpi_ds_method_data_get_value() 465 node->object = NULL; in acpi_ds_method_data_delete_value() 467 if ((object) && in acpi_ds_method_data_delete_value() 598 object, in acpi_ds_store_object_to_local() [all …]
|
| A D | utobject.c | 60 union acpi_operand_object *object; in acpi_ut_create_internal_object_dbg() local 68 object = in acpi_ut_create_internal_object_dbg() 71 if (!object) { in acpi_ut_create_internal_object_dbg() 74 kmemleak_not_leak(object); in acpi_ut_create_internal_object_dbg() 107 object->common.type = (u8) type; in acpi_ut_create_internal_object_dbg() 111 object->common.reference_count = 1; in acpi_ut_create_internal_object_dbg() 115 return_PTR(object); in acpi_ut_create_internal_object_dbg() 312 if (!object) { in acpi_ut_valid_internal_object() 330 object, acpi_ut_get_descriptor_name(object))); in acpi_ut_valid_internal_object() 360 if (!object) { in acpi_ut_allocate_object_desc_dbg() [all …]
|
| A D | utdecode.c | 239 const char *acpi_ut_get_node_name(void *object) in acpi_ut_get_node_name() argument 245 if (!object) { in acpi_ut_get_node_name() 251 if ((object == ACPI_ROOT_OBJECT) || (object == acpi_gbl_root_node)) { in acpi_ut_get_node_name() 305 const char *acpi_ut_get_descriptor_name(void *object) in acpi_ut_get_descriptor_name() argument 308 if (!object) { in acpi_ut_get_descriptor_name() 312 if (ACPI_GET_DESCRIPTOR_TYPE(object) > ACPI_DESC_TYPE_MAX) { in acpi_ut_get_descriptor_name() 346 if (!object) { in acpi_ut_get_reference_name() 350 if (ACPI_GET_DESCRIPTOR_TYPE(object) != ACPI_DESC_TYPE_OPERAND) { in acpi_ut_get_reference_name() 354 if (object->common.type != ACPI_TYPE_LOCAL_REFERENCE) { in acpi_ut_get_reference_name() 358 if (object->reference.class > ACPI_REFCLASS_MAX) { in acpi_ut_get_reference_name() [all …]
|
| A D | utcache.c | 159 if (!cache || !object) { in acpi_os_release_object() 166 ACPI_FREE(object); in acpi_os_release_object() 180 memset(object, 0xCA, cache->object_size); in acpi_os_release_object() 185 ACPI_SET_DESCRIPTOR_PTR(object, cache->list_head); in acpi_os_release_object() 186 cache->list_head = object; in acpi_os_release_object() 211 void *object; in acpi_os_acquire_object() local 232 object = cache->list_head; in acpi_os_acquire_object() 240 ACPI_GET_FUNCTION_NAME, object, in acpi_os_acquire_object() 250 memset(object, 0, cache->object_size); in acpi_os_acquire_object() 272 if (!object) { in acpi_os_acquire_object() [all …]
|
| /drivers/gpu/drm/nouveau/nvif/ |
| A D | object.c | 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() 175 if (object->map.ptr) { in nvif_object_unmap() 176 if (object->map.size) { in nvif_object_unmap() 179 object->map.size = 0; in nvif_object_unmap() 225 object->client = NULL; in nvif_object_dtor() 238 object->client = NULL; in nvif_object_ctor() 242 object->map.ptr = NULL; in nvif_object_ctor() 243 object->map.size = 0; in nvif_object_ctor() [all …]
|
| A D | outp.c | 43 NVIF_ERRON(ret, &outp->object, in nvif_outp_dp_mst_vcpi() 58 NVIF_ERRON(ret, &outp->object, "[DP_MST_ID_PUT id:%08x]", args.id); in nvif_outp_dp_mst_id_put() 90 NVIF_ERRON(ret, &outp->object, in nvif_outp_dp_sst() 129 NVIF_ERRON(ret, &outp->object, in nvif_outp_dp_train() 243 NVIF_ERRON(ret, &outp->object, in nvif_outp_hdmi() 276 NVIF_ERRON(ret, &outp->object, "[BL_SET level:%d]", args.level); in nvif_outp_bl_set() 297 NVIF_ERRON(ret, &outp->object, "[RELEASE]"); in nvif_outp_release() 349 NVIF_ERRON(ret, &outp->object, "[ACQUIRE DAC] or:%d", args.or); in nvif_outp_acquire_dac() 492 nvif_object_dtor(&outp->object); in nvif_outp_dtor() 505 &args, sizeof(args), &outp->object); in nvif_outp_ctor() [all …]
|
| A D | vmm.c | 30 return nvif_object_mthd(&vmm->object, NVIF_VMM_V0_UNMAP, in nvif_vmm_unmap() 53 args->memory = nvif_handle(&mem->object); in nvif_vmm_map() 57 ret = nvif_object_mthd(&vmm->object, NVIF_VMM_V0_MAP, in nvif_vmm_map() 98 ret = nvif_object_mthd(&vmm->object, NVIF_VMM_V0_GET, in nvif_vmm_get() 119 return nvif_object_mthd(&vmm->object, NVIF_VMM_V0_RAW, in nvif_vmm_raw_get() 134 return nvif_object_mthd(&vmm->object, NVIF_VMM_V0_RAW, in nvif_vmm_raw_put() 148 .memory = nvif_handle(&mem->object), in nvif_vmm_raw_map() 155 return nvif_object_mthd(&vmm->object, NVIF_VMM_V0_RAW, in nvif_vmm_raw_map() 195 nvif_object_dtor(&vmm->object); in nvif_vmm_dtor() 207 vmm->object.client = NULL; in nvif_vmm_ctor() [all …]
|
| /drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
| A D | gsp.h | 197 } object; member 313 return object->client->gsp->rm->api->ctrl->get(object, cmd, argc); in nvkm_gsp_rm_ctrl_get() 319 return object->client->gsp->rm->api->ctrl->push(object, argv, repc); in nvkm_gsp_rm_ctrl_push() 350 object->client->gsp->rm->api->ctrl->done(object, repv); in nvkm_gsp_rm_ctrl_done() 367 object->client = NULL; in nvkm_gsp_rm_alloc_get() 377 void *repv = object->client->gsp->rm->api->alloc->push(object, argv); in nvkm_gsp_rm_alloc_push() 380 object->client = NULL; in nvkm_gsp_rm_alloc_push() 399 object->client->gsp->rm->api->alloc->done(object, repv); in nvkm_gsp_rm_alloc_done() 417 if (object->client) { in nvkm_gsp_rm_free() 418 int ret = object->client->gsp->rm->api->alloc->free(object); in nvkm_gsp_rm_free() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| A D | chan.c | 68 struct nvkm_disp_chan_object *object = container_of(base, typeof(*object), oproxy); in nvkm_disp_chan_child_del_() local 70 nvkm_ramht_remove(object->disp->ramht, object->hash); in nvkm_disp_chan_child_del_() 86 struct nvkm_disp_chan_object *object; in nvkm_disp_chan_child_new() local 89 if (!(object = kzalloc(sizeof(*object), GFP_KERNEL))) in nvkm_disp_chan_child_new() 92 object->disp = disp; in nvkm_disp_chan_child_new() 93 *pobject = &object->oproxy.base; in nvkm_disp_chan_child_new() 95 ret = sclass->ctor(device, oclass, argv, argc, &object->oproxy.object); in nvkm_disp_chan_child_new() 99 object->hash = chan->func->bind(chan, object->oproxy.object, oclass->handle); in nvkm_disp_chan_child_new() 100 if (object->hash < 0) in nvkm_disp_chan_child_new() 101 return object->hash; in nvkm_disp_chan_child_new() [all …]
|
| A D | uhead.c | 22 #define nvkm_uhead(p) container_of((p), struct nvkm_head, object) 31 nvkm_uhead_uevent(struct nvkm_object *object, void *argv, u32 argc, struct nvkm_uevent *uevent) in nvkm_uhead_uevent() argument 33 struct nvkm_head *head = nvkm_uhead(object); in nvkm_uhead_uevent() 75 nvkm_uhead_mthd(struct nvkm_object *object, u32 mthd, void *argv, u32 argc) in nvkm_uhead_mthd() argument 77 struct nvkm_head *head = nvkm_uhead(object); in nvkm_uhead_mthd() 87 nvkm_uhead_dtor(struct nvkm_object *object) in nvkm_uhead_dtor() argument 89 struct nvkm_head *head = nvkm_uhead(object); in nvkm_uhead_dtor() 93 head->object.func = NULL; in nvkm_uhead_dtor() 120 if (!head->object.func) { in nvkm_uhead_new() 121 nvkm_object_ctor(&nvkm_uhead, oclass, &head->object); in nvkm_uhead_new() [all …]
|
| A D | udisp.c | 31 nvkm_udisp_sclass(struct nvkm_object *object, int index, struct nvkm_oclass *sclass) in nvkm_udisp_sclass() argument 33 struct nvkm_disp *disp = nvkm_udisp(object); in nvkm_udisp_sclass() 63 nvkm_udisp_dtor(struct nvkm_object *object) in nvkm_udisp_dtor() argument 65 struct nvkm_disp *disp = nvkm_udisp(object); in nvkm_udisp_dtor() 68 if (object == &disp->client.object) in nvkm_udisp_dtor() 69 disp->client.object.func = NULL; in nvkm_udisp_dtor() 93 if (disp->client.object.func) { in nvkm_udisp_new() 97 nvkm_object_ctor(&nvkm_udisp, oclass, &disp->client.object); in nvkm_udisp_new() 98 *pobject = &disp->client.object; in nvkm_udisp_new()
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/ |
| A D | alloc.c | 30 struct nvkm_gsp_client *client = object->client; in r535_gsp_rpc_rm_free() 35 client->object.handle, object->handle); in r535_gsp_rpc_rm_free() 41 rpc->params.hRoot = client->object.handle; in r535_gsp_rpc_rm_free() 43 rpc->params.hObjectOld = object->handle; in r535_gsp_rpc_rm_free() 52 nvkm_gsp_rpc_done(object->client->gsp, rpc); in r535_gsp_rpc_rm_alloc_done() 59 struct nvkm_gsp *gsp = object->client->gsp; in r535_gsp_rpc_rm_alloc_push() 86 client->object.handle, object->parent->handle, in r535_gsp_rpc_rm_alloc_get() 87 object->handle); in r535_gsp_rpc_rm_alloc_get() 97 rpc->hClient = client->object.handle; in r535_gsp_rpc_rm_alloc_get() 98 rpc->hParent = object->parent->handle; in r535_gsp_rpc_rm_alloc_get() [all …]
|
| A D | ctrl.c | 28 r535_gsp_rpc_rm_ctrl_done(struct nvkm_gsp_object *object, void *params) in r535_gsp_rpc_rm_ctrl_done() argument 34 nvkm_gsp_rpc_done(object->client->gsp, rpc); in r535_gsp_rpc_rm_ctrl_done() 38 r535_gsp_rpc_rm_ctrl_push(struct nvkm_gsp_object *object, void **params, u32 repc) in r535_gsp_rpc_rm_ctrl_push() argument 41 struct nvkm_gsp *gsp = object->client->gsp; in r535_gsp_rpc_rm_ctrl_push() 54 object->client->object.handle, object->handle, rpc->cmd, rpc->status); in r535_gsp_rpc_rm_ctrl_push() 66 r535_gsp_rpc_rm_ctrl_get(struct nvkm_gsp_object *object, u32 cmd, u32 params_size) in r535_gsp_rpc_rm_ctrl_get() argument 68 struct nvkm_gsp_client *client = object->client; in r535_gsp_rpc_rm_ctrl_get() 73 client->object.handle, object->handle, cmd, params_size); in r535_gsp_rpc_rm_ctrl_get() 80 rpc->hClient = client->object.handle; in r535_gsp_rpc_rm_ctrl_get() 81 rpc->hObject = object->handle; in r535_gsp_rpc_rm_ctrl_get()
|
| A D | device.c | 31 struct nvkm_gsp_client *client = device->object.client; in r535_gsp_event_dtor() 41 nvkm_gsp_rm_free(&event->object); in r535_gsp_event_dtor() 65 struct nvkm_gsp_client *client = device->object.client; in r535_gsp_device_event_ctor() 72 &event->object); in r535_gsp_device_event_ctor() 76 args->hParentClient = client->object.handle; in r535_gsp_device_event_ctor() 82 ret = nvkm_gsp_rm_alloc_wr(&event->object, args); in r535_gsp_device_event_ctor() 106 nvkm_gsp_rm_free(&device->object); in r535_gsp_device_dtor() 125 &device->object); in r535_gsp_device_ctor() 129 args->hClientShare = client->object.handle; in r535_gsp_device_ctor() 131 ret = nvkm_gsp_rm_alloc_wr(&device->object, args); in r535_gsp_device_ctor() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
| A D | umem.c | 39 struct nvkm_object *object; in nvkm_umem_search() local 43 if (IS_ERR(object)) { in nvkm_umem_search() 47 if (umem->object.object == handle) { in nvkm_umem_search() 55 umem = nvkm_umem(object); in nvkm_umem_search() 63 nvkm_umem_unmap(struct nvkm_object *object) in nvkm_umem_unmap() argument 124 nvkm_umem_dtor(struct nvkm_object *object) in nvkm_umem_dtor() argument 127 spin_lock(&umem->object.client->lock); in nvkm_umem_dtor() 129 spin_unlock(&umem->object.client->lock); in nvkm_umem_dtor() 170 *pobject = &umem->object; in nvkm_umem_new() 182 spin_lock(&umem->object.client->lock); in nvkm_umem_new() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
| A D | uchan.c | 37 struct nvkm_object object; member 82 if (!ectx->object) in nvkm_uchan_object_fini_1() 90 nvkm_object_fini(ectx->object, false); in nvkm_uchan_object_fini_1() 106 if (!ectx->object) in nvkm_uchan_object_init_0() 114 ret = nvkm_object_init(ectx->object); in nvkm_uchan_object_init_0() 186 .object = oclass->object, in nvkm_uchan_object_new() 190 }, argv, argc, &uobj->oproxy.object); in nvkm_uchan_object_new() 286 nvkm_uchan_init(struct nvkm_object *object) in nvkm_uchan_init() argument 323 if (WARN_ON(object->func != &nvkm_uchan)) in nvkm_uchan_chan() 326 return nvkm_uchan(object)->chan; in nvkm_uchan_chan() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/engine/device/ |
| A D | user.c | 38 struct nvkm_object object; member 75 struct nvkm_object *object = &udev->object; in nvkm_udevice_info() local 85 nvif_ioctl(object, "device info size %d\n", size); in nvkm_udevice_info() 176 struct nvkm_object *object = &udev->object; in nvkm_udevice_time() local 195 struct nvkm_udevice *udev = nvkm_udevice(object); in nvkm_udevice_mthd() 196 nvif_ioctl(object, "device mthd %08x\n", mthd); in nvkm_udevice_mthd() 212 struct nvkm_udevice *udev = nvkm_udevice(object); in nvkm_udevice_map() 223 struct nvkm_udevice *udev = nvkm_udevice(object); in nvkm_udevice_fini() 242 nvkm_udevice_init(struct nvkm_object *object) in nvkm_udevice_init() argument 244 struct nvkm_udevice *udev = nvkm_udevice(object); in nvkm_udevice_init() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/fault/ |
| A D | user.c | 32 nvkm_ufault_uevent(struct nvkm_object *object, void *argv, u32 argc, struct nvkm_uevent *uevent) in nvkm_ufault_uevent() argument 34 struct nvkm_fault_buffer *buffer = nvkm_fault_buffer(object); in nvkm_ufault_uevent() 47 nvkm_ufault_map(struct nvkm_object *object, void *argv, u32 argc, in nvkm_ufault_map() argument 50 struct nvkm_fault_buffer *buffer = nvkm_fault_buffer(object); in nvkm_ufault_map() 59 nvkm_ufault_fini(struct nvkm_object *object, bool suspend) in nvkm_ufault_fini() argument 61 struct nvkm_fault_buffer *buffer = nvkm_fault_buffer(object); in nvkm_ufault_fini() 67 nvkm_ufault_init(struct nvkm_object *object) in nvkm_ufault_init() argument 69 struct nvkm_fault_buffer *buffer = nvkm_fault_buffer(object); in nvkm_ufault_init() 75 nvkm_ufault_dtor(struct nvkm_object *object) in nvkm_ufault_dtor() argument 107 nvkm_object_ctor(&nvkm_ufault, oclass, &buffer->object); in nvkm_ufault_new() [all …]
|