Home
last modified time | relevance | path

Searched refs:vpd_data (Results 1 – 7 of 7) sorted by relevance

/drivers/misc/ibmasm/
Ddot_command.c73 u8 *vpd_data; in ibmasm_send_driver_vpd() local
93 vpd_data = vpd_command + header->command_size; in ibmasm_send_driver_vpd()
94 vpd_data[0] = 0; in ibmasm_send_driver_vpd()
95 strcat(vpd_data, IBMASM_DRIVER_VPD); in ibmasm_send_driver_vpd()
96 vpd_data[10] = 0; in ibmasm_send_driver_vpd()
97 vpd_data[15] = 0; in ibmasm_send_driver_vpd()
/drivers/net/ethernet/sfc/
Defx.c2989 char vpd_data[SFC_VPD_LEN]; in efx_probe_vpd_strings() local
2994 vpd_size = pci_read_vpd(dev, 0, sizeof(vpd_data), vpd_data); in efx_probe_vpd_strings()
3001 ro_start = pci_vpd_find_tag(vpd_data, 0, vpd_size, PCI_VPD_LRDT_RO_DATA); in efx_probe_vpd_strings()
3007 ro_size = pci_vpd_lrdt_size(&vpd_data[ro_start]); in efx_probe_vpd_strings()
3014 i = pci_vpd_find_info_keyword(vpd_data, i, j, "PN"); in efx_probe_vpd_strings()
3020 j = pci_vpd_info_field_size(&vpd_data[i]); in efx_probe_vpd_strings()
3028 "Part Number : %.*s\n", j, &vpd_data[i]); in efx_probe_vpd_strings()
3032 i = pci_vpd_find_info_keyword(vpd_data, i, j, "SN"); in efx_probe_vpd_strings()
3038 j = pci_vpd_info_field_size(&vpd_data[i]); in efx_probe_vpd_strings()
3049 snprintf(efx->vpd_sn, j + 1, "%s", &vpd_data[i]); in efx_probe_vpd_strings()
/drivers/scsi/cxlflash/
Dmain.c1418 char vpd_data[CXLFLASH_VPD_LEN]; in read_vpd() local
1423 vpd_size = pci_read_vpd(dev, 0, sizeof(vpd_data), vpd_data); in read_vpd()
1432 ro_start = pci_vpd_find_tag(vpd_data, 0, vpd_size, in read_vpd()
1442 ro_size = pci_vpd_lrdt_size(&vpd_data[ro_start]); in read_vpd()
1463 i = pci_vpd_find_info_keyword(vpd_data, i, j, wwpn_vpd_tags[k]); in read_vpd()
1471 j = pci_vpd_info_field_size(&vpd_data[i]); in read_vpd()
1481 memcpy(tmp_buf, &vpd_data[i], WWPN_LEN); in read_vpd()
/drivers/net/ethernet/neterion/
Ds2io.c5724 u8 *vpd_data; in s2io_vpd_read() local
5739 vpd_data = kmalloc(256, GFP_KERNEL); in s2io_vpd_read()
5740 if (!vpd_data) { in s2io_vpd_read()
5762 (u32 *)&vpd_data[i]); in s2io_vpd_read()
5768 if ((vpd_data[cnt] == 'S') && in s2io_vpd_read()
5769 (vpd_data[cnt+1] == 'N')) { in s2io_vpd_read()
5770 len = vpd_data[cnt+2]; in s2io_vpd_read()
5773 &vpd_data[cnt + 3], in s2io_vpd_read()
5784 if ((!fail) && (vpd_data[1] < VPD_STRING_LEN)) { in s2io_vpd_read()
5785 len = vpd_data[1]; in s2io_vpd_read()
[all …]
/drivers/net/ethernet/broadcom/
Dtg3.c15614 u8 *vpd_data; in tg3_read_vpd() local
15619 vpd_data = (u8 *)tg3_vpd_readblock(tp, &vpdlen); in tg3_read_vpd()
15620 if (!vpd_data) in tg3_read_vpd()
15623 i = pci_vpd_find_tag(vpd_data, 0, vpdlen, PCI_VPD_LRDT_RO_DATA); in tg3_read_vpd()
15627 rosize = pci_vpd_lrdt_size(&vpd_data[i]); in tg3_read_vpd()
15634 j = pci_vpd_find_info_keyword(vpd_data, i, rosize, in tg3_read_vpd()
15637 len = pci_vpd_info_field_size(&vpd_data[j]); in tg3_read_vpd()
15641 memcmp(&vpd_data[j], "1028", 4)) in tg3_read_vpd()
15644 j = pci_vpd_find_info_keyword(vpd_data, i, rosize, in tg3_read_vpd()
15649 len = pci_vpd_info_field_size(&vpd_data[j]); in tg3_read_vpd()
[all …]
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c12185 char *vpd_data; in bnx2x_read_fwinfo() local
12220 vpd_data = vpd_extended_data; in bnx2x_read_fwinfo()
12222 vpd_data = vpd_start; in bnx2x_read_fwinfo()
12226 rodi = pci_vpd_find_info_keyword(vpd_data, i, block_end, in bnx2x_read_fwinfo()
12231 len = pci_vpd_info_field_size(&vpd_data[rodi]); in bnx2x_read_fwinfo()
12241 if (!strncmp(str_id_reg, &vpd_data[rodi], VENDOR_ID_LEN) || in bnx2x_read_fwinfo()
12242 !strncmp(str_id_cap, &vpd_data[rodi], VENDOR_ID_LEN)) { in bnx2x_read_fwinfo()
12244 rodi = pci_vpd_find_info_keyword(vpd_data, i, block_end, in bnx2x_read_fwinfo()
12247 len = pci_vpd_info_field_size(&vpd_data[rodi]); in bnx2x_read_fwinfo()
12252 memcpy(bp->fw_ver, &vpd_data[rodi], len); in bnx2x_read_fwinfo()
/drivers/net/ethernet/qlogic/qed/
Dqed_hsi.h5171 u8 vpd_data[1]; member