Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/misc/ibmasm/
Ddot_command.c59 u8 *vpd_data; in ibmasm_send_driver_vpd() local
79 vpd_data = vpd_command + header->command_size; in ibmasm_send_driver_vpd()
80 vpd_data[0] = 0; in ibmasm_send_driver_vpd()
81 strcat(vpd_data, IBMASM_DRIVER_VPD); in ibmasm_send_driver_vpd()
82 vpd_data[10] = 0; in ibmasm_send_driver_vpd()
83 vpd_data[15] = 0; in ibmasm_send_driver_vpd()
/Linux-v5.10/drivers/net/ethernet/sfc/
Defx.c913 char vpd_data[SFC_VPD_LEN]; in efx_probe_vpd_strings() local
918 vpd_size = pci_read_vpd(dev, 0, sizeof(vpd_data), vpd_data); in efx_probe_vpd_strings()
925 ro_start = pci_vpd_find_tag(vpd_data, 0, vpd_size, PCI_VPD_LRDT_RO_DATA); in efx_probe_vpd_strings()
931 ro_size = pci_vpd_lrdt_size(&vpd_data[ro_start]); in efx_probe_vpd_strings()
938 i = pci_vpd_find_info_keyword(vpd_data, i, j, "PN"); in efx_probe_vpd_strings()
944 j = pci_vpd_info_field_size(&vpd_data[i]); in efx_probe_vpd_strings()
952 "Part Number : %.*s\n", j, &vpd_data[i]); in efx_probe_vpd_strings()
956 i = pci_vpd_find_info_keyword(vpd_data, i, j, "SN"); in efx_probe_vpd_strings()
962 j = pci_vpd_info_field_size(&vpd_data[i]); in efx_probe_vpd_strings()
973 snprintf(efx->vpd_sn, j + 1, "%s", &vpd_data[i]); in efx_probe_vpd_strings()
/Linux-v5.10/drivers/net/ethernet/sfc/falcon/
Defx.c2791 char vpd_data[SFC_VPD_LEN]; in ef4_probe_vpd_strings() local
2796 vpd_size = pci_read_vpd(dev, 0, sizeof(vpd_data), vpd_data); in ef4_probe_vpd_strings()
2803 ro_start = pci_vpd_find_tag(vpd_data, 0, vpd_size, PCI_VPD_LRDT_RO_DATA); in ef4_probe_vpd_strings()
2809 ro_size = pci_vpd_lrdt_size(&vpd_data[ro_start]); in ef4_probe_vpd_strings()
2816 i = pci_vpd_find_info_keyword(vpd_data, i, j, "PN"); in ef4_probe_vpd_strings()
2822 j = pci_vpd_info_field_size(&vpd_data[i]); in ef4_probe_vpd_strings()
2830 "Part Number : %.*s\n", j, &vpd_data[i]); in ef4_probe_vpd_strings()
2834 i = pci_vpd_find_info_keyword(vpd_data, i, j, "SN"); in ef4_probe_vpd_strings()
2840 j = pci_vpd_info_field_size(&vpd_data[i]); in ef4_probe_vpd_strings()
2851 snprintf(efx->vpd_sn, j + 1, "%s", &vpd_data[i]); in ef4_probe_vpd_strings()
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_lib.c2690 struct cudbg_vpd_data *vpd_data; in cudbg_collect_vpd_data() local
2735 vpd_data = (struct cudbg_vpd_data *)temp_buff.data; in cudbg_collect_vpd_data()
2736 memcpy(vpd_data->sn, vpd.sn, SERNUM_LEN + 1); in cudbg_collect_vpd_data()
2737 memcpy(vpd_data->bn, vpd.pn, PN_LEN + 1); in cudbg_collect_vpd_data()
2738 memcpy(vpd_data->na, vpd.na, MACADDR_LEN + 1); in cudbg_collect_vpd_data()
2739 memcpy(vpd_data->mn, vpd.id, ID_LEN + 1); in cudbg_collect_vpd_data()
2740 vpd_data->scfg_vers = scfg_vers; in cudbg_collect_vpd_data()
2741 vpd_data->vpd_vers = vpd_vers; in cudbg_collect_vpd_data()
2742 vpd_data->fw_major = FW_HDR_FW_VER_MAJOR_G(fw_vers); in cudbg_collect_vpd_data()
2743 vpd_data->fw_minor = FW_HDR_FW_VER_MINOR_G(fw_vers); in cudbg_collect_vpd_data()
[all …]
/Linux-v5.10/drivers/scsi/cxlflash/
Dmain.c1635 char vpd_data[CXLFLASH_VPD_LEN]; in read_vpd() local
1643 vpd_size = cfg->ops->read_adapter_vpd(pdev, vpd_data, sizeof(vpd_data)); in read_vpd()
1652 ro_start = pci_vpd_find_tag(vpd_data, 0, vpd_size, in read_vpd()
1661 ro_size = pci_vpd_lrdt_size(&vpd_data[ro_start]); in read_vpd()
1688 i = pci_vpd_find_info_keyword(vpd_data, i, j, wwpn_vpd_tags[k]); in read_vpd()
1697 j = pci_vpd_info_field_size(&vpd_data[i]); in read_vpd()
1706 memcpy(tmp_buf, &vpd_data[i], WWPN_LEN); in read_vpd()
/Linux-v5.10/drivers/net/ethernet/neterion/
Ds2io.c5671 u8 *vpd_data; in s2io_vpd_read() local
5686 vpd_data = kmalloc(256, GFP_KERNEL); in s2io_vpd_read()
5687 if (!vpd_data) { in s2io_vpd_read()
5709 (u32 *)&vpd_data[i]); in s2io_vpd_read()
5715 if ((vpd_data[cnt] == 'S') && in s2io_vpd_read()
5716 (vpd_data[cnt+1] == 'N')) { in s2io_vpd_read()
5717 len = vpd_data[cnt+2]; in s2io_vpd_read()
5720 &vpd_data[cnt + 3], in s2io_vpd_read()
5731 if ((!fail) && (vpd_data[1] < VPD_STRING_LEN)) { in s2io_vpd_read()
5732 len = vpd_data[1]; in s2io_vpd_read()
[all …]
/Linux-v5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c12423 u8 *vpd_data; in bnxt_vpd_read_info() local
12425 vpd_data = kmalloc(BNXT_VPD_LEN, GFP_KERNEL); in bnxt_vpd_read_info()
12426 if (!vpd_data) in bnxt_vpd_read_info()
12429 vpd_size = pci_read_vpd(pdev, 0, BNXT_VPD_LEN, vpd_data); in bnxt_vpd_read_info()
12435 i = pci_vpd_find_tag(vpd_data, 0, vpd_size, PCI_VPD_LRDT_RO_DATA); in bnxt_vpd_read_info()
12441 ro_size = pci_vpd_lrdt_size(&vpd_data[i]); in bnxt_vpd_read_info()
12446 pos = pci_vpd_find_info_keyword(vpd_data, i, ro_size, in bnxt_vpd_read_info()
12451 len = pci_vpd_info_field_size(&vpd_data[pos]); in bnxt_vpd_read_info()
12457 memcpy(bp->board_partno, &vpd_data[pos], size); in bnxt_vpd_read_info()
12460 pos = pci_vpd_find_info_keyword(vpd_data, i, ro_size, in bnxt_vpd_read_info()
[all …]
/Linux-v5.10/drivers/net/ethernet/broadcom/
Dtg3.c15637 u8 *vpd_data; in tg3_read_vpd() local
15642 vpd_data = (u8 *)tg3_vpd_readblock(tp, &vpdlen); in tg3_read_vpd()
15643 if (!vpd_data) in tg3_read_vpd()
15646 i = pci_vpd_find_tag(vpd_data, 0, vpdlen, PCI_VPD_LRDT_RO_DATA); in tg3_read_vpd()
15650 rosize = pci_vpd_lrdt_size(&vpd_data[i]); in tg3_read_vpd()
15657 j = pci_vpd_find_info_keyword(vpd_data, i, rosize, in tg3_read_vpd()
15660 len = pci_vpd_info_field_size(&vpd_data[j]); in tg3_read_vpd()
15664 memcmp(&vpd_data[j], "1028", 4)) in tg3_read_vpd()
15667 j = pci_vpd_find_info_keyword(vpd_data, i, rosize, in tg3_read_vpd()
15672 len = pci_vpd_info_field_size(&vpd_data[j]); in tg3_read_vpd()
[all …]
/Linux-v5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c12197 char *vpd_data; in bnx2x_read_fwinfo() local
12232 vpd_data = vpd_extended_data; in bnx2x_read_fwinfo()
12234 vpd_data = vpd_start; in bnx2x_read_fwinfo()
12238 rodi = pci_vpd_find_info_keyword(vpd_data, i, block_end, in bnx2x_read_fwinfo()
12243 len = pci_vpd_info_field_size(&vpd_data[rodi]); in bnx2x_read_fwinfo()
12253 if (!strncmp(str_id_reg, &vpd_data[rodi], VENDOR_ID_LEN) || in bnx2x_read_fwinfo()
12254 !strncmp(str_id_cap, &vpd_data[rodi], VENDOR_ID_LEN)) { in bnx2x_read_fwinfo()
12256 rodi = pci_vpd_find_info_keyword(vpd_data, i, block_end, in bnx2x_read_fwinfo()
12259 len = pci_vpd_info_field_size(&vpd_data[rodi]); in bnx2x_read_fwinfo()
12264 memcpy(bp->fw_ver, &vpd_data[rodi], len); in bnx2x_read_fwinfo()