Symbol: rxts
drivers/net/phy/dp83640.c
120
struct list_head rxts;
drivers/net/phy/dp83640.c
122
struct rxts rx_pool_data[MAX_RXTS];
drivers/net/phy/dp83640.c
1306
struct rxts *rxts;
drivers/net/phy/dp83640.c
1324
list_for_each_safe(this, next, &dp83640->rxts) {
drivers/net/phy/dp83640.c
1325
rxts = list_entry(this, struct rxts, list);
drivers/net/phy/dp83640.c
1326
if (match(skb, type, rxts)) {
drivers/net/phy/dp83640.c
1329
shhwtstamps->hwtstamp = ns_to_ktime(rxts->ns);
drivers/net/phy/dp83640.c
1330
list_del_init(&rxts->list);
drivers/net/phy/dp83640.c
1331
list_add(&rxts->list, &dp83640->rxpool);
drivers/net/phy/dp83640.c
1426
INIT_LIST_HEAD(&dp83640->rxts);
drivers/net/phy/dp83640.c
272
static void phy2rxts(struct phy_rxts *p, struct rxts *rxts)
drivers/net/phy/dp83640.c
279
rxts->ns = p->ns_lo;
drivers/net/phy/dp83640.c
280
rxts->ns |= (p->ns_hi & 0x3fff) << 16;
drivers/net/phy/dp83640.c
281
rxts->ns += ((u64)sec) * 1000000000ULL;
drivers/net/phy/dp83640.c
282
rxts->seqid = p->seqid;
drivers/net/phy/dp83640.c
283
rxts->msgtype = (p->msgtype >> 12) & 0xf;
drivers/net/phy/dp83640.c
284
rxts->hash = p->msgtype & 0x0fff;
drivers/net/phy/dp83640.c
285
rxts->tmo = jiffies + SKB_TIMESTAMP_TIMEOUT;
drivers/net/phy/dp83640.c
583
static int expired(struct rxts *rxts)
drivers/net/phy/dp83640.c
585
return time_after(jiffies, rxts->tmo);
drivers/net/phy/dp83640.c
592
struct rxts *rxts;
drivers/net/phy/dp83640.c
594
list_for_each_safe(this, next, &dp83640->rxts) {
drivers/net/phy/dp83640.c
595
rxts = list_entry(this, struct rxts, list);
drivers/net/phy/dp83640.c
596
if (expired(rxts)) {
drivers/net/phy/dp83640.c
597
list_del_init(&rxts->list);
drivers/net/phy/dp83640.c
598
list_add(&rxts->list, &dp83640->rxpool);
drivers/net/phy/dp83640.c
795
static int match(struct sk_buff *skb, unsigned int type, struct rxts *rxts)
drivers/net/phy/dp83640.c
810
if (rxts->msgtype != (msgtype & 0xf))
drivers/net/phy/dp83640.c
814
if (rxts->seqid != seqid)
drivers/net/phy/dp83640.c
819
if (rxts->hash != hash)
drivers/net/phy/dp83640.c
828
struct rxts *rxts;
drivers/net/phy/dp83640.c
846
rxts = list_first_entry(&dp83640->rxpool, struct rxts, list);
drivers/net/phy/dp83640.c
847
list_del_init(&rxts->list);
drivers/net/phy/dp83640.c
848
phy2rxts(phy_rxts, rxts);
drivers/net/phy/dp83640.c
855
if (match(skb, skb_info->ptp_type, rxts)) {
drivers/net/phy/dp83640.c
859
shhwtstamps->hwtstamp = ns_to_ktime(rxts->ns);
drivers/net/phy/dp83640.c
860
list_add(&rxts->list, &dp83640->rxpool);
drivers/net/phy/dp83640.c
867
list_add_tail(&rxts->list, &dp83640->rxts);