Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/en/
Dport.c93 struct mlx5e_port_eth_proto *eproto) in mlx5_port_query_eth_proto() argument
98 if (!eproto) in mlx5_port_query_eth_proto()
105 eproto->cap = MLX5_GET_ETH_PROTO(ptys_reg, out, ext, in mlx5_port_query_eth_proto()
107 eproto->admin = MLX5_GET_ETH_PROTO(ptys_reg, out, ext, eth_proto_admin); in mlx5_port_query_eth_proto()
108 eproto->oper = MLX5_GET_ETH_PROTO(ptys_reg, out, ext, eth_proto_oper); in mlx5_port_query_eth_proto()
175 struct mlx5e_port_eth_proto eproto; in mlx5e_port_linkspeed() local
181 err = mlx5_port_query_eth_proto(mdev, 1, ext, &eproto); in mlx5e_port_linkspeed()
184 if (ext && !eproto.admin) { in mlx5e_port_linkspeed()
186 err = mlx5_port_query_eth_proto(mdev, 1, false, &eproto); in mlx5e_port_linkspeed()
190 *speed = mlx5e_port_ptys2speed(mdev, eproto.oper, force_legacy); in mlx5e_port_linkspeed()
[all …]
Dport.h46 struct mlx5e_port_eth_proto *eproto);
/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c1041 struct mlx5e_port_eth_proto eproto; in mlx5e_ethtool_set_link_ksettings() local
1068 err = mlx5_port_query_eth_proto(mdev, 1, ext, &eproto); in mlx5e_ethtool_set_link_ksettings()
1085 link_modes = link_modes & eproto.cap; in mlx5e_ethtool_set_link_ksettings()
1100 if (!an_changes && link_modes == eproto.admin) in mlx5e_ethtool_set_link_ksettings()