Lines Matching full:vp
74 struct qlcnic_vport *vp; in qlcnic_sriov_pf_cal_res_limit() local
108 vp = sriov->vf_info[id].vp; in qlcnic_sriov_pf_cal_res_limit()
109 info->min_tx_bw = vp->min_tx_bw; in qlcnic_sriov_pf_cal_res_limit()
110 info->max_tx_bw = vp->max_tx_bw; in qlcnic_sriov_pf_cal_res_limit()
236 struct qlcnic_vport *vp; in qlcnic_sriov_pf_reset_vport_handle() local
245 vp = sriov->vf_info[index].vp; in qlcnic_sriov_pf_reset_vport_handle()
246 vp->handle = 0; in qlcnic_sriov_pf_reset_vport_handle()
254 struct qlcnic_vport *vp; in qlcnic_sriov_pf_set_vport_handle() local
263 vp = sriov->vf_info[index].vp; in qlcnic_sriov_pf_set_vport_handle()
264 vp->handle = vport_handle; in qlcnic_sriov_pf_set_vport_handle()
281 return vf_info->vp->handle; in qlcnic_sriov_pf_get_vport_handle()
687 struct qlcnic_vport *vp; in qlcnic_sriov_set_vf_acl() local
695 vp = adapter->ahw->sriov->vf_info[id].vp; in qlcnic_sriov_set_vf_acl()
701 if (vp->spoofchk == true) { in qlcnic_sriov_set_vf_acl()
702 mac = vp->mac; in qlcnic_sriov_set_vf_acl()
709 if (vp->vlan_mode == QLC_PVID_MODE) { in qlcnic_sriov_set_vf_acl()
711 cmd.req.arg[3] |= vp->pvid << 8; in qlcnic_sriov_set_vf_acl()
744 struct qlcnic_vport *vp = vf->vp; in qlcnic_sriov_pf_channel_cfg_cmd() local
762 if (vp->vlan_mode == QLC_GUEST_VLAN_MODE) { in qlcnic_sriov_pf_channel_cfg_cmd()
794 struct qlcnic_vport *vp; in qlcnic_sriov_cfg_vf_def_mac() local
800 vp = vf->vp; in qlcnic_sriov_cfg_vf_def_mac()
824 addr = vp->mac; in qlcnic_sriov_cfg_vf_def_mac()
876 if (vf->vp->vlan_mode != QLC_PVID_MODE) { in qlcnic_83xx_cfg_default_mac_vlan()
898 cmd->req.arg[6] = vf->vp->handle; in qlcnic_sriov_pf_create_rx_ctx_cmd()
926 mac = vf->vp->mac; in qlcnic_sriov_pf_mac_address_cmd()
958 cmd->req.arg[5] |= vf->vp->handle << 16; in qlcnic_sriov_pf_create_tx_ctx_cmd()
996 cmd->req.arg[1] |= vf->vp->handle << 16; in qlcnic_sriov_pf_del_rx_ctx_cmd()
1030 cmd->req.arg[1] |= vf->vp->handle << 16; in qlcnic_sriov_pf_del_tx_ctx_cmd()
1072 cmd->req.arg[1] |= vf->vp->handle << 16; in qlcnic_sriov_pf_cfg_ip_cmd()
1146 cmd->req.arg[1] |= vf->vp->handle << 16; in qlcnic_sriov_validate_get_nic_info()
1258 struct qlcnic_vport *vp = vf->vp; in qlcnic_sriov_validate_cfg_macvlan() local
1264 cmd->req.arg[1] |= (vf->vp->handle << 16); in qlcnic_sriov_validate_cfg_macvlan()
1267 if (vp->vlan_mode == QLC_PVID_MODE) { in qlcnic_sriov_validate_cfg_macvlan()
1272 cmd->req.arg[3] |= vp->pvid << 16; in qlcnic_sriov_validate_cfg_macvlan()
1329 cmd->req.arg[1] |= vf->vp->handle << 16; in qlcnic_sriov_pf_cfg_promisc_cmd()
1339 struct qlcnic_vport *vp = vf->vp; in qlcnic_sriov_pf_get_acl_cmd() local
1340 u8 mode = vp->vlan_mode; in qlcnic_sriov_pf_get_acl_cmd()
1361 cmd->rsp.arg[1] = mode | 1 << 8 | vp->pvid << 16; in qlcnic_sriov_pf_get_acl_cmd()
1436 struct qlcnic_vport *vp = vf->vp; in qlcnic_sriov_pf_cfg_guest_vlan_cmd() local
1440 if (vp->vlan_mode != QLC_GUEST_VLAN_MODE) { in qlcnic_sriov_pf_cfg_guest_vlan_cmd()
1741 struct qlcnic_vport *vp = vf->vp; in qlcnic_sriov_pf_handle_flr() local
1754 if (vp->vlan_mode == QLC_GUEST_VLAN_MODE) in qlcnic_sriov_pf_handle_flr()
1825 if (ether_addr_equal(vf_info->vp->mac, mac)) { in qlcnic_sriov_set_vf_mac()
1834 curr_mac = vf_info->vp->mac; in qlcnic_sriov_set_vf_mac()
1856 struct qlcnic_vport *vp; in qlcnic_sriov_set_vf_tx_rate() local
1866 vp = vf_info->vp; in qlcnic_sriov_set_vf_tx_rate()
1867 vpid = vp->handle; in qlcnic_sriov_set_vf_tx_rate()
1901 vp->max_tx_bw = max_tx_rate / 100; in qlcnic_sriov_set_vf_tx_rate()
1904 max_tx_rate, vp->max_tx_bw, vf); in qlcnic_sriov_set_vf_tx_rate()
1905 vp->min_tx_bw = min_tx_rate / 100; in qlcnic_sriov_set_vf_tx_rate()
1908 min_tx_rate, vp->min_tx_bw, vf); in qlcnic_sriov_set_vf_tx_rate()
1918 struct qlcnic_vport *vp; in qlcnic_sriov_set_vf_vlan() local
1937 vp = vf_info->vp; in qlcnic_sriov_set_vf_vlan()
1950 vp->vlan_mode = QLC_GUEST_VLAN_MODE; in qlcnic_sriov_set_vf_vlan()
1953 vp->vlan_mode = QLC_NO_VLAN_MODE; in qlcnic_sriov_set_vf_vlan()
1954 vp->qos = 0; in qlcnic_sriov_set_vf_vlan()
1957 vp->vlan_mode = QLC_PVID_MODE; in qlcnic_sriov_set_vf_vlan()
1959 vp->qos = qos; in qlcnic_sriov_set_vf_vlan()
1960 vp->pvid = vlan; in qlcnic_sriov_set_vf_vlan()
1969 struct qlcnic_vport *vp, int vf) in qlcnic_sriov_get_vf_vlan() argument
1973 switch (vp->vlan_mode) { in qlcnic_sriov_get_vf_vlan()
1975 vlan = vp->pvid; in qlcnic_sriov_get_vf_vlan()
1985 vp->vlan_mode, vf); in qlcnic_sriov_get_vf_vlan()
1996 struct qlcnic_vport *vp; in qlcnic_sriov_get_vf_config() local
2004 vp = sriov->vf_info[vf].vp; in qlcnic_sriov_get_vf_config()
2005 memcpy(&ivi->mac, vp->mac, ETH_ALEN); in qlcnic_sriov_get_vf_config()
2006 ivi->vlan = qlcnic_sriov_get_vf_vlan(adapter, vp, vf); in qlcnic_sriov_get_vf_config()
2007 ivi->qos = vp->qos; in qlcnic_sriov_get_vf_config()
2008 ivi->spoofchk = vp->spoofchk; in qlcnic_sriov_get_vf_config()
2009 if (vp->max_tx_bw == MAX_BW) in qlcnic_sriov_get_vf_config()
2012 ivi->max_tx_rate = vp->max_tx_bw * 100; in qlcnic_sriov_get_vf_config()
2013 if (vp->min_tx_bw == MIN_BW) in qlcnic_sriov_get_vf_config()
2016 ivi->min_tx_rate = vp->min_tx_bw * 100; in qlcnic_sriov_get_vf_config()
2027 struct qlcnic_vport *vp; in qlcnic_sriov_set_vf_spoofchk() local
2036 vp = vf_info->vp; in qlcnic_sriov_set_vf_spoofchk()
2044 vp->spoofchk = chk; in qlcnic_sriov_set_vf_spoofchk()