Home
last modified time | relevance | path

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

12345

/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/mvm/
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()
/linux-6.6.21/tools/testing/selftests/net/
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()
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()
/linux-6.6.21/drivers/net/ethernet/marvell/mvpp2/
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()
/linux-6.6.21/drivers/net/ethernet/sfc/siena/
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()
/linux-6.6.21/drivers/net/ethernet/sfc/
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()
/linux-6.6.21/include/linux/
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
Dmii_timestamper.h53 int (*hwtstamp)(struct mii_timestamper *mii_ts, member
/linux-6.6.21/drivers/net/can/usb/kvaser_usb/
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()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dtest_skb_ctx.c31 if (skb->hwtstamp != 11) in process()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
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()
Dptp.h143 ktime_t hwtstamp,
/linux-6.6.21/drivers/net/phy/
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()
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/
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()
/linux-6.6.21/drivers/net/dsa/mv88e6xxx/
DMakefile11 mv88e6xxx-$(CONFIG_NET_DSA_MV88E6XXX_PTP) += hwtstamp.o
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()
/linux-6.6.21/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-timestamp.c49 hwtstamps->hwtstamp = ns_to_ktime(ns); in mcp251xfd_skb_set_timestamp()
/linux-6.6.21/drivers/ptp/
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()
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/
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()
/linux-6.6.21/drivers/net/ethernet/intel/igb/
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()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dskb_ctx.c21 .hwtstamp = 11, in test_skb_ctx()
/linux-6.6.21/drivers/net/dsa/hirschmann/
Dhellcreek_hwtstamp.c268 shhwtstamps.hwtstamp = ns_to_ktime(ns); in hellcreek_txtstamp_work()
326 shwt->hwtstamp = ns_to_ktime(ns); in hellcreek_get_rxts()
/linux-6.6.21/drivers/net/dsa/sja1105/
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()
/linux-6.6.21/net/
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()
/linux-6.6.21/drivers/net/ethernet/cadence/
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()

12345