/Linux-v6.6/drivers/misc/ibmasm/ |
D | dot_command.c | 59 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-v6.6/drivers/net/ethernet/sfc/siena/ |
D | efx.c | 886 u8 *vpd_data; in efx_probe_vpd_strings() local 889 vpd_data = pci_vpd_alloc(dev, &vpd_size); in efx_probe_vpd_strings() 890 if (IS_ERR(vpd_data)) { in efx_probe_vpd_strings() 895 start = pci_vpd_find_ro_info_keyword(vpd_data, vpd_size, in efx_probe_vpd_strings() 900 pci_info(dev, "Part Number : %.*s\n", kw_len, vpd_data + start); in efx_probe_vpd_strings() 902 start = pci_vpd_find_ro_info_keyword(vpd_data, vpd_size, in efx_probe_vpd_strings() 907 efx->vpd_sn = kmemdup_nul(vpd_data + start, kw_len, GFP_KERNEL); in efx_probe_vpd_strings() 909 kfree(vpd_data); in efx_probe_vpd_strings()
|
/Linux-v6.6/drivers/net/ethernet/sfc/ |
D | efx.c | 905 u8 *vpd_data; in efx_probe_vpd_strings() local 908 vpd_data = pci_vpd_alloc(dev, &vpd_size); in efx_probe_vpd_strings() 909 if (IS_ERR(vpd_data)) { in efx_probe_vpd_strings() 914 start = pci_vpd_find_ro_info_keyword(vpd_data, vpd_size, in efx_probe_vpd_strings() 919 pci_info(dev, "Part Number : %.*s\n", kw_len, vpd_data + start); in efx_probe_vpd_strings() 921 start = pci_vpd_find_ro_info_keyword(vpd_data, vpd_size, in efx_probe_vpd_strings() 926 efx->vpd_sn = kmemdup_nul(vpd_data + start, kw_len, GFP_KERNEL); in efx_probe_vpd_strings() 928 kfree(vpd_data); in efx_probe_vpd_strings()
|
/Linux-v6.6/drivers/net/ethernet/sfc/falcon/ |
D | efx.c | 2776 u8 *vpd_data; in ef4_probe_vpd_strings() local 2779 vpd_data = pci_vpd_alloc(dev, &vpd_size); in ef4_probe_vpd_strings() 2780 if (IS_ERR(vpd_data)) { in ef4_probe_vpd_strings() 2785 start = pci_vpd_find_ro_info_keyword(vpd_data, vpd_size, in ef4_probe_vpd_strings() 2790 pci_info(dev, "Part Number : %.*s\n", kw_len, vpd_data + start); in ef4_probe_vpd_strings() 2792 start = pci_vpd_find_ro_info_keyword(vpd_data, vpd_size, in ef4_probe_vpd_strings() 2797 efx->vpd_sn = kmemdup_nul(vpd_data + start, kw_len, GFP_KERNEL); in ef4_probe_vpd_strings() 2799 kfree(vpd_data); in ef4_probe_vpd_strings()
|
/Linux-v6.6/drivers/net/ethernet/chelsio/cxgb4/ |
D | cudbg_lib.c | 2705 struct cudbg_vpd_data *vpd_data; in cudbg_collect_vpd_data() local 2733 vpd_data = (struct cudbg_vpd_data *)temp_buff.data; in cudbg_collect_vpd_data() 2734 memcpy(vpd_data->sn, vpd.sn, SERNUM_LEN + 1); in cudbg_collect_vpd_data() 2735 memcpy(vpd_data->bn, vpd.pn, PN_LEN + 1); in cudbg_collect_vpd_data() 2736 memcpy(vpd_data->na, vpd.na, MACADDR_LEN + 1); in cudbg_collect_vpd_data() 2737 memcpy(vpd_data->mn, vpd.id, ID_LEN + 1); in cudbg_collect_vpd_data() 2738 vpd_data->scfg_vers = t4_read_reg(padap, PCIE_STATIC_SPARE2_A); in cudbg_collect_vpd_data() 2739 vpd_data->vpd_vers = vpd_vers; in cudbg_collect_vpd_data() 2740 vpd_data->fw_major = FW_HDR_FW_VER_MAJOR_G(fw_vers); in cudbg_collect_vpd_data() 2741 vpd_data->fw_minor = FW_HDR_FW_VER_MINOR_G(fw_vers); in cudbg_collect_vpd_data() [all …]
|
/Linux-v6.6/drivers/scsi/elx/libefc_sli/ |
D | sli4.c | 4381 memset(sli4->vpd_data.virt, 0, sli4->vpd_data.size); in sli_get_ctrl_attributes() 4383 &sli4->vpd_data)) { in sli_get_ctrl_attributes() 4388 attr = sli4->vpd_data.virt; in sli_get_ctrl_attributes() 4458 if (sli_cmd_read_rev(sli4, sli4->bmbx.virt, &sli4->vpd_data)) in sli_get_fw_rev() 4669 sli4->vpd_data.size = 4096; in sli_setup() 4670 sli4->vpd_data.virt = dma_alloc_coherent(&pdev->dev, in sli_setup() 4671 sli4->vpd_data.size, in sli_setup() 4672 &sli4->vpd_data.phys, in sli_setup() 4674 if (!sli4->vpd_data.virt) { in sli_setup() 4675 memset(&sli4->vpd_data, 0, sizeof(struct efc_dma)); in sli_setup() [all …]
|
D | sli4.h | 3718 struct efc_dma vpd_data; member
|
/Linux-v6.6/drivers/net/ethernet/neterion/ |
D | s2io.c | 5678 u8 *vpd_data; in s2io_vpd_read() local 5693 vpd_data = kmalloc(256, GFP_KERNEL); in s2io_vpd_read() 5694 if (!vpd_data) { in s2io_vpd_read() 5716 (u32 *)&vpd_data[i]); in s2io_vpd_read() 5722 if ((vpd_data[cnt] == 'S') && in s2io_vpd_read() 5723 (vpd_data[cnt+1] == 'N')) { in s2io_vpd_read() 5724 len = vpd_data[cnt+2]; in s2io_vpd_read() 5727 &vpd_data[cnt + 3], in s2io_vpd_read() 5738 if ((!fail) && (vpd_data[1] < VPD_STRING_LEN)) { in s2io_vpd_read() 5739 len = vpd_data[1]; in s2io_vpd_read() [all …]
|
/Linux-v6.6/drivers/scsi/cxlflash/ |
D | main.c | 1635 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() 1666 i = pci_vpd_find_ro_info_keyword(vpd_data, vpd_size, in read_vpd() 1683 memcpy(tmp_buf, &vpd_data[i], WWPN_LEN); in read_vpd()
|
/Linux-v6.6/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 12211 u8 *vpd_data; in bnx2x_read_fwinfo() local 12216 vpd_data = pci_vpd_alloc(bp->pdev, &vpd_len); in bnx2x_read_fwinfo() 12217 if (IS_ERR(vpd_data)) in bnx2x_read_fwinfo() 12220 rodi = pci_vpd_find_ro_info_keyword(vpd_data, vpd_len, in bnx2x_read_fwinfo() 12227 if (!strncasecmp(str_id, &vpd_data[rodi], VENDOR_ID_LEN)) { in bnx2x_read_fwinfo() 12228 rodi = pci_vpd_find_ro_info_keyword(vpd_data, vpd_len, in bnx2x_read_fwinfo() 12232 memcpy(bp->fw_ver, &vpd_data[rodi], kw_len); in bnx2x_read_fwinfo() 12237 kfree(vpd_data); in bnx2x_read_fwinfo()
|
/Linux-v6.6/drivers/net/ethernet/broadcom/ |
D | tg3.c | 15590 u8 *vpd_data; in tg3_read_vpd() local 15594 vpd_data = (u8 *)tg3_vpd_readblock(tp, &vpdlen); in tg3_read_vpd() 15595 if (!vpd_data) in tg3_read_vpd() 15598 i = pci_vpd_find_ro_info_keyword(vpd_data, vpdlen, in tg3_read_vpd() 15603 if (len != 4 || memcmp(vpd_data + i, "1028", 4)) in tg3_read_vpd() 15606 i = pci_vpd_find_ro_info_keyword(vpd_data, vpdlen, in tg3_read_vpd() 15612 snprintf(tp->fw_ver, sizeof(tp->fw_ver), "%.*s bc ", len, vpd_data + i); in tg3_read_vpd() 15615 i = pci_vpd_find_ro_info_keyword(vpd_data, vpdlen, in tg3_read_vpd() 15623 memcpy(tp->board_part_number, &vpd_data[i], len); in tg3_read_vpd() 15626 kfree(vpd_data); in tg3_read_vpd()
|
/Linux-v6.6/drivers/net/ethernet/qlogic/qed/ |
D | qed_mfw_hsi.h | 2372 u8 vpd_data[1]; member
|
/Linux-v6.6/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.c | 13514 u8 *vpd_data; in bnxt_vpd_read_info() local 13516 vpd_data = pci_vpd_alloc(pdev, &vpd_size); in bnxt_vpd_read_info() 13517 if (IS_ERR(vpd_data)) { in bnxt_vpd_read_info() 13522 pos = pci_vpd_find_ro_info_keyword(vpd_data, vpd_size, in bnxt_vpd_read_info() 13528 memcpy(bp->board_partno, &vpd_data[pos], size); in bnxt_vpd_read_info() 13531 pos = pci_vpd_find_ro_info_keyword(vpd_data, vpd_size, in bnxt_vpd_read_info() 13538 memcpy(bp->board_serialno, &vpd_data[pos], size); in bnxt_vpd_read_info() 13540 kfree(vpd_data); in bnxt_vpd_read_info()
|