/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ptp.c | 127 static void otx2_get_ptpclock(struct otx2_ptp *ptp, u64 *tstamp) in otx2_get_ptpclock() argument 132 *tstamp = timecounter_read(&ptp->time_counter); in otx2_get_ptpclock() 154 u64 tstamp; in otx2_ptp_gettime() local 156 otx2_get_ptpclock(ptp, &tstamp); in otx2_ptp_gettime() 157 *ts = ns_to_timespec64(tstamp); in otx2_ptp_gettime() 226 u64 tstamp; in otx2_sync_tstamp() local 229 tstamp = otx2_ptp_get_clock(ptp); in otx2_sync_tstamp() 232 ptp->tstamp = timecounter_cyc2time(&pfvf->ptp->time_counter, tstamp); in otx2_sync_tstamp() 233 ptp->base_ns = tstamp % NSEC_PER_SEC; in otx2_sync_tstamp() 385 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns) in otx2_ptp_tstamp2time() argument [all …]
|
D | otx2_ptp.h | 30 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns);
|
/drivers/net/ethernet/cavium/common/ |
D | cavium_ptp.h | 32 static inline u64 cavium_ptp_tstamp2time(struct cavium_ptp *ptp, u64 tstamp) in cavium_ptp_tstamp2time() argument 38 ret = timecounter_cyc2time(&ptp->time_counter, tstamp); in cavium_ptp_tstamp2time() 58 static inline u64 cavium_ptp_tstamp2time(struct cavium_ptp *ptp, u64 tstamp) in cavium_ptp_tstamp2time() argument
|
/drivers/platform/chrome/ |
D | cros_usbpd_logger.c | 81 ktime_t tstamp) in cros_usbpd_print_log_entry() argument 94 tstamp = ktime_sub_us(tstamp, r->timestamp << PD_LOG_TIMESTAMP_SHIFT); in cros_usbpd_print_log_entry() 95 rt = rtc_ktime_to_tm(tstamp); in cros_usbpd_print_log_entry() 161 div_s64_rem(ktime_to_ms(tstamp), MSEC_PER_SEC, &rem); in cros_usbpd_print_log_entry()
|
/drivers/net/wireless/ath/ath9k/ |
D | dynack.c | 159 ack_ts = da->ack_rbf.tstamp[da->ack_rbf.h_rb]; in ath_dynack_compute_to() 166 ack_ts, st_ts->tstamp, st_ts->dur, in ath_dynack_compute_to() 169 if (ack_ts > st_ts->tstamp + st_ts->dur) { in ath_dynack_compute_to() 170 ackto = ack_ts - st_ts->tstamp - st_ts->dur; in ath_dynack_compute_to() 248 da->st_rbf.ts[da->st_rbf.t_rb].tstamp = ts->ts_tstamp; in ath_dynack_sample_tx_ts() 304 da->ack_rbf.tstamp[da->ack_rbf.t_rb] = ts; in ath_dynack_sample_ack_ts()
|
D | dynack.h | 33 u32 tstamp[ATH_DYN_BUF]; member 37 u32 tstamp; member
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | trap.c | 51 rq->tstamp = &priv->tstamp; in mlx5e_init_trap_rq() 144 t->tstamp = &priv->tstamp; in mlx5e_open_trap()
|
D | trap.h | 25 struct hwtstamp_config *tstamp; member
|
D | ptp.h | 47 struct hwtstamp_config *tstamp; member
|
D | ptp.c | 559 rq->tstamp = &priv->tstamp; in mlx5e_init_ptp_rq() 739 c->tstamp = &priv->tstamp; in mlx5e_ptp_open()
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth.h | 255 static inline void ns_to_ptp_tstamp(struct ptp_tstamp *tstamp, u64 ns) in ns_to_ptp_tstamp() argument 262 tstamp->sec_lsb = sec & 0xFFFFFFFF; in ns_to_ptp_tstamp() 263 tstamp->sec_msb = (sec >> 32) & 0xFFFF; in ns_to_ptp_tstamp() 264 tstamp->nsec = nsec; in ns_to_ptp_tstamp()
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_tai.c | 345 void mvpp22_tai_tstamp(struct mvpp2_tai *tai, u32 tstamp, in mvpp22_tai_tstamp() argument 356 ts.tv_nsec = tstamp & 0x3fffffff; in mvpp22_tai_tstamp() 362 delta = ((tstamp >> 30) - (ts.tv_sec & 3)) & 3; in mvpp22_tai_tstamp()
|
/drivers/crypto/cavium/nitrox/ |
D | nitrox_reqmgr.c | 303 sr->tstamp = jiffies; in post_se_instr() 500 static inline int cmd_timeout(unsigned long tstamp, unsigned long timeout) in cmd_timeout() argument 502 return time_after_eq(jiffies, (tstamp + timeout)); in cmd_timeout() 559 if (!cmd_timeout(sr->tstamp, ndev->timeout)) in process_response_list()
|
/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_desc.c | 192 u8 ostc_enable, u64 tstamp) in sxgbe_tx_ctxt_desc_set_tstamp() argument 196 p->tstamp_lo = (u32) tstamp; in sxgbe_tx_ctxt_desc_set_tstamp() 197 p->tstamp_hi = (u32) (tstamp>>32); in sxgbe_tx_ctxt_desc_set_tstamp()
|
/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
D | setup.c | 58 rq->tstamp = c->tstamp; in mlx5e_init_xsk_rq()
|
/drivers/usb/mon/ |
D | mon_text.c | 60 unsigned int tstamp; member 217 ep->tstamp = stamp; in mon_text_event() 289 ep->tstamp = mon_get_timestamp(); in mon_text_error() 525 ep->id, ep->tstamp, ep->type, in mon_text_read_head_t() 543 ep->id, ep->tstamp, ep->type, in mon_text_read_head_u()
|
/drivers/net/wireless/marvell/mwifiex/ |
D | 11n_aggr.c | 185 skb_aggr->tstamp = skb_src->tstamp; in mwifiex_11n_aggregate_pkt()
|
/drivers/net/ethernet/freescale/fman/ |
D | fman_port.h | 129 int fman_port_get_tstamp(struct fman_port *port, const void *data, u64 *tstamp);
|
/drivers/net/ethernet/freescale/enetc/ |
D | enetc.c | 226 temp_bd.ext.tstamp = cpu_to_le32(lo & 0x3fffffff); in enetc_map_tx_buffs() 731 u64 *tstamp) in enetc_get_tx_tstamp() argument 737 tstamp_lo = le32_to_cpu(txbd->wb.tstamp); in enetc_get_tx_tstamp() 740 *tstamp = (u64)hi << 32 | tstamp_lo; in enetc_get_tx_tstamp() 743 static void enetc_tstamp_tx(struct sk_buff *skb, u64 tstamp) in enetc_tstamp_tx() argument 749 shhwtstamps.hwtstamp = ns_to_ktime(tstamp); in enetc_tstamp_tx() 802 u64 tstamp = 0; in enetc_clean_tx_ring() local 822 &tstamp); in enetc_clean_tx_ring() 846 enetc_tstamp_tx(skb, tstamp); in enetc_clean_tx_ring() 969 u64 tstamp; in enetc_get_rx_tstamp() local [all …]
|
/drivers/net/dsa/sja1105/ |
D | sja1105_ptp.c | 359 ts = SJA1105_SKB_CB(skb)->tstamp; in sja1105_rxtstamp_work() 394 u64 ts = SJA1105_SKB_CB(skb)->tstamp; in sja1110_rxtstamp() 414 enum sja1110_meta_tstamp dir, u64 tstamp) in sja1110_process_meta_tstamp() argument 442 shwt.hwtstamp = ns_to_ktime(sja1105_ticks_to_ns(tstamp)); in sja1110_process_meta_tstamp()
|
D | sja1105_ptp.h | 135 enum sja1110_meta_tstamp dir, u64 tstamp);
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | cpl5_cmd.h | 176 u8 tstamp:1; member 178 u8 tstamp:1; member
|
/drivers/iio/accel/ |
D | fxls8962af-core.c | 933 int64_t tstamp; in fxls8962af_fifo_flush() local 959 tstamp = data->timestamp - (count - 1) * sample_period; in fxls8962af_fifo_flush() 977 tstamp); in fxls8962af_fifo_flush() 979 tstamp += sample_period; in fxls8962af_fifo_flush()
|
/drivers/net/can/usb/etas_es58x/ |
D | es581_4.c | 126 u64 tstamp = get_unaligned_le64(&rx_can_msg->timestamp); in es581_4_rx_can_msg() local 132 ret = es58x_rx_can_msg(netdev, tstamp, rx_can_msg->data, in es581_4_rx_can_msg()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_ptp_hw.c | 593 ice_read_phy_tstamp_e822(struct ice_hw *hw, u8 quad, u8 idx, u64 *tstamp) in ice_read_phy_tstamp_e822() argument 620 *tstamp = ((u64)hi) << TS_PHY_HIGH_S | ((u64)lo & TS_PHY_LOW_M); in ice_read_phy_tstamp_e822() 2727 ice_read_phy_tstamp_e810(struct ice_hw *hw, u8 lport, u8 idx, u64 *tstamp) in ice_read_phy_tstamp_e810() argument 2744 *tstamp = ((u64)hi) << TS_HIGH_S | ((u64)lo & TS_LOW_M); in ice_read_phy_tstamp_e810() 3216 int ice_read_phy_tstamp(struct ice_hw *hw, u8 block, u8 idx, u64 *tstamp) in ice_read_phy_tstamp() argument 3219 return ice_read_phy_tstamp_e810(hw, block, idx, tstamp); in ice_read_phy_tstamp() 3221 return ice_read_phy_tstamp_e822(hw, block, idx, tstamp); in ice_read_phy_tstamp()
|