Lines Matching refs:capts
419 struct bcm_ptp_capture *capts) in bcm_ptp_get_tstamp() argument
441 capts->seq_id = bcm_phy_read_exp(priv->phydev, TS_INFO_0); in bcm_ptp_get_tstamp()
444 capts->msgtype = reg >> 12; in bcm_ptp_get_tstamp()
445 capts->tx_dir = !!(reg & BIT(11)); in bcm_ptp_get_tstamp()
454 capts->hwtstamp = ktime_set(sec, nsec); in bcm_ptp_get_tstamp()
460 struct bcm_ptp_capture *capts) in bcm_ptp_match_tstamp() argument
470 if (BCM_SKB_CB(skb)->seq_id == capts->seq_id && in bcm_ptp_match_tstamp()
471 BCM_SKB_CB(skb)->msgtype == capts->msgtype) { in bcm_ptp_match_tstamp()
486 hwts.hwtstamp = capts->hwtstamp; in bcm_ptp_match_tstamp()
506 struct bcm_ptp_capture capts; in bcm_ptp_do_aux_work() local
510 if (!bcm_ptp_get_tstamp(priv, &capts)) { in bcm_ptp_do_aux_work()
514 bcm_ptp_match_tstamp(priv, &capts); in bcm_ptp_do_aux_work()