Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 25 of 866) sorted by relevance

12345678910>>...35

/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dtimevar.cc324 struct timevar_def *tv = &m_timevars[timevar]; in push() local
325 push_internal (tv); in push()
332 timer::push_internal (struct timevar_def *tv) in push_internal() argument
337 gcc_assert (tv); in push_internal()
340 tv->used = 1; in push_internal()
343 gcc_assert (!tv->standalone); in push_internal()
368 context->timevar = tv; in push_internal()
446 struct timevar_def *tv = &m_timevars[timevar]; in start() local
449 tv->used = 1; in start()
453 gcc_assert (!tv->standalone); in start()
[all …]
H A Dtimevar.h111 void start (timevar_id_t tv);
112 void stop (timevar_id_t tv);
113 void push (timevar_id_t tv);
114 void pop (timevar_id_t tv);
115 bool cond_start (timevar_id_t tv);
116 void cond_stop (timevar_id_t tv);
130 void push_internal (struct timevar_def *tv);
210 timevar_push (timevar_id_t tv) in timevar_push() argument
213 g_timer->push (tv); in timevar_push()
217 timevar_pop (timevar_id_t tv) in timevar_pop() argument
[all …]
/netbsd-src/external/bsd/iscsi/dist/src/initiator/
H A Discsi-initiator.c90 static targetv_t tv; /* target vector of targetinfo_t structs */ variable
341 …if (sgblockop(tv.v[t].target, tv.v[t].lun, offset / tv.v[t].blocksize, (length / tv.v[t].blocksize… in targetop()
348 req_len = length / tv.v[t].blocksize; in targetop()
349 if ((req_len * tv.v[t].blocksize) < length) in targetop()
351 if (blockop(tv.v[t].target, tv.v[t].lun, offset / tv.v[t].blocksize, in targetop()
352 req_len, tv.v[t].blocksize, (uint8_t *) buf, writing) != 0) { in targetop()
692 ALLOC(targetinfo_t, tv.v, tv.size, tv.c, 10, 10, "iscsifs", in main()
728 tv.v[tv.c].host = strdup(tinfo.name); in main()
729 tv.v[tv.c].ip = strdup(tinfo.ip); in main()
730 tv.v[tv.c].targetname = strdup(tinfo.TargetName); in main()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dtimevar.c326 struct timevar_def *tv = &m_timevars[timevar]; in push() local
327 push_internal (tv); in push()
334 timer::push_internal (struct timevar_def *tv) in push_internal() argument
339 gcc_assert (tv); in push_internal()
342 tv->used = 1; in push_internal()
345 gcc_assert (!tv->standalone); in push_internal()
370 context->timevar = tv; in push_internal()
448 struct timevar_def *tv = &m_timevars[timevar]; in start() local
451 tv->used = 1; in start()
455 gcc_assert (!tv->standalone); in start()
[all …]
H A Dtimevar.h111 void start (timevar_id_t tv);
112 void stop (timevar_id_t tv);
113 void push (timevar_id_t tv);
114 void pop (timevar_id_t tv);
115 bool cond_start (timevar_id_t tv);
116 void cond_stop (timevar_id_t tv);
130 void push_internal (struct timevar_def *tv);
210 timevar_push (timevar_id_t tv) in timevar_push() argument
213 g_timer->push (tv); in timevar_push()
217 timevar_pop (timevar_id_t tv) in timevar_pop() argument
[all …]
/netbsd-src/external/gpl3/gdb/dist/sim/testsuite/frv/
H A Dtv.cgs1 # frv testcase for tv $ICCi_2,$GRi,$GRj
8 .global tv
9 tv:
21 tv icc0,gr7,gr8 ; should branch to tbr + (128 + 4)*16
25 tv icc0,gr7,gr8 ; should branch to tbr + (128 + 4)*16
30 tv icc0,gr7,gr8 ; should branch to tbr + (128 + 4)*16
36 tv icc0,gr7,gr8 ; should branch to tbr + (128 + 4)*16
41 tv icc0,gr7,gr8 ; should branch to tbr + (128 + 4)*16
45 tv icc0,gr7,gr8 ; should branch to tbr + (128 + 4)*16
50 tv icc0,gr7,gr8 ; should branch to tbr + (128 + 4)*16
[all …]
/netbsd-src/lib/libc/compat/sys/
H A Dcompat_utimes.c57 struct timeval tv[2]; in utimes() local
60 timeval50_to_timeval(&tv50[0], &tv[0]); in utimes()
61 timeval50_to_timeval(&tv50[1], &tv[1]); in utimes()
63 return __utimes50(path, tv50 ? tv : NULL); in utimes()
69 struct timeval tv[2]; in lutimes() local
72 timeval50_to_timeval(&tv50[0], &tv[0]); in lutimes()
73 timeval50_to_timeval(&tv50[1], &tv[1]); in lutimes()
75 return __lutimes50(path, tv50 ? tv : NULL); in lutimes()
81 struct timeval tv[2]; in futimes() local
84 timeval50_to_timeval(&tv50[0], &tv[0]); in futimes()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dbase64.d1787 ubyte[][string] tv = [
1799 assert(Base64.encodeLength(tv[""].length) == 0);
1800 assert(Base64.encodeLength(tv["f"].length) == 4);
1801 assert(Base64.encodeLength(tv["fo"].length) == 4);
1802 assert(Base64.encodeLength(tv["foo"].length) == 4);
1803 assert(Base64.encodeLength(tv["foob"].length) == 8);
1804 assert(Base64.encodeLength(tv["fooba"].length) == 8);
1805 assert(Base64.encodeLength(tv["foobar"].length) == 8);
1807 assert(Base64.encode(tv[""]) == "");
1808 assert(Base64.encode(tv["f"]) == "Zg==");
[all …]
/netbsd-src/external/bsd/libevent/dist/
H A Devutil_time.c75 evutil_gettimeofday(struct timeval *tv, struct timezone *tz) in evutil_gettimeofday() argument
96 if (tv == NULL) in evutil_gettimeofday()
121 tv->tv_sec = (long) (ft.ft_64 / UNITS_PER_SEC); in evutil_gettimeofday()
122 tv->tv_usec = (long) ((ft.ft_64 / UNITS_PER_USEC) % USEC_PER_SEC); in evutil_gettimeofday()
131 evutil_tv_to_msec_(const struct timeval *tv) in evutil_tv_to_msec_() argument
133 if (tv->tv_usec > 1000000 || tv->tv_sec > MAX_SECONDS_IN_MSEC_LONG) in evutil_tv_to_msec_()
136 return (tv->tv_sec * 1000) + ((tv->tv_usec + 999) / 1000); in evutil_tv_to_msec_()
144 evutil_usleep_(const struct timeval *tv) in evutil_usleep_() argument
146 if (!tv) in evutil_usleep_()
154 usec = tv->tv_sec * 1000000LL + tv->tv_usec; in evutil_usleep_()
[all …]
/netbsd-src/sys/compat/common/
H A Dkern_uipc_socket_50.c157 struct timeval tv; in uipc_socket_50_setopt1() local
169 timeval50_to_timeval(&otv, &tv); in uipc_socket_50_setopt1()
172 if (tv.tv_sec < 0 || tv.tv_usec < 0 || tv.tv_usec >= 1000000) { in uipc_socket_50_setopt1()
176 if (tv.tv_sec > (INT_MAX - tv.tv_usec / tick) / hz) { in uipc_socket_50_setopt1()
181 optval = tv.tv_sec * hz + tv.tv_usec / tick; in uipc_socket_50_setopt1()
182 if (optval == 0 && tv.tv_usec != 0) in uipc_socket_50_setopt1()
216 struct timeval tv; in uipc_socket_50_sbts() local
218 microtime(&tv); in uipc_socket_50_sbts()
222 timeval_to_timeval50(&tv, &tv50); in uipc_socket_50_sbts()
/netbsd-src/sys/kern/
H A Dsubr_time.c57 struct timeval now, tv; in tvhzto()
59 tv = *tvp; /* Don't modify original tvp. */ in tvhzto()
61 timersub(&tv, &now, &tv); in tvhzto()
62 return tvtohz(&tv);
93 struct timeval tv; in tvtohz()
99 TIMESPEC_TO_TIMEVAL(&tv, ts); in tvtohz()
100 return tvtohz(&tv); in tvtohz()
55 struct timeval now, tv; tvhzto() local
67 tvtohz(const struct timeval * tv) tvtohz() argument
154 struct timeval tv; tstohz() local
173 itimerfix(struct timeval * tv) itimerfix() argument
H A Dkern_todr.c183 struct timeval tv; in todr_set_systime() local
215 memset(&tv, 0, sizeof(tv)); in todr_set_systime()
218 (todr_gettime(todr_handle, &tv) != 0) || in todr_set_systime()
219 (tv.tv_sec < (PREPOSTEROUS_YEARS * SECS_PER_COMMON_YEAR))) { in todr_set_systime()
227 time_t deltat = tv.tv_sec - base; in todr_set_systime()
234 if (tv.tv_sec < base) { in todr_set_systime()
253 rnd_add_data(NULL, &tv, sizeof(tv), 0); in todr_set_systime()
263 tv.tv_sec = base; in todr_set_systime()
264 tv.tv_usec = 0; in todr_set_systime()
269 ts.tv_sec = tv.tv_sec; in todr_set_systime()
[all …]
H A Dkern_rate.c45 struct timeval tv, delta; in ratecheck() local
48 getmicrouptime(&tv); in ratecheck()
49 timersub(&tv, lasttime, &delta); in ratecheck()
57 *lasttime = tv; in ratecheck()
70 struct timeval tv, delta; in ppsratecheck() local
73 getmicrouptime(&tv); in ppsratecheck()
74 timersub(&tv, lasttime, &delta); in ppsratecheck()
86 *lasttime = tv; in ppsratecheck()
/netbsd-src/external/mpl/dhcp/dist/dhcpctl/
H A Ddhcpctl.c309 omapi_value_t *tv = (omapi_value_t *)0; in dhcpctl_get_value() local
316 status = omapi_get_value_str (h, (omapi_object_t *)0, value_name, &tv); in dhcpctl_get_value()
320 switch (tv -> value -> type) { in dhcpctl_get_value()
327 len = tv -> value -> u.buffer.len; in dhcpctl_get_value()
335 omapi_typed_data_dereference (&tv -> value, MDL); in dhcpctl_get_value()
341 omapi_typed_data_dereference (&tv -> value, MDL); in dhcpctl_get_value()
345 switch (tv -> value -> type) { in dhcpctl_get_value()
347 ip = htonl (tv -> value -> u.integer); in dhcpctl_get_value()
354 tv -> value -> u.buffer.value, in dhcpctl_get_value()
355 tv -> value -> u.buffer.len); in dhcpctl_get_value()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/
H A Dbase64.d1782 ubyte[][string] tv = [
1794 assert(Base64.encodeLength(tv[""].length) == 0);
1795 assert(Base64.encodeLength(tv["f"].length) == 4);
1796 assert(Base64.encodeLength(tv["fo"].length) == 4);
1797 assert(Base64.encodeLength(tv["foo"].length) == 4);
1798 assert(Base64.encodeLength(tv["foob"].length) == 8);
1799 assert(Base64.encodeLength(tv["fooba"].length) == 8);
1800 assert(Base64.encodeLength(tv["foobar"].length) == 8);
1802 assert(Base64.encode(tv[""]) == "");
1803 assert(Base64.encode(tv["f"]) == "Zg==");
[all …]
/netbsd-src/external/ibm-public/postfix/dist/src/global/
H A Drec_type.h143 #define REC_TYPE_WARN_ARG(tv) ((long) (tv)) argument
144 #define REC_TYPE_WARN_SCAN(cp, tv) ((tv) = atol(cp)) argument
151 #define REC_TYPE_TIME_ARG(tv) (long) (tv).tv_sec, (long) (tv).tv_usec argument
152 #define REC_TYPE_TIME_SCAN(cp, tv) \ argument
155 (tv).tv_sec = atol(_p); \
158 (tv).tv_usec = atol(_p); \
/netbsd-src/sys/external/isc/libsodium/dist/test/default/
H A Dxchacha20.c32 const HChaCha20TV *tv; in tv_hchacha20() local
46 tv = &tvs[i]; in tv_hchacha20()
48 tv->key, strlen(tv->key), NULL, NULL, NULL); in tv_hchacha20()
50 tv->in, strlen(tv->in), NULL, NULL, NULL); in tv_hchacha20()
52 tv->out, strlen(tv->out), NULL, NULL, NULL); in tv_hchacha20()
104 const XChaCha20TV *tv; in tv_stream_xchacha20() local
117 tv = &tvs[i]; in tv_stream_xchacha20()
120 tv->key, strlen(tv->key), NULL, NULL, NULL); in tv_stream_xchacha20()
122 tv->nonce, strlen(tv->nonce), NULL, NULL, NULL); in tv_stream_xchacha20()
124 tv->out, strlen(tv->out), NULL, &out_len, NULL); in tv_stream_xchacha20()
[all …]
/netbsd-src/games/worm/
H A Dworm.c72 static WINDOW *tv; variable
143 tv = newwin(LINES-1, COLS-1, 1, 0); in main()
144 box(tv, '*', '*'); in main()
145 scrollok(tv, FALSE); in main()
151 wrefresh(tv); in main()
203 wmove(tv, pos->y, pos->x); in display()
204 waddch(tv, chr); in display()
246 wmove(tv, bp->y, bp->x); in newpos()
247 } while(winch(tv) != ' '); in newpos()
257 waddch(tv, valu in prize()
[all...]
/netbsd-src/sys/arch/sparc/sparc/
H A Dintr.c572 struct trapvec *tv; in check_tv() local
576 tv = &trapbase[T_L1INT - 1 + level]; in check_tv()
578 ? &sparc_interrupt4m[0] - &tv->tv_instr[1] in check_tv()
579 : &sparc_interrupt44c[0] - &tv->tv_instr[1]; in check_tv()
582 if (tv->tv_instr[0] != I_MOVi(I_L3, level) || in check_tv()
583 tv->tv_instr[1] != I_BA(0, displ) || in check_tv()
584 tv->tv_instr[2] != I_RDPSR(I_L0)) in check_tv()
587 tv->tv_instr[0], tv->tv_instr[1], tv->tv_instr[2], in check_tv()
599 struct trapvec *tv; in inst_fasttrap() local
613 tv = &trapbase[T_L1INT - 1 + level]; in inst_fasttrap()
[all …]
/netbsd-src/external/bsd/libevent/dist/test/
H A Dtest-time.c66 struct timeval tv; in time_cb() local
74 tv.tv_sec = 0; in time_cb()
75 tv.tv_usec = rand_int(50000); in time_cb()
76 if (tv.tv_usec % 2 || called < NEVENT) in time_cb()
77 evtimer_add(ev[j], &tv); in time_cb()
88 struct timeval tv; in main() local
110 tv.tv_sec = 0; in main()
111 tv.tv_usec = rand_int(50000); in main()
112 evtimer_add(ev[i], &tv); in main()
/netbsd-src/external/gpl3/binutils/dist/ld/
H A Dtestplug.c30 extern enum ld_plugin_status onload (struct ld_plugin_tv *tv);
375 dump_tv_tag (size_t n, struct ld_plugin_tv *tv) in dump_tv_tag() argument
382 if (tag_names[tag].tag == tv->tv_tag) in dump_tv_tag()
384 sprintf (unknownbuf, "unknown tag #%d", tv->tv_tag); in dump_tv_tag()
386 switch (tv->tv_tag) in dump_tv_tag()
391 tv->tv_u.tv_string); in dump_tv_tag()
408 (void *)(tv->tv_u.tv_message)); in dump_tv_tag()
417 (bfd_vma)tv->tv_u.tv_val, tv->tv_u.tv_val); in dump_tv_tag()
424 parse_tv_tag (struct ld_plugin_tv *tv) in parse_tv_tag() argument
426 #define SETVAR(x) x = tv->tv_u.x in parse_tv_tag()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/ld/
H A Dtestplug.c30 extern enum ld_plugin_status onload (struct ld_plugin_tv *tv);
373 dump_tv_tag (size_t n, struct ld_plugin_tv *tv) in dump_tv_tag() argument
380 if (tag_names[tag].tag == tv->tv_tag) in dump_tv_tag()
382 sprintf (unknownbuf, "unknown tag #%d", tv->tv_tag); in dump_tv_tag()
384 switch (tv->tv_tag) in dump_tv_tag()
389 tv->tv_u.tv_string); in dump_tv_tag()
405 (void *)(tv->tv_u.tv_message)); in dump_tv_tag()
414 (bfd_vma)tv->tv_u.tv_val, tv->tv_u.tv_val); in dump_tv_tag()
421 parse_tv_tag (struct ld_plugin_tv *tv) in parse_tv_tag() argument
423 #define SETVAR(x) x = tv->tv_u.x in parse_tv_tag()
[all …]
/netbsd-src/games/tetris/
H A Dinput.c52 #define TV_POS(tv) \ argument
53 ((tv)->tv_sec > 0 || ((tv)->tv_sec == 0 && (tv)->tv_usec > 0))
124 struct timeval tv; in tsleep() local
127 tv.tv_sec = 0; in tsleep()
128 tv.tv_usec = fallrate; in tsleep()
129 while (TV_POS(&tv)) in tsleep()
130 if (rwait(&tv) && read(0, &c, 1) != 1) in tsleep()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dtime.c57 struct timeval tv; in krb5_set_real_time() local
59 gettimeofday(&tv, NULL); in krb5_set_real_time()
61 context->kdc_sec_offset = sec - tv.tv_sec; in krb5_set_real_time()
68 context->kdc_usec_offset = usec - tv.tv_usec; in krb5_set_real_time()
75 context->kdc_usec_offset = tv.tv_usec; in krb5_set_real_time()
101 struct timeval tv; in krb5_us_timeofday() local
103 gettimeofday (&tv, NULL); in krb5_us_timeofday()
105 *sec = tv.tv_sec + context->kdc_sec_offset; in krb5_us_timeofday()
106 *usec = tv.tv_usec; /* XXX */ in krb5_us_timeofday()
/netbsd-src/external/public-domain/xz/dist/src/xz/
H A Dmytime.c38 struct timespec tv; in mytime_now() local
39 while (clock_gettime(clk_id, &tv)) in mytime_now()
42 return (uint64_t)(tv.tv_sec) * UINT64_C(1000) + tv.tv_nsec / 1000000; in mytime_now()
44 struct timeval tv; in mytime_now()
45 gettimeofday(&tv, NULL); in mytime_now()
46 return (uint64_t)(tv.tv_sec) * UINT64_C(1000) + tv.tv_usec / 1000; in mytime_now()

12345678910>>...35