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
227 ecmd->tx_coalesce_usecs = enic->tx_coalesce_usecs; in enic_get_coalesce()
228 ecmd->rx_coalesce_usecs = enic->rx_coalesce_usecs; in enic_get_coalesce()
230 ecmd->use_adaptive_rx_coalesce = 1; in enic_get_coalesce()
231 ecmd->rx_coalesce_usecs_low = rxcoal->small_pkt_range_start; in enic_get_coalesce()
232 ecmd->rx_coalesce_usecs_high = rxcoal->range_end; in enic_get_coalesce()
238 struct ethtool_coalesce *ecmd) in enic_set_coalesce() argument
250 tx_coalesce_usecs = min_t(u32, ecmd->tx_coalesce_usecs, in enic_set_coalesce()
252 rx_coalesce_usecs = min_t(u32, ecmd->rx_coalesce_usecs, in enic_set_coalesce()
255 rx_coalesce_usecs_low = min_t(u32, ecmd->rx_coalesce_usecs_low, in enic_set_coalesce()
257 rx_coalesce_usecs_high = min_t(u32, ecmd->rx_coalesce_usecs_high, in enic_set_coalesce()
264 if (ecmd->use_adaptive_rx_coalesce || in enic_set_coalesce()
265 ecmd->rx_coalesce_usecs_low || in enic_set_coalesce()
266 ecmd->rx_coalesce_usecs_high) in enic_set_coalesce()
276 if (ecmd->use_adaptive_rx_coalesce || in enic_set_coalesce()
277 ecmd->rx_coalesce_usecs_low || in enic_set_coalesce()
278 ecmd->rx_coalesce_usecs_high) in enic_set_coalesce()
285 if (ecmd->rx_coalesce_usecs_high && in enic_set_coalesce()
297 !!ecmd->use_adaptive_rx_coalesce; in enic_set_coalesce()
301 if (ecmd->rx_coalesce_usecs_high) { in enic_set_coalesce()