| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_ptp.c | 47 static int otx2_ptp_hw_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in otx2_ptp_hw_adjtime() argument 49 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_hw_adjtime() 50 ptp_info); in otx2_ptp_hw_adjtime() 99 static int otx2_ptp_hw_gettime(struct ptp_clock_info *ptp_info, in otx2_ptp_hw_gettime() argument 102 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_hw_gettime() 103 ptp_info); in otx2_ptp_hw_gettime() 112 static int otx2_ptp_hw_settime(struct ptp_clock_info *ptp_info, in otx2_ptp_hw_settime() argument 115 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_hw_settime() 116 ptp_info); in otx2_ptp_hw_settime() 142 static int otx2_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in otx2_ptp_adjfine() argument [all …]
|
| /linux/drivers/net/ethernet/cavium/common/ |
| H A 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 260 clock->ptp_info = (struct ptp_clock_info) { in cavium_ptp_probe() [all …]
|
| H A D | cavium_ptp.h | 23 struct ptp_clock_info ptp_info; member
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_ptp.c | 59 static int bnxt_ptp_settime(struct ptp_clock_info *ptp_info, in bnxt_ptp_settime() argument 62 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_settime() 63 ptp_info); in bnxt_ptp_settime() 181 static int bnxt_ptp_gettimex(struct ptp_clock_info *ptp_info, in bnxt_ptp_gettimex() argument 185 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_gettimex() 186 ptp_info); in bnxt_ptp_gettimex() 232 static int bnxt_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in bnxt_ptp_adjtime() argument 234 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_adjtime() 235 ptp_info); in bnxt_ptp_adjtime() 266 static int bnxt_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in bnxt_ptp_adjfine() argument [all …]
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_ptp.c | 321 struct ptp_clock_info *ptp_info = &adapter->ptp.info; in iavf_ptp_register_clock() local 325 snprintf(ptp_info->name, sizeof(ptp_info->name), "%s-%s-clk", in iavf_ptp_register_clock() 327 ptp_info->owner = THIS_MODULE; in iavf_ptp_register_clock() 328 ptp_info->gettimex64 = iavf_ptp_gettimex64; in iavf_ptp_register_clock() 329 ptp_info->settime64 = iavf_ptp_settime64; in iavf_ptp_register_clock() 330 ptp_info->do_aux_work = iavf_ptp_do_aux_work; in iavf_ptp_register_clock() 332 clock = ptp_clock_register(ptp_info, dev); in iavf_ptp_register_clock()
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_ptp.c | 79 struct ptp_clock_info ptp_info; member 109 return container_of(ptp, struct mlxsw_sp1_ptp_clock, common.ptp_info); in mlxsw_sp1_ptp_clock() 311 clock->common.ptp_info = mlxsw_sp1_ptp_clock_info; in mlxsw_sp1_ptp_clock_init() 312 clock->common.ptp = ptp_clock_register(&clock->common.ptp_info, dev); in mlxsw_sp1_ptp_clock_init() 376 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp2_ptp_adjfine() 389 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp2_ptp_adjtime() 414 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp2_ptp_gettimex() 427 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp2_ptp_settime() 455 clock->ptp_info = mlxsw_sp2_ptp_clock_info; in mlxsw_sp2_ptp_clock_init() 463 clock->ptp = ptp_clock_register(&clock->ptp_info, dev); in mlxsw_sp2_ptp_clock_init()
|
| /linux/drivers/net/ethernet/ti/icssg/ |
| H A D | icss_iep.h | 70 struct ptp_clock_info ptp_info; member
|
| /linux/drivers/net/ethernet/cadence/ |
| H A D | macb_ptp.c | 334 bp->tsu_rate = bp->ptp_info->get_tsu_rate(bp); in gem_ptp_init() 335 bp->ptp_clock_info.max_adj = bp->ptp_info->get_ptp_max_adj(); in gem_ptp_init()
|
| /linux/drivers/net/ethernet/cavium/liquidio/ |
| H A D | octeon_network.h | 165 struct ptp_clock_info ptp_info; member
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | tg3.h | 3192 struct ptp_clock_info ptp_info; member
|
| H A D | tg3.c | 6168 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjfine() 6196 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjtime() 6209 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_gettimex() 6225 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_settime() 6240 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_enable() 6316 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_ts_aux_work() 6366 tp->ptp_info = tg3_ptp_caps; in tg3_ptp_init() 18005 tp->ptp_clock = ptp_clock_register(&tp->ptp_info, in tg3_init_one()
|
| /linux/drivers/net/dsa/ocelot/ |
| H A D | felix_vsc9959.c | 1394 ocelot_ptp_gettime64(&ocelot->ptp_info, &ts); in vsc9959_new_base_time()
|
| /linux/drivers/net/ethernet/mscc/ |
| H A D | ocelot.c | 1258 ocelot_ptp_gettime64(&ocelot->ptp_info, &ts); in ocelot_ptp_rx_timestamp()
|