Home
last modified time | relevance | path

Searched refs:tstamp (Results 1 - 25 of 424) sorted by relevance

12345678910>>...17

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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 = EGRESS_ENDHOST_MAGIC; in egress_host()
256 skb->tstamp == EGRESS_FWDNS_MAGIC) in ingress_host()
279 if (skb->tstamp == EGRESS_ENDHOST_MAGIC) in ingress_fwdns_prio100()
283 skb->tstamp = 0; in ingress_fwdns_prio100()
303 if (skb->tstamp == INGRESS_FWDNS_MAGIC) in egress_fwdns_prio100()
309 skb->tstamp = 0; in egress_fwdns_prio100()
332 skb->tstamp != expected_dtime) in ingress_fwdns_prio101()
342 skb->tstamp in ingress_fwdns_prio101()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igc/
H A Digc_ptp.c566 struct igc_tx_timestamp_request *tstamp = &adapter->tx_tstamp[i]; in igc_ptp_clear_tx_tstamp() local
568 dev_kfree_skb_any(tstamp->skb); in igc_ptp_clear_tx_tstamp()
569 tstamp->skb = NULL; in igc_ptp_clear_tx_tstamp()
668 struct igc_tx_timestamp_request *tstamp) in igc_ptp_tx_timeout()
670 dev_kfree_skb_any(tstamp->skb); in igc_ptp_tx_timeout()
671 tstamp->skb = NULL; in igc_ptp_tx_timeout()
679 struct igc_tx_timestamp_request *tstamp; in igc_ptp_tx_hang() local
688 tstamp = &adapter->tx_tstamp[i]; in igc_ptp_tx_hang()
690 if (!tstamp->skb) in igc_ptp_tx_hang()
693 if (time_is_after_jiffies(tstamp in igc_ptp_tx_hang()
667 igc_ptp_tx_timeout(struct igc_adapter *adapter, struct igc_tx_timestamp_request *tstamp) igc_ptp_tx_timeout() argument
710 igc_ptp_tx_reg_to_stamp(struct igc_adapter *adapter, struct igc_tx_timestamp_request *tstamp, u64 regval) igc_ptp_tx_reg_to_stamp() argument
809 struct igc_tx_timestamp_request *tstamp = &adapter->tx_tstamp[i]; igc_ptp_tx_hwtstamp() local
911 igc_device_tstamp_to_system(u64 tstamp) igc_device_tstamp_to_system() argument
1048 struct igc_tx_timestamp_request *tstamp; igc_ptp_init() local
[all...]
/kernel/linux/linux-6.6/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
/kernel/linux/linux-6.6/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()
247 u64 tstamp; in otx2_ptp_tc_gettime() local
250 tstamp = timecounter_read(&ptp->time_counter); in otx2_ptp_tc_gettime()
252 *ts = ns_to_timespec64(tstamp); in otx2_ptp_tc_gettime()
287 static u64 otx2_ptp_hw_tstamp2time(const struct timecounter *time_counter, u64 tstamp) in otx2_ptp_hw_tstamp2time() argument
290 return tstamp; in otx2_ptp_hw_tstamp2time()
326 u64 tstamp; in otx2_sync_tstamp() local
329 tstamp in otx2_sync_tstamp()
496 otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns) otx2_ptp_tstamp2time() argument
[all...]
/kernel/linux/linux-5.10/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
/kernel/linux/linux-6.6/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
/kernel/linux/linux-5.10/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()
69 tstamp); in lola_stream_start()
73 unsigned int tstamp) in lola_stream_stop()
79 tstamp); in lola_stream_stop()
509 unsigned int tstamp; in lola_pcm_trigger() local
60 lola_stream_start(struct lola *chip, struct lola_stream *str, unsigned int tstamp) lola_stream_start() argument
72 lola_stream_stop(struct lola *chip, struct lola_stream *str, unsigned int tstamp) lola_stream_stop() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/intel/atom/sst/
H A Dsst_drv_interface.c258 addr = ((void __iomem *)(ctx->mailbox + ctx->tstamp)) + in sst_cdev_ack()
345 struct snd_compr_tstamp *tstamp) in sst_cdev_tstamp()
352 addr = (void __iomem *)(ctx->mailbox + ctx->tstamp) + in sst_cdev_tstamp()
362 tstamp->copied_total = fw_tstamp.ring_buffer_counter; in sst_cdev_tstamp()
363 tstamp->pcm_frames = fw_tstamp.frames_decoded; in sst_cdev_tstamp()
364 tstamp->pcm_io_frames = div_u64(fw_tstamp.hardware_counter, in sst_cdev_tstamp()
366 tstamp->sampling_rate = fw_tstamp.sampling_frequency; in sst_cdev_tstamp()
368 dev_dbg(dev, "PCM = %u\n", tstamp->pcm_io_frames); in sst_cdev_tstamp()
370 str_id, tstamp->copied_total, tstamp in sst_cdev_tstamp()
344 sst_cdev_tstamp(struct device *dev, unsigned int str_id, struct snd_compr_tstamp *tstamp) sst_cdev_tstamp() argument
[all...]
/kernel/linux/linux-6.6/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()
69 tstamp); in lola_stream_start()
73 unsigned int tstamp) in lola_stream_stop()
79 tstamp); in lola_stream_stop()
509 unsigned int tstamp; in lola_pcm_trigger() local
60 lola_stream_start(struct lola *chip, struct lola_stream *str, unsigned int tstamp) lola_stream_start() argument
72 lola_stream_stop(struct lola *chip, struct lola_stream *str, unsigned int tstamp) lola_stream_stop() argument
[all...]
/kernel/linux/linux-6.6/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()
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 in sst_cdev_tstamp()
341 sst_cdev_tstamp(struct device *dev, unsigned int str_id, struct snd_compr_tstamp *tstamp) sst_cdev_tstamp() argument
[all...]
/kernel/linux/linux-5.10/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()
155 serr->ee.ee_data = (txtime >> 32); /* high part of tstamp */ in report_sock_error()
156 serr->ee.ee_info = txtime; /* low part of 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, no in etf_dequeue_timesortedlist()
[all...]
/kernel/linux/linux-6.6/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()
155 serr->ee.ee_data = (txtime >> 32); /* high part of tstamp */ in report_sock_error()
156 serr->ee.ee_info = txtime; /* low part of 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, no in etf_dequeue_timesortedlist()
[all...]
/kernel/linux/linux-6.6/tools/perf/util/bpf_skel/
H A Dlock_contention.bpf.c43 } tstamp SEC(".maps");
281 pelem = bpf_map_lookup_elem(&tstamp, &pid); in contention_begin()
288 bpf_map_update_elem(&tstamp, &pid, &zero, BPF_ANY); in contention_begin()
289 pelem = bpf_map_lookup_elem(&tstamp, &pid); in contention_begin()
343 pelem = bpf_map_lookup_elem(&tstamp, &pid); in contention_end()
349 bpf_map_delete_elem(&tstamp, &pid); in contention_end()
379 bpf_map_delete_elem(&tstamp, &pid); in contention_end()
402 bpf_map_delete_elem(&tstamp, &pid); in contention_end()
415 bpf_map_delete_elem(&tstamp, &pid); in contention_end()
/kernel/linux/linux-6.6/tools/testing/selftests/alsa/
H A Dpcm-test.c58 void timestamp_now(timestamp_t *tstamp) in timestamp_now() argument
60 if (clock_gettime(CLOCK_MONOTONIC_RAW, tstamp)) in timestamp_now()
64 long long timestamp_diff_ms(timestamp_t *tstamp) in timestamp_diff_ms() argument
68 if (tstamp->tv_nsec > now.tv_nsec) { in timestamp_diff_ms()
69 diff.tv_sec = now.tv_sec - tstamp->tv_sec - 1; in timestamp_diff_ms()
70 diff.tv_nsec = (now.tv_nsec + 1000000000L) - tstamp->tv_nsec; in timestamp_diff_ms()
72 diff.tv_sec = now.tv_sec - tstamp->tv_sec; in timestamp_diff_ms()
73 diff.tv_nsec = now.tv_nsec - tstamp->tv_nsec; in timestamp_diff_ms()
275 timestamp_t tstamp; in test_pcm_time() local
446 timestamp_now(&tstamp); in test_pcm_time()
[all...]
/kernel/linux/linux-5.10/sound/core/
H A Dtimer.c84 struct timespec64 tstamp; /* trigger tstamp */ member
502 struct timespec64 tstamp; in snd_timer_notify1() local
505 ktime_get_ts64(&tstamp); in snd_timer_notify1()
507 ktime_get_real_ts64(&tstamp); in snd_timer_notify1()
516 ti->ccallback(ti, event, &tstamp, resolution); in snd_timer_notify1()
526 ts->ccallback(ts, event, &tstamp, resolution); in snd_timer_notify1()
1073 void snd_timer_notify(struct snd_timer *timer, int event, struct timespec64 *tstamp) in snd_timer_notify() argument
1093 ti->ccallback(ti, event, tstamp, resolution); in snd_timer_notify()
1096 ts->ccallback(ts, event, tstamp, resolutio in snd_timer_notify()
1364 snd_timer_user_ccallback(struct snd_timer_instance *timeri, int event, struct timespec64 *tstamp, unsigned long resolution) snd_timer_user_ccallback() argument
1404 struct timespec64 tstamp; snd_timer_user_tinterrupt() local
[all...]
/kernel/linux/linux-6.6/sound/core/
H A Dtimer.c84 struct timespec64 tstamp; /* trigger tstamp */ member
502 struct timespec64 tstamp; in snd_timer_notify1() local
505 ktime_get_ts64(&tstamp); in snd_timer_notify1()
507 ktime_get_real_ts64(&tstamp); in snd_timer_notify1()
516 ti->ccallback(ti, event, &tstamp, resolution); in snd_timer_notify1()
526 ts->ccallback(ts, event, &tstamp, resolution); in snd_timer_notify1()
1073 void snd_timer_notify(struct snd_timer *timer, int event, struct timespec64 *tstamp) in snd_timer_notify() argument
1093 ti->ccallback(ti, event, tstamp, resolution); in snd_timer_notify()
1096 ts->ccallback(ts, event, tstamp, resolutio in snd_timer_notify()
1368 snd_timer_user_ccallback(struct snd_timer_instance *timeri, int event, struct timespec64 *tstamp, unsigned long resolution) snd_timer_user_ccallback() argument
1408 struct timespec64 tstamp; snd_timer_user_tinterrupt() local
[all...]
/kernel/linux/linux-5.10/sound/soc/intel/atom/
H A Dsst-mfld-platform-compress.c205 struct snd_compr_tstamp *tstamp) in sst_platform_compr_pointer()
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()
203 sst_platform_compr_pointer(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) sst_platform_compr_pointer() argument
/kernel/linux/linux-5.10/net/ipv6/
H A Dnetfilter.c124 ktime_t tstamp = skb->tstamp; in br_ip6_fragment() local
189 skb->tstamp = tstamp; in br_ip6_fragment()
222 skb2->tstamp = tstamp; in br_ip6_fragment()
/kernel/linux/linux-6.6/sound/soc/intel/atom/
H A Dsst-mfld-platform-compress.c205 struct snd_compr_tstamp *tstamp) in sst_platform_compr_pointer()
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()
203 sst_platform_compr_pointer(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) sst_platform_compr_pointer() argument
/kernel/linux/linux-6.6/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()
595 u64 tstamp; in sja1110_rcv_meta() local
600 tstamp = be64_to_cpu(*(__be64 *)(buf + 2)); in sja1110_rcv_meta()
603 tstamp); in sja1110_rcv_meta()
639 u64 *tstamp = &SJA1105_SKB_CB(skb)->tstamp; in sja1110_rcv_inband_control_extension() local
645 packing(rx_trailer, tstamp, 6 in sja1110_rcv_inband_control_extension()
[all...]
/kernel/linux/linux-6.6/net/rxrpc/
H A Dio_thread.c35 if (skb->tstamp == 0) in rxrpc_encap_rcv()
36 skb->tstamp = ktime_get_real(); in rxrpc_encap_rcv()
44 skb->tstamp = ktime_add_ms(skb->tstamp, rxrpc_inject_rx_delay); in rxrpc_encap_rcv()
501 if (ktime_before(now, skb->tstamp)) in rxrpc_io_thread()
534 ktime_t tstamp = skb->tstamp; in rxrpc_io_thread() local
536 s64 delay_ns = ktime_to_ns(ktime_sub(tstamp, now)); in rxrpc_io_thread()
/kernel/linux/linux-5.10/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.");
/kernel/linux/linux-6.6/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.");

Completed in 18 milliseconds

12345678910>>...17