Lines Matching refs:ptp

15 #define ptp_to_priv(ptp)	container_of(ptp, struct rcar_gen4_ptp_private, info)  argument
29 static int rcar_gen4_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in rcar_gen4_ptp_adjfine() argument
31 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); in rcar_gen4_ptp_adjfine()
47 static void _rcar_gen4_ptp_gettime(struct ptp_clock_info *ptp, in _rcar_gen4_ptp_gettime() argument
50 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); in _rcar_gen4_ptp_gettime()
57 static int rcar_gen4_ptp_gettime(struct ptp_clock_info *ptp, in rcar_gen4_ptp_gettime() argument
60 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); in rcar_gen4_ptp_gettime()
64 _rcar_gen4_ptp_gettime(ptp, ts); in rcar_gen4_ptp_gettime()
71 static void _rcar_gen4_ptp_settime(struct ptp_clock_info *ptp, in _rcar_gen4_ptp_settime() argument
74 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); in _rcar_gen4_ptp_settime()
86 static int rcar_gen4_ptp_settime(struct ptp_clock_info *ptp, in rcar_gen4_ptp_settime() argument
89 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); in rcar_gen4_ptp_settime()
93 _rcar_gen4_ptp_settime(ptp, ts); in rcar_gen4_ptp_settime()
99 static int rcar_gen4_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in rcar_gen4_ptp_adjtime() argument
101 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); in rcar_gen4_ptp_adjtime()
107 _rcar_gen4_ptp_gettime(ptp, &ts); in rcar_gen4_ptp_adjtime()
110 _rcar_gen4_ptp_settime(ptp, &ts); in rcar_gen4_ptp_adjtime()
116 static int rcar_gen4_ptp_enable(struct ptp_clock_info *ptp, in rcar_gen4_ptp_enable() argument
172 struct rcar_gen4_ptp_private *ptp; in rcar_gen4_ptp_alloc() local
174 ptp = devm_kzalloc(&pdev->dev, sizeof(*ptp), GFP_KERNEL); in rcar_gen4_ptp_alloc()
175 if (!ptp) in rcar_gen4_ptp_alloc()
178 ptp->info = rcar_gen4_ptp_info; in rcar_gen4_ptp_alloc()
180 return ptp; in rcar_gen4_ptp_alloc()