Home
last modified time | relevance | path

Searched refs:ptys_eth_proto (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dswitchx2.c656 static u32 mlxsw_sx_from_ptys_supported_port(u32 ptys_eth_proto) in mlxsw_sx_from_ptys_supported_port() argument
658 if (ptys_eth_proto & (MLXSW_REG_PTYS_ETH_SPEED_10GBASE_CR | in mlxsw_sx_from_ptys_supported_port()
666 if (ptys_eth_proto & (MLXSW_REG_PTYS_ETH_SPEED_10GBASE_KR | in mlxsw_sx_from_ptys_supported_port()
675 static u32 mlxsw_sx_from_ptys_supported_link(u32 ptys_eth_proto) in mlxsw_sx_from_ptys_supported_link() argument
681 if (ptys_eth_proto & mlxsw_sx_port_link_mode[i].mask) in mlxsw_sx_from_ptys_supported_link()
687 static u32 mlxsw_sx_from_ptys_advert_link(u32 ptys_eth_proto) in mlxsw_sx_from_ptys_advert_link() argument
693 if (ptys_eth_proto & mlxsw_sx_port_link_mode[i].mask) in mlxsw_sx_from_ptys_advert_link()
699 static void mlxsw_sx_from_ptys_speed_duplex(bool carrier_ok, u32 ptys_eth_proto, in mlxsw_sx_from_ptys_speed_duplex() argument
710 if (ptys_eth_proto & mlxsw_sx_port_link_mode[i].mask) { in mlxsw_sx_from_ptys_speed_duplex()
721 static u8 mlxsw_sx_port_connector_port(u32 ptys_eth_proto) in mlxsw_sx_port_connector_port() argument
[all …]
Dspectrum.c2287 mlxsw_sp_from_ptys_supported_port(u32 ptys_eth_proto, in mlxsw_sp_from_ptys_supported_port() argument
2290 if (ptys_eth_proto & (MLXSW_REG_PTYS_ETH_SPEED_10GBASE_CR | in mlxsw_sp_from_ptys_supported_port()
2298 if (ptys_eth_proto & (MLXSW_REG_PTYS_ETH_SPEED_10GBASE_KR | in mlxsw_sp_from_ptys_supported_port()
2306 static void mlxsw_sp_from_ptys_link(u32 ptys_eth_proto, unsigned long *mode) in mlxsw_sp_from_ptys_link() argument
2311 if (ptys_eth_proto & mlxsw_sp_port_link_mode[i].mask) in mlxsw_sp_from_ptys_link()
2317 static void mlxsw_sp_from_ptys_speed_duplex(bool carrier_ok, u32 ptys_eth_proto, in mlxsw_sp_from_ptys_speed_duplex() argument
2328 if (ptys_eth_proto & mlxsw_sp_port_link_mode[i].mask) { in mlxsw_sp_from_ptys_speed_duplex()
2339 static u8 mlxsw_sp_port_connector_port(u32 ptys_eth_proto) in mlxsw_sp_port_connector_port() argument
2341 if (ptys_eth_proto & (MLXSW_REG_PTYS_ETH_SPEED_10GBASE_SR | in mlxsw_sp_port_connector_port()
2347 if (ptys_eth_proto & (MLXSW_REG_PTYS_ETH_SPEED_10GBASE_CR | in mlxsw_sp_port_connector_port()
[all …]