/linux-master/drivers/net/dsa/mv88e6xxx/ |
H A D | ptp.c | 17 #include "ptp.h" 204 static int mv88e6xxx_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) argument 206 struct mv88e6xxx_chip *chip = ptp_to_chip(ptp); 232 static int mv88e6xxx_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument 234 struct mv88e6xxx_chip *chip = ptp_to_chip(ptp); 243 static int mv88e6xxx_ptp_gettime(struct ptp_clock_info *ptp, argument 246 struct mv88e6xxx_chip *chip = ptp_to_chip(ptp); 258 static int mv88e6xxx_ptp_settime(struct ptp_clock_info *ptp, argument 261 struct mv88e6xxx_chip *chip = ptp_to_chip(ptp); 326 static int mv88e6352_ptp_enable(struct ptp_clock_info *ptp, argument 339 mv88e6352_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, enum ptp_pin_function func, unsigned int chan) argument [all...] |
H A D | Makefile | 18 mv88e6xxx-$(CONFIG_NET_DSA_MV88E6XXX_PTP) += ptp.o
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | clock.h | 62 return mdev->clock.ptp ? ptp_clock_index(mdev->clock.ptp) : -1;
|
/linux-master/drivers/ptp/ |
H A D | ptp_dfl_tod.c | 126 static int dfl_tod_adjust_fine(struct ptp_clock_info *ptp, long scaled_ppm) argument 128 struct dfl_tod *dt = container_of(ptp, struct dfl_tod, ptp_clock_ops); 171 static int dfl_tod_adjust_time(struct ptp_clock_info *ptp, s64 delta) argument 173 struct dfl_tod *dt = container_of(ptp, struct dfl_tod, ptp_clock_ops); 226 static int dfl_tod_get_timex(struct ptp_clock_info *ptp, struct timespec64 *ts, argument 229 struct dfl_tod *dt = container_of(ptp, struct dfl_tod, ptp_clock_ops); 251 static int dfl_tod_set_time(struct ptp_clock_info *ptp, argument 254 struct dfl_tod *dt = container_of(ptp, struct dfl_tod, ptp_clock_ops);
|
H A D | ptp_pch.c | 339 static int ptp_pch_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) argument 342 struct pch_dev *pch_dev = container_of(ptp, struct pch_dev, caps); 352 static int ptp_pch_adjtime(struct ptp_clock_info *ptp, s64 delta) argument 356 struct pch_dev *pch_dev = container_of(ptp, struct pch_dev, caps); 368 static int ptp_pch_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 372 struct pch_dev *pch_dev = container_of(ptp, struct pch_dev, caps); 383 static int ptp_pch_settime(struct ptp_clock_info *ptp, argument 388 struct pch_dev *pch_dev = container_of(ptp, struct pch_dev, caps); 400 static int ptp_pch_enable(struct ptp_clock_info *ptp, argument 403 struct pch_dev *pch_dev = container_of(ptp, struc [all...] |
H A D | ptp_qoriq.c | 202 int ptp_qoriq_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) argument 207 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); 233 int ptp_qoriq_adjtime(struct ptp_clock_info *ptp, s64 delta) argument 235 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); 261 int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 265 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); 279 int ptp_qoriq_settime(struct ptp_clock_info *ptp, argument 284 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); 300 int ptp_qoriq_enable(struct ptp_clock_info *ptp, argument 303 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struc [all...] |
H A D | ptp_fc3.c | 373 static int idtfc3_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 375 struct idtfc3 *idtfc3 = container_of(ptp, struct idtfc3, caps); 408 static int idtfc3_settime(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument 410 struct idtfc3 *idtfc3 = container_of(ptp, struct idtfc3, caps); 442 static int idtfc3_adjtime(struct ptp_clock_info *ptp, s64 delta) argument 444 struct idtfc3 *idtfc3 = container_of(ptp, struct idtfc3, caps); 479 static int idtfc3_adjphase(struct ptp_clock_info *ptp, s32 delta) argument 481 struct idtfc3 *idtfc3 = container_of(ptp, struct idtfc3, caps); 522 static int idtfc3_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) argument 524 struct idtfc3 *idtfc3 = container_of(ptp, struc 534 idtfc3_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument 574 idtfc3_aux_work(struct ptp_clock_info *ptp) argument [all...] |
H A D | ptp_idt82p33.c | 866 static long idt82p33_work_handler(struct ptp_clock_info *ptp) argument 869 container_of(ptp, struct idt82p33_channel, caps); 943 static int idt82p33_enable(struct ptp_clock_info *ptp, argument 947 container_of(ptp, struct idt82p33_channel, caps); 981 static s32 idt82p33_getmaxphase(__always_unused struct ptp_clock_info *ptp) argument 986 static int idt82p33_adjwritephase(struct ptp_clock_info *ptp, s32 offset_ns) argument 989 container_of(ptp, struct idt82p33_channel, caps); 1022 static int idt82p33_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) argument 1025 container_of(ptp, struct idt82p33_channel, caps); 1048 static int idt82p33_adjtime(struct ptp_clock_info *ptp, s6 argument 1079 idt82p33_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 1096 idt82p33_settime(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument 1151 idt82p33_verify_pin(struct ptp_clock_info *ptp, unsigned int pin, enum ptp_pin_function func, unsigned int chan) argument [all...] |
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_ptp.c | 596 static int lan966x_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) argument 598 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); 643 static int lan966x_ptp_settime64(struct ptp_clock_info *ptp, argument 646 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); 682 int lan966x_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 684 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); 719 static int lan966x_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument 721 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); 756 lan966x_ptp_gettime64(ptp, &ts); 761 lan966x_ptp_settime64(ptp, 767 lan966x_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, enum ptp_pin_function func, unsigned int chan) argument 807 lan966x_ptp_perout(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument 908 lan966x_ptp_extts(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument 953 lan966x_ptp_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument [all...] |
/linux-master/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_phc.c | 79 if (!lif->phc || !lif->phc->ptp) 191 if (!lif->phc || !lif->phc->ptp) 215 if (!lif->phc || !lif->phc->ptp) 229 if (!lif->phc || !lif->phc->ptp) 253 if (!lif->phc || !lif->phc->ptp) 445 * correct time by the ptp daemon. 497 lif->phc->ptp = ptp_clock_register(&lif->phc->ptp_info, lif->ionic->dev); 499 if (IS_ERR(lif->phc->ptp)) { 501 PTR_ERR(lif->phc->ptp)); 503 lif->phc->ptp [all...] |
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_ptp.c | 55 * @skb: skb of outgoing ptp request 81 * @skb: skb of incoming ptp request 198 * @ptp: ptp clock structure 206 static int cxgb4_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) argument 208 struct adapter *adapter = (struct adapter *)container_of(ptp, 267 * @ptp: ptp clock structure 272 static int cxgb4_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument 275 (struct adapter *)container_of(ptp, struc 316 cxgb4_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 339 cxgb4_ptp_settime(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument 395 cxgb4_ptp_enable(struct ptp_clock_info __always_unused *ptp, struct ptp_clock_request __always_unused *request, int __always_unused on) argument [all...] |
/linux-master/drivers/net/ethernet/cadence/ |
H A D | macb_ptp.c | 26 #define GEM_PTP_TIMER_NAME "gem-ptp-timer" 41 static int gem_tsu_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts, argument 44 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); 77 static int gem_tsu_set_time(struct ptp_clock_info *ptp, argument 80 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); 122 static int gem_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) argument 124 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); 157 static int gem_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument 159 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); 183 static int gem_ptp_enable(struct ptp_clock_info *ptp, argument [all...] |
/linux-master/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_ptp.c | 272 * @ptp: the ptp clock structure 275 * adjust the frequency of the ptp cycle counter by the 278 static int aq_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) argument 280 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); 292 * @ptp: the ptp clock structure 297 static int aq_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument 299 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); 311 * @ptp 317 aq_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 340 aq_ptp_settime(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument 389 aq_ptp_perout_pin_configure(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument 426 aq_ptp_pps_pin_configure(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument 460 aq_ptp_extts_pin_configure(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument 487 aq_ptp_gpio_feature_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument 510 aq_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, enum ptp_pin_function func, unsigned int chan) argument [all...] |
/linux-master/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_ptp.c | 84 /* For now don't allow to run ptp on ports that are part of a bridge, 391 static int sparx5_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) argument 393 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); 438 static int sparx5_ptp_settime64(struct ptp_clock_info *ptp, argument 441 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); 477 int sparx5_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 479 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); 514 static int sparx5_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument 516 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); 551 sparx5_ptp_gettime64(ptp, [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | rx_res.c | 33 } ptp; member in struct:mlx5e_rx_res 404 err = mlx5e_rqt_init_direct(&res->ptp.rqt, res->mdev, false, res->drop_rqn, 411 mlx5e_rqt_get_rqtn(&res->ptp.rqt), 415 err = mlx5e_tir_init(&res->ptp.tir, builder, res->mdev, true); 422 mlx5e_rqt_destroy(&res->ptp.rqt); 443 mlx5e_tir_destroy(&res->ptp.tir); 444 mlx5e_rqt_destroy(&res->ptp.rqt); 522 return mlx5e_tir_get_tirn(&res->ptp.tir); 587 err = mlx5e_rqt_redirect_direct(&res->ptp.rqt, rqn, NULL); 590 mlx5e_rqt_get_rqtn(&res->ptp [all...] |
H A D | channels.c | 6 #include "en/ptp.h" 50 struct mlx5e_ptp *c = chs->ptp;
|
/linux-master/drivers/net/ethernet/intel/igb/ |
H A D | igb_ptp.c | 194 static int igb_ptp_adjfine_82576(struct ptp_clock_info *ptp, long scaled_ppm) argument 196 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, 208 static int igb_ptp_adjfine_82580(struct ptp_clock_info *ptp, long scaled_ppm) argument 210 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, 228 static int igb_ptp_adjtime_82576(struct ptp_clock_info *ptp, s64 delta) argument 230 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, 241 static int igb_ptp_adjtime_i210(struct ptp_clock_info *ptp, s64 delta) argument 243 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, 259 static int igb_ptp_gettimex_82576(struct ptp_clock_info *ptp, argument 263 struct igb_adapter *igb = container_of(ptp, struc 286 igb_ptp_gettimex_82580(struct ptp_clock_info *ptp, struct timespec64 *ts, struct ptp_system_timestamp *sts) argument 314 igb_ptp_gettimex_i210(struct ptp_clock_info *ptp, struct timespec64 *ts, struct ptp_system_timestamp *sts) argument 336 igb_ptp_settime_82576(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument 355 igb_ptp_settime_i210(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument 489 igb_ptp_feature_enable_82580(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument 641 igb_ptp_feature_enable_i210(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument 787 igb_ptp_feature_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument 793 igb_ptp_verify_pin(struct ptp_clock_info *ptp, unsigned int pin, enum ptp_pin_function func, unsigned int chan) argument [all...] |
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_ptp.h | 66 spinlock_t lock; /* protects ptp registers */ 127 struct hclge_ptp *ptp = container_of(info, struct hclge_ptp, info); local 129 return ptp->hdev;
|
/linux-master/drivers/net/ethernet/sfc/ |
H A D | Makefile | 5 selftest.o ethtool.o ethtool_common.o ptp.o \
|
/linux-master/drivers/net/ethernet/freescale/ |
H A D | fec_ptp.c | 134 * second point. So we need to know what the ptp time 141 /* Convert the ptp local counter to 1588 timestamp */ 164 * ptp counter, which maybe cause 32-bit wrap. Since the 214 /* Get the current ptp hardware time counter */ 223 /* Convert the ptp local counter to 1588 timestamp */ 315 /* grab the ptp lock */ 340 * fec_ptp_adjfine - adjust ptp cycle frequency 341 * @ptp: the ptp clock structure 344 * Adjust the frequency of the ptp cycl 352 fec_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) argument 422 fec_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument 443 fec_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 474 fec_ptp_settime(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument 523 fec_ptp_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument [all...] |
/linux-master/drivers/net/ethernet/intel/igc/ |
H A D | igc_ptp.c | 46 static int igc_ptp_adjfine_i225(struct ptp_clock_info *ptp, long scaled_ppm) argument 48 struct igc_adapter *igc = container_of(ptp, struct igc_adapter, 72 static int igc_ptp_adjtime_i225(struct ptp_clock_info *ptp, s64 delta) argument 74 struct igc_adapter *igc = container_of(ptp, struct igc_adapter, 90 static int igc_ptp_gettimex64_i225(struct ptp_clock_info *ptp, argument 94 struct igc_adapter *igc = container_of(ptp, struct igc_adapter, 111 static int igc_ptp_settime_i225(struct ptp_clock_info *ptp, argument 114 struct igc_adapter *igc = container_of(ptp, struct igc_adapter, 245 static int igc_ptp_feature_enable_i225(struct ptp_clock_info *ptp, argument 249 container_of(ptp, struc 417 igc_ptp_verify_pin(struct ptp_clock_info *ptp, unsigned int pin, enum ptp_pin_function func, unsigned int chan) argument 1018 igc_ptp_getcrosststamp(struct ptp_clock_info *ptp, struct system_device_crosststamp *cts) argument 1028 igc_ptp_getcyclesx64(struct ptp_clock_info *ptp, struct timespec64 *ts, struct ptp_system_timestamp *sts) argument [all...] |
/linux-master/drivers/net/dsa/sja1105/ |
H A D | sja1105_ptp.c | 336 static long sja1105_rxtstamp_work(struct ptp_clock_info *ptp) argument 338 struct sja1105_ptp_data *ptp_data = ptp_caps_to_data(ptp); 534 static int sja1105_ptp_gettimex(struct ptp_clock_info *ptp, argument 538 struct sja1105_ptp_data *ptp_data = ptp_caps_to_data(ptp); 588 static int sja1105_ptp_settime(struct ptp_clock_info *ptp, argument 591 struct sja1105_ptp_data *ptp_data = ptp_caps_to_data(ptp); 605 static int sja1105_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) argument 607 struct sja1105_ptp_data *ptp_data = ptp_caps_to_data(ptp); 654 static int sja1105_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument 656 struct sja1105_ptp_data *ptp_data = ptp_caps_to_data(ptp); 840 sja1105_ptp_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *req, int on) argument 855 sja1105_ptp_verify_pin(struct ptp_clock_info *ptp, unsigned int pin, enum ptp_pin_function func, unsigned int chan) argument [all...] |
/linux-master/drivers/net/ethernet/mscc/ |
H A D | ocelot_ptp.c | 17 int ocelot_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 19 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); 51 int ocelot_ptp_settime64(struct ptp_clock_info *ptp, argument 54 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); 87 int ocelot_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument 90 struct ocelot *ocelot = container_of(ptp, struct ocelot, 124 ocelot_ptp_gettime64(ptp, &ts); 129 ocelot_ptp_settime64(ptp, &ts); 136 int ocelot_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) argument 138 struct ocelot *ocelot = container_of(ptp, struc 182 ocelot_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, enum ptp_pin_function func, unsigned int chan) argument 197 ocelot_ptp_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument [all...] |
/linux-master/drivers/net/dsa/microchip/ |
H A D | ksz_ptp.c | 625 static int ksz_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 627 struct ksz_ptp_data *ptp_data = ptp_caps_to_data(ptp); 683 static int ksz_ptp_settime(struct ptp_clock_info *ptp, argument 686 struct ksz_ptp_data *ptp_data = ptp_caps_to_data(ptp); 731 static int ksz_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) argument 733 struct ksz_ptp_data *ptp_data = ptp_caps_to_data(ptp); 770 static int ksz_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument 772 struct ksz_ptp_data *ptp_data = ptp_caps_to_data(ptp); 831 static int ksz_ptp_enable(struct ptp_clock_info *ptp, argument 834 struct ksz_ptp_data *ptp_data = ptp_caps_to_data(ptp); 851 ksz_ptp_verify_pin(struct ptp_clock_info *ptp, unsigned int pin, enum ptp_pin_function func, unsigned int chan) argument 869 ksz_ptp_do_aux_work(struct ptp_clock_info *ptp) argument [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | Makefile | 11 iwlmvm-y += ptp.o
|