Lines Matching full:channels

691 			      struct ethtool_channels *channels)  in xgbe_get_channels()  argument
710 channels->max_combined = combined; in xgbe_get_channels()
711 channels->max_rx = rx ? rx - 1 : 0; in xgbe_get_channels()
712 channels->max_tx = tx ? tx - 1 : 0; in xgbe_get_channels()
722 channels->combined_count = combined; in xgbe_get_channels()
723 channels->rx_count = rx; in xgbe_get_channels()
724 channels->tx_count = tx; in xgbe_get_channels()
728 struct ethtool_channels *channels) in xgbe_print_set_channels_input() argument
731 channels->combined_count, channels->rx_count, in xgbe_print_set_channels_input()
732 channels->tx_count); in xgbe_print_set_channels_input()
736 struct ethtool_channels *channels) in xgbe_set_channels() argument
756 if (channels->other_count) { in xgbe_set_channels()
763 if (!channels->combined_count) { in xgbe_set_channels()
766 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()
770 /* Check combined channels */ in xgbe_set_channels()
771 if (channels->combined_count > combined) { in xgbe_set_channels()
775 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()
779 /* Can have some Rx-only or Tx-only channels, but not both */ in xgbe_set_channels()
780 if (channels->rx_count && channels->tx_count) { in xgbe_set_channels()
782 "cannot specify both Rx-only and Tx-only channels\n"); in xgbe_set_channels()
783 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()
787 /* Check that we don't exceed the maximum number of channels */ in xgbe_set_channels()
788 if ((channels->combined_count + channels->rx_count) > rx) { in xgbe_set_channels()
790 "total Rx channels (%u) requested exceeds maximum available (%u)\n", in xgbe_set_channels()
791 channels->combined_count + channels->rx_count, rx); in xgbe_set_channels()
792 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()
796 if ((channels->combined_count + channels->tx_count) > tx) { in xgbe_set_channels()
798 "total Tx channels (%u) requested exceeds maximum available (%u)\n", in xgbe_set_channels()
799 channels->combined_count + channels->tx_count, tx); in xgbe_set_channels()
800 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()
804 rx = channels->combined_count + channels->rx_count; in xgbe_set_channels()
805 tx = channels->combined_count + channels->tx_count; in xgbe_set_channels()