Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/sfc/
Dsriov.c11 int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac) in efx_sriov_set_vf_mac() argument
16 return efx->type->sriov_set_vf_mac(efx, vf_i, mac); in efx_sriov_set_vf_mac()
21 int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan, in efx_sriov_set_vf_vlan() argument
34 return efx->type->sriov_set_vf_vlan(efx, vf_i, vlan, qos); in efx_sriov_set_vf_vlan()
40 int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i, in efx_sriov_set_vf_spoofchk() argument
46 return efx->type->sriov_set_vf_spoofchk(efx, vf_i, spoofchk); in efx_sriov_set_vf_spoofchk()
51 int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i, in efx_sriov_get_vf_config() argument
57 return efx->type->sriov_get_vf_config(efx, vf_i, ivi); in efx_sriov_get_vf_config()
62 int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i, in efx_sriov_set_vf_link_state() argument
68 return efx->type->sriov_set_vf_link_state(efx, vf_i, in efx_sriov_set_vf_link_state()
Dsriov.h14 int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac);
15 int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan,
17 int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i,
19 int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i,
21 int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i,
Def10_sriov.c158 unsigned int vf_i) in efx_ef10_sriov_assign_vf_vport() argument
161 struct ef10_vf *vf = nic_data->vf + vf_i; in efx_ef10_sriov_assign_vf_vport()
179 rc = efx_ef10_evb_port_assign(efx, vf->vport_id, vf_i); in efx_ef10_sriov_assign_vf_vport()
486 int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf_i, u8 *mac) in efx_ef10_sriov_set_vf_mac() argument
495 if (vf_i >= efx->vf_count) in efx_ef10_sriov_set_vf_mac()
497 vf = nic_data->vf + vf_i; in efx_ef10_sriov_set_vf_mac()
513 rc = efx_ef10_evb_port_assign(efx, EVB_PORT_ID_NULL, vf_i); in efx_ef10_sriov_set_vf_mac()
535 rc = efx_ef10_evb_port_assign(efx, vf->vport_id, vf_i); in efx_ef10_sriov_set_vf_mac()
559 int efx_ef10_sriov_set_vf_vlan(struct efx_nic *efx, int vf_i, u16 vlan, in efx_ef10_sriov_set_vf_vlan() argument
567 if (vf_i >= efx->vf_count) in efx_ef10_sriov_set_vf_vlan()
[all …]
Def10_sriov.h40 static inline void efx_ef10_sriov_flr(struct efx_nic *efx, unsigned vf_i) {} in efx_ef10_sriov_flr() argument
44 int efx_ef10_sriov_set_vf_vlan(struct efx_nic *efx, int vf_i,
50 int efx_ef10_sriov_get_vf_config(struct efx_nic *efx, int vf_i,
53 int efx_ef10_sriov_set_vf_link_state(struct efx_nic *efx, int vf_i,
Dsiena_sriov.c513 unsigned vf_i; in map_vi_index() local
517 vf_i = (abs_index - EFX_VI_BASE) / efx_vf_size(efx); in map_vi_index()
518 if (vf_i >= efx->vf_init_count) in map_vi_index()
522 *vf_out = nic_data->vf + vf_i; in map_vi_index()
1458 void efx_siena_sriov_flr(struct efx_nic *efx, unsigned vf_i) in efx_siena_sriov_flr() argument
1463 if (vf_i > efx->vf_init_count) in efx_siena_sriov_flr()
1465 vf = nic_data->vf + vf_i; in efx_siena_sriov_flr()
1553 unsigned int vf_i; in efx_siena_sriov_reset() local
1568 for (vf_i = 0; vf_i < efx->vf_init_count; ++vf_i) { in efx_siena_sriov_reset()
1569 vf = nic_data->vf + vf_i; in efx_siena_sriov_reset()
[all …]
Dnet_driver.h1396 void (*sriov_flr)(struct efx_nic *efx, unsigned vf_i);
1397 int (*sriov_set_vf_mac)(struct efx_nic *efx, int vf_i, u8 *mac);
1398 int (*sriov_set_vf_vlan)(struct efx_nic *efx, int vf_i, u16 vlan,
1400 int (*sriov_set_vf_spoofchk)(struct efx_nic *efx, int vf_i,
1402 int (*sriov_get_vf_config)(struct efx_nic *efx, int vf_i,
1404 int (*sriov_set_vf_link_state)(struct efx_nic *efx, int vf_i,