Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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.c308 struct ifreq hwtstamp; in main() local
363 memset(&hwtstamp, 0, sizeof(hwtstamp)); in main()
364 memcpy(hwtstamp.ifr_name, interface, if_len + 1); in main()
365 hwtstamp.ifr_data = (void *)&hwconfig; in main()
374 if (ioctl(sock, SIOCSHWTSTAMP, &hwtstamp) < 0) { in main()
/kernel/linux/linux-5.10/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()
Dmvpp2.h1174 bool hwtstamp; member
1442 struct skb_shared_hwtstamps *hwtstamp);
1452 struct skb_shared_hwtstamps *hwtstamp) in mvpp22_tai_tstamp() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
Digc_ptp.c146 hwtstamps->hwtstamp = ktime_set(systim >> 32, in igc_ptp_systim_to_hwtstamp()
204 skb_hwtstamps(skb)->hwtstamp = in igc_ptp_rx_pktstamp()
205 ktime_sub_ns(skb_hwtstamps(skb)->hwtstamp, adjust); in igc_ptp_rx_pktstamp()
392 shhwtstamps.hwtstamp = in igc_ptp_tx_hwtstamp()
393 ktime_add_ns(shhwtstamps.hwtstamp, adjust); in igc_ptp_tx_hwtstamp()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dtx_common.c171 struct skb_shared_hwtstamps hwtstamp; in efx_dequeue_buffer() local
173 hwtstamp.hwtstamp = in efx_dequeue_buffer()
175 skb_tstamp_tx(skb, &hwtstamp); in efx_dequeue_buffer()
/kernel/linux/linux-5.10/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_hydra.c1037 ktime_t hwtstamp) in kvaser_usb_hydra_error_frame() argument
1094 shhwtstamps->hwtstamp = hwtstamp; in kvaser_usb_hydra_error_frame()
1200 ktime_t hwtstamp; in kvaser_usb_hydra_rx_msg_std() local
1209 hwtstamp = kvaser_usb_hydra_ktime_from_rx_cmd(dev->cfg, cmd); in kvaser_usb_hydra_rx_msg_std()
1213 hwtstamp); in kvaser_usb_hydra_rx_msg_std()
1224 shhwtstamps->hwtstamp = hwtstamp; in kvaser_usb_hydra_rx_msg_std()
1262 ktime_t hwtstamp; in kvaser_usb_hydra_rx_msg_ext() local
1275 hwtstamp = kvaser_usb_hydra_ktime_from_rx_cmd(dev->cfg, std_cmd); in kvaser_usb_hydra_rx_msg_ext()
1279 hwtstamp); in kvaser_usb_hydra_rx_msg_ext()
1294 shhwtstamps->hwtstamp = hwtstamp; in kvaser_usb_hydra_rx_msg_ext()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/
Digb_ptp.c179 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()
843 shhwtstamps.hwtstamp = in igb_ptp_tx_hwtstamp()
844 ktime_add_ns(shhwtstamps.hwtstamp, adjust); in igb_ptp_tx_hwtstamp()
910 skb_hwtstamps(skb)->hwtstamp = in igb_ptp_rx_pktstamp()
911 ktime_sub_ns(skb_hwtstamps(skb)->hwtstamp, adjust); in igb_ptp_rx_pktstamp()
966 skb_hwtstamps(skb)->hwtstamp = in igb_ptp_rx_rgtstamp()
967 ktime_sub_ns(skb_hwtstamps(skb)->hwtstamp, adjust); in igb_ptp_rx_rgtstamp()
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/
DMakefile11 mv88e6xxx-$(CONFIG_NET_DSA_MV88E6XXX_PTP) += hwtstamp.o
Dhwtstamp.c305 shwt->hwtstamp = ns_to_ktime(ns); in mv88e6xxx_get_rxts()
423 shhwtstamps.hwtstamp = ns_to_ktime(ns); in mv88e6xxx_txtstamp_work()
427 ps->port_id, ktime_to_ns(shhwtstamps.hwtstamp), in mv88e6xxx_txtstamp_work()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/linux/
Dmii_timestamper.h53 int (*hwtstamp)(struct mii_timestamper *mii_ts, member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ptp.c394 struct skb_shared_hwtstamps *hwtstamp, in ixgbe_ptp_convert_to_hwtstamp() argument
401 memset(hwtstamp, 0, sizeof(*hwtstamp)); in ixgbe_ptp_convert_to_hwtstamp()
433 hwtstamp->hwtstamp = ns_to_ktime(ns); in ixgbe_ptp_convert_to_hwtstamp()
/kernel/linux/linux-5.10/drivers/ptp/
Dptp_ines.c499 ssh->hwtstamp = ns_to_ktime(ns); in ines_rxtstamp()
671 ssh.hwtstamp = ns_to_ktime(ns); in ines_txtstamp_work()
727 port->mii_ts.hwtstamp = ines_hwtstamp; in ines_ptp_probe_channel()
/kernel/linux/linux-5.10/drivers/net/ethernet/cadence/
Dmacb_ptp.c286 shhwtstamps->hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in gem_ptp_rxstamp()
298 shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in gem_tstamp_tx()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/
Dqede_ptp.c169 shhwtstamps.hwtstamp = ns_to_ktime(ns); in qede_ptp_task()
548 skb_hwtstamps(skb)->hwtstamp = ns_to_ktime(ns); in qede_ptp_rx_ts()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Den_clock.c74 hwts->hwtstamp = ns_to_ktime(nsec); in mlx4_en_fill_hwtstamps()
/kernel/linux/linux-5.10/drivers/net/phy/
Ddp83640.c867 shhwtstamps->hwtstamp = ns_to_ktime(rxts->ns); in decode_rxts()
917 shhwtstamps.hwtstamp = ns_to_ktime(ns); in decode_txts()
1340 shhwtstamps->hwtstamp = ns_to_ktime(rxts->ns); in dp83640_rxtstamp()
1432 dp83640->mii_ts.hwtstamp = dp83640_hwtstamp; in dp83640_probe()
/kernel/linux/linux-5.10/net/tipc/
Dtrace.c144 ktime_to_ms(skb_hwtstamps(skb)->hwtstamp)); in tipc_skb_dump()
/kernel/linux/linux-5.10/drivers/net/can/usb/peak_usb/
Dpcan_usb.c596 &hwts->hwtstamp); in pcan_usb_decode_error()
762 peak_usb_get_ts_time(&mc->pdev->time_ref, mc->ts16, &hwts->hwtstamp); in pcan_usb_decode_data()
Dpcan_usb_pro.c547 &hwts->hwtstamp); in pcan_usb_pro_handle_canmsg()
663 peak_usb_get_ts_time(&usb_if->time_ref, le32_to_cpu(er->ts32), &hwts->hwtstamp); in pcan_usb_pro_handle_error()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dcpts.c352 ssh.hwtstamp = ns_to_ktime(event->timestamp); in cpts_match_tx_ts()
531 ssh->hwtstamp = ns_to_ktime(ns); in cpts_rx_timestamp()
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/
Dsja1105_ptp.c403 shwt->hwtstamp = ns_to_ktime(sja1105_ticks_to_ns(ts)); in sja1105_rxtstamp_work()
923 shwt.hwtstamp = ns_to_ktime(sja1105_ticks_to_ns(ts)); in sja1105_ptp_txtstamp_skb()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ptp.c112 skb_ts->hwtstamp = ns_to_ktime(tx_ts); in cxgb4_ptp_read_hwstamp()
/kernel/linux/linux-5.10/drivers/net/phy/mscc/
Dmscc_ptp.c478 shhwtstamps.hwtstamp = ktime_set(fifo.secs, fifo.ns); in vsc85xx_dequeue_skb()
1217 shhwtstamps->hwtstamp = ktime_set(ts.tv_sec, ns); in vsc85xx_rxtstamp()
1489 vsc8531->mii_ts.hwtstamp = vsc85xx_hwtstamp; in __vsc8584_init_ptp()

123