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()
149 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_free_vf_vswitching() local
152 kfree(nic_data->vf); in efx_ef10_sriov_free_vf_vswitching()
153 nic_data->vf = NULL; in efx_ef10_sriov_free_vf_vswitching()
159 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_assign_vf_vport() local
160 struct ef10_vf *vf = nic_data->vf + vf_i; in efx_ef10_sriov_assign_vf_vport()
163 if (WARN_ON_ONCE(!nic_data->vf)) in efx_ef10_sriov_assign_vf_vport()
188 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_alloc_vf_vswitching() local
192 nic_data->vf = kcalloc(efx->vf_count, sizeof(struct ef10_vf), in efx_ef10_sriov_alloc_vf_vswitching()
194 if (!nic_data->vf) in efx_ef10_sriov_alloc_vf_vswitching()
198 eth_random_addr(nic_data->vf[i].mac); in efx_ef10_sriov_alloc_vf_vswitching()
199 nic_data->vf[i].efx = NULL; in efx_ef10_sriov_alloc_vf_vswitching()
200 nic_data->vf[i].vlan = EFX_EF10_NO_VLAN; in efx_ef10_sriov_alloc_vf_vswitching()
263 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_vswitching_probe_pf() local
287 ether_addr_copy(nic_data->vport_mac, net_dev->dev_addr); in efx_ef10_vswitching_probe_pf()
295 efx_ef10_vport_del_mac(efx, efx->vport_id, nic_data->vport_mac); in efx_ef10_vswitching_probe_pf()
296 eth_zero_addr(nic_data->vport_mac); in efx_ef10_vswitching_probe_pf()
313 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_vswitching_restore_pf() local
316 if (!nic_data->must_probe_vswitching) in efx_ef10_vswitching_restore_pf()
327 nic_data->must_probe_vswitching = false; in efx_ef10_vswitching_restore_pf()
334 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_vswitching_restore_vf() local
337 if (!nic_data->must_probe_vswitching) in efx_ef10_vswitching_restore_vf()
344 nic_data->must_probe_vswitching = false; in efx_ef10_vswitching_restore_vf()
350 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_vswitching_remove_pf() local
359 if (!is_zero_ether_addr(nic_data->vport_mac)) { in efx_ef10_vswitching_remove_pf()
362 eth_zero_addr(nic_data->vport_mac); in efx_ef10_vswitching_remove_pf()
411 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_pci_sriov_disable() local
423 nic_data->vf[i].pci_dev = NULL; in efx_ef10_pci_sriov_disable()
449 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_fini() local
452 if (!nic_data->vf) { in efx_ef10_sriov_fini()
489 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_set_vf_mac() local
493 if (!nic_data->vf) in efx_ef10_sriov_set_vf_mac()
498 vf = nic_data->vf + vf_i; in efx_ef10_sriov_set_vf_mac()
556 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_set_vf_vlan() local
566 vf = nic_data->vf + vf_i; in efx_ef10_sriov_set_vf_vlan()
684 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_set_privilege_mask() local
693 PRIVILEGE_MASK_IN_FUNCTION_PF, nic_data->pf_index, in efx_ef10_sriov_set_privilege_mask()
732 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_set_vf_spoofchk() local
735 if (!(nic_data->datapath_caps & in efx_ef10_sriov_set_vf_spoofchk()
749 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_set_vf_link_state() local
759 nic_data->pf_index, in efx_ef10_sriov_set_vf_link_state()
772 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_sriov_get_vf_config() local
780 if (!nic_data->vf) in efx_ef10_sriov_get_vf_config()
783 vf = nic_data->vf + vf_i; in efx_ef10_sriov_get_vf_config()
794 nic_data->pf_index, in efx_ef10_sriov_get_vf_config()