Lines Matching refs:npars
447 adapter->npars = kzalloc(sizeof(struct qlcnic_npar_info) * in qlcnic_init_pci_info()
449 if (!adapter->npars) { in qlcnic_init_pci_info()
469 adapter->npars[pfn].active = (u8)pci_info[i].active; in qlcnic_init_pci_info()
470 adapter->npars[pfn].type = (u8)pci_info[i].type; in qlcnic_init_pci_info()
471 adapter->npars[pfn].phy_port = (u8)pci_info[i].default_port; in qlcnic_init_pci_info()
472 adapter->npars[pfn].min_bw = pci_info[i].tx_min_bw; in qlcnic_init_pci_info()
473 adapter->npars[pfn].max_bw = pci_info[i].tx_max_bw; in qlcnic_init_pci_info()
486 kfree(adapter->npars); in qlcnic_init_pci_info()
487 adapter->npars = NULL; in qlcnic_init_pci_info()
512 if (adapter->npars[i].type != QLCNIC_TYPE_NIC || in qlcnic_set_function_modes()
838 if (adapter->npars[i].type != QLCNIC_TYPE_NIC) in qlcnic_set_default_offload_settings()
849 npar = &adapter->npars[i]; in qlcnic_set_default_offload_settings()
896 npar = &adapter->npars[i]; in qlcnic_reset_npar_config()
1617 if (adapter->npars != NULL) in qlcnic_remove()
1618 kfree(adapter->npars); in qlcnic_remove()
3430 if (adapter->npars[src_pci_func].type != QLCNIC_TYPE_NIC) in validate_pm_config()
3433 if (adapter->npars[dest_pci_func].type != QLCNIC_TYPE_NIC) in validate_pm_config()
3436 s_esw_id = adapter->npars[src_pci_func].phy_port; in validate_pm_config()
3437 d_esw_id = adapter->npars[dest_pci_func].phy_port; in validate_pm_config()
3470 id = adapter->npars[pci_func].phy_port; in qlcnic_sysfs_write_pm_config()
3479 id = adapter->npars[pci_func].phy_port; in qlcnic_sysfs_write_pm_config()
3480 adapter->npars[pci_func].enable_pm = !!pm_cfg[i].action; in qlcnic_sysfs_write_pm_config()
3481 adapter->npars[pci_func].dest_npar = id; in qlcnic_sysfs_write_pm_config()
3499 if (adapter->npars[i].type != QLCNIC_TYPE_NIC) in qlcnic_sysfs_read_pm_config()
3501 pm_cfg[i].action = adapter->npars[i].enable_pm; in qlcnic_sysfs_read_pm_config()
3526 if (adapter->npars[pci_func].type != QLCNIC_TYPE_NIC) in validate_esw_config()
3611 npar = &adapter->npars[pci_func]; in qlcnic_sysfs_write_esw_config()
3645 if (adapter->npars[i].type != QLCNIC_TYPE_NIC) in qlcnic_sysfs_read_esw_config()
3667 if (adapter->npars[pci_func].type != QLCNIC_TYPE_NIC) in validate_npar_config()
3709 adapter->npars[i].min_bw = nic_info.min_tx_bw; in qlcnic_sysfs_write_npar_config()
3710 adapter->npars[i].max_bw = nic_info.max_tx_bw; in qlcnic_sysfs_write_npar_config()
3730 if (adapter->npars[i].type != QLCNIC_TYPE_NIC) in qlcnic_sysfs_read_npar_config()