Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c541 struct mlx4_ptys_reg *ptys_reg) in ptys2ethtool_update_supported_port() argument
543 u32 eth_proto = be32_to_cpu(ptys_reg->eth_proto_cap); in ptys2ethtool_update_supported_port()
566 static u32 ptys_get_active_port(struct mlx4_ptys_reg *ptys_reg) in ptys_get_active_port() argument
568 u32 eth_proto = be32_to_cpu(ptys_reg->eth_proto_oper); in ptys_get_active_port()
571 eth_proto = be32_to_cpu(ptys_reg->eth_proto_cap); in ptys_get_active_port()
731 struct mlx4_ptys_reg ptys_reg; in ethtool_get_ptys_link_ksettings() local
735 memset(&ptys_reg, 0, sizeof(ptys_reg)); in ethtool_get_ptys_link_ksettings()
736 ptys_reg.local_port = priv->port; in ethtool_get_ptys_link_ksettings()
737 ptys_reg.proto_mask = MLX4_PTYS_EN; in ethtool_get_ptys_link_ksettings()
739 MLX4_ACCESS_REG_QUERY, &ptys_reg); in ethtool_get_ptys_link_ksettings()
[all …]
H A Dfw.c2986 struct mlx4_ptys_reg *ptys_reg) in mlx4_ACCESS_PTYS_REG() argument
2989 method, sizeof(*ptys_reg), ptys_reg); in mlx4_ACCESS_PTYS_REG()
3008 struct mlx4_ptys_reg *ptys_reg = in mlx4_ACCESS_REG_wrapper() local
3011 ptys_reg->local_port = in mlx4_ACCESS_REG_wrapper()
3013 ptys_reg->local_port); in mlx4_ACCESS_REG_wrapper()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dport.c38 u32 out[MLX5_ST_SZ_DW(ptys_reg)]; in mlx5_port_query_eth_autoneg()
47 *an_status = MLX5_GET(ptys_reg, out, an_status); in mlx5_port_query_eth_autoneg()
48 *an_disable_cap = MLX5_GET(ptys_reg, out, an_disable_cap); in mlx5_port_query_eth_autoneg()
49 *an_disable_admin = MLX5_GET(ptys_reg, out, an_disable_admin); in mlx5_port_query_eth_autoneg()
55 u32 out[MLX5_ST_SZ_DW(ptys_reg)]; in mlx5_port_set_eth_ptys()
56 u32 in[MLX5_ST_SZ_DW(ptys_reg)]; in mlx5_port_set_eth_ptys()
68 MLX5_SET(ptys_reg, in, local_port, 1); in mlx5_port_set_eth_ptys()
69 MLX5_SET(ptys_reg, in, an_disable_admin, an_disable); in mlx5_port_set_eth_ptys()
70 MLX5_SET(ptys_reg, in, proto_mask, MLX5_PTYS_EN); in mlx5_port_set_eth_ptys()
72 MLX5_SET(ptys_reg, in, ext_eth_proto_admin, proto_admin); in mlx5_port_set_eth_ptys()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dport.c150 u32 in[MLX5_ST_SZ_DW(ptys_reg)] = {0}; in mlx5_query_port_ptys()
152 MLX5_SET(ptys_reg, in, local_port, local_port); in mlx5_query_port_ptys()
153 MLX5_SET(ptys_reg, in, plane_ind, plane_index); in mlx5_query_port_ptys()
154 MLX5_SET(ptys_reg, in, proto_mask, proto_mask); in mlx5_query_port_ptys()
174 u32 out[MLX5_ST_SZ_DW(ptys_reg)]; in mlx5_query_ib_port_oper()
182 *link_width_oper = MLX5_GET(ptys_reg, out, ib_link_width_oper); in mlx5_query_ib_port_oper()
183 *proto_oper = MLX5_GET(ptys_reg, out, ib_proto_oper); in mlx5_query_ib_port_oper()
1113 u32 out[MLX5_ST_SZ_DW(ptys_reg)]; in mlx5_port_query_eth_proto()
1123 eproto->cap = MLX5_GET_ETH_PROTO(ptys_reg, out, ext, in mlx5_port_query_eth_proto()
1125 eproto->admin = MLX5_GET_ETH_PROTO(ptys_reg, out, ext, eth_proto_admin); in mlx5_port_query_eth_proto()
[all …]
H A Den_ethtool.c1183 u32 out[MLX5_ST_SZ_DW(ptys_reg)] = {}; in mlx5e_ethtool_get_link_ksettings()
1204 ext = !!MLX5_GET_ETH_PROTO(ptys_reg, out, true, eth_proto_capability); in mlx5e_ethtool_get_link_ksettings()
1205 eth_proto_cap = MLX5_GET_ETH_PROTO(ptys_reg, out, ext, in mlx5e_ethtool_get_link_ksettings()
1207 eth_proto_admin = MLX5_GET_ETH_PROTO(ptys_reg, out, ext, in mlx5e_ethtool_get_link_ksettings()
1217 eth_proto_admin = MLX5_GET_ETH_PROTO(ptys_reg, out, false, in mlx5e_ethtool_get_link_ksettings()
1222 eth_proto_oper = MLX5_GET_ETH_PROTO(ptys_reg, out, admin_ext, in mlx5e_ethtool_get_link_ksettings()
1224 eth_proto_lp = MLX5_GET(ptys_reg, out, eth_proto_lp_advertise); in mlx5e_ethtool_get_link_ksettings()
1225 an_disable_admin = MLX5_GET(ptys_reg, out, an_disable_admin); in mlx5e_ethtool_get_link_ksettings()
1226 an_status = MLX5_GET(ptys_reg, out, an_status); in mlx5e_ethtool_get_link_ksettings()
1227 connector_type = MLX5_GET(ptys_reg, out, connector_type); in mlx5e_ethtool_get_link_ksettings()
[all …]
/linux/include/linux/mlx4/
H A Ddevice.h1593 struct mlx4_ptys_reg *ptys_reg);