Lines Matching refs:pf
24 struct ice_pf *pf = lag->pf; in ice_lag_set_primary() local
26 if (!pf) in ice_lag_set_primary()
30 dev_warn(ice_pf_to_dev(pf), "%s: Attempt to be Primary, but incompatible state.\n", in ice_lag_set_primary()
44 struct ice_pf *pf = lag->pf; in ice_lag_set_backup() local
46 if (!pf) in ice_lag_set_backup()
50 dev_dbg(ice_pf_to_dev(pf), "%s: Attempt to be Backup, but incompatible state\n", in ice_lag_set_backup()
65 struct device *dev = &lag->pf->pdev->dev; in ice_display_lag_info()
144 struct ice_pf *pf = lag->pf; in ice_lag_link() local
148 dev_warn(ice_pf_to_dev(pf), "%s Already part of a bond\n", in ice_lag_link()
161 ice_clear_sriov_cap(pf); in ice_lag_link()
162 ice_clear_rdma_cap(pf); in ice_lag_link()
181 struct ice_pf *pf = lag->pf; in ice_lag_unlink() local
208 ice_set_sriov_cap(pf); in ice_lag_unlink()
209 ice_set_rdma_cap(pf); in ice_lag_unlink()
221 struct ice_pf *pf = lag->pf; in ice_lag_unregister() local
232 ice_set_sriov_cap(pf); in ice_lag_unregister()
233 ice_set_rdma_cap(pf); in ice_lag_unregister()
347 struct device *dev = ice_pf_to_dev(lag->pf); in ice_register_lag_handler()
370 struct device *dev = ice_pf_to_dev(lag->pf); in ice_unregister_lag_handler()
387 int ice_init_lag(struct ice_pf *pf) in ice_init_lag() argument
389 struct device *dev = ice_pf_to_dev(pf); in ice_init_lag()
394 pf->lag = kzalloc(sizeof(*lag), GFP_KERNEL); in ice_init_lag()
395 if (!pf->lag) in ice_init_lag()
397 lag = pf->lag; in ice_init_lag()
399 vsi = ice_get_main_vsi(pf); in ice_init_lag()
406 lag->pf = pf; in ice_init_lag()
427 pf->lag = NULL; in ice_init_lag()
438 void ice_deinit_lag(struct ice_pf *pf) in ice_deinit_lag() argument
442 lag = pf->lag; in ice_deinit_lag()
447 if (lag->pf) in ice_deinit_lag()
458 pf->lag = NULL; in ice_deinit_lag()