Home
last modified time | relevance | path

Searched full:timeout (Results 1 – 25 of 399) sorted by relevance

12345678910>>...16

/nrf52832-nimble/rt-thread/components/dfs/filesystems/nfs/
H A Dnfs_clnt.c23 /* Default timeout can be changed using clnt_control() */
24 static struct timeval TIMEOUT = { 25, 0 }; variable
32 TIMEOUT)); in nfsproc3_null_3()
41 TIMEOUT)); in nfsproc3_getattr_3()
50 TIMEOUT)); in nfsproc3_setattr_3()
59 TIMEOUT)); in nfsproc3_lookup_3()
68 TIMEOUT)); in nfsproc3_access_3()
77 TIMEOUT)); in nfsproc3_readlink_3()
86 TIMEOUT)); in nfsproc3_read_3()
95 TIMEOUT)); in nfsproc3_write_3()
[all …]
H A Dmount_clnt.c23 /* Default timeout can be changed using clnt_control() */
24 static struct timeval TIMEOUT = { 25, 0 }; variable
32 TIMEOUT)); in mountproc3_null_3()
41 TIMEOUT)); in mountproc3_mnt_3()
50 TIMEOUT)); in mountproc3_dump_3()
59 TIMEOUT)); in mountproc3_umnt_3()
68 TIMEOUT)); in mountproc3_umntall_3()
77 TIMEOUT)); in mountproc3_export_3()
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/core/
H A Dtimeouts.c111 /** The one and only timeout list */
190 * Create a one-shot timer (aka timeout). Timeouts are processed in the
207 struct sys_timeo *timeout, *t; in sys_timeout_debug() local
210 timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT); in sys_timeout_debug()
211 if (timeout == NULL) { in sys_timeout_debug()
212 LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL); in sys_timeout_debug()
224 timeout->next = NULL; in sys_timeout_debug()
225 timeout->h = handler; in sys_timeout_debug()
226 timeout->arg = arg; in sys_timeout_debug()
227 timeout->time = msecs + diff; in sys_timeout_debug()
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/core/
H A Dtimers.c63 /** The one and only timeout list */
252 * Create a one-shot timer (aka timeout). Timeouts are processed in the
269 struct sys_timeo *timeout, *t; in sys_timeout_debug() local
271 timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT); in sys_timeout_debug()
272 if (timeout == NULL) { in sys_timeout_debug()
273 LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL); in sys_timeout_debug()
276 timeout->next = NULL; in sys_timeout_debug()
277 timeout->h = handler; in sys_timeout_debug()
278 timeout->arg = arg; in sys_timeout_debug()
279 timeout->time = msecs; in sys_timeout_debug()
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/core/
H A Dtimeouts.c121 /** The one and only timeout list */
186 struct sys_timeo *timeout, *t; in sys_timeout_abs() local
188 timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT); in sys_timeout_abs()
189 if (timeout == NULL) { in sys_timeout_abs()
190 LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL); in sys_timeout_abs()
194 timeout->next = NULL; in sys_timeout_abs()
195 timeout->h = handler; in sys_timeout_abs()
196 timeout->arg = arg; in sys_timeout_abs()
197 timeout->time = abs_time; in sys_timeout_abs()
200 timeout->handler_name = handler_name; in sys_timeout_abs()
[all …]
/nrf52832-nimble/rt-thread/src/
H A Dtimer.c16 * 2012-12-15 Bernard fix the next timeout issue in soft timer
18 * timeout function.
57 * timer timeout callback function.
68 * timer timeout callback function.
81 void (*timeout)(void *parameter), in _rt_timer_init()
94 timer->timeout_func = timeout; in _rt_timer_init()
173 * @param timeout the timeout function
174 * @param parameter the parameter of timeout function
180 void (*timeout)(void *parameter), in rt_timer_init()
191 _rt_timer_init(timer, timeout, parameter, time, flag); in rt_timer_init()
[all …]
H A Dipc.c25 * 2009-10-25 Bernard change the mb/mq receive timeout to 0 if the
350 /* no waiting, return with timeout */ in rt_sem_take()
383 /* reset the timeout of thread timer and start it */ in rt_sem_take()
701 /* no waiting, return with timeout */ in rt_mutex_take()
704 /* set error as timeout */ in rt_mutex_take()
739 /* reset the timeout of thread timer and start it */ in rt_mutex_take()
1119 * @param timeout the waiting time
1127 rt_int32_t timeout, in rt_event_recv() argument
1182 else if (timeout == 0) in rt_event_recv()
1198 /* if there is a waiting timeout, active thread timer */ in rt_event_recv()
[all …]
/nrf52832-nimble/rt-thread/components/drivers/usb/usbhost/class/
H A Dmass.c96 ustorage_cbw_t cmd, rt_uint8_t* buffer, int timeout) in rt_usb_bulk_only_xfer() argument
119 cmd, SIZEOF_CBW, timeout); in rt_usb_bulk_only_xfer()
130 cmd->xfer_len, timeout); in rt_usb_bulk_only_xfer()
141 &csw, SIZEOF_CSW, timeout); in rt_usb_bulk_only_xfer()
193 int timeout = USB_TIMEOUT_BASIC; in rt_usbh_storage_get_max_lun() local
217 if(rt_usb_hcd_setup_xfer(device->hcd, device->pipe_ep0_out, &setup, timeout) != 8) in rt_usbh_storage_get_max_lun()
221 if(rt_usb_hcd_pipe_xfer(device->hcd, device->pipe_ep0_in, max_lun, 1, timeout) != 1) in rt_usbh_storage_get_max_lun()
225 if(rt_usb_hcd_pipe_xfer(device->hcd, device->pipe_ep0_out, RT_NULL, 0, timeout) != 0) in rt_usbh_storage_get_max_lun()
243 int timeout = USB_TIMEOUT_BASIC; in rt_usbh_storage_reset() local
266 if(rt_usb_hcd_setup_xfer(device->hcd, device->pipe_ep0_out, &setup, timeout) != 8) in rt_usbh_storage_reset()
[all …]
H A Dhid.c33 int timeout = USB_TIMEOUT_BASIC; in rt_usbh_hid_set_idle() local
49 timeout) == 0) return RT_EOK; in rt_usbh_hid_set_idle()
67 int timeout = USB_TIMEOUT_BASIC; in rt_usbh_hid_get_report() local
83 timeout) == size) return RT_EOK; in rt_usbh_hid_get_report()
100 int timeout = USB_TIMEOUT_BASIC; in rt_usbh_hid_set_report() local
116 timeout) == size) return RT_EOK; in rt_usbh_hid_set_report()
132 int timeout = USB_TIMEOUT_BASIC; in rt_usbh_hid_set_protocal() local
148 timeout) == 0) return RT_EOK; in rt_usbh_hid_set_protocal()
167 int timeout = USB_TIMEOUT_BASIC; in rt_usbh_hid_get_report_descriptor() local
183 timeout) == size) return RT_EOK; in rt_usbh_hid_get_report_descriptor()
[all …]
/nrf52832-nimble/rt-thread/components/net/at/src/
H A Dat_client.c41 * @param timeout the maximum response time
46 at_response_t at_create_resp(rt_size_t buf_size, rt_size_t line_num, rt_int32_t timeout) in at_create_resp() argument
68 resp->timeout = timeout; in at_create_resp()
100 * @param timeout the maximum response time
105 …_t at_resp_set_info(at_response_t resp, rt_size_t buf_size, rt_size_t line_num, rt_int32_t timeout) in at_resp_set_info() argument
122 resp->timeout = timeout; in at_resp_set_info()
275 * -2 : wait timeout
304 if (rt_sem_take(client->resp_notice, resp->timeout) != RT_EOK) in at_obj_exec_cmd()
307 LOG_E("execute command (%.*s) timeout (%d ticks)!", cmd_size, cmd, resp->timeout); in at_obj_exec_cmd()
333 * @param timeout millisecond for timeout
[all …]
/nrf52832-nimble/rt-thread/components/vbus/
H A Dwatermark_queue.h36 * @timeout ticks.
38 * @return RT_EOK if water level increased successfully. -RT_EFULL on @timeout
39 * is zero and the level is above water mark. -RT_ETIMEOUT if timeout occurred.
42 int timeout) in rt_wm_que_inc() argument
47 if (timeout != 0) in rt_wm_que_inc()
58 if (timeout == 0) in rt_wm_que_inc()
68 if (timeout > 0) in rt_wm_que_inc()
72 &timeout); in rt_wm_que_inc()
H A Dvbus.h26 * @param timeout the value used in the blocking API
42 rt_int32_t timeout);
68 int rt_vbus_request_chn(struct rt_vbus_request *req, int timeout);
99 /** Listen on any events happen on the @chnr for @timeout ticks.
101 * This function blocks until events occur or timeout happened.
104 rt_int32_t timeout);
/nrf52832-nimble/rt-thread/components/drivers/usb/usbhost/core/
H A Dcore.c306 int timeout = USB_TIMEOUT_BASIC; in rt_usbh_get_descriptor() local
317 if(rt_usb_hcd_setup_xfer(device->hcd, device->pipe_ep0_out, &setup, timeout) == 8) in rt_usbh_get_descriptor()
319 … if(rt_usb_hcd_pipe_xfer(device->hcd, device->pipe_ep0_in, buffer, nbytes, timeout) == nbytes) in rt_usbh_get_descriptor()
321 if(rt_usb_hcd_pipe_xfer(device->hcd, device->pipe_ep0_out, RT_NULL, 0, timeout) == 0) in rt_usbh_get_descriptor()
340 int timeout = USB_TIMEOUT_BASIC; in rt_usbh_set_address() local
353 if(rt_usb_hcd_setup_xfer(device->hcd, device->pipe_ep0_out, &setup, timeout) != 8) in rt_usbh_set_address()
357 if(rt_usb_hcd_pipe_xfer(device->hcd, device->pipe_ep0_in, RT_NULL, 0, timeout) == 0) in rt_usbh_set_address()
376 int timeout = USB_TIMEOUT_BASIC; in rt_usbh_set_configure() local
388 if(rt_usb_hcd_setup_xfer(device->hcd, device->pipe_ep0_out, &setup, timeout) != 8) in rt_usbh_set_configure()
392 if(rt_usb_hcd_pipe_xfer(device->hcd, device->pipe_ep0_in, RT_NULL, 0, timeout) != 0) in rt_usbh_set_configure()
[all …]
H A Dhub.c121 int timeout = USB_TIMEOUT_BASIC; in rt_usbh_hub_get_descriptor() local
132 if(rt_usb_hcd_setup_xfer(device->hcd, device->pipe_ep0_out, &setup, timeout) == 8) in rt_usbh_hub_get_descriptor()
134 … if(rt_usb_hcd_pipe_xfer(device->hcd, device->pipe_ep0_in, buffer, nbytes, timeout) == nbytes) in rt_usbh_hub_get_descriptor()
154 int timeout = USB_TIMEOUT_BASIC; in rt_usbh_hub_get_status() local
164 if(rt_usb_hcd_setup_xfer(device->hcd, device->pipe_ep0_out, &setup, timeout) == 8) in rt_usbh_hub_get_status()
166 if(rt_usb_hcd_pipe_xfer(device->hcd, device->pipe_ep0_in, buffer, 4, timeout) == 4) in rt_usbh_hub_get_status()
187 int timeout = USB_TIMEOUT_BASIC; in rt_usbh_hub_get_port_status() local
206 if(rt_usb_hcd_setup_xfer(hub->hcd, hub->self->pipe_ep0_out, &setup, timeout) == 8) in rt_usbh_hub_get_port_status()
208 if(rt_usb_hcd_pipe_xfer(hub->hcd, hub->self->pipe_ep0_in, buffer, 4, timeout) == 4) in rt_usbh_hub_get_port_status()
229 int timeout = USB_TIMEOUT_BASIC; in rt_usbh_hub_clear_port_feature() local
[all …]
/nrf52832-nimble/rt-thread/components/net/at/include/
H A Dat.h118 AT_RESP_TIMEOUT = -2, /* AT response is timeout */
136 rt_int32_t timeout; member
200 int at_client_obj_wait_connect(at_client_t client, rt_uint32_t timeout);
204 rt_size_t at_client_obj_recv(at_client_t client, char *buf, rt_size_t size, rt_int32_t timeout);
216 at_response_t at_create_resp(rt_size_t buf_size, rt_size_t line_num, rt_int32_t timeout);
218 …t at_resp_set_info(at_response_t resp, rt_size_t buf_size, rt_size_t line_num, rt_int32_t timeout);
234 #define at_client_wait_connect(timeout) at_client_obj_wait_connect(at_client_get_first(), argument
236 #define at_client_recv(buf, size, timeout) at_client_obj_recv(at_client_get_first(), buf, siz… argument
/nrf52832-nimble/rt-thread/components/drivers/src/
H A Ddataqueue.c54 rt_int32_t timeout) in rt_data_queue_push() argument
69 if (timeout == 0) in rt_data_queue_push()
86 if (timeout > 0) in rt_data_queue_push()
88 /* reset the timeout of thread timer and start it */ in rt_data_queue_push()
91 &timeout); in rt_data_queue_push()
143 rt_int32_t timeout) in rt_data_queue_pop() argument
160 if (timeout == 0) in rt_data_queue_pop()
176 if (timeout > 0) in rt_data_queue_pop()
178 /* reset the timeout of thread timer and start it */ in rt_data_queue_pop()
181 &timeout); in rt_data_queue_pop()
H A Dcompletion.c31 rt_int32_t timeout) in rt_completion_wait() argument
47 if (timeout == 0) in rt_completion_wait()
67 if (timeout > 0) in rt_completion_wait()
69 /* reset the timeout of thread timer and start it */ in rt_completion_wait()
72 &timeout); in rt_completion_wait()
/nrf52832-nimble/rt-thread/components/dfs/src/
H A Dpoll.c83 rt_int32_t timeout; in poll_wait_timeout() local
90 timeout = rt_tick_from_millisecond(msec); in poll_wait_timeout()
94 if (timeout != 0 && !pt->triggered) in poll_wait_timeout()
97 if (timeout > 0) in poll_wait_timeout()
101 &timeout); in poll_wait_timeout()
203 int poll(struct pollfd *fds, nfds_t nfds, int timeout) in poll() argument
210 num = poll_do(fds, nfds, &table, timeout); in poll()
/nrf52832-nimble/rt-thread/components/drivers/hwtimer/
H A Dhwtimer.c17 float timeout; in timeout_calc() local
30 /* little timeout */ in timeout_calc()
32 timeout = 1/(float)timer->freq; in timeout_calc()
38 timeout = tv_sec/i; in timeout_calc()
40 if (timeout <= overflow) in timeout_calc()
42 counter = timeout*timer->freq; in timeout_calc()
48 timeout = tv_sec/i; in timeout_calc()
66 timer->period_sec = timeout; in timeout_calc()
67 counter = timeout*timer->freq; in timeout_calc()
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/src/
H A Dadv.c153 s32_t timeout; in mesh_adv_thread() local
162 timeout = bt_mesh_proxy_adv_start(); in mesh_adv_thread()
163 BT_DBG("Proxy Advertising up to %d ms", timeout); in mesh_adv_thread()
166 if (timeout != K_FOREVER) { in mesh_adv_thread()
167 timeout = ble_npl_time_ms_to_ticks32(timeout); in mesh_adv_thread()
170 ev = ble_npl_eventq_get(&adv_queue, timeout); in mesh_adv_thread()
205 u8_t xmit, s32_t timeout) in bt_mesh_adv_create_from_pool() argument
230 s32_t timeout) in bt_mesh_adv_create() argument
233 xmit, timeout); in bt_mesh_adv_create()
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/netif/ppp/
H A Dfsm.c178 UNTIMEOUT(fsm_timeout, f); /* Cancel timeout */ in fsm_lowerdown()
186 UNTIMEOUT(fsm_timeout, f); /* Cancel timeout */ in fsm_lowerdown()
254 * Cancel any timeout running, notify upper layers we're done, and
295 UNTIMEOUT(fsm_timeout, f); /* Cancel timeout */ in fsm_close()
303 TIMEOUT(fsm_timeout, f, f->timeouttime); in fsm_close()
316 * fsm_timeout - Timeout expired.
327 FSMDEBUG(LOG_WARNING, ("%s: timeout sending Terminate-Request state=%d (%s)\n", in fsm_timeout()
337 FSMDEBUG(LOG_WARNING, ("%s: timeout resending Terminate-Requests state=%d (%s)\n", in fsm_timeout()
342 TIMEOUT(fsm_timeout, f, f->timeouttime); in fsm_timeout()
351 FSMDEBUG(LOG_WARNING, ("%s: timeout sending Config-Requests state=%d (%s)\n", in fsm_timeout()
[all …]
/nrf52832-nimble/rt-thread/examples/libc/
H A Dtermios_test.c167 int recv_comm(int fd, unsigned char *buffer, rt_size_t size, struct timeval *timeout) in recv_comm() argument
187 if(RT_NULL == timeout) in recv_comm()
194 …timeout_cnt = (timeout->tv_sec * 1000 * 1000 + timeout->tv_usec)/(t.tv_sec * 1000 * 1000 + t.tv_us… in recv_comm()
210 /* timeout */ in recv_comm()
215 rt_kprintf("need %d data in timeout %d ms,but only %d recved.\n", in recv_comm()
217 timeout->tv_sec * 1000 + timeout->tv_usec / 1000, in recv_comm()
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/include/lwip/
H A Dsys.h143 /** Wait for a semaphore for the specified timeout
145 * @param timeout timeout in milliseconds to wait (0 = wait forever)
147 * or SYS_ARCH_TIMEOUT on timeout */
148 u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout);
152 /** Wait for a semaphore - forever/no timeout */
187 * @param timeout maximum time (in milliseconds) to wait for a message
189 or SYS_ARCH_TIMEOUT on timeout
191 u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout);
197 * @param timeout maximum time (in milliseconds) to wait for a message
H A Dapi.h163 /** timeout to wait for sending data (which means enqueueing data for sending
168 /** timeout to wait for new data to be received
273 /** Set the send timeout in milliseconds */
274 #define netconn_set_sendtimeout(conn, timeout) ((conn)->send_timeout = (timeout)) argument
275 /** Get the send timeout in milliseconds */
279 /** Set the receive timeout in milliseconds */
280 #define netconn_set_recvtimeout(conn, timeout) ((conn)->recv_timeout = (timeout)) argument
281 /** Get the receive timeout in milliseconds */
/nrf52832-nimble/rt-thread/components/libc/pthreads/
H A Dpthread_cond.c140 /* it's timeout, release this semaphore */ in pthread_cond_broadcast()
181 rt_int32_t timeout) in _pthread_cond_timedwait() argument
198 result = rt_sem_take(&(cond->sem), timeout); in _pthread_cond_timedwait()
222 int timeout; in pthread_cond_timedwait() local
225 timeout = clock_time_to_tick(abstime); in pthread_cond_timedwait()
226 result = _pthread_cond_timedwait(cond, mutex, timeout); in pthread_cond_timedwait()

12345678910>>...16