Lines Matching refs:nic_data

19 	struct efx_ef10_nic_data *nic_data = efx->nic_data;  in efx_ef10_evb_port_assign()  local
23 EVB_PORT_ASSIGN_IN_PF, nic_data->pf_index, in efx_ef10_evb_port_assign()
115 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_free_vf_vports() local
118 if (!nic_data->vf) in efx_ef10_sriov_free_vf_vports()
122 struct ef10_vf *vf = nic_data->vf + i; in efx_ef10_sriov_free_vf_vports()
150 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_free_vf_vswitching() local
153 kfree(nic_data->vf); in efx_ef10_sriov_free_vf_vswitching()
154 nic_data->vf = NULL; in efx_ef10_sriov_free_vf_vswitching()
160 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_assign_vf_vport() local
161 struct ef10_vf *vf = nic_data->vf + vf_i; in efx_ef10_sriov_assign_vf_vport()
164 if (WARN_ON_ONCE(!nic_data->vf)) in efx_ef10_sriov_assign_vf_vport()
189 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_alloc_vf_vswitching() local
193 nic_data->vf = kcalloc(efx->vf_count, sizeof(struct ef10_vf), in efx_ef10_sriov_alloc_vf_vswitching()
195 if (!nic_data->vf) in efx_ef10_sriov_alloc_vf_vswitching()
199 eth_random_addr(nic_data->vf[i].mac); in efx_ef10_sriov_alloc_vf_vswitching()
200 nic_data->vf[i].efx = NULL; in efx_ef10_sriov_alloc_vf_vswitching()
201 nic_data->vf[i].vlan = EFX_EF10_NO_VLAN; in efx_ef10_sriov_alloc_vf_vswitching()
211 kfree(nic_data->vf); in efx_ef10_sriov_alloc_vf_vswitching()
212 nic_data->vf = NULL; in efx_ef10_sriov_alloc_vf_vswitching()
235 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_vadaptor_alloc_set_features() local
239 rc = efx_ef10_vadaptor_alloc(efx, nic_data->vport_id); in efx_ef10_vadaptor_alloc_set_features()
243 rc = efx_ef10_vadaptor_query(efx, nic_data->vport_id, in efx_ef10_vadaptor_alloc_set_features()
267 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_vswitching_probe_pf() local
284 EFX_EF10_NO_VLAN, &nic_data->vport_id); in efx_ef10_vswitching_probe_pf()
288 rc = efx_ef10_vport_add_mac(efx, nic_data->vport_id, net_dev->dev_addr); in efx_ef10_vswitching_probe_pf()
291 ether_addr_copy(nic_data->vport_mac, net_dev->dev_addr); in efx_ef10_vswitching_probe_pf()
299 efx_ef10_vport_del_mac(efx, nic_data->vport_id, nic_data->vport_mac); in efx_ef10_vswitching_probe_pf()
300 eth_zero_addr(nic_data->vport_mac); in efx_ef10_vswitching_probe_pf()
302 efx_ef10_vport_free(efx, nic_data->vport_id); in efx_ef10_vswitching_probe_pf()
303 nic_data->vport_id = EVB_PORT_ID_ASSIGNED; in efx_ef10_vswitching_probe_pf()
317 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_vswitching_restore_pf() local
320 if (!nic_data->must_probe_vswitching) in efx_ef10_vswitching_restore_pf()
331 nic_data->must_probe_vswitching = false; in efx_ef10_vswitching_restore_pf()
338 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_vswitching_restore_vf() local
341 if (!nic_data->must_probe_vswitching) in efx_ef10_vswitching_restore_vf()
348 nic_data->must_probe_vswitching = false; in efx_ef10_vswitching_restore_vf()
354 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_vswitching_remove_pf() local
358 efx_ef10_vadaptor_free(efx, nic_data->vport_id); in efx_ef10_vswitching_remove_pf()
360 if (nic_data->vport_id == EVB_PORT_ID_ASSIGNED) in efx_ef10_vswitching_remove_pf()
363 if (!is_zero_ether_addr(nic_data->vport_mac)) { in efx_ef10_vswitching_remove_pf()
364 efx_ef10_vport_del_mac(efx, nic_data->vport_id, in efx_ef10_vswitching_remove_pf()
366 eth_zero_addr(nic_data->vport_mac); in efx_ef10_vswitching_remove_pf()
368 efx_ef10_vport_free(efx, nic_data->vport_id); in efx_ef10_vswitching_remove_pf()
369 nic_data->vport_id = EVB_PORT_ID_ASSIGNED; in efx_ef10_vswitching_remove_pf()
373 efx_ef10_vswitch_free(efx, nic_data->vport_id); in efx_ef10_vswitching_remove_pf()
442 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_fini() local
446 if (!nic_data->vf) { in efx_ef10_sriov_fini()
455 struct efx_nic *vf_efx = nic_data->vf[i].efx; in efx_ef10_sriov_fini()
488 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_set_vf_mac() local
492 if (!nic_data->vf) in efx_ef10_sriov_set_vf_mac()
497 vf = nic_data->vf + vf_i; in efx_ef10_sriov_set_vf_mac()
562 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_set_vf_vlan() local
572 vf = nic_data->vf + vf_i; in efx_ef10_sriov_set_vf_vlan()
699 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_set_vf_link_state() local
709 nic_data->pf_index, in efx_ef10_sriov_set_vf_link_state()
722 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_get_vf_config() local
730 if (!nic_data->vf) in efx_ef10_sriov_get_vf_config()
733 vf = nic_data->vf + vf_i; in efx_ef10_sriov_get_vf_config()
744 nic_data->pf_index, in efx_ef10_sriov_get_vf_config()