Lines Matching refs:resource

42 	struct vmci_resource resource;  member
100 struct vmci_resource *resource; in vmci_dbell_get_priv_flags() local
102 resource = vmci_resource_by_handle(handle, in vmci_dbell_get_priv_flags()
104 if (!resource) in vmci_dbell_get_priv_flags()
107 entry = container_of(resource, struct dbell_entry, resource); in vmci_dbell_get_priv_flags()
109 vmci_resource_put(resource); in vmci_dbell_get_priv_flags()
150 vmci_resource_get(&entry->resource); in dbell_index_table_add()
229 vmci_resource_put(&entry->resource); in dbell_index_table_remove()
294 vmci_resource_put(&entry->resource); in dbell_delayed_dispatch()
303 struct vmci_resource *resource; in vmci_dbell_host_context_notify() local
307 handle.context, handle.resource); in vmci_dbell_host_context_notify()
311 resource = vmci_resource_by_handle(handle, in vmci_dbell_host_context_notify()
313 if (!resource) { in vmci_dbell_host_context_notify()
315 handle.context, handle.resource); in vmci_dbell_host_context_notify()
319 entry = container_of(resource, struct dbell_entry, resource); in vmci_dbell_host_context_notify()
324 vmci_resource_put(resource); in vmci_dbell_host_context_notify()
368 vmci_resource_get(&dbell->resource); in dbell_fire_entries()
452 if (!valid_context || handle->resource == VMCI_INVALID_ID) { in vmci_doorbell_create()
454 handle->context, handle->resource); in vmci_doorbell_create()
471 result = vmci_resource_add(&entry->resource, in vmci_doorbell_create()
476 new_handle.context, new_handle.resource, result); in vmci_doorbell_create()
480 new_handle = vmci_resource_handle(&entry->resource); in vmci_doorbell_create()
496 vmci_resource_remove(&entry->resource); in vmci_doorbell_create()
513 struct vmci_resource *resource; in vmci_doorbell_destroy() local
518 resource = vmci_resource_by_handle(handle, in vmci_doorbell_destroy()
520 if (!resource) { in vmci_doorbell_destroy()
522 handle.context, handle.resource); in vmci_doorbell_destroy()
526 entry = container_of(resource, struct dbell_entry, resource); in vmci_doorbell_destroy()
550 handle.context, handle.resource, result); in vmci_doorbell_destroy()
558 vmci_resource_put(&entry->resource); in vmci_doorbell_destroy()
559 vmci_resource_remove(&entry->resource); in vmci_doorbell_destroy()