Searched refs:sysoff (Results 1 – 1 of 1) sorted by relevance
126 struct ptp_sys_offset *sysoff = NULL; in ptp_ioctl() local215 sysoff = memdup_user((void __user *)arg, sizeof(*sysoff)); in ptp_ioctl()216 if (IS_ERR(sysoff)) { in ptp_ioctl()217 err = PTR_ERR(sysoff); in ptp_ioctl()218 sysoff = NULL; in ptp_ioctl()221 if (sysoff->n_samples > PTP_MAX_SAMPLES) { in ptp_ioctl()225 pct = &sysoff->ts[0]; in ptp_ioctl()226 for (i = 0; i < sysoff->n_samples; i++) { in ptp_ioctl()241 if (copy_to_user((void __user *)arg, sysoff, sizeof(*sysoff))) in ptp_ioctl()287 kfree(sysoff); in ptp_ioctl()