/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ptp.c | 58 static int bnxt_ptp_settime(struct ptp_clock_info *ptp_info, in bnxt_ptp_settime() argument 61 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_settime() 62 ptp_info); in bnxt_ptp_settime() 138 static int bnxt_ptp_gettimex(struct ptp_clock_info *ptp_info, in bnxt_ptp_gettimex() argument 142 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_gettimex() 143 ptp_info); in bnxt_ptp_gettimex() 193 static int bnxt_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in bnxt_ptp_adjtime() argument 195 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_adjtime() 196 ptp_info); in bnxt_ptp_adjtime() 207 static int bnxt_ptp_adjfreq(struct ptp_clock_info *ptp_info, s32 ppb) in bnxt_ptp_adjfreq() argument [all …]
|
D | bnxt_ptp.h | 79 struct ptp_clock_info ptp_info; member
|
/linux-6.1.9/drivers/net/ethernet/cavium/common/ |
D | cavium_ptp.c | 93 static int cavium_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in cavium_ptp_adjfine() argument 96 container_of(ptp_info, struct cavium_ptp, ptp_info); in cavium_ptp_adjfine() 140 static int cavium_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in cavium_ptp_adjtime() argument 143 container_of(ptp_info, struct cavium_ptp, ptp_info); in cavium_ptp_adjtime() 161 static int cavium_ptp_gettime(struct ptp_clock_info *ptp_info, in cavium_ptp_gettime() argument 165 container_of(ptp_info, struct cavium_ptp, ptp_info); in cavium_ptp_gettime() 183 static int cavium_ptp_settime(struct ptp_clock_info *ptp_info, in cavium_ptp_settime() argument 187 container_of(ptp_info, struct cavium_ptp, ptp_info); in cavium_ptp_settime() 206 static int cavium_ptp_enable(struct ptp_clock_info *ptp_info, in cavium_ptp_enable() argument 261 clock->ptp_info = (struct ptp_clock_info) { in cavium_ptp_probe() [all …]
|
D | cavium_ptp.h | 23 struct ptp_clock_info ptp_info; member
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ptp.c | 40 static int otx2_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in otx2_ptp_adjfine() argument 42 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_adjfine() 43 ptp_info); in otx2_ptp_adjfine() 136 static int otx2_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in otx2_ptp_adjtime() argument 138 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_adjtime() 139 ptp_info); in otx2_ptp_adjtime() 149 static int otx2_ptp_gettime(struct ptp_clock_info *ptp_info, in otx2_ptp_gettime() argument 152 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_gettime() 153 ptp_info); in otx2_ptp_gettime() 162 static int otx2_ptp_settime(struct ptp_clock_info *ptp_info, in otx2_ptp_settime() argument [all …]
|
D | otx2_common.h | 291 struct ptp_clock_info ptp_info; member
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | clock.c | 172 for (i = 0; i < clock->ptp_info.n_pins; i++) { in mlx5_pps_out() 229 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_settime() 263 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_gettimex() 310 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_adjtime() 344 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_adjfreq() 382 container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_extts_configure() 408 if (rq->extts.index >= clock->ptp_info.n_pins) in mlx5_extts_configure() 567 container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_perout_configure() 588 if (rq->perout.index >= clock->ptp_info.n_pins) in mlx5_perout_configure() 643 container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_pps_configure() [all …]
|
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_ptp.c | 58 struct ptp_clock_info ptp_info; member 280 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); in aq_ptp_adjfine() 299 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); in aq_ptp_adjtime() 319 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); in aq_ptp_gettime() 343 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); in aq_ptp_settime() 392 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); in aq_ptp_perout_pin_configure() 429 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); in aq_ptp_pps_pin_configure() 463 struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info); in aq_ptp_extts_pin_configure() 1157 aq_ptp_settime(&aq_ptp->ptp_info, &ts); in aq_ptp_clock_init() 1206 aq_ptp->ptp_info = aq_ptp_clock; in aq_ptp_init() [all …]
|
/linux-6.1.9/drivers/net/ethernet/pensando/ionic/ |
D | ionic_phc.c | 319 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); in ionic_phc_adjfine() 356 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); in ionic_phc_adjtime() 382 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); in ionic_phc_settime64() 412 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); in ionic_phc_gettimex64() 436 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); in ionic_phc_aux_work() 497 lif->phc->ptp = ptp_clock_register(&lif->phc->ptp_info, lif->ionic->dev); in ionic_lif_register_phc() 628 phc->ptp_info = ionic_ptp_info; in ionic_lif_alloc_phc() 633 phc->ptp_info.max_adj = NORMAL_PPB; in ionic_lif_alloc_phc()
|
D | ionic_lif.h | 237 struct ptp_clock_info ptp_info; member
|
/linux-6.1.9/drivers/net/ethernet/ti/ |
D | am65-cpts.c | 159 struct ptp_clock_info ptp_info; member 386 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_adjfreq() 428 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_adjtime() 444 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_gettimex() 471 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_settime() 599 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ptp_enable() 713 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); in am65_cpts_ts_work() 979 cpts->ptp_info = am65_ptp_info; in am65_cpts_create() 982 cpts->ptp_info.n_ext_ts = cpts->ext_ts_inputs; in am65_cpts_create() 984 cpts->ptp_info.n_per_out = cpts->genf_num; in am65_cpts_create() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mscc/ |
D | ocelot_ptp.c | 19 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_gettime64() 54 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_settime64() 91 ptp_info); in ocelot_ptp_adjtime() 138 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_adjfine() 200 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_enable() 800 ocelot->ptp_info = *info; in ocelot_init_timestamp() 810 ocelot->ptp_info.pin_config = &ocelot->ptp_pins[0]; in ocelot_init_timestamp() 812 ptp_clock = ptp_clock_register(&ocelot->ptp_info, ocelot->dev); in ocelot_init_timestamp()
|
/linux-6.1.9/drivers/ptp/ |
D | ptp_ocp.c | 310 struct ptp_clock_info ptp_info; member 824 ptp_ocp_gettimex(struct ptp_clock_info *ptp_info, struct timespec64 *ts, in ptp_ocp_gettimex() argument 827 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_gettimex() 861 ptp_ocp_settime(struct ptp_clock_info *ptp_info, const struct timespec64 *ts) in ptp_ocp_settime() argument 863 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_settime() 909 ptp_ocp_adjtime(struct ptp_clock_info *ptp_info, s64 delta_ns) in ptp_ocp_adjtime() argument 911 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_adjtime() 931 ptp_ocp_null_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in ptp_ocp_null_adjfine() argument 940 ptp_ocp_null_adjphase(struct ptp_clock_info *ptp_info, s32 phase_ns) in ptp_ocp_null_adjphase() argument 946 ptp_ocp_enable(struct ptp_clock_info *ptp_info, struct ptp_clock_request *rq, in ptp_ocp_enable() argument [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_ptp.c | 78 struct ptp_clock_info ptp_info; member 108 return container_of(ptp, struct mlxsw_sp1_ptp_clock, common.ptp_info); in mlxsw_sp1_ptp_clock() 322 clock->common.ptp_info = mlxsw_sp1_ptp_clock_info; in mlxsw_sp1_ptp_clock_init() 323 clock->common.ptp = ptp_clock_register(&clock->common.ptp_info, dev); in mlxsw_sp1_ptp_clock_init() 387 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp2_ptp_adjfine() 400 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp2_ptp_adjtime() 425 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp2_ptp_gettimex() 438 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp2_ptp_settime() 466 clock->ptp_info = mlxsw_sp2_ptp_clock_info; in mlxsw_sp2_ptp_clock_init() 474 clock->ptp = ptp_clock_register(&clock->ptp_info, dev); in mlxsw_sp2_ptp_clock_init()
|
/linux-6.1.9/drivers/net/phy/ |
D | bcm-phy-ptp.c | 133 struct ptp_clock_info ptp_info; member 174 return container_of(info, struct bcm_ptp_private, ptp_info); in ptp2priv() 927 priv->ptp_info = bcm_ptp_clock_info; in bcm_ptp_probe() 930 priv->ptp_info.pin_config = &priv->pin; in bcm_ptp_probe() 932 clock = ptp_clock_register(&priv->ptp_info, &phydev->mdio.dev); in bcm_ptp_probe()
|
/linux-6.1.9/drivers/net/ethernet/cavium/liquidio/ |
D | lio_main.c | 1521 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_adjfreq() 1559 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_adjtime() 1578 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_gettime() 1601 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_settime() 1639 snprintf(lio->ptp_info.name, 16, "%s", netdev->name); in oct_ptp_open() 1640 lio->ptp_info.owner = THIS_MODULE; in oct_ptp_open() 1641 lio->ptp_info.max_adj = 250000000; in oct_ptp_open() 1642 lio->ptp_info.n_alarm = 0; in oct_ptp_open() 1643 lio->ptp_info.n_ext_ts = 0; in oct_ptp_open() 1644 lio->ptp_info.n_per_out = 0; in oct_ptp_open() [all …]
|
D | octeon_network.h | 165 struct ptp_clock_info ptp_info; member
|
/linux-6.1.9/drivers/net/ethernet/cadence/ |
D | macb_ptp.c | 372 bp->tsu_rate = bp->ptp_info->get_tsu_rate(bp); in gem_ptp_init() 373 bp->ptp_clock_info.max_adj = bp->ptp_info->get_ptp_max_adj(); in gem_ptp_init()
|
D | macb_main.c | 2879 if (bp->ptp_info) in macb_open() 2880 bp->ptp_info->ptp_init(dev); in macb_open() 2925 if (bp->ptp_info) in macb_close() 2926 bp->ptp_info->ptp_remove(dev); in macb_close() 3325 if (bp->ptp_info) in macb_get_ts_info() 3326 return bp->ptp_info->get_ts_info(netdev, info); in macb_get_ts_info() 3677 if (bp->ptp_info) { in macb_ioctl() 3680 return bp->ptp_info->set_hwtst(dev, rq, cmd); in macb_ioctl() 3682 return bp->ptp_info->get_hwtst(dev, rq); in macb_ioctl() 3822 bp->ptp_info = &gem_ptp_info; in macb_configure_caps() [all …]
|
D | macb.h | 1299 struct macb_ptp_info *ptp_info; /* macb-ptp interface */ member
|
/linux-6.1.9/include/linux/mlx5/ |
D | driver.h | 718 struct ptp_clock_info ptp_info; member
|
/linux-6.1.9/include/soc/mscc/ |
D | ocelot.h | 1034 struct ptp_clock_info ptp_info; member
|
/linux-6.1.9/drivers/net/dsa/ocelot/ |
D | felix.c | 1718 ocelot_ptp_gettime64(&ocelot->ptp_info, &ts); in felix_rxtstamp()
|
/linux-6.1.9/drivers/net/ethernet/broadcom/ |
D | tg3.h | 3190 struct ptp_clock_info ptp_info; member
|
D | tg3.c | 6184 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjfreq() 6220 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjtime() 6233 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_gettimex() 6249 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_settime() 6264 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_enable() 6357 tp->ptp_info = tg3_ptp_caps; in tg3_ptp_init() 17875 tp->ptp_clock = ptp_clock_register(&tp->ptp_info, in tg3_init_one()
|