Lines Matching refs:hwts
291 struct nxp_c45_hwts *hwts);
496 struct nxp_c45_hwts *hwts) in nxp_c45_reconstruct_ts() argument
498 ts->tv_nsec = hwts->nsec; in nxp_c45_reconstruct_ts()
499 if ((ts->tv_sec & TS_SEC_MASK) < (hwts->sec & TS_SEC_MASK)) in nxp_c45_reconstruct_ts()
502 ts->tv_sec |= hwts->sec & TS_SEC_MASK; in nxp_c45_reconstruct_ts()
506 struct nxp_c45_hwts *hwts, in nxp_c45_match_ts() argument
509 return ntohs(header->sequence_id) == hwts->sequence_id && in nxp_c45_match_ts()
510 ptp_get_msgtype(header, type) == hwts->msg_type && in nxp_c45_match_ts()
511 header->domain_number == hwts->domain_number; in nxp_c45_match_ts()
579 struct nxp_c45_hwts *hwts) in nxp_c45_read_egress_ts() argument
584 hwts->domain_number = in nxp_c45_read_egress_ts()
586 hwts->msg_type = in nxp_c45_read_egress_ts()
588 hwts->sequence_id = in nxp_c45_read_egress_ts()
590 hwts->nsec = in nxp_c45_read_egress_ts()
592 hwts->nsec |= in nxp_c45_read_egress_ts()
594 hwts->sec = nxp_c45_read_reg_field(phydev, ®map->sec_1_0); in nxp_c45_read_egress_ts()
595 hwts->sec |= nxp_c45_read_reg_field(phydev, ®map->sec_4_2) << 2; in nxp_c45_read_egress_ts()
599 struct nxp_c45_hwts *hwts) in nxp_c45_get_hwtxts() argument
612 nxp_c45_read_egress_ts(priv, hwts); in nxp_c45_get_hwtxts()
630 struct nxp_c45_hwts *hwts) in tja1120_get_hwtxts() argument
654 nxp_c45_read_egress_ts(priv, hwts); in tja1120_get_hwtxts()
704 struct nxp_c45_hwts hwts; in nxp_c45_do_aux_work() local
712 ts_valid = data->get_egressts(priv, &hwts); in nxp_c45_do_aux_work()
719 nxp_c45_process_txts(priv, &hwts); in nxp_c45_do_aux_work()
725 hwts.sec = ts_raw >> 30; in nxp_c45_do_aux_work()
726 hwts.nsec = ts_raw & GENMASK(29, 0); in nxp_c45_do_aux_work()
727 nxp_c45_reconstruct_ts(&ts, &hwts); in nxp_c45_do_aux_work()
1264 struct nxp_c45_hwts hwts; in nxp_c45_handle_interrupt() local
1284 while (data->get_egressts(priv, &hwts)) in nxp_c45_handle_interrupt()
1285 nxp_c45_process_txts(priv, &hwts); in nxp_c45_handle_interrupt()