Lines Matching defs:extoff
112 struct ptp_sys_offset_extended *extoff = NULL;
298 extoff = memdup_user((void __user *)arg, sizeof(*extoff));
299 if (IS_ERR(extoff)) {
300 err = PTR_ERR(extoff);
301 extoff = NULL;
304 if (extoff->n_samples > PTP_MAX_SAMPLES
305 || extoff->rsv[0] || extoff->rsv[1] || extoff->rsv[2]) {
309 for (i = 0; i < extoff->n_samples; i++) {
313 extoff->ts[i][0].sec = sts.pre_ts.tv_sec;
314 extoff->ts[i][0].nsec = sts.pre_ts.tv_nsec;
315 extoff->ts[i][1].sec = ts.tv_sec;
316 extoff->ts[i][1].nsec = ts.tv_nsec;
317 extoff->ts[i][2].sec = sts.post_ts.tv_sec;
318 extoff->ts[i][2].nsec = sts.post_ts.tv_nsec;
320 if (copy_to_user((void __user *)arg, extoff, sizeof(*extoff)))
427 kfree(extoff);