Home
last modified time | relevance | path

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

/openbmc/linux/drivers/ptp/
H A Dptp_chardev.c118 struct ptp_sys_offset *sysoff = NULL; in ptp_ioctl() local
334 sysoff = memdup_user((void __user *)arg, sizeof(*sysoff)); in ptp_ioctl()
335 if (IS_ERR(sysoff)) { in ptp_ioctl()
336 err = PTR_ERR(sysoff); in ptp_ioctl()
337 sysoff = NULL; in ptp_ioctl()
340 if (sysoff->n_samples > PTP_MAX_SAMPLES) { in ptp_ioctl()
344 pct = &sysoff->ts[0]; in ptp_ioctl()
345 for (i = 0; i < sysoff->n_samples; i++) { in ptp_ioctl()
363 if (copy_to_user((void __user *)arg, sysoff, sizeof(*sysoff))) in ptp_ioctl()
436 kfree(sysoff); in ptp_ioctl()
/openbmc/linux/tools/testing/selftests/ptp/
H A Dtestptp.c162 struct ptp_sys_offset *sysoff; in main() local
522 sysoff = calloc(1, sizeof(*sysoff)); in main()
523 if (!sysoff) { in main()
527 sysoff->n_samples = n_samples; in main()
529 if (ioctl(fd, PTP_SYS_OFFSET, sysoff)) in main()
534 pct = &sysoff->ts[0]; in main()
535 for (i = 0; i < sysoff->n_samples; i++) { in main()
553 free(sysoff); in main()
/openbmc/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.
H A Dsysfs-class-power735 This entry allows enabling the sysoff mode of bq24257-type charger