Home
last modified time | relevance | path

Searched refs:tmo (Results 1 – 25 of 30) sorted by relevance

12

/netbsd/sys/lib/libsa/
H A Dnet.c91 saseconds_t tmo, tleft; in sendrecv() local
98 tmo = MINTMO; in sendrecv()
104 if (tmo >= MAXTMO) { in sendrecv()
110 tleft = tmo; in sendrecv()
111 tmo <<= 1; in sendrecv()
112 if (tmo > MAXTMO) in sendrecv()
113 tmo = MAXTMO; in sendrecv()
117 while ((getsecs() - t) < tmo) in sendrecv()
/netbsd/tests/lib/libc/gen/
H A Dt_sleep.c153 int tmo; in do_kevent() local
157 tmo = KEVNT_TIMEOUT; in do_kevent()
165 tmo/1000 < delay->tv_sec && tmo/500 > delay->tv_sec) in do_kevent()
168 EV_SET(&ktimer, 1, EVFILT_TIMER, EV_ADD, 0, tmo, 0); in do_kevent()
181 if (delay->tv_sec * BILLION + delay->tv_nsec > tmo * MILLION) in do_kevent()
/netbsd/sys/arch/sun3/dev/
H A Dsi.c384 int tmo; in si_dma_poll() local
397 tmo = POLL_TIMO; in si_dma_poll()
401 if (--tmo <= 0) { in si_dma_poll()
410 POLL_TIMO - tmo); in si_dma_poll()
H A Dsi_sebuf.c672 int tmo; in se_dma_poll() local
685 tmo = POLL_TIMO; in se_dma_poll()
689 if (--tmo <= 0) { in se_dma_poll()
698 POLL_TIMO - tmo); in se_dma_poll()
H A Dsi_obio.c441 int resid, ntrans, tmo, udc_cnt; in si_obio_dma_stop() local
475 tmo = 200000; /* X10 = 2 sec. */ in si_obio_dma_stop()
479 if (--tmo <= 0) { in si_obio_dma_stop()
H A Dif_ie.c1046 int tmo; in cmd_and_wait() local
1052 tmo = 10; in cmd_and_wait()
1053 while (scb->ie_command && --tmo) in cmd_and_wait()
1072 tmo = 36900; in cmd_and_wait()
1081 while (((cc->ie_cmd_status & mask) == 0) && --tmo) in cmd_and_wait()
/netbsd/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_ib.c364 long tmo; in amdgpu_ib_ring_tests() local
379 tmo = tmo_mm; in amdgpu_ib_ring_tests()
381 tmo = tmo_gfx; in amdgpu_ib_ring_tests()
383 r = amdgpu_ring_test_ib(ring, tmo); in amdgpu_ib_ring_tests()
H A Damdgpu_device.c3845 long r = 1, tmo; in amdgpu_device_recover_vram() local
3848 tmo = msecs_to_jiffies(8000); in amdgpu_device_recover_vram()
3850 tmo = msecs_to_jiffies(100); in amdgpu_device_recover_vram()
3867 tmo = dma_fence_wait_timeout(fence, false, tmo); in amdgpu_device_recover_vram()
3870 if (tmo == 0) { in amdgpu_device_recover_vram()
3873 } else if (tmo < 0) { in amdgpu_device_recover_vram()
3874 r = tmo; in amdgpu_device_recover_vram()
3884 tmo = dma_fence_wait_timeout(fence, false, tmo); in amdgpu_device_recover_vram()
3887 if (r < 0 || tmo <= 0) { in amdgpu_device_recover_vram()
3888 DRM_ERROR("recover vram bo from shadow failed, r is %ld, tmo is %ld\n", r, tmo); in amdgpu_device_recover_vram()
/netbsd/sbin/fdisk/
H A Dfdisk.c734 int tmo; in print_s0() local
740 if (tmo == 0xffff) in print_s0()
744 (10 * tmo + 9) / 182); in print_s0()
1550 int tmo; in configure_bootsel() local
1570 tmo = le16toh(mbs->mbrbs_timeo); in configure_bootsel()
1571 tmo = tmo == 0xffff ? -1 : (10 * tmo + 9) / 182; in configure_bootsel()
1573 tmo, 0, -1, 3600); in configure_bootsel()
1574 mbs->mbrbs_timeo = htole16(tmo == -1 ? 0xffff : (tmo * 182) / 10); in configure_bootsel()
2690 unsigned int tmo; in validate_bootsel() local
2717 tmo = htole16(mbs->mbrbs_timeo); in validate_bootsel()
[all …]
/netbsd/sys/dev/ic/
H A Dtpm.c88 tpm_tmotohz(int tmo) in tpm_tmotohz() argument
92 tv.tv_sec = tmo / 1000; in tpm_tmotohz()
93 tv.tv_usec = 1000 * (tmo % 1000); in tpm_tmotohz()
373 tpm_waitfor(struct tpm_softc *sc, uint8_t bits, int tmo, wchan_t chan) in tpm_waitfor() argument
378 to = tpm_tmotohz(tmo); in tpm_waitfor()
456 int tmo; in tpm_tis12_probe() local
468 tmo = TPM_ACCESS_TMO; /* Milliseconds. */ in tpm_tis12_probe()
471 (TPM_ACCESS_VALID | TPM_ACCESS_ACTIVE_LOCALITY) && tmo--) { in tpm_tis12_probe()
H A Dciss.c957 cmd->tmo = htole16(0); in ciss_inq()
989 cmd->tmo = htole16(30); in ciss_ldmap()
1031 cmd->tmo = 0; in ciss_sync()
1061 cmd->tmo = htole16(0); in ciss_ldid()
1089 cmd->tmo = htole16(0); in ciss_ldstat()
1117 cmd->tmo = htole16(0); in ciss_pdid()
1212 cmd->tmo = htole16(xs->timeout < 1000? 1 : xs->timeout / 1000); in ciss_scsi_cmd()
1613 cmd->tmo = htole16(0); in ciss_blink()
H A Dsunscpal.c287 int tmo; in sunscpal_dma_poll() local
294 tmo = POLL_TIMO; in sunscpal_dma_poll()
298 if (--tmo <= 0) { in sunscpal_dma_poll()
306 SUNSCPAL_TRACE("sunscpal_dma_poll: waited %d\n", POLL_TIMO - tmo); in sunscpal_dma_poll()
H A Dcissreg.h485 u_int16_t tmo; /* 16: timeout in seconds */ member
/netbsd/external/bsd/am-utils/dist/amq/
H A Dpawd.c181 struct timeval tmo = {10, 0}; in transform_dir() local
203 clnt = clntudp_create(&server_addr, AMQ_PROGRAM, AMQ_VERSION, tmo, &s); in transform_dir()
/netbsd/usr.sbin/sysinst/
H A Drun.c422 struct timeval tmo; in launch_subwin() local
533 tmo.tv_sec = flags & RUN_SILENT ? 20 : 2; in launch_subwin()
534 tmo.tv_usec = 0; in launch_subwin()
535 i = select(FD_SETSIZE, &read_fd_set, NULL, NULL, &tmo); in launch_subwin()
/netbsd/sys/dev/spi/
H A Dspiflash.c751 spiflash_wait(spiflash_handle_t sc, int tmo) in spiflash_wait() argument
767 if (tmo) in spiflash_wait()
768 tsleep(&sr, PWAIT, "spiflash_wait", tmo); in spiflash_wait()
/netbsd/sys/arch/sparc/dev/
H A Dsw.c589 int tmo, csr_mask, csr; in sw_dma_poll() local
598 tmo = 50000; /* X100 = 5 sec. */ in sw_dma_poll()
603 if (--tmo <= 0) { in sw_dma_poll()
/netbsd/sys/dev/scsipi/
H A Dch.c1123 int tmo; in ch_ielem() local
1144 tmo = sc->sc_counts[CHET_MT] + in ch_ielem()
1148 tmo *= 5 * 60 * 1000; in ch_ielem()
1149 tmo += (10 * 60 * 1000); in ch_ielem()
1152 CHRETRIES, tmo, NULL, XS_CTL_IGNORE_ILLEGAL_REQUEST)); in ch_ielem()
H A Dst.c1709 int tmo; in st_erase() local
1721 tmo = ST_SPC_TIME; in st_erase()
1723 tmo = ST_IO_TIME; in st_erase()
1734 ST_RETRIES, tmo, NULL, flags); in st_erase()
/netbsd/sys/dev/vme/
H A Dsi.c561 int tmo, csr_mask, csr; in si_dma_poll() local
570 tmo = 50000; /* X100 = 5 sec. */ in si_dma_poll()
575 if (--tmo <= 0) { in si_dma_poll()
/netbsd/sys/arch/x86/acpi/
H A Dacpi_cpu_md.c932 uint32_t vid, uint32_t cnt, uint32_t tmo) in acpicpu_md_pstate_fidvid_write() argument
942 DELAY(tmo); in acpicpu_md_pstate_fidvid_write()
/netbsd/usr.sbin/mrouted/
H A Ddefs.h211 u_int32_t group, int tmo);
H A Dvif.c498 accept_membership_query(u_int32_t src, u_int32_t dst, u_int32_t group, int tmo) in accept_membership_query() argument
/netbsd/usr.sbin/mrinfo/
H A Dmrinfo.c597 int tmo) in accept_membership_query() argument
/netbsd/usr.sbin/map-mbone/
H A Dmapper.c971 int tmo) in accept_membership_query() argument

12