Lines Matching refs:hwts
350 struct nxp_c45_hwts *hwts) in nxp_c45_reconstruct_ts() argument
352 ts->tv_nsec = hwts->nsec; in nxp_c45_reconstruct_ts()
353 if ((ts->tv_sec & TS_SEC_MASK) < (hwts->sec & TS_SEC_MASK)) in nxp_c45_reconstruct_ts()
356 ts->tv_sec |= hwts->sec & TS_SEC_MASK; in nxp_c45_reconstruct_ts()
360 struct nxp_c45_hwts *hwts, in nxp_c45_match_ts() argument
363 return ntohs(header->sequence_id) == hwts->sequence_id && in nxp_c45_match_ts()
364 ptp_get_msgtype(header, type) == hwts->msg_type && in nxp_c45_match_ts()
365 header->domain_number == hwts->domain_number; in nxp_c45_match_ts()
384 struct nxp_c45_hwts *hwts) in nxp_c45_get_hwtxts() argument
397 hwts->domain_number = reg; in nxp_c45_get_hwtxts()
398 hwts->msg_type = (reg & RING_DATA_0_MSG_TYPE) >> 8; in nxp_c45_get_hwtxts()
399 hwts->sec = (reg & RING_DATA_0_SEC_4_2) >> 10; in nxp_c45_get_hwtxts()
400 hwts->sequence_id = phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_hwtxts()
402 hwts->nsec = phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_hwtxts()
405 hwts->nsec |= (reg & RING_DATA_3_NSEC_29_16) << 16; in nxp_c45_get_hwtxts()
406 hwts->sec |= (reg & RING_DATA_3_SEC_1_0) >> 14; in nxp_c45_get_hwtxts()
454 struct nxp_c45_hwts hwts; in nxp_c45_do_aux_work() local
462 txts_valid = nxp_c45_get_hwtxts(priv, &hwts); in nxp_c45_do_aux_work()
469 nxp_c45_process_txts(priv, &hwts); in nxp_c45_do_aux_work()
475 hwts.sec = ts_raw >> 30; in nxp_c45_do_aux_work()
476 hwts.nsec = ts_raw & GENMASK(29, 0); in nxp_c45_do_aux_work()
477 nxp_c45_reconstruct_ts(&ts, &hwts); in nxp_c45_do_aux_work()
905 struct nxp_c45_hwts hwts; in nxp_c45_handle_interrupt() local
922 while (nxp_c45_get_hwtxts(priv, &hwts)) in nxp_c45_handle_interrupt()
923 nxp_c45_process_txts(priv, &hwts); in nxp_c45_handle_interrupt()