| /linux/drivers/net/ethernet/intel/igc/ |
| H A D | igc_ptp.c | 539 struct igc_tx_timestamp_request *tstamp) in igc_ptp_free_tx_buffer() argument 541 if (tstamp->buffer_type == IGC_TX_BUFFER_TYPE_XSK) { in igc_ptp_free_tx_buffer() 543 tstamp->xsk_tx_buffer->xsk_pending_ts = false; in igc_ptp_free_tx_buffer() 549 tstamp->xsk_tx_buffer = NULL; in igc_ptp_free_tx_buffer() 550 tstamp->buffer_type = 0; in igc_ptp_free_tx_buffer() 553 igc_xsk_wakeup(adapter->netdev, tstamp->xsk_queue_index, 0); in igc_ptp_free_tx_buffer() 558 dev_kfree_skb_any(tstamp->skb); in igc_ptp_free_tx_buffer() 559 tstamp->skb = NULL; in igc_ptp_free_tx_buffer() 570 struct igc_tx_timestamp_request *tstamp = &adapter->tx_tstamp[i]; in igc_ptp_clear_tx_tstamp() local 572 if (tstamp->skb) in igc_ptp_clear_tx_tstamp() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_tc_edt.c | 34 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 D | test_tc_dtime.c | 226 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 D | otx2_ptp.c | 104 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 D | ksz_common.h | 18 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 D | sja1105.h | 53 enum sja1110_meta_tstamp dir, u64 tstamp); 58 u64 tstamp; member
|
| /linux/net/sched/ |
| H A D | sch_etf.c | 78 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 D | cavium_ptp.h | 32 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/tools/testing/selftests/alsa/ |
| H A D | pcm-test.c | 61 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 D | tag_sja1105.c | 95 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, 6 in sja1110_rcv_inband_control_extension() [all...] |
| /linux/net/netfilter/ |
| H A D | nf_conntrack_timestamp.c | 19 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 D | dynack.c | 160 ack_ts = da->ack_rbf.tstamp[da->ack_rbf.h_rb]; in ath_dynack_compute_to() 167 ack_ts, st_ts->tstamp, st_ts->dur, in ath_dynack_compute_to() 170 if (ack_ts > st_ts->tstamp + st_ts->dur) { in ath_dynack_compute_to() 171 ackto = ack_ts - st_ts->tstamp - st_ts->dur; in ath_dynack_compute_to() 249 da->st_rbf.ts[da->st_rbf.t_rb].tstamp = ts->ts_tstamp; in ath_dynack_sample_tx_ts() 305 da->ack_rbf.tstamp[da->ack_rbf.t_rb] = ts; in ath_dynack_sample_ack_ts()
|
| H A D | dynack.h | 33 u32 tstamp[ATH_DYN_BUF]; member 37 u32 tstamp; member
|
| /linux/tools/testing/selftests/net/ |
| H A D | rxtimestamp.c | 30 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()
|
| H A D | so_txtime.c | 165 int64_t tstamp = 0; in do_recv_errqueue_timeout() local 215 tstamp = ((int64_t) err->ee_data) << 32 | err->ee_info; in do_recv_errqueue_timeout() 216 tstamp -= (int64_t) glob_tstart; in do_recv_errqueue_timeout() 217 tstamp /= 1000 * 1000; in do_recv_errqueue_timeout() 219 data[ret - 1], tstamp, reason); in do_recv_errqueue_timeout()
|
| /linux/sound/core/ |
| H A D | timer.c | 86 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/net/rxrpc/ |
| H A D | io_thread.c | 41 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() 476 if (ktime_before(now, skb->tstamp)) in rxrpc_io_thread() 576 ktime_t tstamp = skb->tstamp; in rxrpc_io_thread() local 578 s64 delay_ns = ktime_to_ns(ktime_sub(tstamp, now)); in rxrpc_io_thread()
|
| /linux/arch/powerpc/kernel/ |
| H A D | eeh_pe.c | 492 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/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_virtchnl_ptp.c | 501 u64 tstamp; in idpf_ptp_get_tstamp_value() local 506 ptp_tx_tstamp->tstamp = le64_to_cpu(tstamp_latch->tstamp); in idpf_ptp_get_tstamp_value() 507 ptp_tx_tstamp->tstamp >>= tstamp_ns_lo_bit; in idpf_ptp_get_tstamp_value() 516 tstamp = idpf_ptp_extend_ts(vport, ptp_tx_tstamp->tstamp); in idpf_ptp_get_tstamp_value() 517 shhwtstamps.hwtstamp = ns_to_ktime(tstamp); in idpf_ptp_get_tstamp_value()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | time_tai.c | 25 .tstamp = 0, in test_time_tai() 51 ts1 = skb.tstamp; in test_time_tai()
|
| H A D | skb_ctx.c | 16 .tstamp = 7, in test_skb_ctx() 87 ASSERT_EQ(skb.tstamp, 8, "ctx_out_tstamp"); in test_skb_ctx()
|
| /linux/arch/powerpc/include/asm/ |
| H A D | time.h | 81 static inline unsigned long tb_ticks_since(unsigned long tstamp) in tb_ticks_since() argument 83 return mftb() - tstamp; in tb_ticks_since()
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz_ptp.c | 425 static ktime_t ksz_tstamp_reconstruct(struct ksz_device *dev, ktime_t tstamp) in ksz_tstamp_reconstruct() argument 433 ts = ktime_to_timespec64(tstamp); in ksz_tstamp_reconstruct() 460 ktime_t tstamp; in ksz_port_rxtstamp() local 465 tstamp = KSZ_SKB_CB(skb)->tstamp; in ksz_port_rxtstamp() 467 hwtstamps->hwtstamp = ksz_tstamp_reconstruct(dev, tstamp); in ksz_port_rxtstamp() 486 correction -= ktime_to_ns(tstamp) << 16; in ksz_port_rxtstamp() 968 ktime_t tstamp; in ksz_ptp_msg_thread_fn() local 979 tstamp = ksz_decode_tstamp(tstamp_raw); in ksz_ptp_msg_thread_fn() 981 port->tstamp_msg = ksz_tstamp_reconstruct(dev, tstamp); in ksz_ptp_msg_thread_fn()
|
| /linux/include/sound/ |
| H A D | timer.h | 92 struct timespec64 * tstamp, 116 void snd_timer_notify(struct snd_timer *timer, int event, struct timespec64 *tstamp);
|
| /linux/drivers/firewire/ |
| H A D | uapi-test.c | 44 KUNIT_EXPECT_EQ(test, 48, offsetof(struct fw_cdev_event_request3, tstamp)); in structure_layout_event_request3() 71 KUNIT_EXPECT_EQ(test, 20, offsetof(struct fw_cdev_event_phy_packet2, tstamp)); in structure_layout_event_phy_packet2()
|