Lines Matching refs:eth_proto
508 u32 eth_proto = be32_to_cpu(ptys_reg->eth_proto_cap); in ptys_get_supported_port() local
510 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_T) in ptys_get_supported_port()
516 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_CR) in ptys_get_supported_port()
525 if (eth_proto & (MLX4_PROT_MASK(MLX4_56GBASE_KR4) in ptys_get_supported_port()
538 u32 eth_proto = be32_to_cpu(ptys_reg->eth_proto_oper); in ptys_get_active_port() local
540 if (!eth_proto) /* link down */ in ptys_get_active_port()
541 eth_proto = be32_to_cpu(ptys_reg->eth_proto_cap); in ptys_get_active_port()
543 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_T) in ptys_get_active_port()
549 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_SR) in ptys_get_active_port()
556 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_CR) in ptys_get_active_port()
562 if (eth_proto & (MLX4_PROT_MASK(MLX4_56GBASE_KR4) in ptys_get_active_port()
676 static u32 ptys2ethtool_link_modes(u32 eth_proto, enum ethtool_report report) in ptys2ethtool_link_modes() argument
682 if (eth_proto & MLX4_PROT_MASK(i)) in ptys2ethtool_link_modes()
718 u32 eth_proto; in ethtool_get_ptys_settings() local
747 eth_proto = be32_to_cpu(ptys_reg.eth_proto_cap); in ethtool_get_ptys_settings()
748 cmd->supported |= ptys2ethtool_link_modes(eth_proto, SUPPORTED); in ethtool_get_ptys_settings()
750 eth_proto = be32_to_cpu(ptys_reg.eth_proto_admin); in ethtool_get_ptys_settings()
751 cmd->advertising |= ptys2ethtool_link_modes(eth_proto, ADVERTISED); in ethtool_get_ptys_settings()
771 eth_proto = be32_to_cpu(ptys_reg.eth_proto_lp_adv); in ethtool_get_ptys_settings()
772 cmd->lp_advertising = ptys2ethtool_link_modes(eth_proto, ADVERTISED); in ethtool_get_ptys_settings()