Lines Matching refs:ts
439 static __u32 tpacket_get_timestamp(struct sk_buff *skb, struct timespec *ts, in tpacket_get_timestamp() argument
446 ktime_to_timespec_cond(shhwtstamps->hwtstamp, ts)) in tpacket_get_timestamp()
449 if (ktime_to_timespec_cond(skb->tstamp, ts)) in tpacket_get_timestamp()
459 struct timespec ts; in __packet_set_timestamp() local
462 if (!(ts_status = tpacket_get_timestamp(skb, &ts, po->tp_tstamp))) in __packet_set_timestamp()
468 h.h1->tp_sec = ts.tv_sec; in __packet_set_timestamp()
469 h.h1->tp_usec = ts.tv_nsec / NSEC_PER_USEC; in __packet_set_timestamp()
472 h.h2->tp_sec = ts.tv_sec; in __packet_set_timestamp()
473 h.h2->tp_nsec = ts.tv_nsec; in __packet_set_timestamp()
816 struct timespec ts; in prb_close_block() local
817 getnstimeofday(&ts); in prb_close_block()
818 h1->ts_last_pkt.ts_sec = ts.tv_sec; in prb_close_block()
819 h1->ts_last_pkt.ts_nsec = ts.tv_nsec; in prb_close_block()
847 struct timespec ts; in prb_open_block() local
860 getnstimeofday(&ts); in prb_open_block()
862 h1->ts_first_pkt.ts_sec = ts.tv_sec; in prb_open_block()
863 h1->ts_first_pkt.ts_nsec = ts.tv_nsec; in prb_open_block()
1883 struct timespec ts; in tpacket_rcv() local
1992 if (!(ts_status = tpacket_get_timestamp(skb, &ts, po->tp_tstamp))) in tpacket_rcv()
1993 getnstimeofday(&ts); in tpacket_rcv()
2003 h.h1->tp_sec = ts.tv_sec; in tpacket_rcv()
2004 h.h1->tp_usec = ts.tv_nsec / NSEC_PER_USEC; in tpacket_rcv()
2012 h.h2->tp_sec = ts.tv_sec; in tpacket_rcv()
2013 h.h2->tp_nsec = ts.tv_nsec; in tpacket_rcv()
2034 h.h3->tp_sec = ts.tv_sec; in tpacket_rcv()
2035 h.h3->tp_nsec = ts.tv_nsec; in tpacket_rcv()
2100 __u32 ts; in tpacket_destruct_skb() local
2105 ts = __packet_set_timestamp(po, ph, skb); in tpacket_destruct_skb()
2106 __packet_set_status(po, ph, TP_STATUS_AVAILABLE | ts); in tpacket_destruct_skb()