/openbsd/sys/dev/usb/ |
H A D | usbdi_util.c | 67 USETW(req.wIndex, 0); in usbd_get_desc() 79 USETW(req.wValue, 0); in usbd_get_device_status() 80 USETW(req.wIndex, 0); in usbd_get_device_status() 95 USETW(req.wIndex, 0); in usbd_get_hub_descriptor() 110 USETW(req.wIndex, 0); in usbd_get_hub_ss_descriptor() 122 USETW(req.wValue, 0); in usbd_get_port_status() 136 USETW(req.wIndex, 0); in usbd_set_hub_depth() 137 USETW(req.wLength, 0); in usbd_set_hub_depth() 150 USETW(req.wLength, 0); in usbd_clear_port_feature() 235 USETW(req.wValue, 0); in usbd_get_config() [all …]
|
H A D | uplcom.c | 272 USETW(req.wLength, 1); in uplcom_attach() 447 USETW(req.wValue, 0); in uplcom_reset() 449 USETW(req.wLength, 0); in uplcom_reset() 475 USETW(req.wValue, ls); in uplcom_set_line_state() 477 USETW(req.wLength, 0); in uplcom_set_line_state() 541 USETW(req.wLength, 0); in uplcom_break() 561 USETW(req.wValue, 0); in uplcom_set_crtscts() 565 USETW(req.wLength, 0); in uplcom_set_crtscts() 595 USETW(req.wValue, 0); in uplcom_set_line_coding() 695 USETW(req.wValue, 2); in uplcom_open() [all …]
|
H A D | uberry.c | 136 req.bRequest = 0xa9; in uberry_pearlmode() 137 USETW(req.wValue, 1); in uberry_pearlmode() 138 USETW(req.wIndex, 1); in uberry_pearlmode() 139 USETW(req.wLength, 2); in uberry_pearlmode() 150 req.bRequest = 0xa5; in uberry_charge() 151 USETW(req.wValue, 0); in uberry_charge() 152 USETW(req.wIndex, 1); in uberry_charge() 153 USETW(req.wLength, 2); in uberry_charge() 157 req.bRequest = 0xa2; in uberry_charge() 158 USETW(req.wValue, 0); in uberry_charge() [all …]
|
H A D | uslcom.c | 356 usb_device_request_t req; in uslcom_open() local 366 USETW(req.wLength, 0); in uslcom_open() 387 USETW(req.wLength, 0); in uslcom_close() 415 USETW(req.wValue, ctl); in uslcom_set() 417 USETW(req.wLength, 0); in uslcom_set() 436 USETW(req.wValue, 0); in uslcom_param() 471 USETW(req.wValue, data); in uslcom_param() 473 USETW(req.wLength, 0); in uslcom_param() 492 USETW(req.wValue, 0); in uslcom_param() 522 USETW(req.wValue, brk); in uslcom_break() [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/CPAN-Meta-Requirements/t/ |
H A D | basic.t | 34 $req->as_string_hash, 70 $req->as_string_hash, 80 $req->as_string_hash, 90 $req->as_string_hash, 100 $req->as_string_hash, 210 return $req; 214 my $req = foo_1; 224 $req = foo_1; 230 $req = foo_1; 233 $req = foo_1; [all …]
|
H A D | strings.t | 21 my $req = CPAN::Meta::Requirements->new; 24 $req->add_string_requirement('Foo::Bar', '== 1.3'); 25 ok($req->accepts_module('Foo::Bar' => '1.3'), 'exact version (==)'); 26 ok(!$req->accepts_module('Foo::Bar' => '1.2'), 'lower version (==)'); 30 $req->add_string_requirement('Foo::Baz', '!= 1.3'); 36 $req->add_string_requirement('Foo::Gorch', '>= 1.3'); 42 $req->add_string_requirement('Foo::Graz', '<= 1.3'); 48 $req->add_string_requirement('Foo::Blurb', '>= 1.3'); 62 my $req = CPAN::Meta::Requirements->new; 64 $req->add_string_requirement(Foo => "0.00"); [all …]
|
H A D | accepts.t | 9 my $req = CPAN::Meta::Requirements->new->add_minimum(Foo => 1); 11 ok( $req->accepts_module(Foo => 1), "need 1, got 1"); 12 ok(! $req->accepts_module(Foo => 0), "need 0, got 1"); 16 my $req = CPAN::Meta::Requirements->new->add_minimum(Foo => 0); 18 ok( $req->accepts_module(Foo => 1), "need 0, got 1"); 19 ok( $req->accepts_module(Foo => undef), "need 0, got undef"); 20 ok( $req->accepts_module(Foo => "v0"), "need 0, got 'v0'"); 28 ok( $req->accepts_module(Foo => 1), "need <=1, got 1"); 29 ok(! $req->accepts_module(Foo => 2), "need <=1, got 2"); 35 ok( $req->accepts_module(Foo => 0), "need !1, got 0"); [all …]
|
H A D | finalize.t | 26 $req->add_minimum('Foo::Bar' => 0); 27 $req->add_minimum('Foo::Bar' => 2); 40 $req->as_string_hash, 45 $req->finalize; 47 $req->add_minimum('Foo::Bar', 2); 52 qr{finalized req}, 56 qr{finalized req}, 60 qr{finalized req}, 68 $req->as_string_hash, 73 my $cloned = $req->clone; [all …]
|
/openbsd/usr.bin/mandoc/ |
H A D | cgi.c | 558 pg_index(const struct req *req) in pg_index() argument 628 if (strcmp(req->q.manpath, req->p[0])) in pg_redirect() 668 if (strcmp(req->q.manpath, req->p[0])) in pg_searchres() 734 if (strcmp(req->q.manpath, req->p[0])) in pg_searchres() 1003 pg_search(const struct req *req) in pg_search() argument 1087 struct req req; in main() local 1131 memset(&req, 0, sizeof(struct req)); in main() 1153 req.q.manpath = mandoc_strdup(req.p[0]); in main() 1260 parse_manpath_conf(struct req *req) in parse_manpath_conf() argument 1279 req->p = mandoc_realloc(req->p, in parse_manpath_conf() [all …]
|
/openbsd/sbin/atactl/ |
H A D | atactl.c | 789 memset(&req, 0, sizeof(req)); in device_identify() 912 memset(&req, 0, sizeof(req)); in device_idle() 971 memset(&req, 0, sizeof(req)); in device_sec_setpass() 988 memset(&req, 0, sizeof(req)); in device_sec_setpass() 1031 memset(&req, 0, sizeof(req)); in device_sec_unlock() 1080 memset(&req, 0, sizeof(req)); in device_sec_erase() 1087 memset(&req, 0, sizeof(req)); in device_sec_erase() 1115 memset(&req, 0, sizeof(req)); in device_sec_freeze() 1153 memset(&req, 0, sizeof(req)); in device_sec_disablepass() 1203 memset(&req, 0, sizeof(req)); in device_smart_enable() [all …]
|
/openbsd/lib/libcrypto/x509/ |
H A D | x509_req.c | 80 X509_REQ *req; in X509_to_X509_REQ() local 84 if ((req = X509_REQ_new()) == NULL) { in X509_to_X509_REQ() 104 return req; in X509_to_X509_REQ() 107 X509_REQ_free(req); in X509_to_X509_REQ() 114 X509_REQ_get_pubkey(X509_REQ *req) in X509_REQ_get_pubkey() argument 116 if (req == NULL || req->req_info == NULL) in X509_REQ_get_pubkey() 123 X509_REQ_get0_pubkey(X509_REQ *req) in X509_REQ_get0_pubkey() argument 125 if (req == NULL || req->req_info == NULL) in X509_REQ_get0_pubkey() 180 X509_REQ_get_extensions(X509_REQ *req) in STACK_OF() 186 if (req == NULL || req->req_info == NULL) in STACK_OF() [all …]
|
/openbsd/usr.sbin/radiusd/ |
H A D | radiusd_radius.c | 276 TAILQ_FOREACH_SAFE(req, &module->req, next, treq) in module_radius_stop() 308 TAILQ_INSERT_TAIL(&req->module->req, req, next); in module_radius_access_request() 331 free(req); in module_radius_access_request() 426 TAILQ_FOREACH(req, &server->module->req, next) { in radius_server_on_event() 518 req->q_id, req->req_id, in module_radius_req_send() 556 if (req->module->max_tries <= req->ntry) { in module_radius_req_on_timeout() 558 "%d time%s", req->q_id, req->ntry, in module_radius_req_on_timeout() 594 TAILQ_REMOVE(&req->module->req, req, next); in module_radius_req_free() 603 req->server = &req->module->server[req->module->curr_server]; in module_radius_req_select_server() 605 req->req_id = req->server->req_id_seq++; in module_radius_req_select_server() [all …]
|
/openbsd/gnu/usr.bin/perl/ext/Amiga-Exec/ |
H A D | Exec.xs | 29 if (req == NULL) in OpenTimer() 36 &req->Request, 0); in OpenTimer() 45 return req; in OpenTimer() 52 if (req != NULL) in CloseTimer() 67 struct TimeRequest *req = NULL; in WaitTimeout() local 72 req = OpenTimer(); in WaitTimeout() 74 if (req != NULL) in WaitTimeout() 79 req->Time.Seconds = 0; in WaitTimeout() 90 if (req != NULL) in WaitTimeout() 93 IExec->WaitIO(&req->Request); in WaitTimeout() [all …]
|
/openbsd/usr.sbin/ldapd/ |
H A D | modify.c | 32 ldap_delete(struct request *req) in ldap_delete() argument 67 return ldap_respond(req, LDAP_OTHER); in ldap_delete() 120 return ldap_respond(req, rc); in ldap_delete() 124 ldap_add(struct request *req) in ldap_add() argument 170 return ldap_respond(req, in ldap_add() 176 return ldap_respond(req, in ldap_add() 195 if (ober_add_string(set, req->conn->binddn ? req->conn->binddn : "") == NULL) in ldap_add() 226 return ldap_respond(req, rc); in ldap_add() 236 ldap_modify(struct request *req) in ldap_modify() argument 368 ober_add_string(set, req->conn->binddn ? req->conn->binddn : ""); in ldap_modify() [all …]
|
H A D | ldape.c | 179 request_free(req); in ldap_refer() 187 request_free(req); in ldap_refer() 202 send_ldap_result(req->conn, req->msgid, req->type + 1, code); in ldap_respond() 203 request_free(req); in ldap_respond() 214 request_free(req); in ldap_abandon() 225 request_free(req); in ldap_abandon() 233 req->conn->binddn == NULL ? "" : req->conn->binddn); in ldap_unbind() 235 request_free(req); in ldap_unbind() 250 request_free(req); in ldap_compare() 313 req->op = req->op->be_sub->be_next; in ldap_extended() [all …]
|
H A D | auth.c | 190 auth_req.fd = req->conn->fd; in send_auth_request() 191 auth_req.msgid = req->msgid; in send_auth_request() 197 req->conn->bind_req = req; in send_auth_request() 289 free(req->conn->binddn); in ldap_auth_sasl() 290 req->conn->binddn = NULL; in ldap_auth_sasl() 308 req->conn->binddn = NULL; in ldap_auth_simple() 361 free(req->conn->binddn); in ldap_auth_simple() 362 req->conn->binddn = NULL; in ldap_auth_simple() 368 req->conn->binddn); in ldap_auth_simple() 414 if (req->conn->bind_req) { in ldap_bind() [all …]
|
H A D | conn.c | 44 if (req->root != NULL) in request_free() 46 free(req); in request_free() 121 if (req->conn->bind_req != NULL && req->type != LDAP_REQ_BIND) { in request_dispatch() 144 struct request *req; in conn_dispatch() local 149 if ((req = calloc(1, sizeof(*req))) == NULL) { in conn_dispatch() 155 req->conn = conn; in conn_dispatch() 166 request_free(req); in conn_dispatch() 174 &req->msgid, &class, &req->type, &req->op) != 0) { in conn_dispatch() 179 request_free(req); in conn_dispatch() 183 ldap_debug_elements(req->root, req->type, in conn_dispatch() [all …]
|
/openbsd/usr.sbin/smtpd/ |
H A D | resolver.c | 71 req = calloc(1, sizeof(*req)); in resolver_getaddrinfo() 77 while (req->id == 0 || SPLAY_FIND(reqtree, &reqs, req)) in resolver_getaddrinfo() 102 req = calloc(1, sizeof(*req)); in resolver_getnameinfo() 108 while (req->id == 0 || SPLAY_FIND(reqtree, &reqs, req)) in resolver_getnameinfo() 129 req = calloc(1, sizeof(*req)); in resolver_res_query() 135 while (req->id == 0 || SPLAY_FIND(reqtree, &reqs, req)) in resolver_res_query() 343 req->cb_ai(req->arg, gai_errno, req->ai); in resolver_dispatch_result() 344 free(req); in resolver_dispatch_result() 355 req->cb_ni(req->arg, gai_errno, host, serv); in resolver_dispatch_result() 356 free(req); in resolver_dispatch_result() [all …]
|
/openbsd/sys/dev/pci/ |
H A D | if_bnxt.c | 1887 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_hwrm_port_phy_qcfg() 2079 return hwrm_send_message(sc, &req, sizeof(req)); in bnxt_media_change() 2098 return hwrm_send_message(sc, &req, sizeof(req)); in bnxt_media_autonegotiate() 2546 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_hwrm_queue_qportcfg() 2584 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_hwrm_ver_get() 2714 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_hwrm_func_qcaps() 2773 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_hwrm_func_qcfg() 2864 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_hwrm_vnic_alloc() 2891 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_hwrm_vnic_free() 2916 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_hwrm_vnic_ctx_alloc() [all …]
|
/openbsd/usr.bin/ssh/ |
H A D | ssh-sk-helper.c | 88 process_sign(struct sshbuf *req) in process_sign() argument 106 if (sshbuf_len(req) != 0) in process_sign() 146 process_enroll(struct sshbuf *req) in process_enroll() argument 168 if (sshbuf_len(req) != 0) in process_enroll() 227 if (sshbuf_len(req) != 0) in process_load_resident() 275 struct sshbuf *req, *resp; in main() local 310 if ((req = sshbuf_new()) == NULL) in main() 312 if (ssh_msg_recv(in, req) < 0) in main() 334 resp = process_sign(req); in main() 337 resp = process_enroll(req); in main() [all …]
|
H A D | ssh-sk-client.c | 145 struct sshbuf *req = NULL, *resp = NULL; in client_converse() local 157 if ((r = sshbuf_put_u32(req, type)) != 0 || in client_converse() 160 (r = sshbuf_putb(req, msg)) != 0) { in client_converse() 219 sshbuf_free(req); in client_converse() 239 (req = sshbuf_new()) == NULL) { in sshsk_sign() 281 sshbuf_free(req); in sshsk_sign() 306 (req = sshbuf_new()) == NULL) { in sshsk_enroll() 316 (r = sshbuf_put_u8(req, flags)) != 0 || in sshsk_enroll() 355 sshbuf_free(req); in sshsk_enroll() 401 (req = sshbuf_new()) == NULL) { in sshsk_load_resident() [all …]
|
/openbsd/sys/dev/fdt/ |
H A D | bcm2835_clock.c | 131 struct request req = { in bcmclock_get_frequency() local 133 .vpb_len = sizeof(req), in bcmclock_get_frequency() 152 req.vbt_clkrate.id = VCPROP_CLK_UART; in bcmclock_get_frequency() 155 req.vbt_clkrate.id = VCPROP_CLK_CORE; in bcmclock_get_frequency() 158 req.vbt_clkrate.id = VCPROP_CLK_V3D; in bcmclock_get_frequency() 161 req.vbt_clkrate.id = VCPROP_CLK_ISP; in bcmclock_get_frequency() 164 req.vbt_clkrate.id = VCPROP_CLK_H264; in bcmclock_get_frequency() 181 req.vbt_clkrate.id = VCPROP_CLK_PWM; in bcmclock_get_frequency() 187 if (req.vbt_clkrate.id == 0) { in bcmclock_get_frequency() 193 bcmmbox_post(BCMMBOX_CHANARM2VC, &req, sizeof(req), &result); in bcmclock_get_frequency() [all …]
|
H A D | qcscm.c | 391 req->name_offset = ALIGN(sizeof(*req)); in qcscm_uefi_get_variable() 393 req->guid_offset = ALIGN(req->name_offset + req->name_size); in qcscm_uefi_get_variable() 395 req->length = req->guid_offset + req->guid_size; in qcscm_uefi_get_variable() 398 memcpy((char *)req + req->name_offset, name, name_size); in qcscm_uefi_get_variable() 497 req->name_offset = ALIGN(sizeof(*req)); in qcscm_uefi_set_variable() 499 req->guid_offset = ALIGN(req->name_offset + req->name_size); in qcscm_uefi_set_variable() 501 req->data_offset = ALIGN(req->guid_offset + req->guid_size); in qcscm_uefi_set_variable() 503 req->length = req->data_offset + req->data_size; in qcscm_uefi_set_variable() 576 req->guid_offset = ALIGN(sizeof(*req)); in qcscm_uefi_get_next_variable() 578 req->name_offset = ALIGN(req->guid_offset + req->guid_size); in qcscm_uefi_get_next_variable() [all …]
|
/openbsd/regress/lib/libcrypto/x509/ |
H A D | x509req_ext.c | 81 X509_REQ *req; in main() local 88 if ((req = X509_REQ_new()) == NULL) { in main() 94 if ((irc = X509_REQ_get_attr_count(req)) != 0) in main() 96 if ((attr = X509_REQ_get_attr(req, 0)) != NULL) in main() 98 X509_REQ_free(req); in main() 101 if ((req = X509_REQ_new()) == NULL) { in main() 111 if ((irc = X509_REQ_get_attr_count(req)) != 0) in main() 115 X509_REQ_free(req); in main() 118 if ((req = X509_REQ_new()) == NULL) { in main() 125 if ((irc = X509_REQ_get_attr_count(req)) != 1) in main() [all …]
|
/openbsd/usr.sbin/lpd/ |
H A D | resolver.c | 79 req = calloc(1, sizeof(*req)); in resolver_getaddrinfo() 85 while (req->id == 0 || SPLAY_FIND(reqtree, &reqs, req)) in resolver_getaddrinfo() 88 req->arg = arg; in resolver_getaddrinfo() 110 req = calloc(1, sizeof(*req)); in resolver_getnameinfo() 116 while (req->id == 0 || SPLAY_FIND(reqtree, &reqs, req)) in resolver_getnameinfo() 119 req->arg = arg; in resolver_getnameinfo() 269 req->ai = ai; in resolver_dispatch_result() 278 req->cb_ai(req->arg, gai_errno, req->ai); in resolver_dispatch_result() 279 free(req); in resolver_dispatch_result() 290 req->cb_ni(req->arg, gai_errno, host, serv); in resolver_dispatch_result() [all …]
|