Lines Matching refs:np_cfg
659 struct qlcnic_npar_func_cfg *np_cfg, in validate_npar_config() argument
665 pci_func = np_cfg[i].pci_func; in validate_npar_config()
669 if (!IS_VALID_BW(np_cfg[i].min_bw) || in validate_npar_config()
670 !IS_VALID_BW(np_cfg[i].max_bw)) in validate_npar_config()
685 struct qlcnic_npar_func_cfg *np_cfg; in qlcnic_sysfs_write_npar_config() local
695 np_cfg = (struct qlcnic_npar_func_cfg *)buf; in qlcnic_sysfs_write_npar_config()
696 ret = validate_npar_config(adapter, np_cfg, count); in qlcnic_sysfs_write_npar_config()
701 pci_func = np_cfg[i].pci_func; in qlcnic_sysfs_write_npar_config()
708 nic_info.min_tx_bw = np_cfg[i].min_bw; in qlcnic_sysfs_write_npar_config()
709 nic_info.max_tx_bw = np_cfg[i].max_bw; in qlcnic_sysfs_write_npar_config()
731 struct qlcnic_npar_func_cfg *np_cfg; in qlcnic_sysfs_read_npar_config() local
739 np_cfg = (struct qlcnic_npar_func_cfg *)buf; in qlcnic_sysfs_read_npar_config()
757 np_cfg[pci_func].pci_func = pci_func; in qlcnic_sysfs_read_npar_config()
758 np_cfg[pci_func].op_mode = (u8)nic_info.op_mode; in qlcnic_sysfs_read_npar_config()
759 np_cfg[pci_func].port_num = nic_info.phys_port; in qlcnic_sysfs_read_npar_config()
760 np_cfg[pci_func].fw_capab = nic_info.capabilities; in qlcnic_sysfs_read_npar_config()
761 np_cfg[pci_func].min_bw = nic_info.min_tx_bw; in qlcnic_sysfs_read_npar_config()
762 np_cfg[pci_func].max_bw = nic_info.max_tx_bw; in qlcnic_sysfs_read_npar_config()
763 np_cfg[pci_func].max_tx_queues = nic_info.max_tx_ques; in qlcnic_sysfs_read_npar_config()
764 np_cfg[pci_func].max_rx_queues = nic_info.max_rx_ques; in qlcnic_sysfs_read_npar_config()