Lines Matching refs:ts

454 static __u32 tpacket_get_timestamp(struct sk_buff *skb, struct timespec64 *ts,  in tpacket_get_timestamp()  argument
461 ktime_to_timespec64_cond(shhwtstamps->hwtstamp, ts)) in tpacket_get_timestamp()
465 ktime_to_timespec64_cond(skb_tstamp(skb), ts)) in tpacket_get_timestamp()
475 struct timespec64 ts; in __packet_set_timestamp() local
478 if (!(ts_status = tpacket_get_timestamp(skb, &ts, READ_ONCE(po->tp_tstamp)))) in __packet_set_timestamp()
491 h.h1->tp_sec = ts.tv_sec; in __packet_set_timestamp()
492 h.h1->tp_usec = ts.tv_nsec / NSEC_PER_USEC; in __packet_set_timestamp()
495 h.h2->tp_sec = ts.tv_sec; in __packet_set_timestamp()
496 h.h2->tp_nsec = ts.tv_nsec; in __packet_set_timestamp()
499 h.h3->tp_sec = ts.tv_sec; in __packet_set_timestamp()
500 h.h3->tp_nsec = ts.tv_nsec; in __packet_set_timestamp()
864 struct timespec64 ts; in prb_close_block() local
865 ktime_get_real_ts64(&ts); in prb_close_block()
866 h1->ts_last_pkt.ts_sec = ts.tv_sec; in prb_close_block()
867 h1->ts_last_pkt.ts_nsec = ts.tv_nsec; in prb_close_block()
895 struct timespec64 ts; in prb_open_block() local
908 ktime_get_real_ts64(&ts); in prb_open_block()
910 h1->ts_first_pkt.ts_sec = ts.tv_sec; in prb_open_block()
911 h1->ts_first_pkt.ts_nsec = ts.tv_nsec; in prb_open_block()
2296 struct timespec64 ts; in tpacket_rcv() local
2449 ts_status = tpacket_get_timestamp(skb, &ts, in tpacket_rcv()
2453 ktime_get_real_ts64(&ts); in tpacket_rcv()
2463 h.h1->tp_sec = ts.tv_sec; in tpacket_rcv()
2464 h.h1->tp_usec = ts.tv_nsec / NSEC_PER_USEC; in tpacket_rcv()
2472 h.h2->tp_sec = ts.tv_sec; in tpacket_rcv()
2473 h.h2->tp_nsec = ts.tv_nsec; in tpacket_rcv()
2498 h.h3->tp_sec = ts.tv_sec; in tpacket_rcv()
2499 h.h3->tp_nsec = ts.tv_nsec; in tpacket_rcv()
2569 __u32 ts; in tpacket_destruct_skb() local
2574 ts = __packet_set_timestamp(po, ph, skb); in tpacket_destruct_skb()
2575 __packet_set_status(po, ph, TP_STATUS_AVAILABLE | ts); in tpacket_destruct_skb()