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 */
134 * struct ice_ptp_port - data used to initialize an external port for PTP
136 * This structure contains data indicating whether a single external port is
137 * ready for PTP functionality. It is used to track the port initialization
138 * and determine when the port's PHY offset is valid.
141 * @tx: Tx timestamp tracking for this port
145 * @tx_fifo_busy_cnt: number of times the Tx FIFO was busy
146 * @port_num: the port number this structure represents
193 /* Per-channel register definitions */
207 * struct ice_ptp_pin_desc - hardware pin description data
212 * Structure describing a PTP-capable GPIO pin that extends ptp_pin_desc array
223 * struct ice_ptp - data used for integrating with CONFIG_PTP_1588_CLOCK
226 * @port: data for the PHY port initialization procedure
240 * @tx_hwtstamp_skipped: number of Tx time stamp requests skipped
241 * @tx_hwtstamp_timeouts: number of Tx skbs discarded with no time stamp
242 * @tx_hwtstamp_flushed: number of Tx skbs flushed due to interface closed
243 * @tx_hwtstamp_discarded: number of Tx skbs discarded due to cached PHC time
245 * @late_cached_phc_updates: number of times cached PHC update is late
250 struct ice_ptp_port port; member
272 container_of((p), struct ice_ptp, port)
323 return -EOPNOTSUPP; in ice_ptp_hwtstamp_get()
330 return -EOPNOTSUPP; in ice_ptp_hwtstamp_set()
338 return -1; in ice_ptp_request_ts()
386 return -1; in ice_ptp_clock_index()