/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | clnt_btcp.c | 295 struct timeval timeout; local 306 * use a default timeout. 314 timeout = ct->ct_total; 316 shipnow = (xdr_results == (xdrproc_t)0 && timeout.tv_sec == 0 && 317 timeout.tv_usec == 0) ? FALSE : TRUE; 342 if (timeout.tv_sec == 0 && timeout.tv_usec == 0) { 415 * Do non-blocking reads here until we get some data or timeout
|
H A D | clnt_budp.c | 248 struct timeval timeout; local 254 timeout = utimeout; /* use supplied timeout */ 256 timeout = cu->cu_total; /* use default timeout */ 259 * set a media level timeout 265 wait_time = (timeout.tv_sec * 1000) + (timeout.tv_usec / 1000); 331 * a media level timeout above.
|
H A D | nfs3ops.c | 66 struct timeval timeout; local 100 timeout.tv_sec = NFS_REXMIT_MIN; /* Total wait for call */ 101 timeout.tv_usec = 0; 105 xdr_READ3res, (caddr_t)&read_res, timeout); 126 timeout.tv_sec = NFS_REXMIT_MIN; 129 if (timeout.tv_sec < NFS_REXMIT_MAX) 130 timeout.tv_sec++; 132 timeout.tv_sec = 0; 189 struct timeval timeout = {0, 0}; /* default */ local 202 xdr_GETATTR3res, (caddr_t)&getattr_res, timeout); [all...] |
H A D | nfs4ops.c | 67 struct timeval timeout; local 111 timeout.tv_sec = NFS_REXMIT_MIN; 112 timeout.tv_usec = 0; 118 timeout); 131 timeout.tv_sec = NFS_REXMIT_MIN; 134 if (timeout.tv_sec < NFS_REXMIT_MAX) 135 timeout.tv_sec++; 137 timeout.tv_sec = 0;
|
H A D | rpc.c | 219 uint32_t timeout; local 245 optlen = sizeof (timeout); 246 (void) getsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (void *)&timeout, 372 break; /* timeout */
|
/illumos-gate/usr/src/stand/lib/inet/ |
H A D | ethernet.c | 89 * The timeout argument is the number of milliseconds to wait for a 90 * response. An infinite timeout can be specified as 0xffffffff. 93 ether_comarp(struct arp_packet *out, uint32_t timeout) argument 118 wait_time = prom_gettime() + timeout; 119 for (count = 0; timeout == ~0U || prom_gettime() < wait_time; count++) { 210 ether_arp(struct in_addr *ip, void *hap, uint32_t timeout) argument 228 result = ether_comarp(&out, timeout); 278 * inetgrams as long as there's data and the mac level IP timeout timer 298 uint32_t timeout, reltime; local 317 timeout [all...] |
H A D | mac.c | 315 * Returns TRUE if successful, FALSE otherwise. Will wait timeout milliseconds 319 mac_get_arp(struct in_addr *ip, void *hp, int hl, uint32_t timeout) argument 332 result = mac_state.mac_arp(ip, hp, timeout); 387 mac_set_arp_timeout(unsigned int timeout) argument 390 timeout; 412 mac_call_arp(struct in_addr *addr, void *buf, uint32_t timeout) argument 414 return (mac_state.mac_arp(addr, buf, timeout));
|
/illumos-gate/usr/src/test/os-tests/tests/poll/ |
H A D | poll_test.c | 44 * but well before the specified timeout expired. The 50 * The DP_POLL ioctl arguments include a relative timeout in milliseconds, 52 * the timeout expires, or a signal was received. In this case we noticed 53 * that DP_POLL was returning before the timeout expired despite no events 70 * relative timeout rather then an absolute timeout, so we avoid the 81 * the specified timeout expires. 163 poll_wrapper(pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed) argument 168 debug_log("POLL start: (0x%p, %d, %d)\n", fds, nfds, timeout); 170 ret = poll(fds, nfds, timeout); 181 dppoll(int pollfd, pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed) argument 234 int timeout = 10; local 262 int timeout = 10; local 295 int timeout = 10; local 323 int timeout = 10; local [all...] |
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/ |
H A D | iscsit_radiuspacket.c | 41 int timeout); 310 iscsit_net_recvmsg(ksocket_t socket, struct msghdr *msg, int timeout) argument 322 /* If timeout requested on receive */ 323 if (timeout > 0) { 356 tl.tv_sec = timeout; 358 /* Set recv timeout */ 367 * data is received or timeout.
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/ |
H A D | qlge_mpi.c | 31 * Wait upto timeout seconds for Processor Interrupt 32 * if timeout is 0, then wait for default waittime 35 ql_poll_processor_intr(qlge_t *qlge, uint8_t timeout) argument 39 if (ql_wait_reg_bit(qlge, REG_STATUS, STS_PI, BIT_SET, timeout) 58 "Wait for processor address register ready timeout."); 249 if (ql_poll_processor_intr(qlge, (uint8_t)mbx_cmd->timeout) 277 } else { /* timeout */ 322 /* default 5 seconds from now to timeout */ 324 if (mbx_cmd->timeout) { 326 mbx_cmd->timeout * drv_usectoh 855 ql_set_IDC_Req(qlge_t *qlge, uint8_t dest_functions, uint8_t timeout) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ntxn/ |
H A D | niu.c | 57 int timeout = 0; local 65 if (timeout >= phy_lock_timeout) 67 timeout++; 107 long timeout = 0; local 152 timeout++; 154 (timeout++ < UNM_NIU_PHY_WAITMAX)); 156 if (timeout < UNM_NIU_PHY_WAITMAX) {
|
/illumos-gate/usr/src/uts/common/ipp/flowacct/ |
H A D | flowacctddi.c | 188 uint32_t timeout = FLOWACCT_DEF_TIMEOUT; local 224 /* parse flow timeout - in millisec, if present */ 225 (void) nvlist_lookup_uint32(nvlp, FLOWACCT_TIMEOUT, &timeout); 228 flowacct_data->timeout = (uint64_t)timeout * FLOWACCT_MSEC_TO_NSEC; 290 uint32_t timeout, timer, bstats, max_limit; local 348 /* parse timeout, if present */ 349 if ((rc = nvlist_lookup_uint32(nvlp, FLOWACCT_TIMEOUT, &timeout)) 351 flowacct_data->timeout = (uint64_t)timeout * [all...] |
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/emlxs/ |
H A D | emlxs_events.h | 75 uint32_t timeout; member in struct:emlxs_event
|
/illumos-gate/usr/src/uts/sun4u/lw8/sys/ |
H A D | lw8_impl.h | 117 int timeout; /* in seconds */ member in struct:__anon9825 139 #define LW8_WDT_PROP_TO 2 /* timeout duration */
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_clock.c | 62 emlxs_timeout(emlxs_hba_t *hba, uint32_t timeout) argument 67 /* Set thread timeout */ 70 time += (timeout * drv_usectohz(1000000)); 133 timeout(emlxs_timer, (void *)hba, 189 /* Check for linkup timeout */ 203 /* Check for clean address bit delay timeout */ 206 /* Check for tape discovery timeout */ 243 timeout(emlxs_timer, (void *)hba, drv_usectohz(1000000)); 624 /* Check for channel timeout now */ 626 if (cp->timeout [all...] |
H A D | emlxs_node.c | 37 /* Timeout not -1 will apply the timeout */ 40 int32_t timeout) 60 if (timeout == -1) { 62 timeout = cfg[CFG_OFFLINE_TIMEOUT].current; 65 timeout = 0; 82 ndlp->nlp_tics[channelno] = hba->timer_tics + timeout; 88 ndlp, ndlp->nlp_DID, channelno, timeout); 90 } else if (timeout) { 91 ndlp->nlp_tics[channelno] = hba->timer_tics + timeout; 95 "node=%p did=%06x channel=%d. timeout 39 emlxs_node_close(emlxs_port_t *port, NODELIST *ndlp, uint32_t channelno, int32_t timeout) argument [all...] |
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_rx.c | 667 oce_rx_pending(struct oce_dev *dev, struct oce_rq *rq, int32_t timeout) argument 672 for (ti = 0; ti < timeout; ti++) {
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_lock.c | 143 uint32_t timeout, 152 (timeout != 0 && timeout != UINT_MAX); 154 lock = smb_lock_create(sr, start, length, locktype, timeout); 168 } else if (timeout == 0) { 187 timeout = 0; 595 * -1 The timeout was reached. 610 * Wait up till the timeout time keeping track of actual 731 uint32_t timeout) 753 lock->l_end_time = ddi_get_lbolt() + MSEC_TO_TICK(timeout); 139 smb_lock_range( smb_request_t *sr, uint64_t start, uint64_t length, uint32_t timeout, uint32_t locktype) argument 726 smb_lock_create( smb_request_t *sr, uint64_t start, uint64_t length, uint32_t locktype, uint32_t timeout) argument [all...] |
/illumos-gate/usr/src/uts/common/io/e1000api/ |
H A D | e1000_80003es2lan.c | 408 s32 timeout = 50; local 412 while (i < timeout) { 428 if (i == timeout) { 429 DEBUGOUT("Driver can't access resource, SW_FW_SYNC timeout.\n"); 633 s32 timeout = PHY_CFG_TIMEOUT; local 641 while (timeout) { 645 timeout--; 647 if (!timeout) {
|
H A D | e1000_i210.c | 94 s32 i = 0, timeout = 200; /* FIXME: find real value to use here */ local 98 while (i < timeout) { 117 if (i == timeout) { 118 DEBUGOUT("Driver can't access resource, SW_FW_SYNC timeout.\n"); 165 s32 timeout = hw->nvm.word_size + 1; local 171 while (i < timeout) { 180 if (i == timeout) { 187 for (i = 0; i < timeout; i++) { 197 if (i == timeout) { 204 for (i = 0; i < timeout; 897 s32 timeout = PHY_CFG_TIMEOUT; local [all...] |
H A D | e1000_vf.c | 261 u32 timeout = E1000_VF_INIT_TIMEOUT; local 273 while (!mbx->ops.check_for_rst(hw, 0) && timeout) { 274 timeout--; 278 if (timeout) { 279 /* mailbox timeout can now become active */ 280 mbx->timeout = E1000_VF_MBX_INIT_TIMEOUT; 546 /* If we were hit with a reset or timeout drop the link */ 547 if (!mbx->ops.check_for_rst(hw, 0) || !mbx->timeout) 571 * we are still accepting timeout or if we had a timeout failur [all...] |
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | serial.c | 102 int timeout = 100000; 107 if (--timeout == 0) 101 int timeout = 100000; local
|
/illumos-gate/usr/src/uts/common/io/i40e/core/ |
H A D | i40e_nvm.c | 80 /* Max NVM timeout */ 81 nvm->timeout = I40E_MAX_NVM_TIMEOUT; 104 u64 gtime, timeout; local 117 /* Store the timeout */ 127 timeout = I40E_MS_TO_GTIME(I40E_MAX_NVM_TIMEOUT) + gtime; 128 while ((gtime < timeout) && time_left) { 172 * results in an admin Q timeout, so handle them correctly
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | PosixDaemon.c | 159 struct timeval timeout; local 173 timeout.tv_sec = ticks / mDNSPlatformOneSecond; 174 timeout.tv_usec = (ticks % mDNSPlatformOneSecond) * 1000000 / mDNSPlatformOneSecond; 176 (void) mDNSPosixRunEventLoopOnce(m, &timeout, &signals, &gotData);
|
/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_mcdi.c | 72 * a watchdog timeout occurs. 75 * used by the Solaris callout subsystem to invoke timeout handlers. If both 76 * worker threads are blocked (e.g. waiting for a condvar or mutex) then timeout 127 "MCDI timeout", 0); 135 clock_t timeout; local 138 /* Poll until request completes or timeout */ 139 timeout = ddi_get_lbolt() + drv_usectohz(SFXGE_MCDI_WATCHDOG_INTERVAL); 143 if (ddi_get_lbolt() > timeout) {
|