Lines Matching refs:req
178 struct ptp_extts_request *req, int on)
186 if (req->flags & ~(PTP_ENABLE_FEATURE |
192 if (req->index)
195 if (priv->ptp.extts[req->index] == on)
197 priv->ptp.extts[req->index] = on;
212 struct ptp_perout_request *req, int on)
222 if (req->flags)
225 if (req->index)
232 start_ns = req->start.sec * NSEC_PER_SEC + req->start.nsec;
233 period_ns = req->period.sec * NSEC_PER_SEC + req->period.nsec;
249 perout = &priv->ptp.perout[req->index];
263 perout = &priv->ptp.perout[req->index];
278 struct ptp_clock_request *req, int on)
280 switch (req->type) {
282 return ravb_ptp_extts(ptp, &req->extts, on);
284 return ravb_ptp_perout(ptp, &req->perout, on);