Lines Matching refs:ethpause
665 struct ethtool_pauseparam ethpause = { in mlx5_dev_get_flow_ctrl() local
670 ifr.ifr_data = (void *)ðpause; in mlx5_dev_get_flow_ctrl()
679 fc_conf->autoneg = ethpause.autoneg; in mlx5_dev_get_flow_ctrl()
680 if (ethpause.rx_pause && ethpause.tx_pause) in mlx5_dev_get_flow_ctrl()
682 else if (ethpause.rx_pause) in mlx5_dev_get_flow_ctrl()
684 else if (ethpause.tx_pause) in mlx5_dev_get_flow_ctrl()
706 struct ethtool_pauseparam ethpause = { in mlx5_dev_set_flow_ctrl() local
711 ifr.ifr_data = (void *)ðpause; in mlx5_dev_set_flow_ctrl()
712 ethpause.autoneg = fc_conf->autoneg; in mlx5_dev_set_flow_ctrl()
715 ethpause.rx_pause = 1; in mlx5_dev_set_flow_ctrl()
717 ethpause.rx_pause = 0; in mlx5_dev_set_flow_ctrl()
721 ethpause.tx_pause = 1; in mlx5_dev_set_flow_ctrl()
723 ethpause.tx_pause = 0; in mlx5_dev_set_flow_ctrl()