Searched refs:sysoff (Results 1 – 4 of 4) sorted by relevance
168 struct ptp_sys_offset *sysoff = NULL; in ptp_ioctl() local388 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()
163 struct ptp_sys_offset *sysoff; in main() local527 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()
6 This entry allows enabling the sysoff mode of rt9467 charger
6 This entry allows enabling the sysoff mode of rt9471 charger devices.