Lines Matching refs:perout
36 rq.perout.index = chan; in ptp_disable_pinfunc()
189 if (copy_from_user(&req.perout, (void __user *)arg, in ptp_ioctl()
190 sizeof(req.perout))) { in ptp_ioctl()
195 struct ptp_perout_request *perout = &req.perout; in ptp_ioctl() local
197 if (perout->flags & ~PTP_PEROUT_VALID_FLAGS) { in ptp_ioctl()
206 if (!(perout->flags & PTP_PEROUT_DUTY_CYCLE) && in ptp_ioctl()
207 (perout->rsv[0] || perout->rsv[1] || in ptp_ioctl()
208 perout->rsv[2] || perout->rsv[3])) { in ptp_ioctl()
212 if (perout->flags & PTP_PEROUT_DUTY_CYCLE) { in ptp_ioctl()
214 if (perout->on.sec > perout->period.sec || in ptp_ioctl()
215 (perout->on.sec == perout->period.sec && in ptp_ioctl()
216 perout->on.nsec > perout->period.nsec)) { in ptp_ioctl()
221 if (perout->flags & PTP_PEROUT_PHASE) { in ptp_ioctl()
227 if (perout->phase.sec > perout->period.sec || in ptp_ioctl()
228 (perout->phase.sec == perout->period.sec && in ptp_ioctl()
229 perout->phase.nsec >= perout->period.nsec)) { in ptp_ioctl()
235 req.perout.flags &= PTP_PEROUT_V1_VALID_FLAGS; in ptp_ioctl()
236 req.perout.rsv[0] = 0; in ptp_ioctl()
237 req.perout.rsv[1] = 0; in ptp_ioctl()
238 req.perout.rsv[2] = 0; in ptp_ioctl()
239 req.perout.rsv[3] = 0; in ptp_ioctl()
241 if (req.perout.index >= ops->n_per_out) { in ptp_ioctl()
246 enable = req.perout.period.sec || req.perout.period.nsec; in ptp_ioctl()