Lines Matching defs:extoff
112 struct ptp_sys_offset_extended *extoff = NULL;
301 extoff = memdup_user((void __user *)arg, sizeof(*extoff));
302 if (IS_ERR(extoff)) {
303 err = PTR_ERR(extoff);
304 extoff = NULL;
307 if (extoff->n_samples > PTP_MAX_SAMPLES
308 || extoff->rsv[0] || extoff->rsv[1] || extoff->rsv[2]) {
312 for (i = 0; i < extoff->n_samples; i++) {
316 extoff->ts[i][0].sec = sts.pre_ts.tv_sec;
317 extoff->ts[i][0].nsec = sts.pre_ts.tv_nsec;
318 extoff->ts[i][1].sec = ts.tv_sec;
319 extoff->ts[i][1].nsec = ts.tv_nsec;
320 extoff->ts[i][2].sec = sts.post_ts.tv_sec;
321 extoff->ts[i][2].nsec = sts.post_ts.tv_nsec;
323 if (copy_to_user((void __user *)arg, extoff, sizeof(*extoff)))
430 kfree(extoff);