Home
last modified time | relevance | path

Searched refs:vf_i (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/sfc/
Dsriov.c14 int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac) in efx_sriov_set_vf_mac() argument
19 return efx->type->sriov_set_vf_mac(efx, vf_i, mac); in efx_sriov_set_vf_mac()
24 int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan, in efx_sriov_set_vf_vlan() argument
37 return efx->type->sriov_set_vf_vlan(efx, vf_i, vlan, qos); in efx_sriov_set_vf_vlan()
43 int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i, in efx_sriov_set_vf_spoofchk() argument
49 return efx->type->sriov_set_vf_spoofchk(efx, vf_i, spoofchk); in efx_sriov_set_vf_spoofchk()
54 int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i, in efx_sriov_get_vf_config() argument
60 return efx->type->sriov_get_vf_config(efx, vf_i, ivi); in efx_sriov_get_vf_config()
65 int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i, in efx_sriov_set_vf_link_state() argument
71 return efx->type->sriov_set_vf_link_state(efx, vf_i, in efx_sriov_set_vf_link_state()
Dsriov.h17 int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac);
18 int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan,
20 int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i,
22 int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i,
24 int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i,
Def10_sriov.c161 unsigned int vf_i) in efx_ef10_sriov_assign_vf_vport() argument
164 struct ef10_vf *vf = nic_data->vf + vf_i; in efx_ef10_sriov_assign_vf_vport()
182 rc = efx_ef10_evb_port_assign(efx, vf->vport_id, vf_i); in efx_ef10_sriov_assign_vf_vport()
489 int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf_i, u8 *mac) in efx_ef10_sriov_set_vf_mac() argument
498 if (vf_i >= efx->vf_count) in efx_ef10_sriov_set_vf_mac()
500 vf = nic_data->vf + vf_i; in efx_ef10_sriov_set_vf_mac()
516 rc = efx_ef10_evb_port_assign(efx, EVB_PORT_ID_NULL, vf_i); in efx_ef10_sriov_set_vf_mac()
538 rc = efx_ef10_evb_port_assign(efx, vf->vport_id, vf_i); in efx_ef10_sriov_set_vf_mac()
562 int efx_ef10_sriov_set_vf_vlan(struct efx_nic *efx, int vf_i, u16 vlan, in efx_ef10_sriov_set_vf_vlan() argument
570 if (vf_i >= efx->vf_count) in efx_ef10_sriov_set_vf_vlan()
[all …]
Def10_sriov.h43 static inline void efx_ef10_sriov_flr(struct efx_nic *efx, unsigned vf_i) {} in efx_ef10_sriov_flr() argument
47 int efx_ef10_sriov_set_vf_vlan(struct efx_nic *efx, int vf_i,
53 int efx_ef10_sriov_get_vf_config(struct efx_nic *efx, int vf_i,
56 int efx_ef10_sriov_set_vf_link_state(struct efx_nic *efx, int vf_i,
Dsiena_sriov.c516 unsigned vf_i; in map_vi_index() local
520 vf_i = (abs_index - EFX_VI_BASE) / efx_vf_size(efx); in map_vi_index()
521 if (vf_i >= efx->vf_init_count) in map_vi_index()
525 *vf_out = nic_data->vf + vf_i; in map_vi_index()
1461 void efx_siena_sriov_flr(struct efx_nic *efx, unsigned vf_i) in efx_siena_sriov_flr() argument
1466 if (vf_i > efx->vf_init_count) in efx_siena_sriov_flr()
1468 vf = nic_data->vf + vf_i; in efx_siena_sriov_flr()
1556 unsigned int vf_i; in efx_siena_sriov_reset() local
1571 for (vf_i = 0; vf_i < efx->vf_init_count; ++vf_i) { in efx_siena_sriov_reset()
1572 vf = nic_data->vf + vf_i; in efx_siena_sriov_reset()
[all …]
Dnet_driver.h1399 void (*sriov_flr)(struct efx_nic *efx, unsigned vf_i);
1400 int (*sriov_set_vf_mac)(struct efx_nic *efx, int vf_i, u8 *mac);
1401 int (*sriov_set_vf_vlan)(struct efx_nic *efx, int vf_i, u16 vlan,
1403 int (*sriov_set_vf_spoofchk)(struct efx_nic *efx, int vf_i,
1405 int (*sriov_get_vf_config)(struct efx_nic *efx, int vf_i,
1407 int (*sriov_set_vf_link_state)(struct efx_nic *efx, int vf_i,