Lines Matching refs:nsec
1203 unsigned int nsec) in xgbe_set_tstamp_time() argument
1207 XGMAC_IOWRITE(pdata, MAC_STNUR, nsec); in xgbe_set_tstamp_time()
1217 u64 nsec; in xgbe_get_tstamp_time() local
1219 nsec = XGMAC_IOREAD(pdata, MAC_STSR); in xgbe_get_tstamp_time()
1220 nsec *= NSEC_PER_SEC; in xgbe_get_tstamp_time()
1221 nsec += XGMAC_IOREAD(pdata, MAC_STNR); in xgbe_get_tstamp_time()
1223 return nsec; in xgbe_get_tstamp_time()
1229 u64 nsec; in xgbe_get_tx_tstamp() local
1235 nsec = XGMAC_IOREAD(pdata, MAC_TXSSR); in xgbe_get_tx_tstamp()
1236 nsec *= NSEC_PER_SEC; in xgbe_get_tx_tstamp()
1237 nsec += tx_snr; in xgbe_get_tx_tstamp()
1239 return nsec; in xgbe_get_tx_tstamp()
1245 u64 nsec; in xgbe_get_rx_tstamp() local
1249 nsec = le32_to_cpu(rdesc->desc1); in xgbe_get_rx_tstamp()
1250 nsec <<= 32; in xgbe_get_rx_tstamp()
1251 nsec |= le32_to_cpu(rdesc->desc0); in xgbe_get_rx_tstamp()
1252 if (nsec != 0xffffffffffffffffULL) { in xgbe_get_rx_tstamp()
1253 packet->rx_tstamp = nsec; in xgbe_get_rx_tstamp()