Lines Matching refs:eth_proto

523 	u32 eth_proto = be32_to_cpu(ptys_reg->eth_proto_cap);  in ptys_get_supported_port()  local
525 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_T) in ptys_get_supported_port()
531 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_CR) in ptys_get_supported_port()
540 if (eth_proto & (MLX4_PROT_MASK(MLX4_56GBASE_KR4) in ptys_get_supported_port()
553 u32 eth_proto = be32_to_cpu(ptys_reg->eth_proto_oper); in ptys_get_active_port() local
555 if (!eth_proto) /* link down */ in ptys_get_active_port()
556 eth_proto = be32_to_cpu(ptys_reg->eth_proto_cap); in ptys_get_active_port()
558 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_T) in ptys_get_active_port()
564 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_SR) in ptys_get_active_port()
571 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_CR) in ptys_get_active_port()
577 if (eth_proto & (MLX4_PROT_MASK(MLX4_56GBASE_KR4) in ptys_get_active_port()
691 static u32 ptys2ethtool_link_modes(u32 eth_proto, enum ethtool_report report) in ptys2ethtool_link_modes() argument
697 if (eth_proto & MLX4_PROT_MASK(i)) in ptys2ethtool_link_modes()
733 u32 eth_proto; in ethtool_get_ptys_settings() local
762 eth_proto = be32_to_cpu(ptys_reg.eth_proto_cap); in ethtool_get_ptys_settings()
763 cmd->supported |= ptys2ethtool_link_modes(eth_proto, SUPPORTED); in ethtool_get_ptys_settings()
765 eth_proto = be32_to_cpu(ptys_reg.eth_proto_admin); in ethtool_get_ptys_settings()
766 cmd->advertising |= ptys2ethtool_link_modes(eth_proto, ADVERTISED); in ethtool_get_ptys_settings()
786 eth_proto = be32_to_cpu(ptys_reg.eth_proto_lp_adv); in ethtool_get_ptys_settings()
787 cmd->lp_advertising = ptys2ethtool_link_modes(eth_proto, ADVERTISED); in ethtool_get_ptys_settings()