Searched refs:sysoff (Results 1 – 5 of 5) sorted by relevance
/external/strace/ |
D | ptp.c | 83 struct ptp_sys_offset sysoff; in ptp_ioctl() local 87 if (umove_or_printaddr(tcp, arg, &sysoff)) in ptp_ioctl() 90 PRINT_FIELD_U("{", sysoff, n_samples); in ptp_ioctl() 101 if (umove(tcp, arg, &sysoff) < 0) { in ptp_ioctl() 107 n_samples = sysoff.n_samples > PTP_MAX_SAMPLES ? in ptp_ioctl() 108 PTP_MAX_SAMPLES : sysoff.n_samples; in ptp_ioctl() 112 PRINT_FIELD_D("{", sysoff.ts[i], sec); in ptp_ioctl() 113 PRINT_FIELD_U(", ", sysoff.ts[i], nsec); in ptp_ioctl() 116 if (sysoff.n_samples > PTP_MAX_SAMPLES) in ptp_ioctl()
|
/external/strace/tests-mx32/ |
D | ioctl_ptp.c | 53 TAIL_ALLOC_OBJECT_CONST_PTR(struct ptp_sys_offset, sysoff); in test_no_device() 54 fill_memory(sysoff, sizeof(*sysoff)); in test_no_device() 73 ioctl(-1, PTP_SYS_OFFSET, sysoff); in test_no_device() 75 sysoff->n_samples); in test_no_device()
|
/external/strace/tests/ |
D | ioctl_ptp.c | 53 TAIL_ALLOC_OBJECT_CONST_PTR(struct ptp_sys_offset, sysoff); in test_no_device() 54 fill_memory(sysoff, sizeof(*sysoff)); in test_no_device() 73 ioctl(-1, PTP_SYS_OFFSET, sysoff); in test_no_device() 75 sysoff->n_samples); in test_no_device()
|
/external/strace/tests-m32/ |
D | ioctl_ptp.c | 53 TAIL_ALLOC_OBJECT_CONST_PTR(struct ptp_sys_offset, sysoff); in test_no_device() 54 fill_memory(sysoff, sizeof(*sysoff)); in test_no_device() 73 ioctl(-1, PTP_SYS_OFFSET, sysoff); in test_no_device() 75 sysoff->n_samples); in test_no_device()
|
/external/linux-kselftest/tools/testing/selftests/ptp/ |
D | testptp.c | 154 struct ptp_sys_offset *sysoff; in main() local 438 sysoff = calloc(1, sizeof(*sysoff)); in main() 439 if (!sysoff) { in main() 443 sysoff->n_samples = n_samples; in main() 445 if (ioctl(fd, PTP_SYS_OFFSET, sysoff)) in main() 450 pct = &sysoff->ts[0]; in main() 451 for (i = 0; i < sysoff->n_samples; i++) { in main() 469 free(sysoff); in main()
|