Lines Matching refs:pci_info
938 struct qlcnic_pci_info *pci_info; in qlcnic_get_act_pci_func() local
956 pci_info = kcalloc(ahw->max_vnic_func, sizeof(*pci_info), GFP_KERNEL); in qlcnic_get_act_pci_func()
957 if (!pci_info) in qlcnic_get_act_pci_func()
960 ret = qlcnic_get_pci_info(adapter, pci_info); in qlcnic_get_act_pci_func()
961 kfree(pci_info); in qlcnic_get_act_pci_func()
985 struct qlcnic_pci_info *pci_info; in qlcnic_init_pci_info() local
990 pci_info = kcalloc(ahw->max_vnic_func, sizeof(*pci_info), GFP_KERNEL); in qlcnic_init_pci_info()
991 if (!pci_info) in qlcnic_init_pci_info()
994 ret = qlcnic_get_pci_info(adapter, pci_info); in qlcnic_init_pci_info()
1017 pfn = pci_info[i].id; in qlcnic_init_pci_info()
1026 if (!pci_info[i].active || in qlcnic_init_pci_info()
1027 (pci_info[i].type != QLCNIC_TYPE_NIC)) in qlcnic_init_pci_info()
1041 adapter->npars[j].active = (u8)pci_info[i].active; in qlcnic_init_pci_info()
1042 adapter->npars[j].type = (u8)pci_info[i].type; in qlcnic_init_pci_info()
1043 adapter->npars[j].phy_port = (u8)pci_info[i].default_port; in qlcnic_init_pci_info()
1044 adapter->npars[j].min_bw = pci_info[i].tx_min_bw; in qlcnic_init_pci_info()
1045 adapter->npars[j].max_bw = pci_info[i].tx_max_bw; in qlcnic_init_pci_info()
1047 memcpy(&adapter->npars[j].mac, &pci_info[i].mac, ETH_ALEN); in qlcnic_init_pci_info()
1059 kfree(pci_info); in qlcnic_init_pci_info()
1069 kfree(pci_info); in qlcnic_init_pci_info()