Home
last modified time | relevance | path

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

/linux/drivers/ptp/
H A Dptp_chardev.c168 struct ptp_sys_offset *sysoff = NULL; in ptp_ioctl() local
388 sysoff = memdup_user((void __user *)arg, sizeof(*sysoff)); in ptp_ioctl()
389 if (IS_ERR(sysoff)) { in ptp_ioctl()
390 err = PTR_ERR(sysoff); in ptp_ioctl()
391 sysoff = NULL; in ptp_ioctl()
394 if (sysoff->n_samples > PTP_MAX_SAMPLES) { in ptp_ioctl()
398 pct = &sysoff->ts[0]; in ptp_ioctl()
399 for (i = 0; i < sysoff->n_samples; i++) { in ptp_ioctl()
417 if (copy_to_user((void __user *)arg, sysoff, sizeof(*sysoff))) in ptp_ioctl()
506 kfree(sysoff); in ptp_ioctl()
/linux/tools/testing/selftests/ptp/
H A Dtestptp.c163 struct ptp_sys_offset *sysoff; in main() local
527 sysoff = calloc(1, sizeof(*sysoff)); in main()
528 if (!sysoff) { in main()
532 sysoff->n_samples = n_samples; in main()
534 if (ioctl(fd, PTP_SYS_OFFSET, sysoff)) in main()
539 pct = &sysoff->ts[0]; in main()
540 for (i = 0; i < sysoff->n_samples; i++) { in main()
558 free(sysoff); in main()
/linux/Documentation/ABI/testing/
H A Dsysfs-class-power-rt94676 This entry allows enabling the sysoff mode of rt9467 charger
H A Dsysfs-class-power-rt94716 This entry allows enabling the sysoff mode of rt9471 charger devices.