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()
286 vmci_resource_put(&entry->resource); in dbell_delayed_dispatch()
295 struct vmci_resource *resource; in vmci_dbell_host_context_notify() local
299 handle.context, handle.resource); in vmci_dbell_host_context_notify()
303 resource = vmci_resource_by_handle(handle, in vmci_dbell_host_context_notify()
305 if (!resource) { in vmci_dbell_host_context_notify()
307 handle.context, handle.resource); in vmci_dbell_host_context_notify()
311 entry = container_of(resource, struct dbell_entry, resource); in vmci_dbell_host_context_notify()
314 vmci_resource_put(resource); in vmci_dbell_host_context_notify()
317 vmci_resource_put(resource); in vmci_dbell_host_context_notify()
364 vmci_resource_get(&dbell->resource); in dbell_fire_entries()
366 vmci_resource_put(&dbell->resource); in dbell_fire_entries()
455 if (!valid_context || handle->resource == VMCI_INVALID_ID) { in vmci_doorbell_create()
457 handle->context, handle->resource); in vmci_doorbell_create()
474 result = vmci_resource_add(&entry->resource, in vmci_doorbell_create()
479 new_handle.context, new_handle.resource, result); in vmci_doorbell_create()
483 new_handle = vmci_resource_handle(&entry->resource); in vmci_doorbell_create()
499 vmci_resource_remove(&entry->resource); in vmci_doorbell_create()
516 struct vmci_resource *resource; in vmci_doorbell_destroy() local
521 resource = vmci_resource_by_handle(handle, in vmci_doorbell_destroy()
523 if (!resource) { in vmci_doorbell_destroy()
525 handle.context, handle.resource); in vmci_doorbell_destroy()
529 entry = container_of(resource, struct dbell_entry, resource); in vmci_doorbell_destroy()
553 handle.context, handle.resource, result); in vmci_doorbell_destroy()
561 vmci_resource_put(&entry->resource); in vmci_doorbell_destroy()
562 vmci_resource_remove(&entry->resource); in vmci_doorbell_destroy()