Home
last modified time | relevance | path

Searched refs:ioc_attr (Results 1 – 10 of 10) sorted by relevance

/linux-3.4.99/drivers/net/ethernet/brocade/bna/
Dbfa_ioc.c2320 struct bfi_ioc_attr *ioc_attr; in bfa_ioc_get_adapter_attr() local
2322 ioc_attr = ioc->attr; in bfa_ioc_get_adapter_attr()
2328 memcpy(&ad_attr->vpd, &ioc_attr->vpd, in bfa_ioc_get_adapter_attr()
2338 ad_attr->card_type = ioc_attr->card_type; in bfa_ioc_get_adapter_attr()
2339 ad_attr->is_mezz = bfa_mfg_is_mezz(ioc_attr->card_type); in bfa_ioc_get_adapter_attr()
2341 if (BFI_ADAPTER_IS_SPECIAL(ioc_attr->adapter_prop)) in bfa_ioc_get_adapter_attr()
2349 ad_attr->pcie_gen = ioc_attr->pcie_gen; in bfa_ioc_get_adapter_attr()
2350 ad_attr->pcie_lanes = ioc_attr->pcie_lanes; in bfa_ioc_get_adapter_attr()
2351 ad_attr->pcie_lanes_orig = ioc_attr->pcie_lanes_orig; in bfa_ioc_get_adapter_attr()
2352 ad_attr->asic_rev = ioc_attr->asic_rev; in bfa_ioc_get_adapter_attr()
[all …]
Dbnad_ethtool.c296 struct bfa_ioc_attr *ioc_attr; in bnad_get_drvinfo() local
302 ioc_attr = kzalloc(sizeof(*ioc_attr), GFP_KERNEL); in bnad_get_drvinfo()
303 if (ioc_attr) { in bnad_get_drvinfo()
305 bfa_nw_ioc_get_attr(&bnad->bna.ioceth.ioc, ioc_attr); in bnad_get_drvinfo()
308 strlcpy(drvinfo->fw_version, ioc_attr->adapter_attr.fw_ver, in bnad_get_drvinfo()
310 kfree(ioc_attr); in bnad_get_drvinfo()
Dbnad.h340 struct bfa_ioc_attr ioc_attr; member
Dbfa_ioc.h312 void bfa_nw_ioc_get_attr(struct bfa_ioc *ioc, struct bfa_ioc_attr *ioc_attr);
Dbnad_debugfs.c155 bfa_nw_ioc_get_attr(&bnad->bna.ioceth.ioc, &drvinfo->ioc_attr); in bnad_get_debug_drvinfo()
/linux-3.4.99/drivers/scsi/bfa/
Dbfad_im.c993 struct bfa_ioc_attr_s *ioc_attr; in bfad_im_supported_speeds() local
996 ioc_attr = kzalloc(sizeof(struct bfa_ioc_attr_s), GFP_KERNEL); in bfad_im_supported_speeds()
997 if (!ioc_attr) in bfad_im_supported_speeds()
1000 bfa_ioc_get_attr(&bfa->ioc, ioc_attr); in bfad_im_supported_speeds()
1001 if (ioc_attr->adapter_attr.max_speed == BFA_PORT_SPEED_16GBPS) in bfad_im_supported_speeds()
1004 else if (ioc_attr->adapter_attr.max_speed == BFA_PORT_SPEED_8GBPS) { in bfad_im_supported_speeds()
1005 if (ioc_attr->adapter_attr.is_mezz) { in bfad_im_supported_speeds()
1014 } else if (ioc_attr->adapter_attr.max_speed == BFA_PORT_SPEED_4GBPS) { in bfad_im_supported_speeds()
1017 } else if (ioc_attr->adapter_attr.max_speed == BFA_PORT_SPEED_10GBPS) { in bfad_im_supported_speeds()
1020 kfree(ioc_attr); in bfad_im_supported_speeds()
Dbfa_ioc.c2451 struct bfi_ioc_attr_s *ioc_attr; in bfa_ioc_get_adapter_attr() local
2453 ioc_attr = ioc->attr; in bfa_ioc_get_adapter_attr()
2459 memcpy(&ad_attr->vpd, &ioc_attr->vpd, in bfa_ioc_get_adapter_attr()
2469 ad_attr->card_type = ioc_attr->card_type; in bfa_ioc_get_adapter_attr()
2470 ad_attr->is_mezz = bfa_mfg_is_mezz(ioc_attr->card_type); in bfa_ioc_get_adapter_attr()
2472 if (BFI_ADAPTER_IS_SPECIAL(ioc_attr->adapter_prop)) in bfa_ioc_get_adapter_attr()
2480 ad_attr->pcie_gen = ioc_attr->pcie_gen; in bfa_ioc_get_adapter_attr()
2481 ad_attr->pcie_lanes = ioc_attr->pcie_lanes; in bfa_ioc_get_adapter_attr()
2482 ad_attr->pcie_lanes_orig = ioc_attr->pcie_lanes_orig; in bfa_ioc_get_adapter_attr()
2483 ad_attr->asic_rev = ioc_attr->asic_rev; in bfa_ioc_get_adapter_attr()
[all …]
Dbfad_bsg.c119 bfa_ioc_get_attr(&bfad->bfa.ioc, &iocmd->ioc_attr); in bfad_iocmd_ioc_get_attr()
123 strcpy(iocmd->ioc_attr.driver_attr.driver, BFAD_DRIVER_NAME); in bfad_iocmd_ioc_get_attr()
124 strncpy(iocmd->ioc_attr.driver_attr.driver_ver, in bfad_iocmd_ioc_get_attr()
126 strcpy(iocmd->ioc_attr.driver_attr.fw_ver, in bfad_iocmd_ioc_get_attr()
127 iocmd->ioc_attr.adapter_attr.fw_ver); in bfad_iocmd_ioc_get_attr()
128 strcpy(iocmd->ioc_attr.driver_attr.bios_ver, in bfad_iocmd_ioc_get_attr()
129 iocmd->ioc_attr.adapter_attr.optrom_ver); in bfad_iocmd_ioc_get_attr()
132 memcpy(bfad->pci_attr.chip_rev, iocmd->ioc_attr.pci_attr.chip_rev, in bfad_iocmd_ioc_get_attr()
134 memcpy(&iocmd->ioc_attr.pci_attr, &bfad->pci_attr, in bfad_iocmd_ioc_get_attr()
Dbfad_bsg.h219 struct bfa_ioc_attr_s ioc_attr; member
Dbfa_ioc.h851 void bfa_ioc_get_attr(struct bfa_ioc_s *ioc, struct bfa_ioc_attr_s *ioc_attr);