Lines Matching refs:npar
831 struct qlcnic_npar_info *npar; in qlcnic_set_default_offload_settings() local
849 npar = &adapter->npars[i]; in qlcnic_set_default_offload_settings()
850 npar->pvid = esw_cfg.vlan_id; in qlcnic_set_default_offload_settings()
851 npar->mac_override = esw_cfg.mac_override; in qlcnic_set_default_offload_settings()
852 npar->mac_anti_spoof = esw_cfg.mac_anti_spoof; in qlcnic_set_default_offload_settings()
853 npar->discard_tagged = esw_cfg.discard_tagged; in qlcnic_set_default_offload_settings()
854 npar->promisc_mode = esw_cfg.promisc_mode; in qlcnic_set_default_offload_settings()
855 npar->offload_flags = esw_cfg.offload_flags; in qlcnic_set_default_offload_settings()
863 struct qlcnic_npar_info *npar, int pci_func) in qlcnic_reset_eswitch_config() argument
868 esw_cfg.vlan_id = npar->pvid; in qlcnic_reset_eswitch_config()
869 esw_cfg.mac_override = npar->mac_override; in qlcnic_reset_eswitch_config()
870 esw_cfg.discard_tagged = npar->discard_tagged; in qlcnic_reset_eswitch_config()
871 esw_cfg.mac_anti_spoof = npar->mac_anti_spoof; in qlcnic_reset_eswitch_config()
872 esw_cfg.offload_flags = npar->offload_flags; in qlcnic_reset_eswitch_config()
873 esw_cfg.promisc_mode = npar->promisc_mode; in qlcnic_reset_eswitch_config()
888 struct qlcnic_npar_info *npar; in qlcnic_reset_npar_config() local
896 npar = &adapter->npars[i]; in qlcnic_reset_npar_config()
897 if (npar->type != QLCNIC_TYPE_NIC) in qlcnic_reset_npar_config()
902 nic_info.min_tx_bw = npar->min_bw; in qlcnic_reset_npar_config()
903 nic_info.max_tx_bw = npar->max_bw; in qlcnic_reset_npar_config()
908 if (npar->enable_pm) { in qlcnic_reset_npar_config()
910 npar->dest_npar, 1, i); in qlcnic_reset_npar_config()
914 err = qlcnic_reset_eswitch_config(adapter, npar, i); in qlcnic_reset_npar_config()
3565 struct qlcnic_npar_info *npar; in qlcnic_sysfs_write_esw_config() local
3611 npar = &adapter->npars[pci_func]; in qlcnic_sysfs_write_esw_config()
3614 npar->promisc_mode = esw_cfg[i].promisc_mode; in qlcnic_sysfs_write_esw_config()
3615 npar->mac_override = esw_cfg[i].mac_override; in qlcnic_sysfs_write_esw_config()
3616 npar->offload_flags = esw_cfg[i].offload_flags; in qlcnic_sysfs_write_esw_config()
3617 npar->mac_anti_spoof = esw_cfg[i].mac_anti_spoof; in qlcnic_sysfs_write_esw_config()
3618 npar->discard_tagged = esw_cfg[i].discard_tagged; in qlcnic_sysfs_write_esw_config()
3621 npar->pvid = esw_cfg[i].vlan_id; in qlcnic_sysfs_write_esw_config()
3624 npar->pvid = 0; in qlcnic_sysfs_write_esw_config()