Lines Matching full:hash
40 * lpfc_get_vmid_from_hashtable - search the UUID in the hash table
42 * @hash: calculated hash value
48 u32 hash, u8 *buf) in lpfc_get_vmid_from_hashtable() argument
52 hash_for_each_possible(vport->hash_table, vmp, hnode, hash) { in lpfc_get_vmid_from_hashtable()
60 * lpfc_put_vmid_in_hashtable - put the VMID in the hash table
62 * @hash - calculated hash value
65 * This routine will insert the newly acquired VMID entity in the hash table.
69 lpfc_put_vmid_in_hashtable(struct lpfc_vport *vport, u32 hash, in lpfc_put_vmid_in_hashtable() argument
72 hash_add(vport->hash_table, &vmp->hnode, hash); in lpfc_put_vmid_in_hashtable()
76 * lpfc_vmid_hash_fn - create a hash value of the UUID
79 * Returns the calculated hash value
84 int hash = 0; in lpfc_vmid_hash_fn() local
93 hash = (hash + (c << LPFC_VMID_HASH_SHIFT) + in lpfc_vmid_hash_fn()
97 return hash & LPFC_VMID_HASH_MASK; in lpfc_vmid_hash_fn()
101 * lpfc_vmid_update_entry - update the vmid entry in the hash table
132 u32 hash; in lpfc_vmid_assign_cs_ctl() local
138 hash = lpfc_vmid_hash_fn(vmid->host_vmid, vmid->vmid_len); in lpfc_vmid_assign_cs_ctl()
140 lpfc_get_vmid_from_hashtable(vport->phba->pport, hash, in lpfc_vmid_assign_cs_ctl()
163 int hash, len, rc = -EPERM, i; in lpfc_vmid_get_appid() local
175 hash = lpfc_vmid_hash_fn(uuid, len); in lpfc_vmid_get_appid()
179 vmp = lpfc_get_vmid_from_hashtable(vport, hash, uuid); in lpfc_vmid_get_appid()
199 vmp = lpfc_get_vmid_from_hashtable(vport, hash, uuid); in lpfc_vmid_get_appid()
212 /* else search and allocate a free slot in the hash table */ in lpfc_vmid_get_appid()
231 lpfc_put_vmid_in_hashtable(vport, hash, vmp); in lpfc_vmid_get_appid()
320 /* for all elements in the hash table */ in lpfc_reinit_vmid()