Lines Matching defs:hash
40 * lpfc_get_vmid_from_hashtable - search the UUID in the hash table
42 * @hash: calculated hash value
48 u32 hash, u8 *buf)
52 hash_for_each_possible(vport->hash_table, vmp, hnode, hash) {
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,
72 hash_add(vport->hash_table, &vmp->hnode, hash);
76 * lpfc_vmid_hash_fn - create a hash value of the UUID
79 * Returns the calculated hash value
84 int hash = 0;
93 hash = (hash + (c << LPFC_VMID_HASH_SHIFT) +
97 return hash & LPFC_VMID_HASH_MASK;
101 * lpfc_vmid_update_entry - update the vmid entry in the hash table
132 u32 hash;
138 hash = lpfc_vmid_hash_fn(vmid->host_vmid, vmid->vmid_len);
140 lpfc_get_vmid_from_hashtable(vport->phba->pport, hash,
163 int hash, len, rc = -EPERM, i;
175 hash = lpfc_vmid_hash_fn(uuid, len);
179 vmp = lpfc_get_vmid_from_hashtable(vport, hash, uuid);
199 vmp = lpfc_get_vmid_from_hashtable(vport, hash, uuid);
212 /* else search and allocate a free slot in the hash table */
231 lpfc_put_vmid_in_hashtable(vport, hash, vmp);
320 /* for all elements in the hash table */