Home
last modified time | relevance | path

Searched refs:sysoff (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/tools/testing/selftests/ptp/
Dtestptp.c159 struct ptp_sys_offset *sysoff; in main() local
485 sysoff = calloc(1, sizeof(*sysoff)); in main()
486 if (!sysoff) { in main()
490 sysoff->n_samples = n_samples; in main()
492 if (ioctl(fd, PTP_SYS_OFFSET, sysoff)) in main()
497 pct = &sysoff->ts[0]; in main()
498 for (i = 0; i < sysoff->n_samples; i++) { in main()
516 free(sysoff); in main()
/linux-6.1.9/drivers/ptp/
Dptp_chardev.c116 struct ptp_sys_offset *sysoff = NULL; in ptp_ioctl() local
326 sysoff = memdup_user((void __user *)arg, sizeof(*sysoff)); in ptp_ioctl()
327 if (IS_ERR(sysoff)) { in ptp_ioctl()
328 err = PTR_ERR(sysoff); in ptp_ioctl()
329 sysoff = NULL; in ptp_ioctl()
332 if (sysoff->n_samples > PTP_MAX_SAMPLES) { in ptp_ioctl()
336 pct = &sysoff->ts[0]; in ptp_ioctl()
337 for (i = 0; i < sysoff->n_samples; i++) { in ptp_ioctl()
355 if (copy_to_user((void __user *)arg, sysoff, sizeof(*sysoff))) in ptp_ioctl()
428 kfree(sysoff); in ptp_ioctl()
/linux-6.1.9/Documentation/ABI/testing/
Dsysfs-class-power734 This entry allows enabling the sysoff mode of bq24257-type charger