Home
last modified time | relevance | path

Searched refs:kw_len (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/infiniband/hw/mlx5/
H A Ddata_direct.c31 unsigned int vpd_size, kw_len; in mlx5_data_direct_vpd_get_vuid() local
42 start = pci_vpd_find_ro_info_keyword(vpd_data, vpd_size, "VU", &kw_len); in mlx5_data_direct_vpd_get_vuid()
49 dev->vuid = kmemdup_nul(vpd_data + start, kw_len, GFP_KERNEL); in mlx5_data_direct_vpd_get_vuid()
/linux/drivers/net/ethernet/sfc/siena/
H A Defx.c899 unsigned int vpd_size, kw_len; in efx_probe_vpd_strings() local
910 PCI_VPD_RO_KEYWORD_PARTNO, &kw_len); in efx_probe_vpd_strings()
914 pci_info(dev, "Part Number : %.*s\n", kw_len, vpd_data + start); in efx_probe_vpd_strings()
917 PCI_VPD_RO_KEYWORD_SERIALNO, &kw_len); in efx_probe_vpd_strings()
921 efx->vpd_sn = kmemdup_nul(vpd_data + start, kw_len, GFP_KERNEL); in efx_probe_vpd_strings()
/linux/drivers/net/ethernet/sfc/
H A Defx.c1023 unsigned int vpd_size, kw_len; in efx_probe_vpd_strings() local
1034 PCI_VPD_RO_KEYWORD_PARTNO, &kw_len); in efx_probe_vpd_strings()
1038 pci_info(dev, "Part Number : %.*s\n", kw_len, vpd_data + start); in efx_probe_vpd_strings()
1041 PCI_VPD_RO_KEYWORD_SERIALNO, &kw_len); in efx_probe_vpd_strings()
1045 efx->vpd_sn = kmemdup_nul(vpd_data + start, kw_len, GFP_KERNEL); in efx_probe_vpd_strings()
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_main.c12210 unsigned int vpd_len, kw_len; in bnx2x_read_fwinfo() local
12221 PCI_VPD_RO_KEYWORD_MFR_ID, &kw_len); in bnx2x_read_fwinfo()
12222 if (rodi < 0 || kw_len != VENDOR_ID_LEN) in bnx2x_read_fwinfo()
12230 &kw_len); in bnx2x_read_fwinfo()
12231 if (rodi >= 0 && kw_len < sizeof(bp->fw_ver)) { in bnx2x_read_fwinfo()
12232 memcpy(bp->fw_ver, &vpd_data[rodi], kw_len); in bnx2x_read_fwinfo()
12233 bp->fw_ver[kw_len] = ' '; in bnx2x_read_fwinfo()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.c15949 unsigned int vpd_size, kw_len; in bnxt_vpd_read_info() local
15960 PCI_VPD_RO_KEYWORD_PARTNO, &kw_len); in bnxt_vpd_read_info()
15964 size = min_t(int, kw_len, BNXT_VPD_FLD_LEN - 1); in bnxt_vpd_read_info()
15970 &kw_len); in bnxt_vpd_read_info()
15974 size = min_t(int, kw_len, BNXT_VPD_FLD_LEN - 1); in bnxt_vpd_read_info()