Home
last modified time | relevance | path

Searched refs:lws_usec_t (Results 1 – 25 of 72) sorted by relevance

123

/third_party/libwebsockets/include/libwebsockets/
Dlws-timeout-timer.h114 lws_set_timeout_us(struct lws *wsi, enum pending_timeout reason, lws_usec_t us);
120 #define LWS_SET_TIMER_USEC_CANCEL ((lws_usec_t)-1ll)
121 #define LWS_USEC_PER_SEC ((lws_usec_t)1000000)
151 lws_set_timer_usecs(struct lws *wsi, lws_usec_t usecs);
159 lws_usec_t us;
224 lws_sul_earliest_wakeable_event(struct lws_context *ctx, lws_usec_t *pearliest);
235 sul_cb_t _cb, lws_usec_t _us);
239 lws_usec_t _us);
301 LWS_VISIBLE LWS_EXTERN lws_usec_t
302 __lws_sul_service_ripe(lws_dll2_owner_t *own, int own_len, lws_usec_t usnow);
Dlws-metrics.h160 lws_usec_t us_first;
162 lws_usec_t us_last;
164 lws_usec_t us_dumped;
221 lws_usec_t us_start;
Dlws-cache-ttl.h77 size_t size, lws_usec_t expiry, void **ppay);
81 lws_usec_t expiry;
270 const uint8_t *source, size_t size, lws_usec_t expiry,
Dlws-sequencer.h193 lws_seq_timeout_us(struct lws_sequencer *seq, lws_usec_t us);
220 LWS_VISIBLE LWS_EXTERN lws_usec_t
Dlws-netdev.h58 int (*event)(struct lws_netdev_instance *nd, lws_usec_t timestamp,
246 lws_netdev_wifi_event_plat(struct lws_netdev_instance *nd, lws_usec_t timestamp,
Dlws-system.h165 int (*set_clock)(lws_usec_t us);
374 lws_system_cpd_start_defer(struct lws_context *cx, lws_usec_t defer_us);
/third_party/libwebsockets/lib/core-net/
Dsorted-usec-list.c30 lws_usec_t a = ((lws_sorted_usec_list_t *)d)->us; in sul_compare()
31 lws_usec_t b = ((lws_sorted_usec_list_t *)i)->us; in sul_compare()
99 lws_usec_t
100 __lws_sul_service_ripe(lws_dll2_owner_t *own, int own_len, lws_usec_t usnow) in __lws_sul_service_ripe()
125 lws_usec_t lowest = 0; in __lws_sul_service_ripe()
181 lws_usec_t
236 lws_sul_earliest_wakeable_event(struct lws_context *ctx, lws_usec_t *pearliest) in lws_sul_earliest_wakeable_event()
240 lws_usec_t lowest = 0; in lws_sul_earliest_wakeable_event()
273 sul_cb_t _cb, lws_usec_t _us) in lws_sul_schedule()
281 if (_us == (lws_usec_t)LWS_SET_TIMER_USEC_CANCEL) in lws_sul_schedule()
[all …]
Dprivate-lib-core-net.h56 (sul)->us = lws_now_usecs() + (lws_usec_t)(_us); \
241 lws_usec_t
242 __lws_sul_service_ripe(lws_dll2_owner_t *own, int num_own, lws_usec_t usnow);
726 lws_usec_t conmon_datum;
913 lws_usec_t created; /* set by lws_spawn_piped() */
914 lws_usec_t reaped;
916 lws_usec_t accounting[4];
1208 lws_usec_t
1209 __lws_seq_timeout_check(struct lws_context_per_thread *pt, lws_usec_t usnow);
1211 lws_usec_t
[all …]
Dsequencer.c53 lws_usec_t time_created;
54 lws_usec_t timeout; /* 0 or time we timeout */
302 lws_seq_timeout_us(lws_seq_t *seq, lws_usec_t us) in lws_seq_timeout_us()
324 lws_usec_t
Dwsi-timeout.c55 __lws_set_timer_usecs(struct lws *wsi, lws_usec_t us) in __lws_set_timer_usecs()
65 lws_set_timer_usecs(struct lws *wsi, lws_usec_t usecs) in lws_set_timer_usecs()
132 ((lws_usec_t)secs) * LWS_US_PER_SEC); in __lws_set_timeout()
176 lws_set_timeout_us(struct lws *wsi, enum pending_timeout reason, lws_usec_t us) in lws_set_timeout_us()
/third_party/libwebsockets/lib/plat/unix/
Dunix-misc.c42 lws_usec_t
51 return (((lws_usec_t)ts.tv_sec) * LWS_US_PER_SEC) + in lws_now_usecs()
52 ((lws_usec_t)ts.tv_nsec / LWS_NS_PER_US); in lws_now_usecs()
57 return (((lws_usec_t)now.tv_sec) * LWS_US_PER_SEC) + in lws_now_usecs()
58 (lws_usec_t)now.tv_usec; in lws_now_usecs()
Dunix-service.c77 lws_usec_t timeout_us, us; in _lws_plat_service_tsi()
79 lws_usec_t a, b; in _lws_plat_service_tsi()
104 timeout_us = ((lws_usec_t)timeout_ms) * LWS_US_PER_MS; in _lws_plat_service_tsi()
Dunix-spawn.c224 lsp->accounting[0] = (lws_usec_t)((uint64_t)tms.tms_cstime * 1000000) / hz; in lws_spawn_reap()
225 lsp->accounting[1] = (lws_usec_t)((uint64_t)tms.tms_cutime * 1000000) / hz; in lws_spawn_reap()
226 lsp->accounting[2] = (lws_usec_t)((uint64_t)tms.tms_stime * 1000000) / hz; in lws_spawn_reap()
227 lsp->accounting[3] = (lws_usec_t)((uint64_t)tms.tms_utime * 1000000) / hz; in lws_spawn_reap()
/third_party/libwebsockets/lib/misc/cache-ttl/
Dprivate-lib-misc-cache-ttl.h45 lws_usec_t expiry;
91 lws_usec_t earliest_expiry;
98 lws_cache_schedule(struct lws_cache_ttl_lru *cache, sul_cb_t cb, lws_usec_t e);
Dfile.c360 lws_usec_t *pexpiry) in nsc_line_to_tag()
363 lws_usec_t expiry = 0; in nsc_line_to_tag()
382 expiry = (lws_usec_t)((unsigned long long)atoll(col) * in nsc_line_to_tag()
383 (lws_usec_t)LWS_US_PER_SEC); in nsc_line_to_tag()
431 lws_usec_t expiry; in nsc_lookup_cb()
531 lws_usec_t curr;
545 lws_usec_t expiry; in nsc_regen_cb()
703 size_t size, lws_usec_t expiry, void **ppvoid) in lws_cache_nscookiejar_write()
733 lws_usec_t expiry;
Dlws-cache-ttl.c46 lws_cache_schedule(struct lws_cache_ttl_lru *cache, sul_cb_t cb, lws_usec_t e) in lws_cache_schedule()
58 size_t size, lws_usec_t expiry, void **ppay) in lws_cache_write_through()
96 lws_usec_t expiry = 0; in lws_cache_lookup()
Dheap.c175 lws_usec_t now = lws_now_usecs(); in expiry_cb()
197 earliest_expiry(lws_cache_ttl_lru_t_heap_t *cache, lws_usec_t *pearliest) in earliest_expiry()
215 lws_usec_t earliest; in update_sul()
323 const uint8_t *source, size_t size, lws_usec_t expiry, in lws_cache_heap_write()
/third_party/libwebsockets/lib/misc/threadpool/
Dthreadpool.c53 lws_usec_t created;
54 lws_usec_t acquired;
55 lws_usec_t done;
56 lws_usec_t entered_state;
58 lws_usec_t acc_running;
59 lws_usec_t acc_syncing;
76 lws_usec_t acquired;
103 ms_delta(lws_usec_t now, lws_usec_t then) in ms_delta()
109 us_accrue(lws_usec_t *acc, lws_usec_t then) in us_accrue()
111 lws_usec_t now = lws_now_usecs(); in us_accrue()
[all …]
/third_party/libwebsockets/lib/roles/http/
Ddate.c159 lws_http_check_retry_after(struct lws *wsi, lws_usec_t *us_interval_in_out) in lws_http_check_retry_after()
163 lws_usec_t u; in lws_http_check_retry_after()
179 u = ((lws_usec_t)(time_t)atoi(p)) * LWS_USEC_PER_SEC; in lws_http_check_retry_after()
207 u = ((lws_usec_t)(t - td)) * LWS_USEC_PER_SEC; in lws_http_check_retry_after()
/third_party/libwebsockets/include/
Dlibwebsockets.h58 #define LWS_US_PER_SEC ((lws_usec_t)1000000)
59 #define LWS_MS_PER_SEC ((lws_usec_t)1000)
60 #define LWS_US_PER_MS ((lws_usec_t)1000)
61 #define LWS_NS_PER_US ((lws_usec_t)1000)
557 typedef int64_t lws_usec_t; typedef
/third_party/libwebsockets/lib/plat/windows/
Dwindows-service.c64 lws_usec_t timeout_us; in _lws_plat_service_tsi()
92 timeout_us = ((lws_usec_t)timeout_ms) * LWS_US_PER_MS; in _lws_plat_service_tsi()
128 lws_usec_t us; in _lws_plat_service_tsi()
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_smd/
Dmain.c33 smd_cb1int(void *opaque, lws_smd_class_t _class, lws_usec_t timestamp, in smd_cb1int()
47 smd_cb2int(void *opaque, lws_smd_class_t _class, lws_usec_t timestamp, in smd_cb2int()
66 smd_cb3int(void *opaque, lws_smd_class_t _class, lws_usec_t timestamp, in smd_cb3int()
/third_party/libwebsockets/lib/plat/freertos/
Dfreertos-service.c45 lws_usec_t timeout_us; in _lws_plat_service_tsi()
88 timeout_us = ((lws_usec_t)timeout_ms) * LWS_US_PER_MS; in _lws_plat_service_tsi()
115 lws_usec_t us; in _lws_plat_service_tsi()
/third_party/libwebsockets/lib/secure-streams/
Dprivate-lib-secure-streams.h332 lws_usec_t us_earliest_write_req;
333 lws_usec_t us_start_upstream;
460 _lws_ss_backoff(lws_ss_handle_t *h, lws_usec_t us_override);
470 lws_ss_set_timeout_us(lws_ss_handle_t *h, lws_usec_t us);
/third_party/libwebsockets/lib/plat/optee/
Dnetwork.c92 lws_usec_t timeout_us = timeout_ms * LWS_US_PER_MS; in _lws_plat_service_tsi()
127 lws_usec_t us; in _lws_plat_service_tsi()

123