Home
last modified time | relevance | path

Searched refs:ptp_info (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ptp.c47 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/broadcom/bnxt/
H A Dbnxt_ptp.c59 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/cavium/common/
H A Dcavium_ptp.c93 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 Dcavium_ptp.h23 struct ptp_clock_info ptp_info; member
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ptp.c321 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/ptp/
H A Dptp_ocp.c387 struct ptp_clock_info ptp_info; member
1507 ptp_ocp_gettimex(struct ptp_clock_info *ptp_info, struct timespec64 *ts, in ptp_ocp_gettimex() argument
1510 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_gettimex()
1544 ptp_ocp_settime(struct ptp_clock_info *ptp_info, const struct timespec64 *ts) in ptp_ocp_settime() argument
1546 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_settime()
1592 ptp_ocp_adjtime(struct ptp_clock_info *ptp_info, s64 delta_ns) in ptp_ocp_adjtime() argument
1594 struct ptp_ocp *bp = container_of(ptp_info, struct ptp_ocp, ptp_info); in ptp_ocp_adjtime()
1614 ptp_ocp_null_adjfine(struct ptp_clock_info * ptp_info,long scaled_ppm) ptp_ocp_null_adjfine() argument
1623 ptp_ocp_null_getmaxphase(struct ptp_clock_info * ptp_info) ptp_ocp_null_getmaxphase() argument
1629 ptp_ocp_null_adjphase(struct ptp_clock_info * ptp_info,s32 phase_ns) ptp_ocp_null_adjphase() argument
1635 ptp_ocp_enable(struct ptp_clock_info * ptp_info,struct ptp_clock_request * rq,int on) ptp_ocp_enable() argument
1705 ptp_ocp_verify(struct ptp_clock_info * ptp_info,unsigned pin,enum ptp_pin_function func,unsigned chan) ptp_ocp_verify() argument
[all...]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_ptp.c79 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/dpll/zl3073x/
H A Ddpll.h42 struct ptp_clock_info ptp_info; member
H A Ddpll.c2334 ptp_info); in zl3073x_dpll_ptp_gettimex64()
2352 ptp_info); in zl3073x_dpll_ptp_settime64()
2487 ptp_info); in zl3073x_dpll_ptp_adjtime()
2582 ptp_info); in zl3073x_dpll_ptp_adjfine()
2622 ptp_info); in zl3073x_dpll_ptp_adjphase()
2670 zldpll->ptp_info = zl3073x_dpll_ptp_clock_info; in zl3073x_dpll_ptp_register()
2671 snprintf(zldpll->ptp_info.name, sizeof(zldpll->ptp_info.name), in zl3073x_dpll_ptp_register()
2674 ptp_clock = ptp_clock_register(&zldpll->ptp_info, zldev->dev); in zl3073x_dpll_ptp_register()
/linux/drivers/net/ethernet/ti/icssg/
H A Dicss_iep.h70 struct ptp_clock_info ptp_info; member
/linux/drivers/net/ethernet/cavium/liquidio/
H A Dlio_main.c1513 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_adjfine()
1552 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_adjtime()
1571 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_gettime()
1594 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_settime()
1632 snprintf(lio->ptp_info.name, 16, "%s", netdev->name); in oct_ptp_open()
1633 lio->ptp_info.owner = THIS_MODULE; in oct_ptp_open()
1634 lio->ptp_info.max_adj = 250000000; in oct_ptp_open()
1635 lio->ptp_info.n_alarm = 0; in oct_ptp_open()
1636 lio->ptp_info.n_ext_ts = 0; in oct_ptp_open()
1637 lio->ptp_info.n_per_out = 0; in oct_ptp_open()
[all …]
H A Docteon_network.h165 struct ptp_clock_info ptp_info; member
/linux/drivers/net/ethernet/cadence/
H A Dmacb_ptp.c343 bp->tsu_rate = bp->ptp_info->get_tsu_rate(bp); in gem_ptp_init()
344 bp->ptp_clock_info.max_adj = bp->ptp_info->get_ptp_max_adj(); in gem_ptp_init()
H A Dmacb_main.c3212 if (bp->ptp_info) in macb_open()
3213 bp->ptp_info->ptp_init(netdev);
3261 if (bp->ptp_info) in macb_set_mac_addr()
3262 bp->ptp_info->ptp_remove(netdev); in macb_set_mac_addr()
3826 if (bp->ptp_info) in gem_enable_flow_filters()
3827 return bp->ptp_info->get_ts_info(netdev, info); in gem_enable_flow_filters()
4222 if (!bp->ptp_info) in macb_hwtstamp_set()
4225 return bp->ptp_info->get_hwtst(netdev, cfg); in macb_set_txcsum_feature()
4237 if (!bp->ptp_info) in macb_set_txcsum_feature()
4240 return bp->ptp_info in macb_set_txcsum_feature()
[all...]
H A Dmacb.h1362 struct macb_ptp_info *ptp_info; /* macb-ptp interface */ member
/linux/drivers/net/ethernet/broadcom/
H A Dtg3.h3192 struct ptp_clock_info ptp_info; member
H A Dtg3.c6168 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()
18008 tp->ptp_clock = ptp_clock_register(&tp->ptp_info, in tg3_init_one()
/linux/drivers/net/dsa/ocelot/
H A Dfelix_vsc9959.c1394 ocelot_ptp_gettime64(&ocelot->ptp_info, &ts); in vsc9959_new_base_time()
/linux/drivers/net/ethernet/mscc/
H A Docelot.c1258 ocelot_ptp_gettime64(&ocelot->ptp_info, &ts); in ocelot_ptp_rx_timestamp()