Lines Matching defs:vpd
123 lpfc_vpd_t *vp = &phba->vpd;
2263 lpfc_fill_vpd(struct lpfc_hba *phba, uint8_t *vpd, int length, int *pindex)
2269 if ((vpd[*pindex] == 'S') && (vpd[*pindex + 1] == 'N')) {
2271 i = vpd[*pindex];
2276 phba->SerialNumber[j++] = vpd[(*pindex)++];
2282 } else if ((vpd[*pindex] == 'V') && (vpd[*pindex + 1] == '1')) {
2285 i = vpd[*pindex];
2290 phba->ModelDesc[j++] = vpd[(*pindex)++];
2296 } else if ((vpd[*pindex] == 'V') && (vpd[*pindex + 1] == '2')) {
2299 i = vpd[*pindex];
2304 phba->ModelName[j++] = vpd[(*pindex)++];
2310 } else if ((vpd[*pindex] == 'V') && (vpd[*pindex + 1] == '3')) {
2313 i = vpd[*pindex];
2318 phba->ProgramType[j++] = vpd[(*pindex)++];
2324 } else if ((vpd[*pindex] == 'V') && (vpd[*pindex + 1] == '4')) {
2327 i = vpd[*pindex];
2338 phba->Port[j++] = vpd[(*pindex)++];
2349 i = vpd[*pindex];
2360 * @vpd: pointer to the vital product data.
2372 lpfc_parse_vpd(struct lpfc_hba *phba, uint8_t *vpd, int len)
2380 if (!vpd)
2386 (uint32_t) vpd[0], (uint32_t) vpd[1], (uint32_t) vpd[2],
2387 (uint32_t) vpd[3]);
2389 switch (vpd[index]) {
2393 lenlo = vpd[index];
2395 lenhi = vpd[index];
2402 lenlo = vpd[index];
2404 lenhi = vpd[index];
2410 lpfc_fill_vpd(phba, vpd, Length, &index);
2563 vp = &phba->vpd;