Lines Matching full:vmid
44 * Return the VMID entry associated with the UUID
60 * lpfc_put_vmid_in_hashtable - put the VMID in the hash table
63 * @vmp: Pointer to a VMID entry representing a VM sending I/O
65 * This routine will insert the newly acquired VMID entity in the hash table.
77 * @vmid: uuid associated with the VE
78 * @len: length of the VMID string
81 int lpfc_vmid_hash_fn(const char *vmid, int len) in lpfc_vmid_hash_fn() argument
89 c = *vmid++; in lpfc_vmid_hash_fn()
101 * lpfc_vmid_update_entry - update the vmid entry in the hash table
104 * @vmp: Pointer to a VMID entry representing a VM sending I/O
105 * @tag: VMID tag
130 struct lpfc_vmid *vmid) in lpfc_vmid_assign_cs_ctl() argument
136 vmid->un.cs_ctl_vmid = lpfc_vmid_get_cs_ctl(vport); in lpfc_vmid_assign_cs_ctl()
138 hash = lpfc_vmid_hash_fn(vmid->host_vmid, vmid->vmid_len); in lpfc_vmid_assign_cs_ctl()
141 vmid->host_vmid); in lpfc_vmid_assign_cs_ctl()
143 vmid->un.cs_ctl_vmid = pvmid->un.cs_ctl_vmid; in lpfc_vmid_assign_cs_ctl()
145 vmid->un.cs_ctl_vmid = lpfc_vmid_get_cs_ctl(vport); in lpfc_vmid_assign_cs_ctl()
150 * lpfc_vmid_get_appid - get the VMID associated with the UUID
155 * @tag: VMID tag
173 /* search if the UUID has already been mapped to the VMID */ in lpfc_vmid_get_appid()
177 /* search for the VMID in the table */ in lpfc_vmid_get_appid()
189 /* Hence VMID tag will not be added for this I/O */ in lpfc_vmid_get_appid()
193 /* The VMID was not found in the hashtable. At this point, */ in lpfc_vmid_get_appid()
197 /* type of the VMID indicated */ in lpfc_vmid_get_appid()
215 vmp = vport->vmid + i; in lpfc_vmid_get_appid()
230 /* Add the vmid and register */ in lpfc_vmid_get_appid()
241 /* if type priority tag, get next available VMID */ in lpfc_vmid_get_appid()
246 /* the last access time stamp only if VMID is enabled */ in lpfc_vmid_get_appid()
289 * lpfc_reinit_vmid - reinitializes the vmid data structure
292 * This routine reinitializes the vmid post flogi completion
309 vmp = &vport->vmid[i]; in lpfc_reinit_vmid()