Lines Matching refs:handle

24 		    struct vmci_handle handle);
122 struct vmci_handle handle) in vmci_hashtable_init_entry() argument
126 entry->handle = handle; in vmci_hashtable_init_entry()
157 if (vmci_hashtable_entry_exists_locked(table, entry->handle)) { in vmci_hashtable_add_entry()
159 "exists.\n", entry->handle.context, in vmci_hashtable_add_entry()
160 entry->handle.resource); in vmci_hashtable_add_entry()
165 idx = VMCI_HASHTABLE_HASH(entry->handle, table->size); in vmci_hashtable_add_entry()
243 struct vmci_handle handle) in vmci_hashtable_get_entry_locked() argument
248 ASSERT(!VMCI_HANDLE_EQUAL(handle, VMCI_INVALID_HANDLE)); in vmci_hashtable_get_entry_locked()
251 idx = VMCI_HASHTABLE_HASH(handle, table->size); in vmci_hashtable_get_entry_locked()
258 if (VMCI_HANDLE_TO_RESOURCE_ID(cur->handle) == in vmci_hashtable_get_entry_locked()
259 VMCI_HANDLE_TO_RESOURCE_ID(handle)) { in vmci_hashtable_get_entry_locked()
260 if ((VMCI_HANDLE_TO_CONTEXT_ID(cur->handle) == in vmci_hashtable_get_entry_locked()
261 VMCI_HANDLE_TO_CONTEXT_ID(handle)) || in vmci_hashtable_get_entry_locked()
262 (VMCI_INVALID_ID == VMCI_HANDLE_TO_CONTEXT_ID(cur->handle))) { in vmci_hashtable_get_entry_locked()
291 struct vmci_handle handle) in vmci_hashtable_get_entry() argument
295 if (VMCI_HANDLE_EQUAL(handle, VMCI_INVALID_HANDLE)) in vmci_hashtable_get_entry()
301 entry = vmci_hashtable_get_entry_locked(table, handle); in vmci_hashtable_get_entry()
434 struct vmci_handle handle) in vmci_hashtable_entry_exists() argument
441 exists = vmci_hashtable_entry_exists_locked(table, handle); in vmci_hashtable_entry_exists()
465 struct vmci_handle handle) in vmci_hashtable_entry_exists_locked() argument
473 idx = VMCI_HASHTABLE_HASH(handle, table->size); in vmci_hashtable_entry_exists_locked()
477 if (VMCI_HANDLE_TO_RESOURCE_ID(entry->handle) == in vmci_hashtable_entry_exists_locked()
478 VMCI_HANDLE_TO_RESOURCE_ID(handle)) in vmci_hashtable_entry_exists_locked()
479 if ((VMCI_HANDLE_TO_CONTEXT_ID(entry->handle) == in vmci_hashtable_entry_exists_locked()
480 VMCI_HANDLE_TO_CONTEXT_ID(handle)) || in vmci_hashtable_entry_exists_locked()
481 (VMCI_INVALID_ID == VMCI_HANDLE_TO_CONTEXT_ID(handle)) || in vmci_hashtable_entry_exists_locked()
482 (VMCI_INVALID_ID == VMCI_HANDLE_TO_CONTEXT_ID(entry->handle))) in vmci_hashtable_entry_exists_locked()
514 idx = VMCI_HASHTABLE_HASH(entry->handle, table->size); in hashtable_unlink_entry()
523 if (VMCI_HANDLE_EQUAL(cur->handle, entry->handle)) { in hashtable_unlink_entry()