Lines Matching refs:nsec
1214 unsigned int nsec) in xgbe_set_tstamp_time() argument
1218 XGMAC_IOWRITE(pdata, MAC_STNUR, nsec); in xgbe_set_tstamp_time()
1228 u64 nsec; in xgbe_get_tstamp_time() local
1230 nsec = XGMAC_IOREAD(pdata, MAC_STSR); in xgbe_get_tstamp_time()
1231 nsec *= NSEC_PER_SEC; in xgbe_get_tstamp_time()
1232 nsec += XGMAC_IOREAD(pdata, MAC_STNR); in xgbe_get_tstamp_time()
1234 return nsec; in xgbe_get_tstamp_time()
1240 u64 nsec; in xgbe_get_tx_tstamp() local
1246 nsec = XGMAC_IOREAD(pdata, MAC_TXSSR); in xgbe_get_tx_tstamp()
1247 nsec *= NSEC_PER_SEC; in xgbe_get_tx_tstamp()
1248 nsec += tx_snr; in xgbe_get_tx_tstamp()
1250 return nsec; in xgbe_get_tx_tstamp()
1256 u64 nsec; in xgbe_get_rx_tstamp() local
1260 nsec = le32_to_cpu(rdesc->desc1); in xgbe_get_rx_tstamp()
1261 nsec <<= 32; in xgbe_get_rx_tstamp()
1262 nsec |= le32_to_cpu(rdesc->desc0); in xgbe_get_rx_tstamp()
1263 if (nsec != 0xffffffffffffffffULL) { in xgbe_get_rx_tstamp()
1264 packet->rx_tstamp = nsec; in xgbe_get_rx_tstamp()