| /freebsd-13.1/stand/libsa/ |
| H A D | net.c | 92 time_t t, tmo, tlast; in sendrecv() local 101 tmo = MINTMO; in sendrecv() 111 if (tmo >= MAXTMO) { in sendrecv() 120 tleft = tmo; in sendrecv() 121 tmo += MINTMO; in sendrecv() 122 if (tmo > MAXTMO) in sendrecv() 123 tmo = MAXTMO; in sendrecv() 127 while ((getsecs() - t) < tmo) in sendrecv()
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/gen/ |
| H A D | t_sleep.c | 157 int tmo; in do_kevent() local 161 tmo = KEVNT_TIMEOUT; in do_kevent() 169 tmo/1000 < delay->tv_sec && tmo/500 > delay->tv_sec) in do_kevent() 172 EV_SET(&ktimer, 1, EVFILT_TIMER, EV_ADD, 0, tmo, 0); in do_kevent() 185 if (delay->tv_sec * BILLION + delay->tv_nsec > tmo * MILLION) in do_kevent()
|
| /freebsd-13.1/sys/dev/acpica/Osd/ |
| H A D | OsdSynch.c | 155 int error, prevtick, slptick, tmo; in AcpiOsWaitSemaphore() local 208 tmo = timeout2hz(Timeout); in AcpiOsWaitSemaphore() 212 error = cv_timedwait_sig(&as->as_cv, &as->as_lock, tmo); in AcpiOsWaitSemaphore() 221 if (slptick >= tmo || slptick < 0) { in AcpiOsWaitSemaphore() 225 tmo -= slptick; in AcpiOsWaitSemaphore() 363 int error, prevtick, slptick, tmo; in AcpiOsAcquireMutex() local 418 tmo = timeout2hz(Timeout); in AcpiOsAcquireMutex() 423 "acmtx", tmo); in AcpiOsAcquireMutex() 432 if (slptick >= tmo || slptick < 0) { in AcpiOsAcquireMutex() 436 tmo -= slptick; in AcpiOsAcquireMutex()
|
| /freebsd-13.1/contrib/sendmail/libsm/ |
| H A D | notify.c | 162 sm_notify_rcv(buf, buflen, tmo) in sm_notify_rcv() argument 165 int tmo; 178 timeout.tv_sec = tmo;
|
| H A D | ldap.c | 122 struct timeval tmo; \ 127 tmo.tv_sec = lmap->ldap_networktmo; \ 128 tmo.tv_usec = 0; \ 129 ldap_set_option(ld, LDAP_OPT_NETWORK_TIMEOUT, &tmo); \ 314 struct timeval tmo; local 431 tmo.tv_sec = lmap->ldap_networktmo; 433 tmo.tv_sec = lmap->ldap_timeout.tv_sec; 435 tmo.tv_usec = 0; 446 (long) tmo.tv_sec); 455 tmo.tv_sec == 0 ? NULL : &(tmo), &(lmap->ldap_res));
|
| /freebsd-13.1/sys/dev/smartpqi/ |
| H A D | smartpqi_init.c | 334 int tmo = 0; in pqisrc_check_pqimode() local 340 tmo = PQISRC_PQIMODE_READY_TIMEOUT; in pqisrc_check_pqimode() 350 } while (tmo--); in pqisrc_check_pqimode() 354 if (tmo <= 0) { in pqisrc_check_pqimode() 360 tmo = PQISRC_PQIMODE_READY_TIMEOUT; in pqisrc_check_pqimode() 363 PQI_ADMINQ_CONFIG) == PQI_ADMIN_QUEUE_CONF_FUNC_STATUS_IDLE), tmo); in pqisrc_check_pqimode() 364 if (!tmo) { in pqisrc_check_pqimode() 371 tmo = PQISRC_PQIMODE_READY_TIMEOUT; in pqisrc_check_pqimode() 374 PQI_DEV_STATE_AT_INIT, tmo); in pqisrc_check_pqimode() 375 if (!tmo) { in pqisrc_check_pqimode()
|
| H A D | smartpqi_event.c | 68 int tmo = PQISRC_EVENT_ACK_RESP_TIMEOUT; in pqisrc_acknowledge_event() local 91 COND_WAIT(((ib_q->pi_local) == *(ib_q->ci_virt_addr)), tmo); in pqisrc_acknowledge_event() 92 if (tmo <= 0) { in pqisrc_acknowledge_event() 94 DBG_ERR("tmo : %d\n",tmo); in pqisrc_acknowledge_event()
|
| H A D | smartpqi_queue.c | 41 int tmo = PQISRC_ADMIN_CMD_RESP_TIMEOUT; in pqisrc_submit_admin_req() local 69 COND_WAIT((*(ob_q->pi_virt_addr) != ob_q->ci_local), tmo); in pqisrc_submit_admin_req() 70 if (tmo <= 0) { in pqisrc_submit_admin_req() 72 DBG_ERR("tmo : %d\n",tmo); \ in pqisrc_submit_admin_req() 234 int tmo = 0; in pqisrc_create_delete_adminq() local 242 tmo = PQISRC_ADMIN_QUEUE_CREATE_TIMEOUT; in pqisrc_create_delete_adminq() 244 tmo = PQISRC_ADMIN_QUEUE_DELETE_TIMEOUT; in pqisrc_create_delete_adminq() 248 PQI_ADMIN_QUEUE_CONF_FUNC_STATUS_IDLE), tmo); in pqisrc_create_delete_adminq() 249 if (tmo <= 0) { in pqisrc_create_delete_adminq()
|
| /freebsd-13.1/sys/dev/tpm/ |
| H A D | tpm.c | 488 tpm_tmotohz(int tmo) in tpm_tmotohz() argument 492 tv.tv_sec = tmo / 1000; in tpm_tmotohz() 493 tv.tv_usec = 1000 * (tmo % 1000); in tpm_tmotohz() 544 tpm_waitfor_poll(struct tpm_softc *sc, u_int8_t mask, int tmo, void *c) in tpm_waitfor_poll() argument 552 while (((sc->sc_stat = tpm_status(sc)) & mask) != mask && tmo--) { in tpm_waitfor_poll() 567 tpm_waitfor_int(struct tpm_softc *sc, u_int8_t mask, int tmo, void *c, in tpm_waitfor_int() argument 599 to = tpm_tmotohz(tmo); in tpm_waitfor_int() 634 tpm_waitfor(struct tpm_softc *sc, u_int8_t b0, int tmo, void *c) in tpm_waitfor() argument 665 return tpm_waitfor_int(sc, b, tmo, c, in tpm_waitfor() 671 rv = tpm_waitfor_int(sc, b, tmo, c, TPM_STS_VALID_INT); in tpm_waitfor() [all …]
|
| /freebsd-13.1/contrib/sendmail/src/ |
| H A D | sfsasl.c | 367 sfdcsasl(fin, fout, conn, tmo) in sfdcsasl() argument 371 int tmo; 408 sm_io_setinfo(*fin, SM_IO_WHAT_TIMEOUT, &tmo); 409 sm_io_setinfo(*fout, SM_IO_WHAT_TIMEOUT, &tmo);
|
| H A D | map.c | 8021 int tmo; local 8421 tmo = map->map_timeout; 8422 if (tmo == 0) 8423 tmo = 30000; /* default: 30s */ 8425 tmo *= 1000; /* s -> ms */ 8426 sm_io_setinfo(map->map_db1, SM_IO_WHAT_TIMEOUT, &tmo);
|
| H A D | srvrsmtp.c | 1752 int tmo; local 1760 tmo = TimeOuts.to_datablock * 1000; 1762 conn, tmo) == 0)
|
| H A D | deliver.c | 3339 int tmo; local 3347 tmo = DATA_PROGRESS_TIMEOUT * 1000; 3350 mci->mci_conn, tmo) == 0)
|
| /freebsd-13.1/contrib/ofed/infiniband-diags/src/ |
| H A D | mcm_rereg_test.c | 184 uint8_t * umad, int length, int tmo) in rereg_recv() argument 189 while ((ret = umad_recv(port, umad, &len, tmo)) < 0 && in rereg_recv()
|
| /freebsd-13.1/sys/dev/oce/ |
| H A D | oce_hw.c | 55 int tmo = 60000; in oce_POST() local 68 if (--tmo == 0) in oce_POST()
|
| H A D | oce_mbox.c | 374 uint32_t tmo = 0; in oce_mbox_post() local 384 tmo = mbx->tag[0]; in oce_mbox_post() 391 rc = oce_mbox_dispatch(sc, tmo); in oce_mbox_post()
|
| /freebsd-13.1/sys/dev/isp/ |
| H A D | isp_freebsd.h | 272 struct callout tmo; /* general timer */ member
|
| H A D | isp_freebsd.c | 256 callout_init_mtx(&isp->isp_osinfo.tmo, &isp->isp_lock, 0); in isp_attach() 258 callout_reset(&isp->isp_osinfo.tmo, isp_timer_count, isp_timer, isp); in isp_attach() 292 callout_drain(&isp->isp_osinfo.tmo); in isp_detach() 3474 callout_reset(&isp->isp_osinfo.tmo, isp_timer_count, isp_timer, isp); in isp_timer()
|