Home
last modified time | relevance | path

Searched refs:shhwtstamps (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.6.21/drivers/net/ethernet/cadence/
Dmacb_ptp.c277 struct skb_shared_hwtstamps *shhwtstamps = skb_hwtstamps(skb); in gem_ptp_rxstamp() local
290 memset(shhwtstamps, 0, sizeof(struct skb_shared_hwtstamps)); in gem_ptp_rxstamp()
291 shhwtstamps->hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in gem_ptp_rxstamp()
298 struct skb_shared_hwtstamps shhwtstamps; in gem_ptp_txstamp() local
320 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in gem_ptp_txstamp()
321 shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in gem_ptp_txstamp()
322 skb_tstamp_tx(skb, &shhwtstamps); in gem_ptp_txstamp()
/linux-6.6.21/drivers/net/phy/
Ddp83640.c839 struct skb_shared_hwtstamps *shhwtstamps = NULL; in decode_rxts() local
867 shhwtstamps = skb_hwtstamps(skb); in decode_rxts()
868 memset(shhwtstamps, 0, sizeof(*shhwtstamps)); in decode_rxts()
869 shhwtstamps->hwtstamp = ns_to_ktime(rxts->ns); in decode_rxts()
876 if (!shhwtstamps) in decode_rxts()
881 if (shhwtstamps) in decode_rxts()
888 struct skb_shared_hwtstamps shhwtstamps; in decode_txts() local
918 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in decode_txts()
919 shhwtstamps.hwtstamp = ns_to_ktime(ns); in decode_txts()
920 skb_complete_tx_timestamp(skb, &shhwtstamps); in decode_txts()
[all …]
Dmicrel.c2516 struct skb_shared_hwtstamps *shhwtstamps; in lan8814_match_rx_skb() local
2531 shhwtstamps = skb_hwtstamps(skb); in lan8814_match_rx_skb()
2532 memset(shhwtstamps, 0, sizeof(*shhwtstamps)); in lan8814_match_rx_skb()
2533 shhwtstamps->hwtstamp = ktime_set(rx_ts->seconds, in lan8814_match_rx_skb()
2816 struct skb_shared_hwtstamps shhwtstamps; in lan8814_match_tx_skb() local
2836 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in lan8814_match_tx_skb()
2837 shhwtstamps.hwtstamp = ktime_set(seconds, nsec); in lan8814_match_tx_skb()
2838 skb_complete_tx_timestamp(skb, &shhwtstamps); in lan8814_match_tx_skb()
2870 struct skb_shared_hwtstamps *shhwtstamps; in lan8814_match_skb() local
2891 shhwtstamps = skb_hwtstamps(skb); in lan8814_match_skb()
[all …]
Dnxp-c45-tja11xx.c670 struct skb_shared_hwtstamps shhwtstamps; in nxp_c45_process_txts() local
691 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in nxp_c45_process_txts()
693 shhwtstamps.hwtstamp = ns_to_ktime(ts_ns); in nxp_c45_process_txts()
694 skb_complete_tx_timestamp(skb_match, &shhwtstamps); in nxp_c45_process_txts()
/linux-6.6.21/drivers/net/dsa/hirschmann/
Dhellcreek_hwtstamp.c216 struct skb_shared_hwtstamps shhwtstamps; in hellcreek_txtstamp_work() local
267 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in hellcreek_txtstamp_work()
268 shhwtstamps.hwtstamp = ns_to_ktime(ns); in hellcreek_txtstamp_work()
280 skb_complete_tx_timestamp(tmp_skb, &shhwtstamps); in hellcreek_txtstamp_work()
/linux-6.6.21/drivers/net/dsa/mv88e6xxx/
Dhwtstamp.c364 struct skb_shared_hwtstamps shhwtstamps; in mv88e6xxx_txtstamp_work() local
414 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in mv88e6xxx_txtstamp_work()
419 shhwtstamps.hwtstamp = ns_to_ktime(ns); in mv88e6xxx_txtstamp_work()
423 ps->port_id, ktime_to_ns(shhwtstamps.hwtstamp), in mv88e6xxx_txtstamp_work()
434 skb_complete_tx_timestamp(tmp_skb, &shhwtstamps); in mv88e6xxx_txtstamp_work()
/linux-6.6.21/drivers/net/ethernet/microchip/sparx5/
Dsparx5_ptp.c309 struct skb_shared_hwtstamps shhwtstamps; in sparx5_ptp_irq_handler() local
382 shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in sparx5_ptp_irq_handler()
383 skb_tstamp_tx(skb_match, &shhwtstamps); in sparx5_ptp_irq_handler()
664 struct skb_shared_hwtstamps *shhwtstamps; in sparx5_ptp_rxtstamp() local
680 shhwtstamps = skb_hwtstamps(skb); in sparx5_ptp_rxtstamp()
681 shhwtstamps->hwtstamp = full_ts_in_ns; in sparx5_ptp_rxtstamp()
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/
Daq_ptp.h70 u16 aq_ptp_extract_ts(struct aq_nic_s *aq_nic, struct skb_shared_hwtstamps *shhwtstamps, u8 *p,
146 struct skb_shared_hwtstamps *shhwtstamps, u8 *p, in aq_ptp_extract_ts() argument
Daq_ptp.c562 static void aq_ptp_rx_hwtstamp(struct aq_ptp_s *aq_ptp, struct skb_shared_hwtstamps *shhwtstamps, in aq_ptp_rx_hwtstamp() argument
566 aq_ptp_convert_to_hwtstamp(aq_ptp, shhwtstamps, timestamp); in aq_ptp_rx_hwtstamp()
642 u16 aq_ptp_extract_ts(struct aq_nic_s *aq_nic, struct skb_shared_hwtstamps *shhwtstamps, u8 *p, in aq_ptp_extract_ts() argument
651 aq_ptp_rx_hwtstamp(aq_ptp, shhwtstamps, timestamp); in aq_ptp_extract_ts()
Daq_ring.c717 struct skb_shared_hwtstamps shhwtstamps; in __aq_ring_xdp_clean() local
787 ptp_hwtstamp_len = aq_ptp_extract_ts(rx_ring->aq_nic, &shhwtstamps, in __aq_ring_xdp_clean()
812 *skb_hwtstamps(skb) = shhwtstamps; in __aq_ring_xdp_clean()
/linux-6.6.21/drivers/net/ethernet/qlogic/qede/
Dqede_ptp.c139 struct skb_shared_hwtstamps shhwtstamps; in qede_ptp_task() local
171 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in qede_ptp_task()
172 shhwtstamps.hwtstamp = ns_to_ktime(ns); in qede_ptp_task()
173 skb_tstamp_tx(ptp->tx_skb, &shhwtstamps); in qede_ptp_task()
/linux-6.6.21/drivers/net/ethernet/xscale/
Dixp4xx_eth.c303 struct skb_shared_hwtstamps *shhwtstamps; in ixp_rx_timestamp() local
336 shhwtstamps = skb_hwtstamps(skb); in ixp_rx_timestamp()
337 memset(shhwtstamps, 0, sizeof(*shhwtstamps)); in ixp_rx_timestamp()
338 shhwtstamps->hwtstamp = ns_to_ktime(ns); in ixp_rx_timestamp()
345 struct skb_shared_hwtstamps shhwtstamps; in ixp_tx_timestamp() local
382 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in ixp_tx_timestamp()
383 shhwtstamps.hwtstamp = ns_to_ktime(ns); in ixp_tx_timestamp()
384 skb_tstamp_tx(skb, &shhwtstamps); in ixp_tx_timestamp()
/linux-6.6.21/drivers/net/phy/mscc/
Dmscc_ptp.c430 struct skb_shared_hwtstamps shhwtstamps; in vsc85xx_dequeue_skb() local
477 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in vsc85xx_dequeue_skb()
478 shhwtstamps.hwtstamp = ktime_set(fifo.secs, fifo.ns); in vsc85xx_dequeue_skb()
479 skb_complete_tx_timestamp(skb, &shhwtstamps); in vsc85xx_dequeue_skb()
1187 struct skb_shared_hwtstamps *shhwtstamps = NULL; in vsc85xx_rxtstamp() local
1205 shhwtstamps = skb_hwtstamps(skb); in vsc85xx_rxtstamp()
1206 memset(shhwtstamps, 0, sizeof(struct skb_shared_hwtstamps)); in vsc85xx_rxtstamp()
1214 shhwtstamps->hwtstamp = ktime_set(ts.tv_sec, ns); in vsc85xx_rxtstamp()
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/
Dlan966x_ptp.c459 struct skb_shared_hwtstamps shhwtstamps; in lan966x_ptp_irq_handler() local
530 shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in lan966x_ptp_irq_handler()
531 skb_tstamp_tx(skb_match, &shhwtstamps); in lan966x_ptp_irq_handler()
1086 struct skb_shared_hwtstamps *shhwtstamps; in lan966x_ptp_rxtstamp() local
1105 shhwtstamps = skb_hwtstamps(skb); in lan966x_ptp_rxtstamp()
1106 shhwtstamps->hwtstamp = full_ts_in_ns; in lan966x_ptp_rxtstamp()
/linux-6.6.21/drivers/net/ethernet/mscc/
Docelot_ptp.c750 struct skb_shared_hwtstamps shhwtstamps; in ocelot_get_txtstamp() local
805 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in ocelot_get_txtstamp()
806 shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in ocelot_get_txtstamp()
807 skb_complete_tx_timestamp(skb_match, &shhwtstamps); in ocelot_get_txtstamp()
/linux-6.6.21/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_hydra.c1072 struct skb_shared_hwtstamps *shhwtstamps; in kvaser_usb_hydra_error_frame() local
1122 shhwtstamps = skb_hwtstamps(skb); in kvaser_usb_hydra_error_frame()
1123 shhwtstamps->hwtstamp = hwtstamp; in kvaser_usb_hydra_error_frame()
1225 struct skb_shared_hwtstamps *shhwtstamps; in kvaser_usb_hydra_rx_msg_std() local
1251 shhwtstamps = skb_hwtstamps(skb); in kvaser_usb_hydra_rx_msg_std()
1252 shhwtstamps->hwtstamp = hwtstamp; in kvaser_usb_hydra_rx_msg_std()
1287 struct skb_shared_hwtstamps *shhwtstamps; in kvaser_usb_hydra_rx_msg_ext() local
1323 shhwtstamps = skb_hwtstamps(skb); in kvaser_usb_hydra_rx_msg_ext()
1324 shhwtstamps->hwtstamp = hwtstamp; in kvaser_usb_hydra_rx_msg_ext()
/linux-6.6.21/drivers/net/ethernet/intel/igc/
Digc_ptp.c713 struct skb_shared_hwtstamps shhwtstamps; in igc_ptp_tx_reg_to_stamp() local
721 if (igc_ptp_systim_to_hwtstamp(adapter, &shhwtstamps, regval)) in igc_ptp_tx_reg_to_stamp()
739 shhwtstamps.hwtstamp = in igc_ptp_tx_reg_to_stamp()
740 ktime_add_ns(shhwtstamps.hwtstamp, adjust); in igc_ptp_tx_reg_to_stamp()
744 skb_tstamp_tx(skb, &shhwtstamps); in igc_ptp_tx_reg_to_stamp()
/linux-6.6.21/drivers/net/ethernet/renesas/
Drswitch.c722 struct skb_shared_hwtstamps *shhwtstamps; in rswitch_rx() local
725 shhwtstamps = skb_hwtstamps(skb); in rswitch_rx()
726 memset(shhwtstamps, 0, sizeof(*shhwtstamps)); in rswitch_rx()
729 shhwtstamps->hwtstamp = timespec64_to_ktime(ts); in rswitch_rx()
917 struct skb_shared_hwtstamps shhwtstamps; in rswitch_ts() local
934 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in rswitch_ts()
937 shhwtstamps.hwtstamp = timespec64_to_ktime(ts); in rswitch_ts()
938 skb_tstamp_tx(ts_info->skb, &shhwtstamps); in rswitch_ts()
Dravb_main.c703 struct skb_shared_hwtstamps shhwtstamps; in ravb_get_tx_tstamp() local
717 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in ravb_get_tx_tstamp()
718 shhwtstamps.hwtstamp = timespec64_to_ktime(ts); in ravb_get_tx_tstamp()
726 skb_tstamp_tx(skb, &shhwtstamps); in ravb_get_tx_tstamp()
954 struct skb_shared_hwtstamps *shhwtstamps; in ravb_rx_rcar() local
956 shhwtstamps = skb_hwtstamps(skb); in ravb_rx_rcar()
957 memset(shhwtstamps, 0, sizeof(*shhwtstamps)); in ravb_rx_rcar()
961 shhwtstamps->hwtstamp = timespec64_to_ktime(ts); in ravb_rx_rcar()
/linux-6.6.21/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c129 struct skb_shared_hwtstamps *shhwtstamps; in pch_rx_timestamp() local
153 shhwtstamps = skb_hwtstamps(skb); in pch_rx_timestamp()
154 memset(shhwtstamps, 0, sizeof(*shhwtstamps)); in pch_rx_timestamp()
155 shhwtstamps->hwtstamp = ns_to_ktime(ns); in pch_rx_timestamp()
163 struct skb_shared_hwtstamps shhwtstamps; in pch_tx_timestamp() local
194 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in pch_tx_timestamp()
195 shhwtstamps.hwtstamp = ns_to_ktime(ns); in pch_tx_timestamp()
196 skb_tstamp_tx(skb, &shhwtstamps); in pch_tx_timestamp()
/linux-6.6.21/drivers/net/ethernet/intel/igb/
Digb_ptp.c951 struct skb_shared_hwtstamps shhwtstamps; in igb_ptp_tx_hwtstamp() local
958 igb_ptp_systim_to_hwtstamp(adapter, &shhwtstamps, regval); in igb_ptp_tx_hwtstamp()
974 shhwtstamps.hwtstamp = in igb_ptp_tx_hwtstamp()
975 ktime_add_ns(shhwtstamps.hwtstamp, adjust); in igb_ptp_tx_hwtstamp()
986 skb_tstamp_tx(skb, &shhwtstamps); in igb_ptp_tx_hwtstamp()
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c1673 struct skb_shared_hwtstamps shhwtstamps; in dpaa_cleanup_tx_fd() local
1724 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in dpaa_cleanup_tx_fd()
1728 shhwtstamps.hwtstamp = ns_to_ktime(ns); in dpaa_cleanup_tx_fd()
1729 skb_tstamp_tx(skb, &shhwtstamps); in dpaa_cleanup_tx_fd()
2662 struct skb_shared_hwtstamps *shhwtstamps; in rx_default_dqrr() local
2785 shhwtstamps = skb_hwtstamps(skb); in rx_default_dqrr()
2786 memset(shhwtstamps, 0, sizeof(*shhwtstamps)); in rx_default_dqrr()
2787 shhwtstamps->hwtstamp = ns_to_ktime(ns); in rx_default_dqrr()
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ptp.c806 struct skb_shared_hwtstamps shhwtstamps; in ixgbe_ptp_tx_hwtstamp() local
811 ixgbe_ptp_convert_to_hwtstamp(adapter, &shhwtstamps, regval); in ixgbe_ptp_tx_hwtstamp()
822 skb_tstamp_tx(skb, &shhwtstamps); in ixgbe_ptp_tx_hwtstamp()
/linux-6.6.21/drivers/net/ethernet/freescale/enetc/
Denetc.c765 struct skb_shared_hwtstamps shhwtstamps; in enetc_tstamp_tx() local
768 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in enetc_tstamp_tx()
769 shhwtstamps.hwtstamp = ns_to_ktime(tstamp); in enetc_tstamp_tx()
771 skb_tstamp_tx(skb, &shhwtstamps); in enetc_tstamp_tx()
985 struct skb_shared_hwtstamps *shhwtstamps = skb_hwtstamps(skb); in enetc_get_rx_tstamp() local
1000 memset(shhwtstamps, 0, sizeof(*shhwtstamps)); in enetc_get_rx_tstamp()
1001 shhwtstamps->hwtstamp = ns_to_ktime(tstamp); in enetc_get_rx_tstamp()
/linux-6.6.21/drivers/net/ethernet/freescale/
Dgianfar.c2207 struct skb_shared_hwtstamps shhwtstamps; in gfar_clean_tx_ring() local
2211 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in gfar_clean_tx_ring()
2212 shhwtstamps.hwtstamp = ns_to_ktime(be64_to_cpu(*ns)); in gfar_clean_tx_ring()
2214 skb_tstamp_tx(skb, &shhwtstamps); in gfar_clean_tx_ring()
2471 struct skb_shared_hwtstamps *shhwtstamps = skb_hwtstamps(skb); in gfar_process_frame() local
2474 memset(shhwtstamps, 0, sizeof(*shhwtstamps)); in gfar_process_frame()
2475 shhwtstamps->hwtstamp = ns_to_ktime(be64_to_cpu(*ns)); in gfar_process_frame()

12