| /Linux-v5.15/fs/ext4/ |
| D | inode-test.c | 14 * For constructing the nonnegative timestamp lower bound value. 19 * For constructing the nonnegative timestamp upper bound value. 25 * For constructing the negative timestamp lower bound value. 30 * For constructing the negative timestamp upper bound value. 43 "1901-12-13 Lower bound of 32bit < 0 timestamp, no extra bits" 45 "1969-12-31 Upper bound of 32bit < 0 timestamp, no extra bits" 47 "1970-01-01 Lower bound of 32bit >=0 timestamp, no extra bits" 49 "2038-01-19 Upper bound of 32bit >=0 timestamp, no extra bits" 51 "2038-01-19 Lower bound of 32bit <0 timestamp, lo extra sec bit on" 53 "2106-02-07 Upper bound of 32bit <0 timestamp, lo extra sec bit on" [all …]
|
| /Linux-v5.15/tools/perf/util/ |
| D | ordered-events.c | 21 u64 timestamp = new->timestamp; in queue_event() local 27 pr_oe_time2(timestamp, "queue_event nr_events %u\n", oe->nr_events); in queue_event() 31 oe->max_timestamp = timestamp; in queue_event() 40 if (last->timestamp <= timestamp) { in queue_event() 41 while (last->timestamp <= timestamp) { in queue_event() 45 oe->max_timestamp = timestamp; in queue_event() 52 while (last->timestamp > timestamp) { in queue_event() 172 ordered_events__new_event(struct ordered_events *oe, u64 timestamp, in ordered_events__new_event() argument 179 new->timestamp = timestamp; in ordered_events__new_event() 195 u64 timestamp, u64 file_offset) in ordered_events__queue() argument [all …]
|
| D | arm-spe.c | 89 u64 timestamp; member 237 sample->time = tsc_to_perf_time(record->timestamp, &spe->tc); in arm_spe_prep_sample() 434 static int arm_spe_run_decoder(struct arm_spe_queue *speq, u64 *timestamp) in arm_spe_run_decoder() argument 456 * timestamp with the coming perf event, if the record timestamp in arm_spe_run_decoder() 482 /* Update timestamp for the last record */ in arm_spe_run_decoder() 483 if (record->timestamp > speq->timestamp) in arm_spe_run_decoder() 484 speq->timestamp = record->timestamp; in arm_spe_run_decoder() 487 * If the timestamp of the queue is later than timestamp of the in arm_spe_run_decoder() 491 if (!spe->timeless_decoding && speq->timestamp >= *timestamp) { in arm_spe_run_decoder() 492 *timestamp = speq->timestamp; in arm_spe_run_decoder() [all …]
|
| /Linux-v5.15/Documentation/networking/ |
| D | timestamping.rst | 14 Generates a timestamp for each incoming packet in (not necessarily 15 monotonic) system time. Reports the timestamp via recvmsg() in a 25 timestamp as struct timespec in nsec resolution. 33 Only for multicast:approximate transmit timestamp obtained by 34 reading the looped packet receive timestamp. 38 multiple timestamp sources, including hardware. Supports generating 48 same is true for all early receive timestamp options. 52 Always use SO_TIMESTAMP_NEW timestamp to always get timestamp in 65 Always use SO_TIMESTAMPNS_NEW timestamp to always get timestamp in 74 Supports multiple types of timestamp requests. As a result, this [all …]
|
| /Linux-v5.15/drivers/iio/imu/inv_mpu6050/ |
| D | inv_mpu_ring.c | 22 * @timestamp: the interrupt timestamp 26 * to choose the data timestamp to come. 29 s64 timestamp, size_t nb) in inv_mpu6050_update_period() argument 31 /* Period boundaries for accepting timestamp */ in inv_mpu6050_update_period() 45 * Validate the use of it timestamp by checking if interrupt in inv_mpu6050_update_period() 51 delta = div_s64(timestamp - st->it_timestamp, divider); in inv_mpu6050_update_period() 53 /* update chip period and use it timestamp */ in inv_mpu6050_update_period() 62 * compute timestamp corresponding to the first sample using in inv_mpu6050_update_period() 66 st->data_timestamp = timestamp - interval; in inv_mpu6050_update_period() 69 /* save it timestamp */ in inv_mpu6050_update_period() [all …]
|
| /Linux-v5.15/drivers/net/can/spi/mcp251xfd/ |
| D | mcp251xfd-timestamp.c | 17 u32 timestamp = 0; in mcp251xfd_timestamp_read() local 21 err = mcp251xfd_get_timestamp(priv, ×tamp); in mcp251xfd_timestamp_read() 24 "Error %d while reading timestamp. HW timestamps may be inaccurate.", in mcp251xfd_timestamp_read() 27 return timestamp; in mcp251xfd_timestamp_read() 35 priv = container_of(delayed_work, struct mcp251xfd_priv, timestamp); in mcp251xfd_timestamp_work() 38 schedule_delayed_work(&priv->timestamp, in mcp251xfd_timestamp_work() 43 struct sk_buff *skb, u32 timestamp) in mcp251xfd_skb_set_timestamp() argument 48 ns = timecounter_cyc2time(&priv->tc, timestamp); in mcp251xfd_skb_set_timestamp() 63 INIT_DELAYED_WORK(&priv->timestamp, mcp251xfd_timestamp_work); in mcp251xfd_timestamp_init() 64 schedule_delayed_work(&priv->timestamp, in mcp251xfd_timestamp_init() [all …]
|
| /Linux-v5.15/include/linux/platform_data/ |
| D | cros_ec_sensorhub.h | 32 * @timestamp: Timestamp in host timespace when the sample was acquired by 37 s64 timestamp); 54 s64 timestamp; member 67 * struct cros_ec_sensors_ts_filter_state - Timestamp filetr state. 78 * @median_error: final error to apply to AP interrupt timestamp to get the 79 * "true timestamp" the event occurred. 98 * @penul_ts: last but one batch timestamp (penultimate timestamp). 99 * Used for timestamp spreading calculations 104 * @newest_sensor_event: Last sensor timestamp. 126 * @fifo_timestamp: Array for event timestamp and spreading. [all …]
|
| /Linux-v5.15/tools/perf/util/intel-pt-decoder/ |
| D | intel-pt-decoder.c | 152 uint64_t timestamp; member 353 * A TSC packet can slip past MTC packets so that the timestamp appears in intel_pt_decoder_new() 360 intel_pt_log("timestamp: mtc_shift %u\n", decoder->mtc_shift); in intel_pt_decoder_new() 361 intel_pt_log("timestamp: tsc_ctc_ratio_n %u\n", decoder->tsc_ctc_ratio_n); in intel_pt_decoder_new() 362 intel_pt_log("timestamp: tsc_ctc_ratio_d %u\n", decoder->tsc_ctc_ratio_d); in intel_pt_decoder_new() 363 intel_pt_log("timestamp: tsc_ctc_mult %u\n", decoder->tsc_ctc_mult); in intel_pt_decoder_new() 364 intel_pt_log("timestamp: tsc_slip %#x\n", decoder->tsc_slip); in intel_pt_decoder_new() 609 decoder->sample_timestamp = decoder->timestamp; in intel_pt_update_sample_time() 617 decoder->timestamp = 0; in intel_pt_reposition() 644 intel_pt_log("Reference timestamp 0x%" PRIx64 "\n", in intel_pt_get_data() [all …]
|
| /Linux-v5.15/drivers/net/phy/ |
| D | dp83640_reg.h | 20 #define PTP_TXTS 0x001c /* PTP Transmit Timestamp Register, in four 16-bit reads */ 21 #define PTP_RXTS 0x001d /* PTP Receive Timestamp Register, in six? 16-bit reads */ 71 #define TXTS_RDY (1<<11) /* Transmit Timestamp Ready */ 72 #define RXTS_RDY (1<<10) /* Receive Timestamp Ready */ 74 #define EVENT_RDY (1<<8) /* PTP Event Timestamp Ready */ 75 #define TXTS_IE (1<<3) /* Transmit Timestamp Interrupt Enable */ 76 #define RXTS_IE (1<<2) /* Receive Timestamp Interrupt Enable */ 107 #define EVNT_TS_LEN_SHIFT (6) /* Indicates length of the Timestamp field in 16-bit word… 110 #define EVNT_NUM_SHIFT (2) /* Indicates Event Timestamp Unit which detected an event… 156 #define SYNC_1STEP (1<<15) /* insert timestamp into transmit Sync Messages */ [all …]
|
| /Linux-v5.15/drivers/platform/chrome/ |
| D | cros_ec_sensorhub_ring.c | 57 return cb(indio_dev, sample->vector, sample->timestamp); in cros_sensorhub_send_sample() 165 * IRQ Timestamp Filtering 168 * we have to calculate it's timestamp in the AP timebase. There are 3 time 217 * @b: IRQ timestamp, EC timebase (us) 218 * @c: IRQ timestamp, AP timebase (ns) 220 * Given a new IRQ timestamp pair (EC and AP timebases), add it to the filter 300 * cros_ec_sensor_ring_ts_filter() - Translate EC timebase timestamp to AP 304 * @x: any ec timestamp (us): 306 * cros_ec_sensor_ring_ts_filter(a) => a' event timestamp, AP timebase 307 * cros_ec_sensor_ring_ts_filter(b) => calculated timestamp when the EC IRQ [all …]
|
| /Linux-v5.15/drivers/iio/imu/inv_icm42600/ |
| D | inv_icm42600_timestamp.h | 36 * struct inv_icm42600_timestamp - timestamp management states 38 * @timestamp: store last timestamp for computing next data timestamp 46 int64_t timestamp; member 63 size_t sensor_nb, int64_t timestamp); 68 ts->timestamp += ts->period; in inv_icm42600_timestamp_pop() 69 return ts->timestamp; in inv_icm42600_timestamp_pop() 82 ts->timestamp = 0; in inv_icm42600_timestamp_reset()
|
| D | inv_icm42600_timestamp.c | 63 /* enable timestamp register */ in inv_icm42600_timestamp_setup() 113 size_t sensor_nb, int64_t timestamp) in inv_icm42600_timestamp_interrupt() argument 125 /* update interrupt timestamp and compute chip and sensor periods */ in inv_icm42600_timestamp_interrupt() 128 it->up = timestamp; in inv_icm42600_timestamp_interrupt() 140 if (ts->timestamp == 0) { in inv_icm42600_timestamp_interrupt() 143 ts->timestamp = it->up - interval; in inv_icm42600_timestamp_interrupt() 147 /* if interrupt interval is valid, sync with interrupt timestamp */ in inv_icm42600_timestamp_interrupt() 152 delta = it->lo - ts->timestamp; in inv_icm42600_timestamp_interrupt() 162 ts->timestamp += delta; in inv_icm42600_timestamp_interrupt() 184 * timestamp from the current interrupt using the new FIFO period, the in inv_icm42600_timestamp_apply_odr() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/stmicro/stmmac/ |
| D | stmmac_ptp.h | 19 #define PTP_TCR 0x00 /* Timestamp Control Reg */ 25 #define PTP_TAR 0x18 /* Timestamp Addend Reg */ 27 #define PTP_ATNR 0x48 /* Auxiliary Timestamp - Nanoseconds Reg */ 28 #define PTP_ATSR 0x4c /* Auxiliary Timestamp - Seconds Reg */ 34 /* PTP Timestamp control register defines */ 35 #define PTP_TCR_TSENA BIT(0) /* Timestamp Enable */ 36 #define PTP_TCR_TSCFUPDT BIT(1) /* Timestamp Fine/Coarse Update */ 37 #define PTP_TCR_TSINIT BIT(2) /* Timestamp Initialize */ 38 #define PTP_TCR_TSUPDT BIT(3) /* Timestamp Update */ 39 #define PTP_TCR_TSTRIG BIT(4) /* Timestamp Interrupt Trigger Enable */ [all …]
|
| /Linux-v5.15/arch/alpha/kernel/ |
| D | err_common.c | 91 union el_timestamp timestamp; in el_process_header_subpacket() local 109 timestamp.as_int = 0; in el_process_header_subpacket() 116 timestamp = header->by_type.sys_event.timestamp; in el_process_header_subpacket() 123 timestamp = header->by_type.err_halt.timestamp; in el_process_header_subpacket() 129 timestamp.as_int = 0; in el_process_header_subpacket() 143 el_print_timestamp(×tamp); in el_process_header_subpacket() 169 el_print_timestamp(union el_timestamp *timestamp) in el_print_timestamp() argument 171 if (timestamp->as_int) in el_print_timestamp() 172 printk("%s TIMESTAMP: %d/%d/%02d %d:%02d:%0d\n", in el_print_timestamp() 174 timestamp->b.month, timestamp->b.day, in el_print_timestamp() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/intel/ice/ |
| D | ice_ptp.c | 24 /* Set the timestamp enable flag for all the Tx rings */ in ice_set_tx_tstamp() 31 /* Configure the Tx timestamp interrupt */ in ice_set_tx_tstamp() 54 /* Set the timestamp flag for all the Rx rings */ in ice_set_rx_tstamp() 63 * ice_ptp_cfg_timestamp - Configure timestamp for init/deinit 223 /* Read the system timestamp pre PHC read */ in ice_ptp_read_src_clk_reg() 228 /* Read the system timestamp post PHC read */ in ice_ptp_read_src_clk_reg() 288 * ice_ptp_extend_32b_ts - Convert a 32b nanoseconds timestamp to 64b 290 * @in_tstamp: Ingress/egress 32b nanoseconds timestamp value 294 * Note that the captured timestamp values may be 40 bits, but the lower 297 * Extend the 32bit nanosecond timestamp using the following algorithm and [all …]
|
| D | ice_ptp.h | 27 /* The ice hardware captures Tx hardware timestamps in the PHY. The timestamp 35 * To handle this, timestamp indexes must be tracked by software to ensure 46 * struct ice_tx_tstamp - Tracking for a single Tx timestamp 47 * @skb: pointer to the SKB for this timestamp request 48 * @start: jiffies when the timestamp was first requested 50 * This structure tracks a single timestamp request. The SKB pointer is 61 * struct ice_ptp_tx - Tracking structure for all Tx timestamp requests on a port 67 * @quad_offset: offset into timestamp block of the quad to get the real index 82 /* Quad and port information for initializing timestamp blocks */ 94 * @tx: Tx timestamp tracking for this port [all …]
|
| D | ice_ptp_hw.c | 120 * ice_read_phy_tstamp_e810 - Read a PHY timestamp out of the external PHY 123 * @idx: the timestamp index to read 124 * @tstamp: on return, the 40bit timestamp value 126 * Read a 40bit timestamp value out of the timestamp block of the external PHY 140 ice_debug(hw, ICE_DBG_PTP, "Failed to read low PTP timestamp register, status %d\n", in ice_read_phy_tstamp_e810() 147 ice_debug(hw, ICE_DBG_PTP, "Failed to read high PTP timestamp register, status %d\n", in ice_read_phy_tstamp_e810() 152 /* For E810 devices, the timestamp is reported with the lower 32 bits in ice_read_phy_tstamp_e810() 161 * ice_clear_phy_tstamp_e810 - Clear a timestamp from the external PHY 164 * @idx: the timestamp index to reset 166 * Clear a timestamp, resetting its valid bit, from the timestamp block of the [all …]
|
| /Linux-v5.15/include/trace/events/ |
| D | power_cpu_migrate.h | 11 TP_PROTO(u64 timestamp, \ 14 TP_ARGS(timestamp, \ 23 __field(u64, timestamp ) 28 __entry->timestamp = timestamp; 32 TP_printk("timestamp=%llu cpu_hwid=0x%08lX", 33 (unsigned long long)__entry->timestamp,
|
| /Linux-v5.15/include/linux/iio/ |
| D | buffer.h | 17 * iio_push_to_buffers_with_timestamp() - push data and timestamp to buffers 20 * @timestamp: timestamp for the sample data 23 * device the function will store the supplied timestamp as the last element in 25 * data buffer needs to be large enough to hold the additional timestamp 31 void *data, int64_t timestamp) in iio_push_to_buffers_with_timestamp() argument 35 ((int64_t *)data)[ts_offset] = timestamp; in iio_push_to_buffers_with_timestamp()
|
| /Linux-v5.15/drivers/net/ethernet/qlogic/qed/ |
| D | qed_ptp.c | 23 /* Param mask for Hardware to detect/timestamp the L2/L4 unicast PTP packets */ 102 /* Read Rx timestamp */ 103 static int qed_ptp_hw_read_rx_ts(struct qed_dev *cdev, u64 *timestamp) in qed_ptp_hw_read_rx_ts() argument 109 *timestamp = 0; in qed_ptp_hw_read_rx_ts() 112 DP_INFO(p_hwfn, "Invalid Rx timestamp, buf_seqid = %d\n", val); in qed_ptp_hw_read_rx_ts() 117 *timestamp = qed_rd(p_hwfn, p_ptt, NIG_REG_LLH_PTP_HOST_BUF_TS_MSB); in qed_ptp_hw_read_rx_ts() 118 *timestamp <<= 32; in qed_ptp_hw_read_rx_ts() 119 *timestamp |= val; in qed_ptp_hw_read_rx_ts() 121 /* Reset timestamp register to allow new timestamp */ in qed_ptp_hw_read_rx_ts() 128 /* Read Tx timestamp */ [all …]
|
| /Linux-v5.15/Documentation/sound/designs/ |
| D | timestamping.rst | 17 - tstamp is the current system timestamp updated during the last 75 audio_tstamp_config fields, thus get an estimate of the timestamp 85 timestamp will report the DMA time based on the hw_pointer value. 88 provide timestamp selection, with a zero-valued COMPAT timestamp type 92 The audio timestamp accuracy can be returned to user-space, so that 110 - including the delay in the audio timestamp may 127 The ALSA API only allows for a single audio timestamp to be reported 132 timestamp is reported. Applications that need different timestamps 136 In some hardware-specific configuration, the system timestamp is 142 timestamp shows when the information is put together by the driver [all …]
|
| /Linux-v5.15/include/linux/fsl/ |
| D | ptp_qoriq.h | 18 u32 tmr_tevent; /* Timestamp event register */ 20 u32 tmr_pevent; /* Timestamp event register */ 22 u32 tmr_stat; /* Timestamp status register */ 47 u32 tmr_etts1_h; /* Timestamp of general purpose external trigger */ 48 u32 tmr_etts1_l; /* Timestamp of general purpose external trigger */ 49 u32 tmr_etts2_h; /* Timestamp of general purpose external trigger */ 50 u32 tmr_etts2_l; /* Timestamp of general purpose external trigger */ 80 #define RTPE (1<<15) /* Record Tx Timestamp to PAL Enable. */ 95 #define ETS2 (1<<25) /* External trigger 2 timestamp sampled */ 96 #define ETS1 (1<<24) /* External trigger 1 timestamp sampled */ [all …]
|
| /Linux-v5.15/drivers/net/can/dev/ |
| D | rx-offload.c | 12 u32 timestamp; member 90 cb_pos->timestamp, cb_new->timestamp, in __skb_queue_add_sort() 91 cb_new->timestamp - cb_pos->timestamp, in __skb_queue_add_sort() 115 return cb_b->timestamp - cb_a->timestamp; in can_rx_offload_compare() 145 u32 timestamp; in can_rx_offload_offload_one() local 152 skb = offload->mailbox_read(offload, n, ×tamp, drop); in can_rx_offload_offload_one() 169 cb->timestamp = timestamp; in can_rx_offload_offload_one() 222 struct sk_buff *skb, u32 timestamp) in can_rx_offload_queue_sorted() argument 233 cb->timestamp = timestamp; in can_rx_offload_queue_sorted() 243 unsigned int idx, u32 timestamp, in can_rx_offload_get_echo_skb() argument [all …]
|
| /Linux-v5.15/drivers/isdn/mISDN/ |
| D | clock.c | 18 * enabled. If function call is delayed, tv must be set with the timestamp 41 static int iclock_timestamp_valid; /* already received one timestamp */ 134 mISDN_clock_update(struct mISDNclock *iclock, int samples, ktime_t *timestamp) in mISDN_clock_update() argument 153 if (timestamp) { /* timestamp must be set, if function call is delayed */ in mISDN_clock_update() 154 iclock_timestamp = *timestamp; in mISDN_clock_update() 160 if (timestamp) { /* timestamp must be set, if function call is delayed */ in mISDN_clock_update() 161 timestamp_now = *timestamp; in mISDN_clock_update() 167 /* add elapsed time to counter and set new timestamp */ in mISDN_clock_update()
|
| /Linux-v5.15/drivers/net/ethernet/qlogic/qede/ |
| D | qede_ptp.c | 139 u64 timestamp, ns; in qede_ptp_task() local 148 /* Read Tx timestamp registers */ in qede_ptp_task() 150 rc = ptp->ops->read_tx_ts(edev->cdev, ×tamp); in qede_ptp_task() 154 DP_INFO(edev, "Tx timestamp is not recorded\n"); in qede_ptp_task() 167 ns = timecounter_cyc2time(&ptp->tc, timestamp); in qede_ptp_task() 176 "Tx timestamp, timestamp cycles = %llu, ns = %llu\n", in qede_ptp_task() 177 timestamp, ns); in qede_ptp_task() 516 …"The device supports only a single outstanding packet to timestamp, this packet will not be timest… in qede_ptp_tx_ts() 521 /* schedule check for Tx timestamp */ in qede_ptp_tx_ts() 531 u64 timestamp, ns; in qede_ptp_rx_ts() local [all …]
|