Home
last modified time | relevance | path

Searched refs:hwtstamp (Results 1 – 25 of 115) sorted by relevance

12345

/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dtime-sync.c79 shwt->hwtstamp = ktime_set(0, adj_time); in iwl_mvm_time_sync_msmt_event()
88 ktime_to_ns(shwt->hwtstamp), in iwl_mvm_time_sync_msmt_event()
114 shwt->hwtstamp = ktime_set(0, adj_time); in iwl_mvm_time_sync_msmt_confirm_event()
123 ktime_to_ns(shwt->hwtstamp), in iwl_mvm_time_sync_msmt_confirm_event()
/openbmc/linux/tools/testing/selftests/net/
H A Drxtimestamp.c33 bool hwtstamp; member
149 if (t->expected.swtstamp || t->expected.hwtstamp) { in print_test_case()
153 if (t->expected.swtstamp && t->expected.hwtstamp) in print_test_case()
155 if (t->expected.hwtstamp) in print_test_case()
224 actual.hwtstamp = !!ts->ts[2].tv_sec; in do_recv()
246 VALIDATE(hwtstamp); in do_recv()
H A Dtimestamping.c326 struct ifreq hwtstamp; in main() local
392 memset(&hwtstamp, 0, sizeof(hwtstamp)); in main()
393 memcpy(hwtstamp.ifr_name, interface, if_len + 1); in main()
394 hwtstamp.ifr_data = (void *)&hwconfig; in main()
404 if (ioctl(sock, SIOCSHWTSTAMP, &hwtstamp) < 0) { in main()
/openbmc/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_tai.c346 struct skb_shared_hwtstamps *hwtstamp) in mvpp22_tai_tstamp() argument
367 memset(hwtstamp, 0, sizeof(*hwtstamp)); in mvpp22_tai_tstamp()
368 hwtstamp->hwtstamp = timespec64_to_ktime(ts); in mvpp22_tai_tstamp()
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dtx_common.c149 struct skb_shared_hwtstamps hwtstamp; in efx_dequeue_buffer() local
151 hwtstamp.hwtstamp = in efx_dequeue_buffer()
153 skb_tstamp_tx(skb, &hwtstamp); in efx_dequeue_buffer()
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dtx_common.c183 struct skb_shared_hwtstamps hwtstamp; in efx_dequeue_buffer() local
185 hwtstamp.hwtstamp = in efx_dequeue_buffer()
187 skb_tstamp_tx(skb, &hwtstamp); in efx_dequeue_buffer()
/openbmc/linux/include/linux/
H A Dptp_clock_kernel.h445 ktime_t ptp_convert_timestamp(const ktime_t *hwtstamp, int vclock_index);
449 static inline ktime_t ptp_convert_timestamp(const ktime_t *hwtstamp, in ptp_convert_timestamp() argument
H A Dmii_timestamper.h53 int (*hwtstamp)(struct mii_timestamper *mii_ts, member
/openbmc/linux/drivers/net/can/usb/kvaser_usb/
H A Dkvaser_usb_hydra.c1066 ktime_t hwtstamp) in kvaser_usb_hydra_error_frame() argument
1123 shhwtstamps->hwtstamp = hwtstamp; in kvaser_usb_hydra_error_frame()
1228 ktime_t hwtstamp; in kvaser_usb_hydra_rx_msg_std() local
1237 hwtstamp = kvaser_usb_hydra_ktime_from_rx_cmd(dev->cfg, cmd); in kvaser_usb_hydra_rx_msg_std()
1241 hwtstamp); in kvaser_usb_hydra_rx_msg_std()
1252 shhwtstamps->hwtstamp = hwtstamp; in kvaser_usb_hydra_rx_msg_std()
1292 ktime_t hwtstamp; in kvaser_usb_hydra_rx_msg_ext() local
1305 hwtstamp = kvaser_usb_hydra_ktime_from_rx_cmd(dev->cfg, std_cmd); in kvaser_usb_hydra_rx_msg_ext()
1309 hwtstamp); in kvaser_usb_hydra_rx_msg_ext()
1324 shhwtstamps->hwtstamp = hwtstamp; in kvaser_usb_hydra_rx_msg_ext()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dptp.c99 hwts.hwtstamp = mlx5e_skb_cb_get_hwts(skb)->port_hwtstamp; in mlx5e_skb_cb_hwtstamp_tx()
104 ktime_t hwtstamp, in mlx5e_skb_cb_hwtstamp_handler() argument
109 mlx5e_skb_cb_get_hwts(skb)->cqe_hwtstamp = hwtstamp; in mlx5e_skb_cb_hwtstamp_handler()
112 mlx5e_skb_cb_get_hwts(skb)->port_hwtstamp = hwtstamp; in mlx5e_skb_cb_hwtstamp_handler()
189 ktime_t hwtstamp; in mlx5e_ptp_handle_ts_cqe() local
208 hwtstamp = mlx5e_cqe_ts_to_ns(sq->ptp_cyc2time, sq->clock, get_cqe_ts(cqe)); in mlx5e_ptp_handle_ts_cqe()
210 hwtstamp, ptpsq->cq_stats); in mlx5e_ptp_handle_ts_cqe()
213 mlx5e_ptpsq_mark_ts_cqes_undelivered(ptpsq, hwtstamp); in mlx5e_ptp_handle_ts_cqe()
H A Dptp.h149 ktime_t hwtstamp,
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_skb_ctx.c31 if (skb->hwtstamp != 11) in process()
/openbmc/linux/drivers/net/phy/
H A Dbcm-phy-ptp.c152 ktime_t hwtstamp; member
407 hwts->hwtstamp = ktime_set(sec, nsec); in bcm_ptp_rxtstamp()
454 capts->hwtstamp = ktime_set(sec, nsec); in bcm_ptp_get_tstamp()
486 hwts.hwtstamp = capts->hwtstamp; in bcm_ptp_match_tstamp()
905 priv->mii_ts.hwtstamp = bcm_ptp_hwtstamp; in bcm_ptp_init()
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ptp.c359 struct skb_shared_hwtstamps *hwtstamp, in aq_ptp_convert_to_hwtstamp() argument
362 memset(hwtstamp, 0, sizeof(*hwtstamp)); in aq_ptp_convert_to_hwtstamp()
363 hwtstamp->hwtstamp = ns_to_ktime(timestamp); in aq_ptp_convert_to_hwtstamp()
539 struct skb_shared_hwtstamps hwtstamp; in aq_ptp_tx_hwtstamp() local
547 aq_ptp_convert_to_hwtstamp(aq_ptp, &hwtstamp, timestamp); in aq_ptp_tx_hwtstamp()
548 skb_tstamp_tx(skb, &hwtstamp); in aq_ptp_tx_hwtstamp()
/openbmc/linux/drivers/net/dsa/mv88e6xxx/
H A DMakefile11 mv88e6xxx-$(CONFIG_NET_DSA_MV88E6XXX_PTP) += hwtstamp.o
H A Dhwtstamp.c301 shwt->hwtstamp = ns_to_ktime(ns); in mv88e6xxx_get_rxts()
419 shhwtstamps.hwtstamp = ns_to_ktime(ns); in mv88e6xxx_txtstamp_work()
423 ps->port_id, ktime_to_ns(shhwtstamps.hwtstamp), in mv88e6xxx_txtstamp_work()
/openbmc/linux/drivers/ptp/
H A Dptp_vclock.c268 ktime_t ptp_convert_timestamp(const ktime_t *hwtstamp, int vclock_index) in ptp_convert_timestamp() argument
275 ns = ktime_to_ns(*hwtstamp); in ptp_convert_timestamp()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ptp.c397 struct skb_shared_hwtstamps *hwtstamp, in ixgbe_ptp_convert_to_hwtstamp() argument
404 memset(hwtstamp, 0, sizeof(*hwtstamp)); in ixgbe_ptp_convert_to_hwtstamp()
436 hwtstamp->hwtstamp = ns_to_ktime(ns); in ixgbe_ptp_convert_to_hwtstamp()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A Digb_ptp.c180 hwtstamps->hwtstamp = ns_to_ktime(ns); in igb_ptp_systim_to_hwtstamp()
185 hwtstamps->hwtstamp = ktime_set(systim >> 32, in igb_ptp_systim_to_hwtstamp()
974 shhwtstamps.hwtstamp = in igb_ptp_tx_hwtstamp()
975 ktime_add_ns(shhwtstamps.hwtstamp, adjust); in igb_ptp_tx_hwtstamp()
1040 *timestamp = ktime_sub_ns(ts.hwtstamp, adjust); in igb_ptp_rx_pktstamp()
1095 skb_hwtstamps(skb)->hwtstamp = in igb_ptp_rx_rgtstamp()
1096 ktime_sub_ns(skb_hwtstamps(skb)->hwtstamp, adjust); in igb_ptp_rx_rgtstamp()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dskb_ctx.c21 .hwtstamp = 11, in test_skb_ctx()
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_ptp.c362 shwt->hwtstamp = ns_to_ktime(sja1105_ticks_to_ns(ts)); in sja1105_rxtstamp_work()
398 shwt->hwtstamp = ns_to_ktime(sja1105_ticks_to_ns(ts)); in sja1110_rxtstamp()
442 shwt.hwtstamp = ns_to_ktime(sja1105_ticks_to_ns(tstamp)); in sja1110_process_meta_tstamp()
969 shwt.hwtstamp = ns_to_ktime(sja1105_ticks_to_ns(ts)); in sja1105_ptp_txtstamp_skb()
/openbmc/linux/drivers/net/dsa/hirschmann/
H A Dhellcreek_hwtstamp.c268 shhwtstamps.hwtstamp = ns_to_ktime(ns); in hellcreek_txtstamp_work()
326 shwt->hwtstamp = ns_to_ktime(ns); in hellcreek_get_rxts()
/openbmc/linux/net/
H A Dsocket.c852 ktime_t hwtstamp; in get_timestamp() local
858 hwtstamp = netdev_get_tstamp(orig_dev, shhwtstamps, cycles); in get_timestamp()
860 hwtstamp = shhwtstamps->hwtstamp; in get_timestamp()
864 return hwtstamp; in get_timestamp()
905 ktime_t hwtstamp; in __sock_recv_timestamp() local
957 hwtstamp = get_timestamp(sk, skb, &if_index); in __sock_recv_timestamp()
959 hwtstamp = shhwtstamps->hwtstamp; in __sock_recv_timestamp()
962 hwtstamp = ptp_convert_timestamp(&hwtstamp, in __sock_recv_timestamp()
965 if (ktime_to_timespec64_cond(hwtstamp, tss.ts + 2)) { in __sock_recv_timestamp()
/openbmc/linux/drivers/net/ethernet/cadence/
H A Dmacb_ptp.c291 shhwtstamps->hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in gem_ptp_rxstamp()
321 shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in gem_ptp_txstamp()
/openbmc/linux/net/bpf/
H A Dtest_run.c894 offsetof(struct __sk_buff, hwtstamp))) in convert___skb_to_skb()
899 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, hwtstamp), in convert___skb_to_skb()
922 skb_shinfo(skb)->hwtstamps.hwtstamp = __skb->hwtstamp; in convert___skb_to_skb()
942 __skb->hwtstamp = skb_shinfo(skb)->hwtstamps.hwtstamp; in convert_skb_to___skb()

12345