Lines Matching full:pf

34 	struct i40e_pf *pf = i40e_netdev_to_pf(dev);  in i40e_dcbnl_ieee_getets()  local
36 struct i40e_hw *hw = &pf->hw; in i40e_dcbnl_ieee_getets()
38 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE)) in i40e_dcbnl_ieee_getets()
73 struct i40e_pf *pf = i40e_netdev_to_pf(dev); in i40e_dcbnl_ieee_getpfc() local
75 struct i40e_hw *hw = &pf->hw; in i40e_dcbnl_ieee_getpfc()
78 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE)) in i40e_dcbnl_ieee_getpfc()
89 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in i40e_dcbnl_ieee_getpfc()
90 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in i40e_dcbnl_ieee_getpfc()
104 struct i40e_pf *pf = i40e_netdev_to_pf(dev); in i40e_dcbnl_getdcbx() local
106 return pf->dcbx_cap; in i40e_dcbnl_getdcbx()
119 struct i40e_pf *pf = i40e_netdev_to_pf(dev); in i40e_dcbnl_get_perm_hw_addr() local
125 perm_addr[i] = pf->hw.mac.perm_addr[i]; in i40e_dcbnl_get_perm_hw_addr()
128 perm_addr[i] = pf->hw.mac.san_addr[j]; in i40e_dcbnl_get_perm_hw_addr()
148 struct i40e_pf *pf = i40e_netdev_to_pf(dev); in i40e_dcbnl_set_all() local
150 struct i40e_hw *hw = &pf->hw; in i40e_dcbnl_set_all()
156 if (!(pf->flags & I40E_FLAG_DCB_ENABLED)) in i40e_dcbnl_set_all()
159 /* MFP mode but not an iSCSI PF so return */ in i40e_dcbnl_set_all()
160 if ((pf->flags & I40E_FLAG_MFP_ENABLED) && !(pf->hw.func_caps.iscsi)) in i40e_dcbnl_set_all()
208 * @pf: the corresponding PF
211 * Delete given APP from all the VSIs for given PF
213 static void i40e_dcbnl_del_app(struct i40e_pf *pf, in i40e_dcbnl_del_app() argument
218 for (v = 0; v < pf->num_alloc_vsi; v++) { in i40e_dcbnl_del_app()
219 if (pf->vsi[v] && pf->vsi[v]->netdev) { in i40e_dcbnl_del_app()
220 err = i40e_dcbnl_vsi_del_app(pf->vsi[v], app); in i40e_dcbnl_del_app()
221 dev_dbg(&pf->pdev->dev, "Deleting app for VSI seid=%d err=%d sel=%d proto=0x%x prio=%d\n", in i40e_dcbnl_del_app()
222 pf->vsi[v]->seid, err, app->selector, in i40e_dcbnl_del_app()
252 * @pf: the corresponding PF
259 void i40e_dcbnl_flush_apps(struct i40e_pf *pf, in i40e_dcbnl_flush_apps() argument
266 /* MFP mode but not an iSCSI PF so return */ in i40e_dcbnl_flush_apps()
267 if ((pf->flags & I40E_FLAG_MFP_ENABLED) && !(pf->hw.func_caps.iscsi)) in i40e_dcbnl_flush_apps()
274 i40e_dcbnl_del_app(pf, &app); in i40e_dcbnl_flush_apps()
287 struct i40e_pf *pf = i40e_netdev_to_pf(dev); in i40e_dcbnl_setup() local
290 if (!(pf->flags & I40E_FLAG_DCB_CAPABLE)) in i40e_dcbnl_setup()