Lines Matching refs:ethpause
635 struct ethtool_pauseparam ethpause = { in mlx5_dev_get_flow_ctrl() local
640 ifr.ifr_data = (void *)ðpause; in mlx5_dev_get_flow_ctrl()
649 fc_conf->autoneg = ethpause.autoneg; in mlx5_dev_get_flow_ctrl()
650 if (ethpause.rx_pause && ethpause.tx_pause) in mlx5_dev_get_flow_ctrl()
652 else if (ethpause.rx_pause) in mlx5_dev_get_flow_ctrl()
654 else if (ethpause.tx_pause) in mlx5_dev_get_flow_ctrl()
676 struct ethtool_pauseparam ethpause = { in mlx5_dev_set_flow_ctrl() local
681 ifr.ifr_data = (void *)ðpause; in mlx5_dev_set_flow_ctrl()
682 ethpause.autoneg = fc_conf->autoneg; in mlx5_dev_set_flow_ctrl()
685 ethpause.rx_pause = 1; in mlx5_dev_set_flow_ctrl()
687 ethpause.rx_pause = 0; in mlx5_dev_set_flow_ctrl()
691 ethpause.tx_pause = 1; in mlx5_dev_set_flow_ctrl()
693 ethpause.tx_pause = 0; in mlx5_dev_set_flow_ctrl()