Lines Matching refs:pci_info
909 struct qlcnic_pci_info *pci_info; in qlcnic_sysfs_read_pci_config() local
913 pci_info = kcalloc(size, sizeof(*pci_info), GFP_KERNEL); in qlcnic_sysfs_read_pci_config()
914 if (!pci_info) in qlcnic_sysfs_read_pci_config()
917 ret = qlcnic_get_pci_info(adapter, pci_info); in qlcnic_sysfs_read_pci_config()
919 kfree(pci_info); in qlcnic_sysfs_read_pci_config()
925 qlcnic_swap32_buffer((u32 *)pci_info, size / sizeof(u32)); in qlcnic_sysfs_read_pci_config()
927 pci_cfg[i].pci_func = pci_info[i].id; in qlcnic_sysfs_read_pci_config()
928 pci_cfg[i].func_type = pci_info[i].type; in qlcnic_sysfs_read_pci_config()
930 pci_cfg[i].port_num = pci_info[i].default_port; in qlcnic_sysfs_read_pci_config()
931 pci_cfg[i].min_bw = pci_info[i].tx_min_bw; in qlcnic_sysfs_read_pci_config()
932 pci_cfg[i].max_bw = pci_info[i].tx_max_bw; in qlcnic_sysfs_read_pci_config()
933 memcpy(&pci_cfg[i].def_mac_addr, &pci_info[i].mac, ETH_ALEN); in qlcnic_sysfs_read_pci_config()
936 kfree(pci_info); in qlcnic_sysfs_read_pci_config()