| /trueos/contrib/wpa/src/utils/ |
| HD | eloop_none.c | 41 struct eloop_timeout *timeout; member 116 struct eloop_timeout *timeout, *tmp, *prev; in eloop_register_timeout() local 118 timeout = (struct eloop_timeout *) malloc(sizeof(*timeout)); in eloop_register_timeout() 119 if (timeout == NULL) in eloop_register_timeout() 121 os_get_time(&timeout->time); in eloop_register_timeout() 122 timeout->time.sec += secs; in eloop_register_timeout() 123 timeout->time.usec += usecs; in eloop_register_timeout() 124 while (timeout->time.usec >= 1000000) { in eloop_register_timeout() 125 timeout->time.sec++; in eloop_register_timeout() 126 timeout->time.usec -= 1000000; in eloop_register_timeout() [all …]
|
| HD | eloop_win.c | 54 struct eloop_timeout *timeout; member 239 struct eloop_timeout *timeout, *tmp, *prev; in eloop_register_timeout() local 242 timeout = os_malloc(sizeof(*timeout)); in eloop_register_timeout() 243 if (timeout == NULL) in eloop_register_timeout() 245 os_get_time(&timeout->time); in eloop_register_timeout() 246 now_sec = timeout->time.sec; in eloop_register_timeout() 247 timeout->time.sec += secs; in eloop_register_timeout() 248 if (timeout->time.sec < now_sec) { in eloop_register_timeout() 255 os_free(timeout); in eloop_register_timeout() 258 timeout->time.usec += usecs; in eloop_register_timeout() [all …]
|
| HD | eloop.c | 70 struct dl_list timeout; member 130 dl_list_init(&eloop.timeout); in eloop_init() 481 struct eloop_timeout *timeout, *tmp; in eloop_register_timeout() local 484 timeout = os_zalloc(sizeof(*timeout)); in eloop_register_timeout() 485 if (timeout == NULL) in eloop_register_timeout() 487 if (os_get_time(&timeout->time) < 0) { in eloop_register_timeout() 488 os_free(timeout); in eloop_register_timeout() 491 now_sec = timeout->time.sec; in eloop_register_timeout() 492 timeout->time.sec += secs; in eloop_register_timeout() 493 if (timeout->time.sec < now_sec) { in eloop_register_timeout() [all …]
|
| /trueos/lib/libthr/thread/ |
| HD | thr_umtx.c | 114 struct _umtx_time *tm_p, timeout; in __thr_umutex_timedlock() local 123 timeout._clockid = CLOCK_REALTIME; in __thr_umutex_timedlock() 124 timeout._flags = UMTX_ABSTIME; in __thr_umutex_timedlock() 125 timeout._timeout = *abstime; in __thr_umutex_timedlock() 126 tm_p = &timeout; in __thr_umutex_timedlock() 127 tm_size = sizeof(timeout); in __thr_umutex_timedlock() 174 _thr_umtx_wait(volatile long *mtx, long id, const struct timespec *timeout) in _thr_umtx_wait() argument 176 if (timeout && (timeout->tv_sec < 0 || (timeout->tv_sec == 0 && in _thr_umtx_wait() 177 timeout->tv_nsec <= 0))) in _thr_umtx_wait() 180 __DECONST(void*, timeout)); in _thr_umtx_wait() [all …]
|
| /trueos/contrib/ofed/management/libibmad/src/ |
| HD | gs.c | 53 unsigned timeout, unsigned id, const void *srcport) in pma_query_via() argument 72 rpc.timeout = timeout; in pma_query_via() 88 pma_query(void *rcvbuf, ib_portid_t *dest, int port, unsigned timeout, unsigned id) in pma_query() argument 90 return pma_query_via(rcvbuf, dest, port, timeout, id, NULL); in pma_query() 95 unsigned timeout, const void *srcport) in perf_classportinfo_query_via() argument 97 return pma_query_via(rcvbuf, dest, port, timeout, CLASS_PORT_INFO, in perf_classportinfo_query_via() 102 perf_classportinfo_query(void *rcvbuf, ib_portid_t *dest, int port, unsigned timeout) in perf_classportinfo_query() argument 104 return pma_query(rcvbuf, dest, port, timeout, CLASS_PORT_INFO); in perf_classportinfo_query() 109 unsigned timeout, const void *srcport) in port_performance_query_via() argument 111 return pma_query_via(rcvbuf, dest, port, timeout, in port_performance_query_via() [all …]
|
| HD | smp.c | 52 smp_set_via(void *data, ib_portid_t *portid, unsigned attrid, unsigned mod, unsigned timeout, const… in smp_set_via() argument 67 rpc.timeout = timeout; in smp_set_via() 82 smp_set(void *data, ib_portid_t *portid, unsigned attrid, unsigned mod, unsigned timeout) in smp_set() argument 84 return smp_set_via(data, portid, attrid, mod, timeout, NULL); in smp_set() 89 unsigned timeout, const void *srcport) in smp_query_via() argument 97 rpc.timeout = timeout; in smp_query_via() 120 unsigned timeout) in smp_query() argument 122 return smp_query_via(rcvbuf, portid, attrid, mod, timeout, NULL); in smp_query()
|
| /trueos/contrib/sendmail/libsm/ |
| HD | refill.c | 58 #define SM_IO_RD_TIMEOUT(fp, fd, to, timeout, sel_ret) \ argument 63 if (timeout == SM_TIME_IMMEDIATE) \ 117 sm_lflush(fp, timeout) in sm_lflush() argument 119 int *timeout; 123 return sm_flush(fp, timeout); 140 sm_refill(fp, timeout) in sm_refill() argument 142 int timeout; 148 if (timeout == SM_TIME_DEFAULT) 149 timeout = fp->f_timeout; 150 if (timeout == SM_TIME_IMMEDIATE) [all …]
|
| HD | fopen.c | 107 sm_io_open(type, timeout, info, flags, rpool) in sm_io_open() argument 109 int SM_NONVOLATILE timeout; /* this is not the file type timeout */ 127 if (timeout == SM_TIME_DEFAULT) 128 timeout = SM_TIME_FOREVER; 129 if (timeout == SM_TIME_IMMEDIATE) 138 if (timeout != SM_TIME_FOREVER) 145 evt = sm_seteventm(timeout, openalrm, 0); 221 sm_io_reopen(type, timeout, info, flags, rpool, fp) in sm_io_reopen() argument 223 int SM_NONVOLATILE timeout; 235 (void) sm_io_close(fp, timeout); [all …]
|
| HD | sem.c | 112 sm_sem_acq(semid, semnum, timeout) in sm_sem_acq() argument 115 int timeout; 123 (timeout != SM_TIME_FOREVER ? 0 : IPC_NOWAIT); 124 if (timeout == SM_TIME_IMMEDIATE || timeout == SM_TIME_FOREVER) 132 --timeout; 133 } while (timeout > 0); 151 sm_sem_rel(semid, semnum, timeout) in sm_sem_rel() argument 154 int timeout; 167 (timeout != SM_TIME_FOREVER ? 0 : IPC_NOWAIT); 168 if (timeout == SM_TIME_IMMEDIATE || timeout == SM_TIME_FOREVER) [all …]
|
| HD | fpos.c | 70 sm_io_tell(fp, timeout) in sm_io_tell() argument 72 int SM_NONVOLATILE timeout; 84 if (timeout == SM_TIME_DEFAULT) 85 timeout = fp->f_timeout; 86 if (timeout == SM_TIME_IMMEDIATE) 102 (void) sm_flush(fp, (int *) &timeout); 105 if (timeout != SM_TIME_FOREVER) 113 evt = sm_seteventm(timeout, tellalrm, 0);
|
| HD | fclose.c | 75 sm_io_close(fp, timeout) in sm_io_close() argument 77 int SM_NONVOLATILE timeout; 111 if (timeout == SM_TIME_DEFAULT) 112 timeout = fp->f_timeout; 113 if (timeout == SM_TIME_IMMEDIATE) 120 r = fp->f_flags & SMWR ? sm_flush(fp, (int *) &timeout) : 0; 123 if (timeout != SM_TIME_FOREVER) 130 evt = sm_seteventm(timeout, closealrm, 0);
|
| HD | fflush.c | 45 sm_io_flush(fp, timeout) 47 int SM_NONVOLATILE timeout; variable 65 SM_CONVERT_TIME(fp, fd, timeout, &to); 68 return sm_flush(fp, (int *) &timeout); 89 sm_flush(fp, timeout) in sm_flush() argument 91 int *timeout; 140 if (IS_IO_ERROR(fd, t, *timeout)) 147 SM_IO_WR_TIMEOUT(fp, fd, *timeout);
|
| /trueos/contrib/gdb/gdb/ |
| HD | ser-unix.c | 70 static int wait_for (struct serial *scb, int timeout); 71 static int hardwire_readchar (struct serial *scb, int timeout); 72 static int do_hardwire_readchar (struct serial *scb, int timeout); 73 static int generic_readchar (struct serial *scb, int timeout, 75 int timeout)); 95 static int do_unix_readchar (struct serial *scb, int timeout); 369 struct timeval timeout; in hardwire_send_break() local 376 timeout.tv_sec = 0; in hardwire_send_break() 377 timeout.tv_usec = 250000; in hardwire_send_break() 378 select (0, 0, 0, 0, &timeout); in hardwire_send_break() [all …]
|
| /trueos/contrib/apr/support/unix/ |
| HD | waitio.c | 44 int rc, timeout; in apr_wait_for_io_or_timeout() local 46 timeout = f ? f->timeout / 1000 : s->timeout / 1000; in apr_wait_for_io_or_timeout() 51 rc = poll(&pfd, 1, timeout); in apr_wait_for_io_or_timeout() 69 apr_interval_time_t timeout; in apr_wait_for_io_or_timeout() local 88 timeout = f->timeout; in apr_wait_for_io_or_timeout() 95 timeout = s->timeout; in apr_wait_for_io_or_timeout() 112 status = apr_pollset_poll(pollset, timeout, &numdesc, &pdesc); in apr_wait_for_io_or_timeout()
|
| /trueos/contrib/ofed/management/libibmad/include/infiniband/ |
| HD | mad.h | 188 int timeout; member 589 unsigned timeout; member 705 void * mad_receive(void *umad, int timeout); 729 int madrpc_set_timeout(int timeout); 750 unsigned timeout); 752 unsigned timeout); 754 unsigned mod, unsigned timeout, const void *srcport); 756 unsigned timeout, const void *srcport); 760 unsigned timeout) in safe_smp_query() argument 765 p = smp_query(rcvbuf, portid, attrid, mod, timeout); in safe_smp_query() [all …]
|
| /trueos/contrib/sendmail/libmilter/ |
| HD | smfi.c | 49 struct timeval timeout; local 53 timeout.tv_sec = ctx->ctx_timeout; 54 timeout.tv_usec = 0; 72 r = mi_wr_cmd(ctx->ctx_sd, &timeout, cmd, buf, len); 182 struct timeval timeout; 186 timeout.tv_sec = ctx->ctx_timeout; 187 timeout.tv_usec = 0; 215 r = mi_wr_cmd(ctx->ctx_sd, &timeout, cmd, buf, len); 247 struct timeval timeout; local 251 timeout.tv_sec = ctx->ctx_timeout; [all …]
|
| /trueos/sys/sys/ |
| HD | timepps.h | 110 struct timespec timeout; member 116 struct timespec timeout; member 217 pps_info_t *ppsinfobuf, const struct timespec *timeout) in time_pps_fetch() argument 223 if (timeout == NULL) { in time_pps_fetch() 224 arg.timeout.tv_sec = -1; in time_pps_fetch() 225 arg.timeout.tv_nsec = -1; in time_pps_fetch() 227 arg.timeout = *timeout; in time_pps_fetch() 235 pps_info_ffc_t *ppsinfobuf, const struct timespec *timeout) in time_pps_fetch_ffc() argument 241 if (timeout == NULL) { in time_pps_fetch_ffc() 242 arg.timeout.tv_sec = -1; in time_pps_fetch_ffc() [all …]
|
| /trueos/usr.sbin/bluetooth/btpand/ |
| HD | event.h | 54 struct timeval timeout; member 81 #define event_add(ev, timeout) \ argument 82 _event_add(__FILE__, __LINE__, ev, timeout) 88 #define evtimer_add(ev, timeout) \ argument 89 _event_add(__FILE__, __LINE__, ev, timeout) 106 struct timeval const *timeout) { in _event_add() argument 109 ev->cbarg, timeout); in _event_add() 114 return (__event_add(ev, timeout)); in _event_add() 136 #define event_add(ev, timeout) \ argument 137 __event_add(ev, timeout) [all …]
|
| /trueos/crypto/openssl/doc/ssl/ |
| HD | SSL_CTX_set_timeout.pod | 5 SSL_CTX_set_timeout, SSL_CTX_get_timeout - manipulate timeout values for session caching 16 SSL_CTX_set_timeout() sets the timeout for newly created sessions for 17 B<ctx> to B<t>. The timeout value B<t> must be given in seconds. 19 SSL_CTX_get_timeout() returns the currently set timeout value for B<ctx>. 25 timeout value valid at this time. If the actual time is later than creation 26 time plus timeout, the session is not reused. 28 Due to this realization, all sessions behave according to the timeout value 29 valid at the time of the session negotiation. Changes of the timeout value 40 The default value for session timeout is decided on a per protocol 42 All currently supported protocols have the same default timeout value [all …]
|
| /trueos/contrib/netbsd-tests/lib/libc/sys/ |
| HD | t_poll.c | 249 struct timespec timeout; in ATF_TC_BODY() local 260 timeout.tv_sec = 1; in ATF_TC_BODY() 261 timeout.tv_nsec = 0; in ATF_TC_BODY() 269 ATF_REQUIRE_EQ_MSG(ret = pollts(&pfds[0], 1, &timeout, NULL), 0, in ATF_TC_BODY() 277 ATF_REQUIRE_EQ_MSG(ret = pollts(&pfds[1], 1, &timeout, NULL), 1, in ATF_TC_BODY() 286 ATF_REQUIRE_EQ_MSG(ret = pollts(pfds, 2, &timeout, NULL), 1, in ATF_TC_BODY() 298 ATF_REQUIRE_EQ_MSG(ret = pollts(pfds, 2, &timeout, NULL), 2, in ATF_TC_BODY() 317 struct timespec timeout; in ATF_TC_BODY() local 324 timeout.tv_sec = 1; in ATF_TC_BODY() 325 timeout.tv_nsec = 0; in ATF_TC_BODY() [all …]
|
| /trueos/lib/libkse/thread/ |
| HD | thr_sigwait.c | 43 const struct timespec *timeout); 47 const struct timespec *timeout); 57 const struct timespec *timeout) in lib_sigtimedwait() argument 70 return (__sys_sigtimedwait(set, info, timeout)); in lib_sigtimedwait() 104 curthread->timeout = 0; in lib_sigtimedwait() 106 _thr_set_timeout(timeout); in lib_sigtimedwait() 122 else if (curthread->timeout) in lib_sigtimedwait() 126 curthread->timeout = 0; in lib_sigtimedwait() 143 const struct timespec * timeout) in __sigtimedwait() argument 149 ret = lib_sigtimedwait(set, info, timeout); in __sigtimedwait() [all …]
|
| /trueos/sys/dev/viawd/ |
| HD | viawd.c | 74 viawd_tmr_set(struct viawd_softc *sc, unsigned int timeout) in viawd_tmr_set() argument 78 if (timeout < VIAWD_MEM_COUNT_MIN) in viawd_tmr_set() 79 timeout = VIAWD_MEM_COUNT_MIN; in viawd_tmr_set() 80 else if (timeout > VIAWD_MEM_COUNT_MAX) in viawd_tmr_set() 81 timeout = VIAWD_MEM_COUNT_MAX; in viawd_tmr_set() 83 viawd_write_4(sc, VIAWD_MEM_COUNT, timeout); in viawd_tmr_set() 84 sc->timeout = timeout; in viawd_tmr_set() 95 unsigned int timeout; in viawd_event() local 99 timeout = ((uint64_t)1 << cmd) / 1000000000; in viawd_event() 101 if (timeout != sc->timeout) in viawd_event() [all …]
|
| /trueos/sys/dev/iicbus/ |
| HD | iicbb.c | 243 iicbb_setscl(device_t dev, int val, int timeout) in iicbb_setscl() argument 251 while (val && !I2C_GETSCL(dev) && k++ < timeout) { in iicbb_setscl() 260 iicbb_one(device_t dev, int timeout) in iicbb_one() argument 271 iicbb_zero(device_t dev, int timeout) in iicbb_zero() argument 296 iicbb_ack(device_t dev, int timeout) in iicbb_ack() argument 310 } while (k < timeout); in iicbb_ack() 319 iicbb_sendbyte(device_t dev, u_char data, int timeout) in iicbb_sendbyte() argument 325 iicbb_one(dev, timeout); in iicbb_sendbyte() 327 iicbb_zero(dev, timeout); in iicbb_sendbyte() 335 iicbb_readbyte(device_t dev, int last, int timeout) in iicbb_readbyte() argument [all …]
|
| /trueos/sys/contrib/octeon-sdk/ |
| HD | cvmx-spi.h | 86 int (*clock_detect_cb)(int interface, cvmx_spi_mode_t mode, int timeout); 89 int (*training_cb)(int interface, cvmx_spi_mode_t mode, int timeout); 92 int (*calendar_sync_cb)(int interface, cvmx_spi_mode_t mode, int timeout); 126 extern int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, int num_ports… 141 extern int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, int timeout); 224 extern int cvmx_spi_clock_detect_cb(int interface, cvmx_spi_mode_t mode, int timeout); 238 extern int cvmx_spi_training_cb(int interface, cvmx_spi_mode_t mode, int timeout); 252 extern int cvmx_spi_calendar_sync_cb(int interface, cvmx_spi_mode_t mode, int timeout);
|
| /trueos/contrib/wpa/wpa_supplicant/dbus/ |
| HD | dbus_common.c | 159 DBusTimeout *timeout = sock_ctx; in process_timeout() local 160 dbus_timeout_handle(timeout); in process_timeout() 164 static dbus_bool_t add_timeout(DBusTimeout *timeout, void *data) in add_timeout() argument 167 if (!dbus_timeout_get_enabled(timeout)) in add_timeout() 170 eloop_register_timeout(0, dbus_timeout_get_interval(timeout) * 1000, in add_timeout() 171 process_timeout, priv, timeout); in add_timeout() 173 dbus_timeout_set_data(timeout, priv, NULL); in add_timeout() 179 static void remove_timeout(DBusTimeout *timeout, void *data) in remove_timeout() argument 182 eloop_cancel_timeout(process_timeout, priv, timeout); in remove_timeout() 183 dbus_timeout_set_data(timeout, NULL, NULL); in remove_timeout() [all …]
|