Lines Matching refs:resource

34 	struct vmci_resource resource;  member
92 struct vmci_resource *resource; in vmci_dbell_get_priv_flags() local
94 resource = vmci_resource_by_handle(handle, in vmci_dbell_get_priv_flags()
96 if (!resource) in vmci_dbell_get_priv_flags()
99 entry = container_of(resource, struct dbell_entry, resource); in vmci_dbell_get_priv_flags()
101 vmci_resource_put(resource); in vmci_dbell_get_priv_flags()
142 vmci_resource_get(&entry->resource); in dbell_index_table_add()
221 vmci_resource_put(&entry->resource); in dbell_index_table_remove()
269 vmci_resource_put(&entry->resource); in dbell_delayed_dispatch()
278 struct vmci_resource *resource; in vmci_dbell_host_context_notify() local
282 handle.context, handle.resource); in vmci_dbell_host_context_notify()
286 resource = vmci_resource_by_handle(handle, in vmci_dbell_host_context_notify()
288 if (!resource) { in vmci_dbell_host_context_notify()
290 handle.context, handle.resource); in vmci_dbell_host_context_notify()
294 entry = container_of(resource, struct dbell_entry, resource); in vmci_dbell_host_context_notify()
297 vmci_resource_put(resource); in vmci_dbell_host_context_notify()
300 vmci_resource_put(resource); in vmci_dbell_host_context_notify()
347 vmci_resource_get(&dbell->resource); in dbell_fire_entries()
349 vmci_resource_put(&dbell->resource); in dbell_fire_entries()
438 if (!valid_context || handle->resource == VMCI_INVALID_ID) { in vmci_doorbell_create()
440 handle->context, handle->resource); in vmci_doorbell_create()
457 result = vmci_resource_add(&entry->resource, in vmci_doorbell_create()
462 new_handle.context, new_handle.resource, result); in vmci_doorbell_create()
466 new_handle = vmci_resource_handle(&entry->resource); in vmci_doorbell_create()
482 vmci_resource_remove(&entry->resource); in vmci_doorbell_create()
499 struct vmci_resource *resource; in vmci_doorbell_destroy() local
504 resource = vmci_resource_by_handle(handle, in vmci_doorbell_destroy()
506 if (!resource) { in vmci_doorbell_destroy()
508 handle.context, handle.resource); in vmci_doorbell_destroy()
512 entry = container_of(resource, struct dbell_entry, resource); in vmci_doorbell_destroy()
536 handle.context, handle.resource, result); in vmci_doorbell_destroy()
544 vmci_resource_put(&entry->resource); in vmci_doorbell_destroy()
545 vmci_resource_remove(&entry->resource); in vmci_doorbell_destroy()