Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/ethernet/cadence/
H A 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()
/openbmc/linux/drivers/net/phy/
H A 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 …]
H A Dmicrel.c2620 struct skb_shared_hwtstamps *shhwtstamps; in lan8814_match_rx_skb() local
2636 shhwtstamps = skb_hwtstamps(skb); in lan8814_match_rx_skb()
2637 memset(shhwtstamps, 0, sizeof(*shhwtstamps)); in lan8814_match_rx_skb()
2638 shhwtstamps->hwtstamp = ktime_set(rx_ts->seconds, in lan8814_match_rx_skb()
2925 struct skb_shared_hwtstamps shhwtstamps; in lan8814_match_tx_skb() local
2946 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in lan8814_match_tx_skb()
2947 shhwtstamps.hwtstamp = ktime_set(seconds, nsec); in lan8814_match_tx_skb()
2948 skb_complete_tx_timestamp(skb, &shhwtstamps); in lan8814_match_tx_skb()
2980 struct skb_shared_hwtstamps *shhwtstamps; in lan8814_match_skb() local
3002 shhwtstamps = skb_hwtstamps(skb); in lan8814_match_skb()
[all …]
H A 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()
/openbmc/linux/drivers/net/dsa/hirschmann/
H A 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()
/openbmc/linux/drivers/net/dsa/mv88e6xxx/
H A 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()
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A 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()
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/
H A 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
H A 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()
H A 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()
/openbmc/linux/drivers/net/ethernet/qlogic/qede/
H A 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()
/openbmc/linux/drivers/net/ethernet/xscale/
H A 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()
/openbmc/linux/drivers/net/phy/mscc/
H A 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()
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A 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()
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot_ptp.c822 struct skb_shared_hwtstamps shhwtstamps; in ocelot_get_txtstamp() local
854 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in ocelot_get_txtstamp()
855 shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in ocelot_get_txtstamp()
856 skb_complete_tx_timestamp(skb_match, &shhwtstamps); in ocelot_get_txtstamp()
/openbmc/linux/drivers/net/can/usb/kvaser_usb/
H A 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()
/openbmc/linux/drivers/net/ethernet/intel/igc/
H A 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()
/openbmc/linux/drivers/net/ethernet/renesas/
H A Drswitch.c746 struct skb_shared_hwtstamps *shhwtstamps; in rswitch_rx() local
749 shhwtstamps = skb_hwtstamps(skb); in rswitch_rx()
750 memset(shhwtstamps, 0, sizeof(*shhwtstamps)); in rswitch_rx()
753 shhwtstamps->hwtstamp = timespec64_to_ktime(ts); in rswitch_rx()
936 struct skb_shared_hwtstamps shhwtstamps; in rswitch_ts() local
963 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in rswitch_ts()
966 shhwtstamps.hwtstamp = timespec64_to_ktime(ts); in rswitch_ts()
967 skb_tstamp_tx(ts_skb, &shhwtstamps); in rswitch_ts()
H A 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()
/openbmc/linux/drivers/net/ethernet/oki-semi/pch_gbe/
H A 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()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A 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()
/openbmc/linux/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_eth.c1681 struct skb_shared_hwtstamps shhwtstamps; in dpaa_cleanup_tx_fd() local
1732 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in dpaa_cleanup_tx_fd()
1736 shhwtstamps.hwtstamp = ns_to_ktime(ns); in dpaa_cleanup_tx_fd()
1737 skb_tstamp_tx(skb, &shhwtstamps); in dpaa_cleanup_tx_fd()
2677 struct skb_shared_hwtstamps *shhwtstamps; in rx_default_dqrr() local
2800 shhwtstamps = skb_hwtstamps(skb); in rx_default_dqrr()
2801 memset(shhwtstamps, 0, sizeof(*shhwtstamps)); in rx_default_dqrr()
2802 shhwtstamps->hwtstamp = ns_to_ktime(ns); in rx_default_dqrr()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A 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()
/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc.c768 struct skb_shared_hwtstamps shhwtstamps; in enetc_tstamp_tx() local
771 memset(&shhwtstamps, 0, sizeof(shhwtstamps)); in enetc_tstamp_tx()
772 shhwtstamps.hwtstamp = ns_to_ktime(tstamp); in enetc_tstamp_tx()
774 skb_tstamp_tx(skb, &shhwtstamps); in enetc_tstamp_tx()
989 struct skb_shared_hwtstamps *shhwtstamps = skb_hwtstamps(skb); in enetc_get_rx_tstamp() local
1004 memset(shhwtstamps, 0, sizeof(*shhwtstamps)); in enetc_get_rx_tstamp()
1005 shhwtstamps->hwtstamp = ns_to_ktime(tstamp); in enetc_get_rx_tstamp()
/openbmc/linux/drivers/net/ethernet/freescale/
H A 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