Lines Matching +full:port +full:- +full:number

1 /* SPDX-License-Identifier: GPL-2.0 */
18 * re-use of an index for multiple packets.
21 * that an index is not re-used for multiple transmitted packets. The
26 * the blocks are split up so that indexes are assigned to each port based on
27 * hardware logical port number.
29 * The timestamp blocks are handled differently for E810- and E822-based
30 * devices. In E810 devices, each port has its own block of timestamps, while in
32 * chunks based on the port number to avoid collisions.
34 * Example for port 5 in E810:
35 * +--------+--------+--------+--------+--------+--------+--------+--------+
39 * | port 0 | port 1 | port 2 | port 3 | port 4 | port 5 | port 6 | port 7 |
40 * +--------+--------+--------+--------+--------+--------+--------+--------+
43 * |--- quad offset is always 0
44 * ---- quad number
46 * Example for port 5 in E822:
47 * +-----------------------------+-----------------------------+
49 * |+------+------+------+------+|+------+------+------+------+|
50 * ||port 0|port 1|port 2|port 3|||port 0|port 1|port 2|port 3||
51 * |+------+------+------+------+|+------+------+------+------+|
52 * +-----------------------------+-------^---------------------+
54 * | --- quad offset*
55 * ---- quad number
57 * * PHY port 5 is port 1 in quad 1
62 * struct ice_tx_tstamp - Tracking for a single Tx timestamp
88 * enum ice_tx_tstamp_work - Status of Tx timestamp work function
98 * struct ice_ptp_tx - Tracking structure for all Tx timestamp requests on a port
103 * @block: which memory block (quad or port) the timestamps are captured in
128 /* Quad and port information for initializing timestamp blocks */
135 * struct ice_ptp_port - data used to initialize an external port for PTP
137 * This structure contains data indicating whether a single external port is
138 * ready for PTP functionality. It is used to track the port initialization
139 * and determine when the port's PHY offset is valid.
142 * @tx: Tx timestamp tracking for this port
146 * @tx_fifo_busy_cnt: number of times the Tx FIFO was busy
147 * @port_num: the port number this structure represents
194 /* Per-channel register definitions */
211 * struct ice_ptp_pin_desc - hardware pin description data
216 * Structure describing a PTP-capable GPIO pin that extends ptp_pin_desc array
227 * struct ice_ptp - data used for integrating with CONFIG_PTP_1588_CLOCK
230 * @port: data for the PHY port initialization procedure
244 * @tx_hwtstamp_skipped: number of Tx time stamp requests skipped
245 * @tx_hwtstamp_timeouts: number of Tx skbs discarded with no time stamp
246 * @tx_hwtstamp_flushed: number of Tx skbs flushed due to interface closed
247 * @tx_hwtstamp_discarded: number of Tx skbs discarded due to cached PHC time
249 * @late_cached_phc_updates: number of times cached PHC update is late
254 struct ice_ptp_port port; member
276 container_of((p), struct ice_ptp, port)
319 return -EOPNOTSUPP; in ice_ptp_set_ts_config()
324 return -EOPNOTSUPP; in ice_ptp_get_ts_config()
332 return -1; in ice_ptp_request_ts()
369 return -1; in ice_ptp_clock_index()