Home
last modified time | relevance | path

Searched refs:vh (Results 1 – 25 of 99) sorted by relevance

1234

/third_party/libwebsockets/lib/core-net/
Dvhost.c293 lws_vhost_protocol_options(struct lws_vhost *vh, const char *name) in lws_vhost_protocol_options() argument
295 const struct lws_protocol_vhost_options *pvo = vh->pvo; in lws_vhost_protocol_options()
310 lws_protocol_init_vhost(struct lws_vhost *vh, int *any) in lws_protocol_init_vhost() argument
313 struct lws *wsi = vh->context->pt[0].fake_wsi; in lws_protocol_init_vhost()
316 wsi->context = vh->context; in lws_protocol_init_vhost()
317 wsi->vhost = vh; in lws_protocol_init_vhost()
321 for (n = 0; n < vh->count_protocols; n++) { in lws_protocol_init_vhost()
322 wsi->protocol = &vh->protocols[n]; in lws_protocol_init_vhost()
323 if (!vh->protocols[n].name) in lws_protocol_init_vhost()
325 pvo = lws_vhost_protocol_options(vh, vh->protocols[n].name); in lws_protocol_init_vhost()
[all …]
Dserver.c32 const struct lws_vhost *vh = ctx->vhost_list; in lws_sum_stats() local
34 while (vh) { in lws_sum_stats()
36 cs->rx += vh->conn_stats.rx; in lws_sum_stats()
37 cs->tx += vh->conn_stats.tx; in lws_sum_stats()
38 cs->h1_conn += vh->conn_stats.h1_conn; in lws_sum_stats()
39 cs->h1_trans += vh->conn_stats.h1_trans; in lws_sum_stats()
40 cs->h2_trans += vh->conn_stats.h2_trans; in lws_sum_stats()
41 cs->ws_upg += vh->conn_stats.ws_upg; in lws_sum_stats()
42 cs->h2_upg += vh->conn_stats.h2_upg; in lws_sum_stats()
43 cs->h2_alpn += vh->conn_stats.h2_alpn; in lws_sum_stats()
[all …]
Dwsi-timeout.c193 __lws_timed_callback_remove(struct lws_vhost *vh, struct lws_timed_vh_protocol *p) in __lws_timed_callback_remove() argument
196 vh->timed_vh_protocol_list, next) { in __lws_timed_callback_remove()
231 lws_timed_callback_vh_protocol_us(struct lws_vhost *vh, in lws_timed_callback_vh_protocol_us() argument
243 p->tsi_req = lws_pthread_self_to_tsi(vh->context); in lws_timed_callback_vh_protocol_us()
247 lws_context_lock(vh->context, __func__); /* context ----------------- */ in lws_timed_callback_vh_protocol_us()
251 p->vhost = vh; in lws_timed_callback_vh_protocol_us()
255 __lws_sul_insert(&vh->context->pt[p->tsi_req].pt_sul_owner, in lws_timed_callback_vh_protocol_us()
260 lws_vhost_lock(vh); /* vhost ---------------------------------------- */ in lws_timed_callback_vh_protocol_us()
261 p->next = vh->timed_vh_protocol_list; in lws_timed_callback_vh_protocol_us()
262 vh->timed_vh_protocol_list = p; in lws_timed_callback_vh_protocol_us()
[all …]
Dadopt.c119 lws_adopt_descriptor_vhost1(struct lws_vhost *vh, lws_adoption_type type, in lws_adopt_descriptor_vhost1() argument
123 struct lws_context *context = vh->context; in lws_adopt_descriptor_vhost1()
137 new_wsi = lws_create_new_server_wsi(vh, n); in lws_adopt_descriptor_vhost1()
188 vh->context->count_wsi_allocated--; in lws_adopt_descriptor_vhost1()
312 lws_adopt_descriptor_vhost(struct lws_vhost *vh, lws_adoption_type type, in lws_adopt_descriptor_vhost() argument
320 info.vh = vh; in lws_adopt_descriptor_vhost()
337 peer = lws_get_or_create_peer(info->vh, info->fd.sockfd); in lws_adopt_descriptor_vhost_via_info()
339 if (peer && info->vh->context->ip_limit_wsi && in lws_adopt_descriptor_vhost_via_info()
340 peer->count_wsi >= info->vh->context->ip_limit_wsi) { in lws_adopt_descriptor_vhost_via_info()
342 info->vh->context->ip_limit_wsi); in lws_adopt_descriptor_vhost_via_info()
[all …]
Dwsi.c47 lws_vhost_bind_wsi(struct lws_vhost *vh, struct lws *wsi) in lws_vhost_bind_wsi() argument
49 if (wsi->vhost == vh) in lws_vhost_bind_wsi()
51 lws_context_lock(vh->context, __func__); /* ---------- context { */ in lws_vhost_bind_wsi()
52 wsi->vhost = vh; in lws_vhost_bind_wsi()
53 vh->count_bound_wsi++; in lws_vhost_bind_wsi()
54 lws_context_unlock(vh->context); /* } context ---------- */ in lws_vhost_bind_wsi()
56 vh->name, wsi->role_ops ? wsi->role_ops->name : "none", in lws_vhost_bind_wsi()
58 vh->count_bound_wsi); in lws_vhost_bind_wsi()
114 lws_vhost_name_to_protocol(struct lws_vhost *vh, const char *name) in lws_vhost_name_to_protocol() argument
118 for (n = 0; n < vh->count_protocols; n++) in lws_vhost_name_to_protocol()
[all …]
/third_party/libwebsockets/lib/tls/mbedtls/
Dmbedtls-client.c248 lws_tls_client_create_vhost_context(struct lws_vhost *vh, in lws_tls_client_create_vhost_context() argument
268 (char *)vh->context->pt[0].serv_buf)); in lws_tls_client_create_vhost_context()
272 vh->tls.ssl_client_ctx = SSL_CTX_new(method); in lws_tls_client_create_vhost_context()
273 if (!vh->tls.ssl_client_ctx) { in lws_tls_client_create_vhost_context()
277 (char *)vh->context->pt[0].serv_buf)); in lws_tls_client_create_vhost_context()
289 if (alloc_file(vh->context, ca_filepath, &buf, &len)) { in lws_tls_client_create_vhost_context()
293 vh->tls.x509_client_CA = d2i_X509(NULL, buf, len); in lws_tls_client_create_vhost_context()
298 vh->tls.x509_client_CA = d2i_X509(NULL, (uint8_t*)ca_mem, ca_mem_len); in lws_tls_client_create_vhost_context()
303 if (!vh->tls.x509_client_CA) { in lws_tls_client_create_vhost_context()
308 if (!vh->tls.ssl_ctx) in lws_tls_client_create_vhost_context()
[all …]
Dmbedtls-server.c29 lws_tls_server_client_cert_verify_config(struct lws_vhost *vh) in lws_tls_server_client_cert_verify_config() argument
34 if (!lws_check_opt(vh->options, in lws_tls_server_client_cert_verify_config()
48 if (lws_check_opt(vh->options, LWS_SERVER_OPTION_PEER_CERT_NOT_REQUIRED)) in lws_tls_server_client_cert_verify_config()
51 lwsl_notice("%s: vh %s requires client cert %d\n", __func__, vh->name, in lws_tls_server_client_cert_verify_config()
54 SSL_CTX_set_verify(vh->tls.ssl_ctx, verify_options, NULL); in lws_tls_server_client_cert_verify_config()
65 struct lws_vhost *vhost, *vh; in lws_mbedtls_sni_cb() local
74 vh = context->vhost_list; in lws_mbedtls_sni_cb()
75 while (vh) { in lws_mbedtls_sni_cb()
76 if (!vh->being_destroyed && in lws_mbedtls_sni_cb()
77 vh->tls.ssl_ctx == SSL_get_SSL_CTX(ssl)) in lws_mbedtls_sni_cb()
[all …]
/third_party/libwebsockets/lib/tls/openssl/
Dopenssl-client.c493 lws_tls_client_vhost_extra_cert_mem(struct lws_vhost *vh, in lws_tls_client_vhost_extra_cert_mem() argument
506 st = SSL_CTX_get_cert_store(vh->tls.ssl_client_ctx); in lws_tls_client_vhost_extra_cert_mem()
523 lws_tls_client_create_vhost_context(struct lws_vhost *vh, in lws_tls_client_create_vhost_context() argument
560 (char *)vh->context->pt[0].serv_buf)); in lws_tls_client_create_vhost_context()
605 if (!lws_check_opt(vh->options, LWS_SERVER_OPTION_DISABLE_OS_CA_CERTS)) { in lws_tls_client_create_vhost_context()
632 lws_dll2_get_head(&vh->context->tls.cc_owner)) { in lws_tls_client_create_vhost_context()
640 vh->tls.ssl_client_ctx = tcr->ssl_client_ctx; in lws_tls_client_create_vhost_context()
643 __func__, vh->name, tcr->index, in lws_tls_client_create_vhost_context()
654 vh->tls.ssl_client_ctx = SSL_CTX_new(method); in lws_tls_client_create_vhost_context()
655 if (!vh->tls.ssl_client_ctx) { in lws_tls_client_create_vhost_context()
[all …]
Dopenssl-server.c71 lws_tls_server_client_cert_verify_config(struct lws_vhost *vh) in lws_tls_server_client_cert_verify_config() argument
77 if (!lws_check_opt(vh->options, in lws_tls_server_client_cert_verify_config()
81 if (!lws_check_opt(vh->options, in lws_tls_server_client_cert_verify_config()
85 SSL_CTX_set_session_id_context(vh->tls.ssl_ctx, (uint8_t *)vh->context, in lws_tls_server_client_cert_verify_config()
89 SSL_CTX_set_verify(vh->tls.ssl_ctx, verify_options, in lws_tls_server_client_cert_verify_config()
100 struct lws_vhost *vhost, *vh; in lws_ssl_server_name_cb() local
111 vh = context->vhost_list; in lws_ssl_server_name_cb()
112 while (vh) { in lws_ssl_server_name_cb()
113 if (!vh->being_destroyed && in lws_ssl_server_name_cb()
114 vh->tls.ssl_ctx == SSL_get_SSL_CTX(ssl)) in lws_ssl_server_name_cb()
[all …]
/third_party/uboot/u-boot-2020.01/drivers/mtd/ubispl/
Dubispl.c231 struct ubi_vid_hdr *vh, int unused) in ubi_io_read_vid_hdr() argument
245 res = ubi_io_read(ubi, vh, pnum, ubi->vid_offset, sizeof(*vh)); in ubi_io_read_vid_hdr()
252 vh->magic = 0; in ubi_io_read_vid_hdr()
258 magic = be32_to_cpu(vh->magic); in ubi_io_read_vid_hdr()
268 if (crc32(UBI_CRC32_INIT, vh, UBI_VID_HDR_SIZE_CRC) != in ubi_io_read_vid_hdr()
269 be32_to_cpu(vh->hdr_crc)) { in ubi_io_read_vid_hdr()
275 ubi_dbg("RV: pnum: %i sqnum %llu", pnum, be64_to_cpu(vh->sqnum)); in ubi_io_read_vid_hdr()
281 struct ubi_vid_hdr *vh, in ubi_rescan_fm_vid_hdr() argument
289 res = ubi_io_read_vid_hdr(ubi, fm_pnum, vh, 0); in ubi_rescan_fm_vid_hdr()
292 if (be32_to_cpu(vh->vol_id) == fm_vol_id && in ubi_rescan_fm_vid_hdr()
[all …]
/third_party/libwebsockets/lib/event-libs/libevent/
Dlibevent.c168 struct lws_vhost *vh = context->vhost_list; in elops_init_pt_event() local
192 while (vh) { in elops_init_pt_event()
193 if (vh->lserv_wsi) { in elops_init_pt_event()
194 vh->lserv_wsi->w_read.context = context; in elops_init_pt_event()
195 vh->lserv_wsi->w_read.event.watcher = event_new( in elops_init_pt_event()
196 loop, vh->lserv_wsi->desc.sockfd, in elops_init_pt_event()
198 &vh->lserv_wsi->w_read); in elops_init_pt_event()
199 event_add(vh->lserv_wsi->w_read.event.watcher, NULL); in elops_init_pt_event()
200 vh->lserv_wsi->w_read.event.set = 1; in elops_init_pt_event()
202 vh = vh->vhost_next; in elops_init_pt_event()
[all …]
/third_party/libwebsockets/lib/event-libs/libev/
Dlibev.c131 struct lws_vhost *vh = context->vhost_list; in elops_init_pt_ev() local
155 while (vh) { in elops_init_pt_ev()
156 if (vh->lserv_wsi) { in elops_init_pt_ev()
157 vh->lserv_wsi->w_read.context = context; in elops_init_pt_ev()
158 vh->w_accept.context = context; in elops_init_pt_ev()
160 ev_io_init(&vh->w_accept.ev.watcher, lws_accept_cb, in elops_init_pt_ev()
161 vh->lserv_wsi->desc.sockfd, EV_READ); in elops_init_pt_ev()
162 ev_io_start(loop, &vh->w_accept.ev.watcher); in elops_init_pt_ev()
165 vh = vh->vhost_next; in elops_init_pt_ev()
225 struct lws_vhost *vh = context->vhost_list; in elops_destroy_pt_ev() local
[all …]
/third_party/gstreamer/gstplugins_bad/sys/dshowvideosink/
Ddshowvideofakesrc.cpp135 VIDEOINFOHEADER *vh = (VIDEOINFOHEADER *)m_MediaType.pbFormat; in CopyToDestinationBuffer() local
140 guint32 fourcc = vh->bmiHeader.biCompression; in CopyToDestinationBuffer()
143 int height = ABS (vh->bmiHeader.biHeight); in CopyToDestinationBuffer()
144 int width = vh->bmiHeader.biWidth; in CopyToDestinationBuffer()
153 int srcstride = GST_ROUND_UP_4 (vh->rcSource.right * 2); in CopyToDestinationBuffer()
164 srcstride = GST_ROUND_UP_4 (vh->rcSource.right); in CopyToDestinationBuffer()
168 srcstride = GST_ROUND_UP_4 ( GST_ROUND_UP_2 (vh->rcSource.right) / 2); in CopyToDestinationBuffer()
170 src = srcbuf + GST_ROUND_UP_4 (vh->rcSource.right) * GST_ROUND_UP_2 (vh->rcSource.bottom); in CopyToDestinationBuffer()
172 … src = srcbuf + GST_ROUND_UP_4 (vh->rcSource.right) * GST_ROUND_UP_2 (vh->rcSource.bottom) + in CopyToDestinationBuffer()
173 srcstride * (GST_ROUND_UP_2 (vh->rcSource.bottom) / 2); in CopyToDestinationBuffer()
/third_party/libwebsockets/lib/tls/
Dtls-server.c130 struct lws_vhost *vh; in lws_server_socket_service_ssl() local
336 vh = context->vhost_list; in lws_server_socket_service_ssl()
337 while (vh) { in lws_server_socket_service_ssl()
338 if (!vh->being_destroyed && wsi->tls.ssl && in lws_server_socket_service_ssl()
339 vh->tls.ssl_ctx == lws_tls_ctx_from_wsi(wsi)) { in lws_server_socket_service_ssl()
340 lwsl_info("setting wsi to vh %s\n", vh->name); in lws_server_socket_service_ssl()
341 lws_vhost_bind_wsi(vh, wsi); in lws_server_socket_service_ssl()
344 vh = vh->vhost_next; in lws_server_socket_service_ssl()
/third_party/pulseaudio/src/pulsecore/
Dsvolume.orc38 # vh = | v >> 16 | (signed, but sign bit is always zero
40 # mh = | (s * vh) >> 16 | (signed)
48 .temp 2 vh
60 convhlw vh, v
61 mulswl mh, samples, vh
69 .temp 4 vh
81 x2 convhlw vh, v
82 x2 mulswl mh, samples, vh
/third_party/libwebsockets/lib/event-libs/glib/
Dglib.c277 struct lws_vhost *vh = context->vhost_list; in elops_init_pt_glib() local
298 while (vh) { in elops_init_pt_glib()
299 if (vh->lserv_wsi) in elops_init_pt_glib()
300 elops_accept_glib(vh->lserv_wsi); in elops_init_pt_glib()
302 vh = vh->vhost_next; in elops_init_pt_glib()
397 struct lws_vhost *vh = context->vhost_list; in elops_destroy_pt_glib() local
405 while (vh) { in elops_destroy_pt_glib()
406 if (vh->lserv_wsi) in elops_destroy_pt_glib()
407 elops_destroy_wsi_glib(vh->lserv_wsi); in elops_destroy_pt_glib()
409 vh = vh->vhost_next; in elops_destroy_pt_glib()
/third_party/libwebsockets/minimal-examples/dbus-client/minimal-dbus-client/
Dminimal-dbus-client.c87 create_dbus_client_conn(struct lws_vhost *vh, int tsi, const char *ads) in create_dbus_client_conn() argument
98 ctx->vh = vh; in create_dbus_client_conn()
221 struct lws_vhost *vh; in main() local
248 vh = lws_create_vhost(context, &info); in main()
249 if (!vh) in main()
252 dbus_ctx = create_dbus_client_conn(vh, 0, THIS_LISTEN_PATH); in main()
/third_party/libwebsockets/lib/roles/dbus/
Ddbus.c53 if (fd < 0 || fd >= (int)ctx->vh->context->fd_limit_per_thread) { in __lws_shadow_wsi()
55 (int)ctx->vh->context->fd_limit_per_thread); in __lws_shadow_wsi()
61 wsi = wsi_from_fd(ctx->vh->context, fd); in __lws_shadow_wsi()
79 wsi->context = ctx->vh->context; in __lws_shadow_wsi()
82 wsi->protocol = ctx->vh->protocols; in __lws_shadow_wsi()
88 lws_vhost_bind_wsi(ctx->vh, wsi); in __lws_shadow_wsi()
89 if (__insert_wsi_socket_into_fds(ctx->vh->context, wsi)) { in __lws_shadow_wsi()
96 ctx->vh->context->count_wsi_allocated++; in __lws_shadow_wsi()
117 ctx->vh->context->count_wsi_allocated--; in __lws_shadow_wsi_destroy()
146 struct lws_context_per_thread *pt = &ctx->vh->context->pt[ctx->tsi]; in lws_dbus_add_watch()
[all …]
/third_party/libwebsockets/lib/abstract/
Dabstract.c176 lws_vhost_lock(ai->vh); /* ----------------------------------- vh { */ in lws_abs_bind_and_create_instance()
182 n = lws_dll2_foreach_safe(&ai->vh->abstract_instances_owner, ai, in lws_abs_bind_and_create_instance()
185 lws_vhost_unlock(ai->vh); /* } vh --------------------------------- */ in lws_abs_bind_and_create_instance()
205 &ai->vh->abstract_instances_owner); in lws_abs_bind_and_create_instance()
280 lws_vhost_lock(a->vh); /* ----------------------------------- vh { */ in lws_abs_destroy_instance()
288 lws_vhost_unlock(a->vh); /* } vh --------------------------------- */ in lws_abs_destroy_instance()
333 abs->vh = vhost; in lws_abstract_alloc()
/third_party/libwebsockets/minimal-examples/abstract/protocols/smtp-client/
Dmain.c52 struct lws_vhost *vh; in main() local
83 vh = lws_create_vhost(context, &info); in main()
84 if (!vh) { in main()
91 ss_args.vhost = vh; in main()
/third_party/libwebsockets/minimal-examples/dbus-client/minimal-dbus-ws-proxy-testclient/
Dminimal-dbus-ws-proxy-testclient.c150 create_dbus_client_conn(struct lws_vhost *vh, int tsi, const char *ads) in create_dbus_client_conn() argument
162 dcwc->ctx.vh = vh; in create_dbus_client_conn()
392 struct lws_vhost *vh; in main() local
426 vh = lws_create_vhost(context, &info); in main()
427 if (!vh) in main()
430 dbus_ctx = create_dbus_client_conn(vh, 0, THIS_LISTEN_PATH); in main()
/third_party/libwebsockets/include/libwebsockets/
Dlws-writeable.h127 lws_callback_all_protocol_vhost(struct lws_vhost *vh,
147 lws_callback_all_protocol_vhost_args(struct lws_vhost *vh,
186 lws_callback_vhost_protocols_vhost(struct lws_vhost *vh, int reason, void *in,
Dlws-adopt.h64 lws_adopt_socket_vhost(struct lws_vhost *vh, lws_sockfd_type accept_fd);
112 lws_adopt_descriptor_vhost(struct lws_vhost *vh, lws_adoption_type type,
117 struct lws_vhost *vh; /**< vhost the wsi should belong to */ member
/third_party/libwebsockets/lib/core/
Dcontext.c727 struct lws_vhost *vh; in lws_create_context() local
754 vh = lws_create_vhost(context, &ii); in lws_create_context()
755 if (!vh) { in lws_create_context()
761 context->vhost_system = vh; in lws_create_context()
763 if (lws_protocol_init_vhost(vh, NULL)) { in lws_create_context()
1012 struct lws_vhost *vh = NULL, *vh1; in lws_context_destroy2() local
1071 vh = context->vhost_list; in lws_context_destroy2()
1072 while (vh) { in lws_context_destroy2()
1073 vh1 = vh->vhost_next; in lws_context_destroy2()
1074 __lws_vhost_destroy2(vh); in lws_context_destroy2()
[all …]
/third_party/libwebsockets/minimal-examples/api-tests/api-test-smtp_client/
Dmain.c187 struct lws_vhost *vh; in main() local
210 vh = lws_create_vhost(context, &info); in main()
211 if (!vh) { in main()
218 abs = lws_abstract_alloc(vh, NULL, "smtp.unit_test", in main()

1234