Lines Matching +full:twisted +full:- +full:pair

1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
26 * have the same layout for 32-bit and 64-bit userland.
38 * struct ethtool_cmd - DEPRECATED, link control and status
43 * interface supports autonegotiation or auto-detection.
44 * Read-only.
48 * auto-detection.
56 * @autoneg: Enable/disable autonegotiation and auto-detection;
60 * Read-only.
62 * obsoleted by &struct ethtool_coalesce. Read-only; deprecated.
64 * obsoleted by &struct ethtool_coalesce. Read-only; deprecated.
66 * @eth_tp_mdix: Ethernet twisted-pair MDI(-X) status; one of
68 * value will be %ETH_TP_MDI_INVALID. Read-only.
69 * @eth_tp_mdix_ctrl: Ethernet twisted pair MDI(-X) control; one of
70 * %ETH_TP_MDI_*. If MDI(-X) control is not implemented, reads
77 * Read-only.
86 * link modes. If it is enabled then they are read-only; if the link
98 * Users should assume that all fields not marked read-only are
128 ep->speed = (__u16)(speed & 0xFFFF); in ethtool_cmd_speed_set()
129 ep->speed_hi = (__u16)(speed >> 16); in ethtool_cmd_speed_set()
134 return (ep->speed_hi << 16) | ep->speed; in ethtool_cmd_speed()
156 * struct ethtool_drvinfo - general driver and device information
205 * struct ethtool_wolinfo - Wake-On-Lan configuration
207 * @supported: Bitmask of %WAKE_* flags for supported Wake-On-Lan modes.
208 * Read-only.
209 * @wolopts: Bitmask of %WAKE_* flags for enabled Wake-On-Lan modes.
274 * the PHY's RX & TX blocks are put into a low-power mode when there is no
275 * link detected (typically cable is un-plugged). For RX, only a minimal
276 * link-detection is available, and for TX the PHY wakes up to send link pulses
277 * to avoid any lock-ups in case the peer PHY may also be running in EDPD mode.
279 * Some PHYs may support configuration of the wake-up interval for TX pulses,
284 * The interval units for TX wake-up are in milliseconds, since this should
286 * - from 1 millisecond, which does not sound like much of a power-saver
287 * - to ~65 seconds which is quite a lot to wait for a link to come up when
307 * struct ethtool_regs - hardware register dump
309 * @version: Dump format version. This is driver-specific and may
329 * struct ethtool_eeprom - EEPROM dump
343 * the length of an on-board or module EEPROM, respectively. They
355 * struct ethtool_eee - Energy Efficient Ethernet information
385 * struct ethtool_modinfo - plugin module eeprom information
403 * struct ethtool_coalesce - coalescing parameters for IRQs and stats updates
423 * @stats_block_coalesce_usecs: How many usecs to delay in-memory
425 * in-memory statistic block, and in such cases this value is
450 * Each pair of (usecs, max_frames) fields specifies that interrupts
502 * struct ethtool_ringparam - RX/TX ring parameters
505 * RX ring. Read-only.
507 * per RX mini ring. Read-only.
509 * per RX jumbo ring. Read-only.
511 * TX ring. Read-only.
523 * There may also be driver-dependent minimum values for the number
539 * struct ethtool_channels - configuring number of network channel
567 * struct ethtool_pauseparam - Ethernet pause (flow control) parameters
573 * Drivers should reject a non-zero setting of @autoneg when
583 * If @autoneg is non-zero, the MAC is configured to send and/or
662 * enum ethtool_stringset - string set ID
663 * @ETH_SS_TEST: Self-test result names, for use with %ETHTOOL_TEST
676 * @ETH_SS_WOL_MODES: wake-on-lan modes
717 * enum ethtool_module_power_mode_policy - plug-in module power mode policy
730 * enum ethtool_module_power_mode - plug-in module power mode
740 * enum ethtool_podl_pse_admin_state - operational state of the PoDL PSE
741 * functions. IEEE 802.3-2018 30.15.1.1.2 aPoDLPSEAdminState
754 * enum ethtool_podl_pse_pw_d_status - power detection status of the PoDL PSE.
755 * IEEE 802.3-2018 30.15.1.1.3 aPoDLPSEPowerDetectionStatus:
785 * struct ethtool_gstrings - string set for data tagging
789 * @data: Buffer for strings. Each string is null-padded to a size of
804 * struct ethtool_sset_info - string set information
829 * enum ethtool_test_flags - flags definition of ethtool_test
846 * struct ethtool_test - device self-test invocation
869 * struct ethtool_stats - device-specific statistics
886 * struct ethtool_perm_addr - permanent hardware address
902 /* boolean flags controlling per-interface behavior characteristics.
907 * Some behaviors may read-only (unconditionally absent or present).
908 * If such is the case, return EINVAL in the set-flags operation if the
909 * flag differs from the read-only value.
915 ETH_FLAG_NTUPLE = (1 << 27), /* N-tuple filters enabled */
920 * classification and RX n-tuple configuration. Note, all multibyte
926 * struct ethtool_tcpip4_spec - flow specification for TCP/IPv4 etc.
931 * @tos: Type-of-service
944 * struct ethtool_ah_espip4_spec - flow specification for IPsec/IPv4
948 * @tos: Type-of-service
962 * struct ethtool_usrip4_spec - general flow specification for IPv4
966 * @tos: Type-of-service
980 * struct ethtool_tcpip6_spec - flow specification for TCP/IPv6 etc.
998 * struct ethtool_ah_espip6_spec - flow specification for IPsec/IPv6
1014 * struct ethtool_usrip6_spec - general flow specification for IPv6
1047 * struct ethtool_flow_ext - additional RX flow fields
1067 * struct ethtool_rx_flow_spec - classification rule for RX flows
1078 * packets should be used for Wake-on-LAN with %WAKE_FILTER
1119 * struct ethtool_rxnfc - command to get or set RX flow classification rules
1120 * @cmd: Specific command number - %ETHTOOL_GRXFH, %ETHTOOL_SRXFH,
1124 * @data: Command-dependent value
1140 * rules on return. If @data is non-zero on return then it is the
1176 * defined in future and drivers must return -%EINVAL for any
1193 * struct ethtool_rxfh_indir - command to get or set RX flow hash indirection
1194 * @cmd: Specific command number - %ETHTOOL_GRXFHINDIR or %ETHTOOL_SRXFHINDIR
1212 * struct ethtool_rxfh - command to get/set RX flow hash indir or/and hash key.
1213 * @cmd: Specific command number - %ETHTOOL_GRSSH or %ETHTOOL_SRSSH
1255 * struct ethtool_rx_ntuple_flow_spec - specification for RX flow filter
1261 * @data: Driver-dependent data to match
1262 * @data_mask: Mask for driver-dependent data bits to be ignored
1263 * @action: RX ring/queue index to deliver to (non-negative) or other action
1289 #define ETHTOOL_RXNTUPLE_ACTION_DROP (-1) /* drop packet */
1290 #define ETHTOOL_RXNTUPLE_ACTION_CLEAR (-2) /* clear filter */
1294 * struct ethtool_rx_ntuple - command to set or clear RX flow filter
1295 * @cmd: Command number - %ETHTOOL_SRXNTUPLE
1316 * struct ethtool_dump - used for retrieving, setting device dump
1317 * @cmd: Command number - %ETHTOOL_GET_DUMP_FLAG, %ETHTOOL_GET_DUMP_DATA, or
1342 * struct ethtool_get_features_block - block with state of 32 features
1356 * struct ethtool_gfeatures - command to get state of device's features
1370 * struct ethtool_set_features_block - block with request for 32 features
1380 * struct ethtool_sfeatures - command to request change in device's features
1392 * struct ethtool_ts_info - holds a device's timestamping and PHC association
1395 * @phc_index: device index of the associated PHC, or -1 if there is none
1426 * Returns %EINVAL when .valid contains undefined or never-changeable bits
1427 * or size is not equal to required number of features words (32-bit blocks).
1429 * %ETHTOOL_F_UNSUPPORTED - there were bits set in .valid that are not
1432 * %ETHTOOL_F_WISH - some or all changes requested were recorded but the
1434 * Probably there are other device-specific constraints on some features
1437 * %ETHTOOL_F_COMPAT - some or all changes requested were made by calling
1442 * bits in the arrays - always multiple of 32) and %ETHTOOL_GSTRINGS commands
1459 * struct ethtool_per_queue_op - apply sub command to the queues in mask.
1473 * struct ethtool_fecparam - Ethernet Forward Error Correction parameters
1510 * enum ethtool_fec_config_bits - flags definition of ethtool_fec_configuration
1517 * @ETHTOOL_FEC_RS_BIT: Reed-Solomon FEC Mode
1518 * @ETHTOOL_FEC_BASER_BIT: Base-R/Reed-Solomon FEC Mode
1547 #define ETHTOOL_GWOL 0x00000005 /* Get wake-on-lan options. */
1548 #define ETHTOOL_SWOL 0x00000006 /* Set wake-on-lan options. */
1567 #define ETHTOOL_GSG 0x00000018 /* Get scatter-gather enable
1569 #define ETHTOOL_SSG 0x00000019 /* Set scatter-gather enable
1571 #define ETHTOOL_TEST 0x0000001a /* execute NIC self-test. */
1574 #define ETHTOOL_GSTATS 0x0000001d /* get NIC-specific statistics */
1584 #define ETHTOOL_GPFLAGS 0x00000027 /* Get driver-private flags bitmap */
1585 #define ETHTOOL_SPFLAGS 0x00000028 /* Set driver-private flags bitmap */
1599 #define ETHTOOL_SRXNTUPLE 0x00000035 /* Add an n-tuple filter to device */
1613 #define ETHTOOL_GMODULEINFO 0x00000042 /* Get plug-in module information */
1614 #define ETHTOOL_GMODULEEEPROM 0x00000043 /* Get plug-in module eeprom */
1622 #define ETHTOOL_GPHYSTATS 0x0000004a /* get PHY-specific statistics */
1852 #define SPEED_UNKNOWN -1
1899 /* The MAC is programmed with a sufficiently-large IPG. */
1923 /* MDI or MDI-X status/control - if MDI/MDI_X/AUTO is set then
1928 #define ETH_TP_MDI_X 0x02 /* status: MDI-X; control: force MDI-X */
1929 #define ETH_TP_MDI_AUTO 0x03 /* control: auto-select */
1931 /* Wake-On-Lan options. */
1943 /* L2-L4 network traffic flow types */
1968 /* L3-L4 network traffic flow hash options */
2033 * struct ethtool_link_settings - link control and status
2036 * user-space tools, please first try %ETHTOOL_GLINKSETTINGS, and
2052 * @autoneg: Enable/disable autonegotiation and auto-detection;
2056 * Read-only.
2057 * @eth_tp_mdix: Ethernet twisted-pair MDI(-X) status; one of
2059 * value will be %ETH_TP_MDI_INVALID. Read-only.
2060 * @eth_tp_mdix_ctrl: Ethernet twisted pair MDI(-X) control; one of
2061 * %ETH_TP_MDI_*. If MDI(-X) control is not implemented, reads
2065 * @link_mode_masks_nwords: Number of 32-bit words for each of the
2082 * supports autonegotiation or auto-detection. Read-only.
2086 * autonegotiation or enabled for auto-detection.
2090 * autonegotiation; 0 if unknown or not applicable. Read-only.
2092 * reported consistently by PHYLIB. Read-only.
2101 * link modes. If it is enabled then they are read-only; if the link
2116 * fail if any of them is set to non-zero value.
2118 * Users should assume that all fields not marked read-only are
2130 * and @link_mode_masks_nwords that are not described as read-only or
2131 * deprecated, and must ignore all fields described as read-only.