Lines Matching refs:ptp_info

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
144 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_adjfine()
145 ptp_info); in otx2_ptp_adjfine()
230 static int otx2_ptp_tc_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in otx2_ptp_tc_adjtime() argument
232 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_tc_adjtime()
233 ptp_info); in otx2_ptp_tc_adjtime()
243 static int otx2_ptp_tc_gettime(struct ptp_clock_info *ptp_info, in otx2_ptp_tc_gettime() argument
246 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_tc_gettime()
247 ptp_info); in otx2_ptp_tc_gettime()
258 static int otx2_ptp_tc_settime(struct ptp_clock_info *ptp_info, in otx2_ptp_tc_settime() argument
261 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_tc_settime()
262 ptp_info); in otx2_ptp_tc_settime()
339 static int otx2_ptp_enable(struct ptp_clock_info *ptp_info, in otx2_ptp_enable() argument
342 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_enable()
343 ptp_info); in otx2_ptp_enable()
366 if (rq->perout.index >= ptp_info->n_pins) in otx2_ptp_enable()
423 ptp_ptr->ptp_info = (struct ptp_clock_info) { in otx2_ptp_init()
439 ptp_ptr->ptp_info.adjtime = otx2_ptp_hw_adjtime; in otx2_ptp_init()
440 ptp_ptr->ptp_info.gettime64 = otx2_ptp_hw_gettime; in otx2_ptp_init()
441 ptp_ptr->ptp_info.settime64 = otx2_ptp_hw_settime; in otx2_ptp_init()
445 ptp_ptr->ptp_info.adjtime = otx2_ptp_tc_adjtime; in otx2_ptp_init()
446 ptp_ptr->ptp_info.gettime64 = otx2_ptp_tc_gettime; in otx2_ptp_init()
447 ptp_ptr->ptp_info.settime64 = otx2_ptp_tc_settime; in otx2_ptp_init()
462 ptp_ptr->ptp_clock = ptp_clock_register(&ptp_ptr->ptp_info, pfvf->dev); in otx2_ptp_init()