Home
last modified time | relevance | path

Searched refs:tstamp (Results 1 – 25 of 219) sorted by relevance

123456789

/linux/drivers/net/ethernet/intel/igc/
H A Digc_ptp.c550 struct igc_tx_timestamp_request *tstamp) in igc_ptp_free_tx_buffer() argument
552 if (tstamp->buffer_type == IGC_TX_BUFFER_TYPE_XSK) { in igc_ptp_free_tx_buffer()
554 tstamp->xsk_tx_buffer->xsk_pending_ts = false; in igc_ptp_free_tx_buffer()
560 tstamp->xsk_tx_buffer = NULL; in igc_ptp_free_tx_buffer()
561 tstamp->buffer_type = 0; in igc_ptp_free_tx_buffer()
564 igc_xsk_wakeup(adapter->netdev, tstamp->xsk_queue_index, 0); in igc_ptp_free_tx_buffer()
569 dev_kfree_skb_any(tstamp->skb); in igc_ptp_free_tx_buffer()
570 tstamp->skb = NULL; in igc_ptp_free_tx_buffer()
581 struct igc_tx_timestamp_request *tstamp = &adapter->tx_tstamp[i]; in igc_ptp_clear_tx_tstamp() local
583 if (tstamp->skb) in igc_ptp_clear_tx_tstamp()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_edt.c34 uint64_t tstamp, next_tstamp = 0; in throttle_flow() local
39 tstamp = skb->tstamp; in throttle_flow()
40 if (tstamp < now) in throttle_flow()
41 tstamp = now; in throttle_flow()
44 if (next_tstamp <= tstamp) { in throttle_flow()
45 if (bpf_map_update_elem(&flow_map, &key, &tstamp, BPF_ANY)) in throttle_flow()
60 skb->tstamp = next_tstamp; in throttle_flow()
H A Dtest_tc_dtime.c226 skb->tstamp) in egress_host()
232 skb->tstamp) in egress_host()
238 skb->tstamp) in egress_host()
242 skb->tstamp = EGRESS_ENDHOST_MAGIC; in egress_host()
260 skb->tstamp == EGRESS_FWDNS_MAGIC) in ingress_host()
283 if (skb->tstamp == EGRESS_ENDHOST_MAGIC) in ingress_fwdns_prio100()
287 skb->tstamp = 0; in ingress_fwdns_prio100()
307 if (skb->tstamp == INGRESS_FWDNS_MAGIC) in egress_fwdns_prio100()
313 skb->tstamp = 0; in egress_fwdns_prio100()
333 skb->tstamp != EGRESS_ENDHOST_MAGIC) in ingress_fwdns_prio101()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ptp.c104 u64 tstamp; in otx2_ptp_hw_gettime() local
106 tstamp = otx2_ptp_get_clock(ptp); in otx2_ptp_hw_gettime()
108 *ts = ns_to_timespec64(tstamp); in otx2_ptp_hw_gettime()
248 u64 tstamp; in otx2_ptp_tc_gettime() local
251 tstamp = timecounter_read(&ptp->time_counter); in otx2_ptp_tc_gettime()
253 *ts = ns_to_timespec64(tstamp); in otx2_ptp_tc_gettime()
288 static u64 otx2_ptp_hw_tstamp2time(const struct timecounter *time_counter, u64 tstamp) in otx2_ptp_hw_tstamp2time() argument
291 return tstamp; in otx2_ptp_hw_tstamp2time()
327 u64 tstamp; in otx2_sync_tstamp() local
330 tstamp = otx2_ptp_get_clock(ptp); in otx2_sync_tstamp()
[all …]
/linux/include/linux/dsa/
H A Dksz_common.h18 static inline ktime_t ksz_decode_tstamp(u32 tstamp) in ksz_decode_tstamp() argument
20 u64 ns = FIELD_GET(KSZ_TSTAMP_SEC_MASK, tstamp) * NSEC_PER_SEC + in ksz_decode_tstamp()
21 FIELD_GET(KSZ_TSTAMP_NSEC_MASK, tstamp); in ksz_decode_tstamp()
41 u32 tstamp; member
H A Dsja1105.h53 enum sja1110_meta_tstamp dir, u64 tstamp);
58 u64 tstamp; member
/linux/sound/soc/intel/atom/sst/
H A Dsst_drv_interface.c255 addr = ((void __iomem *)(ctx->mailbox + ctx->tstamp)) + in sst_cdev_ack()
342 struct snd_compr_tstamp *tstamp) in sst_cdev_tstamp() argument
349 addr = (void __iomem *)(ctx->mailbox + ctx->tstamp) + in sst_cdev_tstamp()
359 tstamp->copied_total = fw_tstamp.ring_buffer_counter; in sst_cdev_tstamp()
360 tstamp->pcm_frames = fw_tstamp.frames_decoded; in sst_cdev_tstamp()
361 tstamp->pcm_io_frames = div_u64(fw_tstamp.hardware_counter, in sst_cdev_tstamp()
363 tstamp->sampling_rate = fw_tstamp.sampling_frequency; in sst_cdev_tstamp()
365 dev_dbg(dev, "PCM = %u\n", tstamp->pcm_io_frames); in sst_cdev_tstamp()
367 str_id, tstamp->copied_total, tstamp->pcm_frames); in sst_cdev_tstamp()
368 dev_dbg(dev, "rendered %d\n", tstamp->pcm_io_frames); in sst_cdev_tstamp()
[all …]
/linux/net/sched/
H A Dsch_etf.c78 ktime_t txtime = nskb->tstamp; in is_packet_valid()
131 next = ktime_sub_ns(skb->tstamp, q->delta); in reset_watchdog()
139 ktime_t txtime = skb->tstamp; in report_sock_error()
167 ktime_t txtime = nskb->tstamp; in etf_enqueue_timesortedlist()
181 if (ktime_compare(txtime, skb->tstamp) >= 0) { in etf_enqueue_timesortedlist()
208 if (ktime_after(skb->tstamp, now)) in timesortedlist_drop()
248 q->last = skb->tstamp; in timesortedlist_remove()
266 if (ktime_before(skb->tstamp, now)) { in etf_dequeue_timesortedlist()
277 skb->tstamp = now; in etf_dequeue_timesortedlist()
281 next = ktime_sub_ns(skb->tstamp, q->delta); in etf_dequeue_timesortedlist()
/linux/drivers/net/ethernet/cavium/common/
H A Dcavium_ptp.h32 static inline u64 cavium_ptp_tstamp2time(struct cavium_ptp *ptp, u64 tstamp) in cavium_ptp_tstamp2time() argument
38 ret = timecounter_cyc2time(&ptp->time_counter, tstamp); in cavium_ptp_tstamp2time()
58 static inline u64 cavium_ptp_tstamp2time(struct cavium_ptp *ptp, u64 tstamp) in cavium_ptp_tstamp2time() argument
/linux/sound/pci/lola/
H A Dlola_pcm.c41 unsigned int tstamp = lola_get_lrc(chip) >> 8; in lola_get_tstamp() local
44 tstamp += (wait_banks + 1) * chip->granularity - 1; in lola_get_tstamp()
45 tstamp -= tstamp % chip->granularity; in lola_get_tstamp()
47 return tstamp << 8; in lola_get_tstamp()
61 unsigned int tstamp) in lola_stream_start() argument
69 tstamp); in lola_stream_start()
73 unsigned int tstamp) in lola_stream_stop() argument
79 tstamp); in lola_stream_stop()
509 unsigned int tstamp; in lola_pcm_trigger() local
532 tstamp = lola_get_tstamp(chip, !sync_streams); in lola_pcm_trigger()
[all …]
/linux/sound/soc/intel/atom/
H A Dsst-mfld-platform-compress.c205 struct snd_compr_tstamp *tstamp) in sst_platform_compr_pointer() argument
210 stream->compr_ops->tstamp(sst->dev, stream->id, tstamp); in sst_platform_compr_pointer()
211 tstamp->byte_offset = tstamp->copied_total % in sst_platform_compr_pointer()
213 pr_debug("calc bytes offset/copied bytes as %d\n", tstamp->byte_offset); in sst_platform_compr_pointer()
/linux/tools/testing/selftests/alsa/
H A Dpcm-test.c61 void timestamp_now(timestamp_t *tstamp) in timestamp_now() argument
63 if (clock_gettime(CLOCK_MONOTONIC_RAW, tstamp)) in timestamp_now()
67 long long timestamp_diff_ms(timestamp_t *tstamp) in timestamp_diff_ms() argument
71 if (tstamp->tv_nsec > now.tv_nsec) { in timestamp_diff_ms()
72 diff.tv_sec = now.tv_sec - tstamp->tv_sec - 1; in timestamp_diff_ms()
73 diff.tv_nsec = (now.tv_nsec + 1000000000L) - tstamp->tv_nsec; in timestamp_diff_ms()
75 diff.tv_sec = now.tv_sec - tstamp->tv_sec; in timestamp_diff_ms()
76 diff.tv_nsec = now.tv_nsec - tstamp->tv_nsec; in timestamp_diff_ms()
302 timestamp_t tstamp; in test_pcm_time() local
473 timestamp_now(&tstamp); in test_pcm_time()
[all …]
/linux/net/dsa/
H A Dtag_sja1105.c95 u64 tstamp; member
117 packing(buf, &meta->tstamp, 31, 0, 4, UNPACK, 0); in sja1105_meta_unpack()
353 SJA1105_SKB_CB(skb)->tstamp = meta->tstamp; in sja1105_transfer_meta()
551 u64 tstamp; in sja1110_rcv_meta() local
556 tstamp = be64_to_cpu(*(__be64 *)(buf + 2)); in sja1110_rcv_meta()
559 tstamp); in sja1110_rcv_meta()
595 u64 *tstamp = &SJA1105_SKB_CB(skb)->tstamp; in sja1110_rcv_inband_control_extension() local
601 packing(rx_trailer, tstamp, 63, 0, 8, UNPACK, 0); in sja1110_rcv_inband_control_extension()
/linux/sound/firewire/
H A Damdtp-stream.c886 static inline u32 compute_ohci_iso_ctx_cycle_count(u32 tstamp) in compute_ohci_iso_ctx_cycle_count() argument
888 return (((tstamp >> 13) & 0x07) * CYCLES_PER_SECOND) + (tstamp & 0x1fff); in compute_ohci_iso_ctx_cycle_count()
893 u32 tstamp = be32_to_cpu(ctx_header_tstamp) & HEADER_TSTAMP_MASK; in compute_ohci_cycle_count() local
894 return compute_ohci_iso_ctx_cycle_count(tstamp); in compute_ohci_cycle_count()
1171 static void process_rx_packets(struct fw_iso_context *context, u32 tstamp, size_t header_length, in process_rx_packets() argument
1242 static void skip_rx_packets(struct fw_iso_context *context, u32 tstamp, size_t header_length, in skip_rx_packets() argument
1274 static void irq_target_callback(struct fw_iso_context *context, u32 tstamp, size_t header_length,
1277 static void process_rx_packets_intermediately(struct fw_iso_context *context, u32 tstamp, in process_rx_packets_intermediately() argument
1305 skip_rx_packets(context, tstamp, length, ctx_header, private_data); in process_rx_packets_intermediately()
1320 process_rx_packets(context, tstamp, header_length, ctx_header, private_data); in process_rx_packets_intermediately()
[all …]
/linux/net/netfilter/
H A Dnf_conntrack_timestamp.c19 module_param_named(tstamp, nf_ct_tstamp, bool, 0644);
20 MODULE_PARM_DESC(tstamp, "Enable connection tracking flow timestamping.");
/linux/drivers/net/wireless/ath/ath9k/
H A Ddynack.c159 ack_ts = da->ack_rbf.tstamp[da->ack_rbf.h_rb]; in ath_dynack_compute_to()
166 ack_ts, st_ts->tstamp, st_ts->dur, in ath_dynack_compute_to()
169 if (ack_ts > st_ts->tstamp + st_ts->dur) { in ath_dynack_compute_to()
170 ackto = ack_ts - st_ts->tstamp - st_ts->dur; in ath_dynack_compute_to()
248 da->st_rbf.ts[da->st_rbf.t_rb].tstamp = ts->ts_tstamp; in ath_dynack_sample_tx_ts()
304 da->ack_rbf.tstamp[da->ack_rbf.t_rb] = ts; in ath_dynack_sample_ack_ts()
/linux/tools/testing/selftests/net/
H A Drxtimestamp.c30 bool tstamp; member
74 { .tstamp = true }
126 { .tstamp = true, .swtstamp = true }
163 if (t->expected.tstamp) in print_test_case()
232 actual.tstamp = true; in do_recv()
261 VALIDATE(tstamp); in do_recv()
/linux/net/rxrpc/
H A Dio_thread.c41 if (skb->tstamp == 0) in rxrpc_encap_rcv()
42 skb->tstamp = ktime_get_real(); in rxrpc_encap_rcv()
50 skb->tstamp = ktime_add_ms(skb->tstamp, rxrpc_inject_rx_delay); in rxrpc_encap_rcv()
518 if (ktime_before(now, skb->tstamp)) in rxrpc_io_thread()
551 ktime_t tstamp = skb->tstamp; in rxrpc_io_thread() local
553 s64 delay_ns = ktime_to_ns(ktime_sub(tstamp, now)); in rxrpc_io_thread()
/linux/sound/core/
H A Dtimer.c86 struct timespec64 tstamp; /* trigger tstamp */ member
512 struct timespec64 tstamp; in snd_timer_notify1() local
515 ktime_get_ts64(&tstamp); in snd_timer_notify1()
517 ktime_get_real_ts64(&tstamp); in snd_timer_notify1()
526 ti->ccallback(ti, event, &tstamp, resolution); in snd_timer_notify1()
536 ts->ccallback(ts, event, &tstamp, resolution); in snd_timer_notify1()
1048 void snd_timer_notify(struct snd_timer *timer, int event, struct timespec64 *tstamp) in snd_timer_notify() argument
1067 ti->ccallback(ti, event, tstamp, resolution); in snd_timer_notify()
1070 ts->ccallback(ts, event, tstamp, resolution); in snd_timer_notify()
1340 struct timespec64 *tstamp, in snd_timer_user_ccallback() argument
[all …]
/linux/sound/soc/sof/amd/
H A Dacp-probes.c111 struct snd_compr_tstamp *tstamp, in acp_probes_compr_pointer() argument
118 tstamp->copied_total = stream->cstream_posn; in acp_probes_compr_pointer()
119 tstamp->sampling_rate = snd_pcm_rate_bit_to_rate(pstream->rates); in acp_probes_compr_pointer()
/linux/arch/powerpc/kernel/
H A Deeh_pe.c492 time64_t tstamp; in eeh_pe_update_time_stamp() local
498 pe->tstamp = ktime_get_seconds(); in eeh_pe_update_time_stamp()
500 tstamp = ktime_get_seconds(); in eeh_pe_update_time_stamp()
501 if (tstamp - pe->tstamp > 3600) { in eeh_pe_update_time_stamp()
502 pe->tstamp = tstamp; in eeh_pe_update_time_stamp()
/linux/sound/soc/sof/intel/
H A Dhda-probes.c115 struct snd_compr_tstamp *tstamp, in hda_probes_compr_pointer() argument
122 tstamp->copied_total = hdac_stream(hext_stream)->curr_pos; in hda_probes_compr_pointer()
123 tstamp->sampling_rate = snd_pcm_rate_bit_to_rate(pstream->rates); in hda_probes_compr_pointer()
/linux/tools/perf/util/bpf_skel/
H A Dlock_contention.bpf.c36 } tstamp SEC(".maps");
338 pelem = bpf_map_lookup_elem(&tstamp, &pid); in get_tstamp_elem()
346 if (bpf_map_update_elem(&tstamp, &pid, &zero, BPF_NOEXIST) < 0) { in get_tstamp_elem()
351 pelem = bpf_map_lookup_elem(&tstamp, &pid); in get_tstamp_elem()
434 pelem = bpf_map_lookup_elem(&tstamp, &pid); in contention_end()
521 bpf_map_delete_elem(&tstamp, &pid); in contention_end()
/linux/net/ipv6/
H A Dnetfilter.c131 ktime_t tstamp = skb->tstamp; in br_ip6_fragment() local
196 skb_set_delivery_time(skb, tstamp, tstamp_type); in br_ip6_fragment()
229 skb_set_delivery_time(skb2, tstamp, tstamp_type); in br_ip6_fragment()
/linux/arch/powerpc/include/asm/
H A Dtime.h77 static inline unsigned long tb_ticks_since(unsigned long tstamp) in tb_ticks_since() argument
79 return mftb() - tstamp; in tb_ticks_since()

123456789