| /system/host/abigen/ |
| A D | syscall_parser.cpp | 44 while (ts->peek_next() != ")" && ts->peek_next() != ",") { in parse_param_attributes() 54 if (!vet_identifier(ts->curr(), ts->filectx())) in parse_product_of_identifiers() 76 if (ts->next() != "[") in parse_arrayspec() 79 if (ts->next().empty()) in parse_arrayspec() 82 auto c = ts->curr()[0]; in parse_arrayspec() 114 ts->next(); in parse_typespec() 125 if (ts->peek_next() == "[" && !parse_arrayspec(ts, type_spec)) { in parse_typespec() 155 ts->next(); in parse_argpack() 169 ts.next(); // '!' in process_comment() 178 ts.next(); // '^' in process_comment() [all …]
|
| A D | syscall_parser.h | 10 bool process_comment(AbigenGenerator* parser, TokenStream& ts); 11 bool process_syscall(AbigenGenerator* parser, TokenStream& ts);
|
| A D | types.cpp | 232 bool Syscall::validate_array_spec(const TypeSpec& ts) const { in validate_array_spec() 233 if (ts.arr_spec->count > 0) in validate_array_spec() 236 for (const string& multiplier : ts.arr_spec->multipliers) { in validate_array_spec() 241 …std::string err = "invalid array spec for " + ts.name + ": '" + multiplier + "' does not refer to … in validate_array_spec() 247 …std::string err = "invalid array spec for " + ts.name + ": '" + multiplier + "' refers to an array… in validate_array_spec()
|
| A D | types.h | 86 bool validate_array_spec(const TypeSpec& ts) const;
|
| /system/ulib/tftp/ |
| A D | tftp-test.cpp | 321 status = tftp_process_msg(ts.session, buf, sizeof(buf), ts.out, &ts.outlen, &ts.timeout, in test_tftp_receive_request_unexpected() 346 auto status = tftp_process_msg(ts.session, buf, sizeof(buf), ts.out, &ts.outlen, &ts.timeout, in test_tftp_receive_request_too_large() 377 auto status = tftp_process_msg(ts.session, buf, buf_sz, ts.out, &ts.outlen, &ts.timeout, in test_tftp_receive_request_no_tsize() 430 auto status = tftp_process_msg(ts.session, buf, buf_sz, ts.out, &ts.outlen, &ts.timeout, in test_tftp_receive_request_send_oack() 803 status = tftp_process_msg(ts.session, buf, buf_sz, ts.out, &ts.outlen, &ts.timeout, &td); in test_tftp_receive_wrq_oack() 829 status = tftp_prepare_data(ts.session, ts.out, &ts.outlen, &ts.timeout, &td); in test_tftp_receive_wrq_oack() 902 status = tftp_process_msg(ts.session, buf, buf_sz, ts.out, &ts.outlen, &ts.timeout, NULL); in test_tftp_receive_rrq_oack() 1448 MODE_OCTET, ts.msg_size, NULL, NULL, NULL, ts.out, &ts.outlen, &ts.timeout); in test_tftp_send_data_receive_ack() 1494 MODE_OCTET, ts.msg_size, NULL, NULL, NULL, ts.out, &ts.outlen, &ts.timeout); in test_tftp_send_data_receive_final_ack() 1547 MODE_OCTET, ts.msg_size, NULL, NULL, NULL, ts.out, &ts.outlen, &ts.timeout); in test_tftp_send_data_receive_ack_skipped_block() [all …]
|
| /system/host/runtests/ |
| A D | runtests.cpp | 28 struct timespec ts; in NowInNsecs() local 29 clock_gettime(CLOCK_MONOTONIC, &ts); in NowInNsecs() 30 return ts.tv_sec * kNsecsPerSec + ts.tv_nsec; in NowInNsecs()
|
| /system/utest/fs/ |
| A D | test-attr.c | 24 zx_time_t nstimespec(struct timespec ts) { in nstimespec() argument 26 return zx_time_add_duration(ZX_SEC(ts.tv_sec), ts.tv_nsec); in nstimespec() 37 struct timespec ts[2]; in test_attr() local 38 ts[0].tv_nsec = UTIME_OMIT; in test_attr() 39 ts[1].tv_sec = (long)(now / ZX_SEC(1)); in test_attr() 40 ts[1].tv_nsec = (long)(now % ZX_SEC(1)); in test_attr() 43 ASSERT_EQ(futimens(fd1, ts), 0, ""); in test_attr()
|
| A D | test-access.cpp | 195 struct timespec ts[2]; in TestAccessOpath() local 196 ts[0].tv_nsec = UTIME_OMIT; in TestAccessOpath() 197 ts[1].tv_sec = 0; in TestAccessOpath() 198 ts[1].tv_nsec = 0; in TestAccessOpath() 199 ASSERT_LT(futimens(fd, ts), 0); in TestAccessOpath()
|
| A D | test-random-op.c | 80 struct timespec ts; in worker_new() local 81 clock_gettime(CLOCK_REALTIME, &ts); in worker_new() 82 w->seed = (int)ts.tv_nsec; in worker_new() 151 struct timespec ts; in log_timer() local 152 clock_gettime(CLOCK_REALTIME, &ts); in log_timer() 153 ts.tv_sec += TEST_MAX_RUNTIME; in log_timer() 156 cnd_timedwait(&env->log_timer_cnd, &env->log_timer_lock, &ts); in log_timer() 532 struct timespec ts[2] = { in task_utime_fd() local 536 int rc = futimens(w->fd, ts); in task_utime_fd()
|
| /system/utest/core/c11-condvar/ |
| A D | condvar.c | 89 static void time_add_nsec(struct timespec* ts, int nsec) { in time_add_nsec() argument 92 ts->tv_nsec += nsec; in time_add_nsec() 93 if (ts->tv_nsec > kNsecPerSec) { in time_add_nsec() 94 ts->tv_nsec -= kNsecPerSec; in time_add_nsec() 95 ts->tv_sec++; in time_add_nsec()
|
| /system/dev/display/astro-display/ |
| A D | dw-mipi-dsi.cpp | 226 while (ts >= 4) { in GenWriteLong() 236 ts -= 4; in GenWriteLong() 240 if (ts > 0) { in GenWriteLong() 242 if (ts > 1) { in GenWriteLong() 245 if (ts > 2) { in GenWriteLong() 315 size_t ts = cmd.rsp_size; in GenRead() local 318 while (ts >= 4) { in GenRead() 327 ts -= 4; in GenRead() 331 if (ts > 0) { in GenRead() 337 if (ts > 1) { in GenRead() [all …]
|
| /system/host/abigen/parser/ |
| A D | parser.h | 59 using ProcFn = bool (*)(P* parser, TokenStream& ts); 85 TokenStream ts(tokens, fc); in process_line() 87 return d.fn(parser, ts); in process_line() 92 return d.fn(parser, ts); in process_line()
|
| /system/ulib/unittest/ |
| A D | watchdog.cpp | 67 static uint64_t timespec_to_nanoseconds(const struct timespec* ts) { in timespec_to_nanoseconds() argument 68 return (ts->tv_sec * NANOSECONDS_PER_SECOND) + ts->tv_nsec; in timespec_to_nanoseconds()
|
| /system/ulib/zircon-internal/include/lib/zircon-internal/ |
| A D | ktrace.h | 55 uint64_t ts; member 64 uint64_t ts; member
|
| /system/host/bootserver/ |
| A D | tftp.c | 222 transport_state ts = { in tftp_xfer() local 246 if (transport_init(&ts, INITIAL_CONNECTION_TIMEOUT, addr) < 0) { in tftp_xfer() 269 if ((status = tftp_push_file(session, &ts, &xd, fn, name, &opts)) < 0) { in tftp_xfer() 281 if (ts.socket >= 0) { in tftp_xfer() 282 close(ts.socket); in tftp_xfer()
|
| /system/ulib/minfs/ |
| A D | vnode.cpp | 42 struct timespec ts; in GetTimeUTC() local 43 clock_gettime(CLOCK_REALTIME, &ts); in GetTimeUTC() 44 zx_time_t time = zx_time_add_duration(ZX_SEC(ts.tv_sec), ts.tv_nsec); in GetTimeUTC()
|
| /system/ulib/fdio/ |
| A D | unistd.c | 2168 struct timespec* ts = timeout >= 0 ? &timeout_ts : NULL; in poll() local 2169 return ppoll(fds, n, ts, NULL); in poll()
|