Home
last modified time | relevance | path

Searched refs:mport_desc (Results 1 – 3 of 3) sorted by relevance

/drivers/net/ethernet/sfc/
Defx_devlink.c34 struct mae_mport_desc *mport_desc; in efx_devlink_port_addr_get() local
39 mport_desc = container_of(port, struct mae_mport_desc, dl_port); in efx_devlink_port_addr_get()
41 if (!ef100_mport_on_local_intf(devlink->efx, mport_desc)) { in efx_devlink_port_addr_get()
45 mport_desc->mport_id); in efx_devlink_port_addr_get()
49 if (ef100_mport_is_vf(mport_desc)) in efx_devlink_port_addr_get()
52 PCIE_FUNCTION_VF, mport_desc->vf_idx, in efx_devlink_port_addr_get()
56 PCIE_FUNCTION_PF, mport_desc->pf_idx, in efx_devlink_port_addr_get()
64 mport_desc->mport_id); in efx_devlink_port_addr_get()
72 mport_desc->mport_id); in efx_devlink_port_addr_get()
84 struct mae_mport_desc *mport_desc; in efx_devlink_port_addr_set() local
[all …]
Def100_rep.c346 static bool ef100_mport_is_pcie_vnic(struct mae_mport_desc *mport_desc) in ef100_mport_is_pcie_vnic() argument
348 return mport_desc->mport_type == MAE_MPORT_DESC_MPORT_TYPE_VNIC && in ef100_mport_is_pcie_vnic()
349 mport_desc->vnic_client_type == MAE_MPORT_DESC_VNIC_CLIENT_TYPE_FUNCTION; in ef100_mport_is_pcie_vnic()
353 struct mae_mport_desc *mport_desc) in ef100_mport_on_local_intf() argument
358 pcie_func = ef100_mport_is_pcie_vnic(mport_desc); in ef100_mport_on_local_intf()
361 mport_desc->interface_idx == nic_data->local_mae_intf; in ef100_mport_on_local_intf()
364 bool ef100_mport_is_vf(struct mae_mport_desc *mport_desc) in ef100_mport_is_vf() argument
368 pcie_func = ef100_mport_is_pcie_vnic(mport_desc); in ef100_mport_is_vf()
369 return pcie_func && (mport_desc->vf_idx != MAE_MPORT_DESC_VF_IDX_NULL); in ef100_mport_is_vf()
Def100_rep.h78 struct mae_mport_desc *mport_desc);
79 bool ef100_mport_is_vf(struct mae_mport_desc *mport_desc);