Home
last modified time | relevance | path

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

/external/strace/
Dptp.c80 struct ptp_sys_offset sysoff; in ptp_ioctl() local
84 if (umove_or_printaddr(tcp, arg, &sysoff)) in ptp_ioctl()
87 tprintf("{n_samples=%u", sysoff.n_samples); in ptp_ioctl()
98 if (umove(tcp, arg, &sysoff) < 0) { in ptp_ioctl()
104 n_samples = sysoff.n_samples > PTP_MAX_SAMPLES ? in ptp_ioctl()
105 PTP_MAX_SAMPLES : sysoff.n_samples; in ptp_ioctl()
110 (int64_t)sysoff.ts[i].sec, in ptp_ioctl()
111 sysoff.ts[i].nsec); in ptp_ioctl()
113 if (sysoff.n_samples > PTP_MAX_SAMPLES) in ptp_ioctl()
/external/linux-kselftest/tools/testing/selftests/ptp/
Dtestptp.c159 struct ptp_sys_offset *sysoff; in main() local
487 sysoff = calloc(1, sizeof(*sysoff)); in main()
488 if (!sysoff) { in main()
492 sysoff->n_samples = n_samples; in main()
494 if (ioctl(fd, PTP_SYS_OFFSET, sysoff)) in main()
499 pct = &sysoff->ts[0]; in main()
500 for (i = 0; i < sysoff->n_samples; i++) { in main()
518 free(sysoff); in main()