Lines Matching refs:vpd
124 lpfc_vpd_t *vp = &phba->vpd;
2252 lpfc_fill_vpd(struct lpfc_hba *phba, uint8_t *vpd, int length, int *pindex)
2258 if ((vpd[*pindex] == 'S') && (vpd[*pindex + 1] == 'N')) {
2260 i = vpd[*pindex];
2265 phba->SerialNumber[j++] = vpd[(*pindex)++];
2271 } else if ((vpd[*pindex] == 'V') && (vpd[*pindex + 1] == '1')) {
2274 i = vpd[*pindex];
2279 phba->ModelDesc[j++] = vpd[(*pindex)++];
2285 } else if ((vpd[*pindex] == 'V') && (vpd[*pindex + 1] == '2')) {
2288 i = vpd[*pindex];
2293 phba->ModelName[j++] = vpd[(*pindex)++];
2299 } else if ((vpd[*pindex] == 'V') && (vpd[*pindex + 1] == '3')) {
2302 i = vpd[*pindex];
2307 phba->ProgramType[j++] = vpd[(*pindex)++];
2313 } else if ((vpd[*pindex] == 'V') && (vpd[*pindex + 1] == '4')) {
2316 i = vpd[*pindex];
2327 phba->Port[j++] = vpd[(*pindex)++];
2338 i = vpd[*pindex];
2349 * @vpd: pointer to the vital product data.
2361 lpfc_parse_vpd(struct lpfc_hba *phba, uint8_t *vpd, int len)
2369 if (!vpd)
2375 (uint32_t) vpd[0], (uint32_t) vpd[1], (uint32_t) vpd[2],
2376 (uint32_t) vpd[3]);
2378 switch (vpd[index]) {
2382 lenlo = vpd[index];
2384 lenhi = vpd[index];
2391 lenlo = vpd[index];
2393 lenhi = vpd[index];
2399 lpfc_fill_vpd(phba, vpd, Length, &index);
2552 vp = &phba->vpd;