Lines Matching refs:pci_func

358 int qlcnic_is_valid_nic_func(struct qlcnic_adapter *adapter, u8 pci_func)  in qlcnic_is_valid_nic_func()  argument
363 if (adapter->npars[i].pci_func == pci_func) in qlcnic_is_valid_nic_func()
379 src_pci_func = pm_cfg[i].pci_func; in validate_pm_config()
408 u32 id, action, pci_func; in qlcnic_sysfs_write_pm_config() local
423 pci_func = pm_cfg[i].pci_func; in qlcnic_sysfs_write_pm_config()
425 index = qlcnic_is_valid_nic_func(adapter, pci_func); in qlcnic_sysfs_write_pm_config()
431 action, pci_func); in qlcnic_sysfs_write_pm_config()
437 pci_func = pm_cfg[i].pci_func; in qlcnic_sysfs_write_pm_config()
438 index = qlcnic_is_valid_nic_func(adapter, pci_func); in qlcnic_sysfs_write_pm_config()
458 u8 pci_func; in qlcnic_sysfs_read_pm_config() local
466 pci_func = adapter->npars[i].pci_func; in qlcnic_sysfs_read_pm_config()
467 if (pci_func >= count) { in qlcnic_sysfs_read_pm_config()
475 pm_cfg[pci_func].action = adapter->npars[i].enable_pm; in qlcnic_sysfs_read_pm_config()
476 pm_cfg[pci_func].dest_npar = 0; in qlcnic_sysfs_read_pm_config()
477 pm_cfg[pci_func].pci_func = i; in qlcnic_sysfs_read_pm_config()
489 u8 pci_func; in validate_esw_config() local
497 pci_func = esw_cfg[i].pci_func; in validate_esw_config()
498 if (pci_func >= ahw->max_vnic_func) in validate_esw_config()
502 if (qlcnic_is_valid_nic_func(adapter, pci_func) < 0) in validate_esw_config()
508 ret = QLC_DEV_GET_DRV(op_mode, pci_func); in validate_esw_config()
511 pci_func); in validate_esw_config()
554 u8 op_mode = 0, pci_func; in qlcnic_sysfs_write_esw_config() local
572 if (adapter->ahw->pci_func != esw_cfg[i].pci_func) in qlcnic_sysfs_write_esw_config()
578 esw_cfg[i].pci_func = adapter->ahw->pci_func; in qlcnic_sysfs_write_esw_config()
601 pci_func = esw_cfg[i].pci_func; in qlcnic_sysfs_write_esw_config()
602 index = qlcnic_is_valid_nic_func(adapter, pci_func); in qlcnic_sysfs_write_esw_config()
635 u8 pci_func; in qlcnic_sysfs_read_esw_config() local
643 pci_func = adapter->npars[i].pci_func; in qlcnic_sysfs_read_esw_config()
644 if (pci_func >= count) { in qlcnic_sysfs_read_esw_config()
652 esw_cfg[pci_func].pci_func = pci_func; in qlcnic_sysfs_read_esw_config()
653 if (qlcnic_get_eswitch_port_config(adapter, &esw_cfg[pci_func])) in qlcnic_sysfs_read_esw_config()
664 u8 pci_func, i; in validate_npar_config() local
667 pci_func = np_cfg[i].pci_func; in validate_npar_config()
668 if (qlcnic_is_valid_nic_func(adapter, pci_func) < 0) in validate_npar_config()
689 u8 pci_func; in qlcnic_sysfs_write_npar_config() local
703 pci_func = np_cfg[i].pci_func; in qlcnic_sysfs_write_npar_config()
706 ret = qlcnic_get_nic_info(adapter, &nic_info, pci_func); in qlcnic_sysfs_write_npar_config()
709 nic_info.pci_func = pci_func; in qlcnic_sysfs_write_npar_config()
715 index = qlcnic_is_valid_nic_func(adapter, pci_func); in qlcnic_sysfs_write_npar_config()
735 u8 pci_func; in qlcnic_sysfs_read_npar_config() local
745 if (adapter->npars[i].pci_func >= count) { in qlcnic_sysfs_read_npar_config()
752 pci_func = adapter->npars[i].pci_func; in qlcnic_sysfs_read_npar_config()
753 if (qlcnic_is_valid_nic_func(adapter, pci_func) < 0) in qlcnic_sysfs_read_npar_config()
755 ret = qlcnic_get_nic_info(adapter, &nic_info, pci_func); in qlcnic_sysfs_read_npar_config()
759 np_cfg[pci_func].pci_func = pci_func; in qlcnic_sysfs_read_npar_config()
760 np_cfg[pci_func].op_mode = (u8)nic_info.op_mode; in qlcnic_sysfs_read_npar_config()
761 np_cfg[pci_func].port_num = nic_info.phys_port; in qlcnic_sysfs_read_npar_config()
762 np_cfg[pci_func].fw_capab = nic_info.capabilities; in qlcnic_sysfs_read_npar_config()
763 np_cfg[pci_func].min_bw = nic_info.min_tx_bw; in qlcnic_sysfs_read_npar_config()
764 np_cfg[pci_func].max_bw = nic_info.max_tx_bw; in qlcnic_sysfs_read_npar_config()
765 np_cfg[pci_func].max_tx_queues = nic_info.max_tx_ques; in qlcnic_sysfs_read_npar_config()
766 np_cfg[pci_func].max_rx_queues = nic_info.max_rx_ques; in qlcnic_sysfs_read_npar_config()
928 pci_cfg[i].pci_func = pci_info[i].id; in qlcnic_sysfs_read_pci_config()