/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | time-sync.c | 79 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/ |
D | rxtimestamp.c | 33 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()
|
D | timestamping.c | 326 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/ |
D | mvpp2_tai.c | 346 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/ |
D | tx_common.c | 149 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/ |
D | tx_common.c | 183 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/ |
D | ptp_clock_kernel.h | 445 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
|
D | mii_timestamper.h | 53 int (*hwtstamp)(struct mii_timestamper *mii_ts, member
|
/linux-6.6.21/drivers/net/can/usb/kvaser_usb/ |
D | kvaser_usb_hydra.c | 1066 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/ |
D | test_skb_ctx.c | 31 if (skb->hwtstamp != 11) in process()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | ptp.c | 99 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()
|
D | ptp.h | 143 ktime_t hwtstamp,
|
/linux-6.6.21/drivers/net/phy/ |
D | bcm-phy-ptp.c | 152 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/ |
D | aq_ptp.c | 359 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/ |
D | Makefile | 11 mv88e6xxx-$(CONFIG_NET_DSA_MV88E6XXX_PTP) += hwtstamp.o
|
D | hwtstamp.c | 301 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/ |
D | mcp251xfd-timestamp.c | 49 hwtstamps->hwtstamp = ns_to_ktime(ns); in mcp251xfd_skb_set_timestamp()
|
/linux-6.6.21/drivers/ptp/ |
D | ptp_vclock.c | 268 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/ |
D | ixgbe_ptp.c | 397 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/ |
D | igb_ptp.c | 180 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/ |
D | skb_ctx.c | 21 .hwtstamp = 11, in test_skb_ctx()
|
/linux-6.6.21/drivers/net/dsa/hirschmann/ |
D | hellcreek_hwtstamp.c | 268 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/ |
D | sja1105_ptp.c | 362 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/ |
D | socket.c | 852 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/ |
D | macb_ptp.c | 291 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()
|