Lines Matching refs:req
171 struct ptp_extts_request *req, int on)
180 if (req->flags & ~(PTP_ENABLE_FEATURE |
186 if (req->index)
189 if (priv->ptp.extts[req->index] == on)
191 priv->ptp.extts[req->index] = on;
206 struct ptp_perout_request *req, int on)
217 if (req->flags)
220 if (req->index)
227 start_ns = req->start.sec * NSEC_PER_SEC + req->start.nsec;
228 period_ns = req->period.sec * NSEC_PER_SEC + req->period.nsec;
244 perout = &priv->ptp.perout[req->index];
258 perout = &priv->ptp.perout[req->index];
273 struct ptp_clock_request *req, int on)
275 switch (req->type) {
277 return ravb_ptp_extts(ptp, &req->extts, on);
279 return ravb_ptp_perout(ptp, &req->perout, on);