Lines Matching refs:pt
61 struct lws_context_per_thread *pt = &wsi->context->pt[(int)wsi->tsi]; in __lws_set_timer_usecs() local
64 __lws_sul_insert(&pt->pt_sul_owner, &wsi->sul_hrtimer, us); in __lws_set_timer_usecs()
81 struct lws_context_per_thread *pt = &wsi->context->pt[(int)wsi->tsi]; in lws_sul_wsitimeout_cb() local
84 lws_stats_bump(pt, LWSSTATS_C_TIMEOUTS, 1); in lws_sul_wsitimeout_cb()
94 pt->http.ah_wait_list_length); in lws_sul_wsitimeout_cb()
126 struct lws_context_per_thread *pt = &wsi->context->pt[(int)wsi->tsi]; in __lws_set_timeout() local
129 __lws_sul_insert(&pt->pt_sul_owner, &wsi->sul_timeout, in __lws_set_timeout()
140 struct lws_context_per_thread *pt = &wsi->context->pt[(int)wsi->tsi]; in lws_set_timeout() local
142 lws_pt_lock(pt, __func__); in lws_set_timeout()
144 lws_pt_unlock(pt); in lws_set_timeout()
163 lws_pt_lock(pt, __func__); in lws_set_timeout()
165 lws_pt_unlock(pt); in lws_set_timeout()
171 struct lws_context_per_thread *pt = &wsi->context->pt[(int)wsi->tsi]; in lws_set_timeout_us() local
173 lws_pt_lock(pt, __func__); in lws_set_timeout_us()
175 lws_pt_unlock(pt); in lws_set_timeout_us()
180 lws_pt_lock(pt, __func__); in lws_set_timeout_us()
181 __lws_sul_insert(&pt->pt_sul_owner, &wsi->sul_timeout, us); in lws_set_timeout_us()
187 lws_pt_unlock(pt); in lws_set_timeout_us()
195 lws_start_foreach_llp_safe(struct lws_timed_vh_protocol **, pt, in __lws_timed_callback_remove()
197 if (*pt == p) { in __lws_timed_callback_remove()
198 *pt = p->next; in __lws_timed_callback_remove()
204 } lws_end_foreach_llp_safe(pt); in __lws_timed_callback_remove()
214 struct lws_context_per_thread *pt = in lws_sul_timed_callback_vh_protocol_cb() local
215 &tvp->vhost->context->pt[tvp->tsi_req]; in lws_sul_timed_callback_vh_protocol_cb()
217 pt->fake_wsi->context = tvp->vhost->context; in lws_sul_timed_callback_vh_protocol_cb()
219 pt->fake_wsi->vhost = tvp->vhost; /* not a real bound wsi */ in lws_sul_timed_callback_vh_protocol_cb()
220 pt->fake_wsi->protocol = tvp->protocol; in lws_sul_timed_callback_vh_protocol_cb()
225 tvp->protocol->callback(pt->fake_wsi, tvp->reason, NULL, NULL, 0); in lws_sul_timed_callback_vh_protocol_cb()
255 __lws_sul_insert(&vh->context->pt[p->tsi_req].pt_sul_owner, in lws_timed_callback_vh_protocol_us()
283 struct lws_context_per_thread *pt = &wsi->context->pt[(int)wsi->tsi]; in lws_validity_cb() local
311 __lws_sul_insert(&pt->pt_sul_owner, &wsi->sul_validity, in lws_validity_cb()
324 struct lws_context_per_thread *pt = &wsi->context->pt[(int)wsi->tsi]; in _lws_validity_confirmed_role() local
342 __lws_sul_insert(&pt->pt_sul_owner, &wsi->sul_validity, in _lws_validity_confirmed_role()