Home
last modified time | relevance | path

Searched full:timestamp (Results 1 – 25 of 1582) sorted by relevance

12345678910>>...64

/linux/fs/ext4/
H A Dinode-test.c14 * 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/Documentation/networking/
H A Dtimestamping.rst14 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/tools/perf/util/
H A Dordered-events.c21 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, const char *file_path) in ordered_events__queue() argument
[all …]
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ptp.h19 #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 */
29 #define PTP_TS_INGR_CORR_NS 0x58 /* Ingress timestamp correction nanoseconds */
30 #define PTP_TS_EGR_CORR_NS 0x5C /* Egress timestamp correction nanoseconds*/
31 #define PTP_TS_INGR_CORR_SNS 0x60 /* Ingress timestamp correction subnanoseconds */
32 #define PTP_TS_EGR_CORR_SNS 0x64 /* Egress timestamp correction subnanoseconds */
40 /* PTP Timestamp control register defines */
41 #define PTP_TCR_TSENA BIT(0) /* Timestamp Enable */
[all …]
/linux/include/linux/platform_data/
H A Dcros_ec_sensorhub.h32 * @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/drivers/net/phy/
H A Ddp83640_reg.h20 #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/drivers/platform/chrome/
H A Dcros_ec_sensorhub_ring.c58 return cb(indio_dev, sample->vector, sample->timestamp); in cros_sensorhub_send_sample()
194 * IRQ Timestamp Filtering
197 * we have to calculate it's timestamp in the AP timebase. There are 3 time
246 * @b: IRQ timestamp, EC timebase (us)
247 * @c: IRQ timestamp, AP timebase (ns)
249 * Given a new IRQ timestamp pair (EC and AP timebases), add it to the filter
329 * cros_ec_sensor_ring_ts_filter() - Translate EC timebase timestamp to AP
333 * @x: any ec timestamp (us):
335 * cros_ec_sensor_ring_ts_filter(a) => a' event timestamp, AP timebase
336 * cros_ec_sensor_ring_ts_filter(b) => calculated timestamp when the EC IRQ
[all …]
/linux/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-decoder.c155 uint64_t timestamp; member
362 * A TSC packet can slip past MTC packets so that the timestamp appears in intel_pt_decoder_new()
369 intel_pt_log("timestamp: mtc_shift %u\n", decoder->mtc_shift); in intel_pt_decoder_new()
370 intel_pt_log("timestamp: tsc_ctc_ratio_n %u\n", decoder->tsc_ctc_ratio_n); in intel_pt_decoder_new()
371 intel_pt_log("timestamp: tsc_ctc_ratio_d %u\n", decoder->tsc_ctc_ratio_d); in intel_pt_decoder_new()
372 intel_pt_log("timestamp: tsc_ctc_mult %u\n", decoder->tsc_ctc_mult); in intel_pt_decoder_new()
373 intel_pt_log("timestamp: tsc_slip %#x\n", decoder->tsc_slip); in intel_pt_decoder_new()
621 decoder->sample_timestamp = decoder->timestamp; in intel_pt_update_sample_time()
630 decoder->timestamp = 0; in intel_pt_reposition()
657 intel_pt_log("Reference timestamp in intel_pt_get_data()
780 uint64_t timestamp; global() member
811 uint64_t timestamp; intel_pt_calc_cyc_cb() local
1051 uint64_t timestamp, masked_timestamp; intel_pt_next_period() local
1089 uint64_t timestamp, masked_timestamp; intel_pt_sample_insn() local
1771 intel_pt_8b_tsc(uint64_t timestamp,uint64_t ref_timestamp) intel_pt_8b_tsc() argument
1788 intel_pt_time_in_range(struct intel_pt_decoder * decoder,uint64_t timestamp) intel_pt_time_in_range() argument
1802 uint64_t timestamp; intel_pt_calc_tsc_timestamp() local
1938 uint64_t timestamp; intel_pt_calc_mtc_timestamp() local
2009 uint64_t timestamp = decoder->cyc_ref_timestamp; intel_pt_calc_cyc_timestamp() local
4394 uint64_t timestamp; global() member
4449 intel_pt_fast_forward(struct intel_pt_decoder * decoder,uint64_t timestamp) intel_pt_fast_forward() argument
[all...]
/linux/Documentation/devicetree/bindings/timestamp/
H A Dhardware-timestamps-common.yaml4 $id: http://devicetree.org/schemas/timestamp/hardware-timestamps-common.yaml#
7 title: Hardware timestamp providers
13 Some devices/SoCs have hardware timestamp engines (HTE) which can use
14 hardware means to timestamp entity in realtime. The entity could be anything
15 from GPIOs, IRQs, Bus and so on. The hardware timestamp engine present
20 pattern: "^timestamp(@.*|-([0-9]|[1-9][0-9]+))?$"
22 "#timestamp-cells":
27 - "#timestamp-cells"
H A Dnvidia,tegra194-hte.yaml4 $id: http://devicetree.org/schemas/timestamp/nvidia,tegra194-hte.yaml#
16 timestamp (taken from system counter) in its internal hardware FIFO. It has
48 line/signal that it can enable/configure for the timestamp. It is u32
60 '#timestamp-cells':
72 - "#timestamp-cells"
123 tegra_hte_aon: timestamp@c1e0000 {
128 #timestamp-cells = <1>;
132 tegra_hte_lic: timestamp@3aa0000 {
137 #timestamp-cells = <1>;
/linux/include/trace/events/
H A Dfirewire.h78 …d_index, unsigned int generation, unsigned int scode, unsigned int status, unsigned int timestamp),
79 TP_ARGS(transaction, card_index, generation, scode, status, timestamp),
86 __field(u16, timestamp)
94 __entry->timestamp = timestamp;
97 "transaction=0x%llx card_index=%u generation=%u scode=%u status=%u timestamp=0x%04x",
103 __entry->timestamp
109 …d int generation, unsigned int scode, unsigned int status, unsigned int timestamp, const u32 *head…
110 TP_ARGS(transaction, card_index, generation, scode, status, timestamp, header, data, data_count),
117 __field(u16, timestamp)
127 __entry->timestamp = timestamp;
[all …]
H A Dpower_cpu_migrate.h11 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/drivers/net/ethernet/intel/ice/
H A Dice_ptp.h43 /* The ice hardware captures Tx hardware timestamps in the PHY. The timestamp
51 * To handle this, timestamp indexes must be tracked by software to ensure
60 * The timestamp blocks are handled differently for E810- and E822-based
93 * struct ice_tx_tstamp - Tracking for a single Tx timestamp
94 * @skb: pointer to the SKB for this timestamp request
95 * @start: jiffies when the timestamp was first requested
96 * @cached_tstamp: last read timestamp
98 * This structure tracks a single timestamp request. The SKB pointer is
102 * Timestamp values in the PHY are read only and do not get cleared except at
103 * hardware reset or when a new timestamp value is captured.
[all …]
H A Dice_ptp.c257 * ice_ptp_cfg_tx_interrupt - Configure Tx timestamp interrupt for the device
260 * Program the device to respond appropriately to the Tx timestamp interrupt
286 /* Configure the Tx timestamp interrupt */ in ice_ptp_cfg_tx_interrupt()
309 /* Set the timestamp flag for all the Rx rings */ in ice_set_rx_tstamp()
318 * ice_ptp_disable_timestamp_mode - Disable current timestamp mode
338 * ice_ptp_restore_timestamp_mode - Restore timestamp configuration
341 * Called at the end of rebuild to restore timestamp configuration after
376 /* Read the system timestamp pre PHC read */ in ice_ptp_read_src_clk_reg()
381 /* Read the system timestamp post PHC read */ in ice_ptp_read_src_clk_reg()
401 * ice_ptp_extend_32b_ts - Convert a 32b nanoseconds timestamp to 64b
[all …]
H A Dice_ptp_hw.h137 * @tx_mode: Tx timestamp compensation mode
138 * @tx_mk_dly: Tx timestamp marker start strobe delay
139 * @tx_cw_dly: Tx timestamp codeword start strobe delay
140 * @rx_mode: Rx timestamp compensation mode
141 * @rx_mk_dly: Rx timestamp marker start strobe delay
142 * @rx_cw_dly: Rx timestamp codeword start strobe delay
494 /* Timestamp memory reset registers */
499 /* Timestamp availability status registers */
519 /* Tx Timestamp data registers */
526 /* Timestamp init registers */
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ptp.h11 static inline u64 otx2_ptp_convert_rx_timestamp(u64 timestamp) in otx2_ptp_convert_rx_timestamp() argument
13 return be64_to_cpu(*(__be64 *)&timestamp); in otx2_ptp_convert_rx_timestamp()
16 static inline u64 otx2_ptp_convert_tx_timestamp(u64 timestamp) in otx2_ptp_convert_tx_timestamp() argument
18 return timestamp; in otx2_ptp_convert_tx_timestamp()
21 static inline u64 cn10k_ptp_convert_timestamp(u64 timestamp) in cn10k_ptp_convert_timestamp() argument
23 return ((timestamp >> 32) * NSEC_PER_SEC) + (timestamp & 0xFFFFFFFFUL); in cn10k_ptp_convert_timestamp()
/linux/include/linux/iio/
H A Dbuffer.h24 * iio_push_to_buffers_with_timestamp() - push data and timestamp to buffers
27 * @timestamp: timestamp for the sample data
30 * device the function will store the supplied timestamp as the last element in
32 * data buffer needs to be large enough to hold the additional timestamp
38 void *data, int64_t timestamp) in iio_push_to_buffers_with_timestamp() argument
42 ((int64_t *)data)[ts_offset] = timestamp; in iio_push_to_buffers_with_timestamp()
50 int64_t timestamp);
/linux/arch/alpha/kernel/
H A Derr_common.c91 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(&timestamp); 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/drivers/net/ethernet/qlogic/qed/
H A Dqed_ptp.c23 /* 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/Documentation/sound/designs/
H A Dtimestamping.rst17 - 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/include/linux/
H A Dhte.h41 * struct hte_ts_data - HTE timestamp data.
43 * @tsc: Timestamp value.
45 * @raw_level: Level of the line at the timestamp if provider supports it,
55 * struct hte_clk_info - Clock source info that HTE provider uses to timestamp.
66 * typedef hte_ts_cb_t - HTE timestamp data processing primary callback.
68 * The callback is used to push timestamp data to the client and it is
71 * @ts: HW timestamp data.
77 * typedef hte_ts_sec_cb_t - HTE timestamp data processing secondary callback.
105 * struct hte_ts_desc - HTE timestamp descriptor.
121 * @request: Hook for requesting a HTE timestamp. Returns 0 on success,
[all …]
/linux/include/linux/fsl/
H A Dptp_qoriq.h18 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/drivers/net/can/dev/
H A Drx-offload.c12 u32 timestamp; member
91 cb_pos->timestamp, cb_new->timestamp, in __skb_queue_add_sort()
92 cb_new->timestamp - cb_pos->timestamp, in __skb_queue_add_sort()
116 return cb_b->timestamp - cb_a->timestamp; in can_rx_offload_compare()
146 u32 timestamp; in can_rx_offload_offload_one() local
153 skb = offload->mailbox_read(offload, n, &timestamp, drop); in can_rx_offload_offload_one()
170 cb->timestamp = timestamp; in can_rx_offload_offload_one()
223 struct sk_buff *skb, u32 timestamp) in can_rx_offload_queue_timestamp() argument
234 cb->timestamp = timestamp; in can_rx_offload_queue_timestamp()
245 unsigned int idx, u32 timestamp, in can_rx_offload_get_echo_skb_queue_timestamp() argument
[all …]
/linux/drivers/hte/
H A Dhte.c32 * struct hte_ts_info - Information related to requested timestamp.
34 * @xlated_id: Timestamp ID as understood between HTE subsys and HTE provider,
38 * @seq: Timestamp sequence counter.
47 * @req_mlock: Lock during timestamp request/release APIs.
49 * @gdev: HTE abstract device that this timestamp information belongs to.
79 * @ei: Timestamp information.
142 * hte_ts_put() - Release and disable timestamp for the given desc.
144 * @desc: timestamp descriptor.
308 * hte_disable_ts() - Disable timestamp on given descriptor.
324 * hte_enable_ts() - Enable timestamp on given descriptor.
[all …]
/linux/drivers/net/can/rockchip/
H A Drockchip_canfd-timestamp.c19 struct sk_buff *skb, const u32 timestamp) in rkcanfd_skb_set_timestamp() argument
24 ns = timecounter_cyc2time(&priv->tc, timestamp); in rkcanfd_skb_set_timestamp()
34 priv = container_of(delayed_work, struct rkcanfd_priv, timestamp); in rkcanfd_timestamp_work()
37 schedule_delayed_work(&priv->timestamp, priv->work_delay_jiffies); in rkcanfd_timestamp_work()
76 INIT_DELAYED_WORK(&priv->timestamp, rkcanfd_timestamp_work); in rkcanfd_timestamp_init()
94 schedule_delayed_work(&priv->timestamp, priv->work_delay_jiffies); in rkcanfd_timestamp_start()
99 cancel_delayed_work(&priv->timestamp); in rkcanfd_timestamp_stop()
104 cancel_delayed_work_sync(&priv->timestamp); in rkcanfd_timestamp_stop_sync()

12345678910>>...64