Lines Matching refs:ecmd
107 struct ethtool_cmd *ecmd) in enic_get_settings() argument
111 ecmd->supported = (SUPPORTED_10000baseT_Full | SUPPORTED_FIBRE); in enic_get_settings()
112 ecmd->advertising = (ADVERTISED_10000baseT_Full | ADVERTISED_FIBRE); in enic_get_settings()
113 ecmd->port = PORT_FIBRE; in enic_get_settings()
114 ecmd->transceiver = XCVR_EXTERNAL; in enic_get_settings()
117 ethtool_cmd_speed_set(ecmd, vnic_dev_port_speed(enic->vdev)); in enic_get_settings()
118 ecmd->duplex = DUPLEX_FULL; in enic_get_settings()
120 ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN); in enic_get_settings()
121 ecmd->duplex = DUPLEX_UNKNOWN; in enic_get_settings()
124 ecmd->autoneg = AUTONEG_DISABLE; in enic_get_settings()
222 struct ethtool_coalesce *ecmd) in enic_get_coalesce() argument
228 ecmd->tx_coalesce_usecs = enic->tx_coalesce_usecs; in enic_get_coalesce()
229 ecmd->rx_coalesce_usecs = enic->rx_coalesce_usecs; in enic_get_coalesce()
231 ecmd->use_adaptive_rx_coalesce = 1; in enic_get_coalesce()
232 ecmd->rx_coalesce_usecs_low = rxcoal->small_pkt_range_start; in enic_get_coalesce()
233 ecmd->rx_coalesce_usecs_high = rxcoal->range_end; in enic_get_coalesce()
286 struct ethtool_coalesce *ecmd) in enic_set_coalesce() argument
298 ret = enic_coalesce_valid(enic, ecmd); in enic_set_coalesce()
302 tx_coalesce_usecs = min_t(u32, ecmd->tx_coalesce_usecs, in enic_set_coalesce()
304 rx_coalesce_usecs = min_t(u32, ecmd->rx_coalesce_usecs, in enic_set_coalesce()
307 rx_coalesce_usecs_low = min_t(u32, ecmd->rx_coalesce_usecs_low, in enic_set_coalesce()
309 rx_coalesce_usecs_high = min_t(u32, ecmd->rx_coalesce_usecs_high, in enic_set_coalesce()
320 rxcoal->use_adaptive_rx_coalesce = !!ecmd->use_adaptive_rx_coalesce; in enic_set_coalesce()
323 if (ecmd->rx_coalesce_usecs_high) { in enic_set_coalesce()