Lines Matching defs:sec
3465 u32 *sec, u32 *nsec, u16 *seq)
3476 *sec = phy_read_mmd(phydev, 2, LAN8841_PTP_TX_EGRESS_SEC_HI);
3477 *sec = *sec << 16;
3478 *sec = *sec | phy_read_mmd(phydev, 2, LAN8841_PTP_TX_EGRESS_SEC_LO);
3487 u32 sec, nsec;
3490 while (lan8841_ptp_get_tx_ts(ptp_priv, &sec, &nsec, &seq))
3491 lan8814_match_tx_skb(ptp_priv, sec, nsec, seq);
3527 s32 sec, nsec;
3544 sec = phy_read_mmd(phydev, 2, LAN8841_PTP_GPIO_RE_LTC_SEC_HI_CAP);
3545 sec <<= 16;
3546 sec |= phy_read_mmd(phydev, 2, LAN8841_PTP_GPIO_RE_LTC_SEC_LO_CAP);
3552 sec = phy_read_mmd(phydev, 2, LAN8841_PTP_GPIO_FE_LTC_SEC_HI_CAP);
3553 sec <<= 16;
3554 sec |= phy_read_mmd(phydev, 2, LAN8841_PTP_GPIO_FE_LTC_SEC_LO_CAP);
3566 ptp_event.timestamp = ktime_set(sec, nsec);
3668 * this will add the ns and 2 bits of sec in the reserved field
3829 s64 sec, u32 nsec)
3835 upper_16_bits(sec));
3840 lower_16_bits(sec));
3868 s64 sec, u32 nsec)
3874 upper_16_bits(sec));
3879 lower_16_bits(sec));
4004 s32 sec;
4007 /* The HW allows up to 15 sec to adjust the time, but here we limit to
4008 * 10 sec the adjustment. The reason is, in case the adjustment is 14
4009 * sec and 999999999 nsec, then we add 8ns to compansate the actual
4010 * increment so the value can be bigger than 15 sec. Therefore limit the
4026 sec = div_u64_rem(delta < 0 ? -delta : delta, NSEC_PER_SEC, &nsec);
4032 sec--;
4046 sec++;
4051 if (sec) {
4052 phy_write_mmd(phydev, 2, LAN8841_PTP_LTC_STEP_ADJ_LO, sec);
4291 ts_on.tv_sec = rq->perout.on.sec;
4295 ts_period.tv_sec = rq->perout.period.sec;
4362 ret = lan8841_ptp_set_target(ptp_priv, LAN8841_EVENT_A, rq->perout.start.sec,
4368 ret = lan8841_ptp_set_reload(ptp_priv, LAN8841_EVENT_A, rq->perout.period.sec,