Lines Matching refs:fdata
53 static int pps_cdev_pps_fetch(struct pps_device *pps, struct pps_fdata *fdata) in pps_cdev_pps_fetch() argument
59 if (fdata->timeout.flags & PPS_TIME_INVALID) in pps_cdev_pps_fetch()
66 (long long) fdata->timeout.sec, in pps_cdev_pps_fetch()
67 fdata->timeout.nsec); in pps_cdev_pps_fetch()
68 ticks = fdata->timeout.sec * HZ; in pps_cdev_pps_fetch()
69 ticks += fdata->timeout.nsec / (NSEC_PER_SEC / HZ); in pps_cdev_pps_fetch()
177 struct pps_fdata fdata; in pps_cdev_ioctl() local
181 err = copy_from_user(&fdata, uarg, sizeof(struct pps_fdata)); in pps_cdev_ioctl()
185 err = pps_cdev_pps_fetch(pps, &fdata); in pps_cdev_ioctl()
192 fdata.info.assert_sequence = pps->assert_sequence; in pps_cdev_ioctl()
193 fdata.info.clear_sequence = pps->clear_sequence; in pps_cdev_ioctl()
194 fdata.info.assert_tu = pps->assert_tu; in pps_cdev_ioctl()
195 fdata.info.clear_tu = pps->clear_tu; in pps_cdev_ioctl()
196 fdata.info.current_mode = pps->current_mode; in pps_cdev_ioctl()
200 err = copy_to_user(uarg, &fdata, sizeof(struct pps_fdata)); in pps_cdev_ioctl()
259 struct pps_fdata fdata; in pps_cdev_compat_ioctl() local
268 memcpy(&fdata.timeout, &compat.timeout, in pps_cdev_compat_ioctl()
271 err = pps_cdev_pps_fetch(pps, &fdata); in pps_cdev_compat_ioctl()