/freebsd-10.0-release/lib/libefi/ |
H A D | efi_nextvarname.c | 47 struct iodev_efivar_req req; local 50 req.namesize = *namesize; 51 error = libefi_utf8_to_ucs2(name, &req.namesize, &req.name); 55 req.vendor = *vendor; 56 req.access = IODEV_EFIVAR_NEXTNAME; 57 error = libefi_efivar(&req); 58 *namesize = req.namesize; 60 error = libefi_ucs2_to_utf8(req.name, namesize, name); 62 *vendor = req [all...] |
H A D | efi_setvar.c | 50 struct iodev_efivar_req req; local 53 req.namesize = 0; 54 error = libefi_utf8_to_ucs2(name, &req.namesize, &req.name); 58 req.vendor = *vendor; 59 req.attrib = attrib; 60 req.datasize = datasize; 61 req.data = data; 62 req.access = IODEV_EFIVAR_SETVAR; 63 error = libefi_efivar(&req); [all...] |
H A D | efi_getvar.c | 50 struct iodev_efivar_req req; local 53 req.namesize = 0; 54 error = libefi_utf8_to_ucs2(name, &req.namesize, &req.name); 58 req.vendor = *vendor; 59 req.datasize = *datasize; 60 req.data = data; 61 req.access = IODEV_EFIVAR_GETVAR; 62 error = libefi_efivar(&req); 63 *datasize = req [all...] |
/freebsd-10.0-release/contrib/wpa/src/wps/ |
H A D | http_server.h | 15 void http_request_deinit(struct http_request *req); 16 void http_request_send(struct http_request *req, struct wpabuf *resp); 17 void http_request_send_and_deinit(struct http_request *req, 19 enum httpread_hdr_type http_request_get_type(struct http_request *req); 20 char * http_request_get_uri(struct http_request *req); 21 char * http_request_get_hdr(struct http_request *req); 22 char * http_request_get_data(struct http_request *req); 23 char * http_request_get_hdr_line(struct http_request *req, const char *tag); 24 struct sockaddr_in * http_request_get_cli_addr(struct http_request *req); 28 struct http_request *req), [all...] |
H A D | http_server.c | 30 void (*cb)(void *ctx, struct http_request *req); 44 struct http_request *req = cookie; local 45 struct http_server *srv = req->srv; 49 inet_ntoa(req->cli.sin_addr), 50 ntohs(req->cli.sin_port)); 51 srv->cb(srv->cb_ctx, req); 55 "completely", inet_ntoa(req->cli.sin_addr), 56 ntohs(req->cli.sin_port)); 57 http_request_deinit(req); 64 struct http_request *req; local 91 http_request_deinit(struct http_request *req) argument 121 http_request_free_all(struct http_request *req) argument 132 http_request_send(struct http_request *req, struct wpabuf *resp) argument 155 http_request_send_and_deinit(struct http_request *req, struct wpabuf *resp) argument 163 http_request_get_type(struct http_request *req) argument 169 http_request_get_uri(struct http_request *req) argument 175 http_request_get_hdr(struct http_request *req) argument 181 http_request_get_data(struct http_request *req) argument 187 http_request_get_hdr_line(struct http_request *req, const char *tag) argument 193 http_request_get_cli_addr(struct http_request *req) argument 205 struct http_request *req; local 228 http_server_init(struct in_addr *addr, int port, void (*cb)(void *ctx, struct http_request *req), void *cb_ctx) argument [all...] |
/freebsd-10.0-release/sys/dev/io/ |
H A D | iodev.c | 51 static int iopio_read(struct iodev_pio_req *req); 52 static int iopio_write(struct iodev_pio_req *req); 122 iopio_read(struct iodev_pio_req *req) argument 125 switch (req->width) { 127 req->val = iodev_read_1(req->port); 130 if (req->port & 1) { 131 req->val = iodev_read_1(req->port); 132 req 155 iopio_write(struct iodev_pio_req *req) argument [all...] |
/freebsd-10.0-release/sys/ia64/ia64/ |
H A D | iodev_machdep.c | 43 static int iodev_efivar_getvar(struct iodev_efivar_req *req); 44 static int iodev_efivar_nextname(struct iodev_efivar_req *req); 45 static int iodev_efivar_setvar(struct iodev_efivar_req *req); 96 iodev_efivar_getvar(struct iodev_efivar_req *req) argument 102 if ((req->namesize & 1) != 0 || req->namesize < 4) 104 if (req->datasize == 0) 113 name = malloc(req->namesize, M_TEMP, M_WAITOK | M_ZERO); 114 error = copyin(req->name, name, req 136 iodev_efivar_nextname(struct iodev_efivar_req *req) argument 165 iodev_efivar_setvar(struct iodev_efivar_req *req) argument [all...] |
/freebsd-10.0-release/sys/geom/ |
H A D | geom_ctl.c | 91 gctl_error(struct gctl_req *req, const char *fmt, ...) argument 95 if (req == NULL) 99 if (sbuf_done(req->serror)) { 100 if (!req->nerror) 101 req->nerror = EEXIST; 103 if (req->nerror) 104 return (req->nerror); 107 sbuf_vprintf(req->serror, fmt, ap); 109 sbuf_finish(req->serror); 111 printf("gctl %p error \"%s\"\n", req, sbuf_dat 120 geom_alloc_copyin(struct gctl_req *req, void *uaddr, size_t len) argument 137 gctl_copyin(struct gctl_req *req) argument 195 gctl_copyout(struct gctl_req *req) argument 217 gctl_free(struct gctl_req *req) argument 235 gctl_dump(struct gctl_req *req) argument 272 gctl_set_param(struct gctl_req *req, const char *param, void const *ptr, int len) argument 296 gctl_set_param_err(struct gctl_req *req, const char *param, void const *ptr, int len) argument 314 gctl_get_param(struct gctl_req *req, const char *param, int *len) argument 335 gctl_get_asciiparam(struct gctl_req *req, const char *param) argument 362 gctl_get_paraml(struct gctl_req *req, const char *param, int len) argument 378 gctl_get_class(struct gctl_req *req, char const *arg) argument 394 gctl_get_geom(struct gctl_req *req, struct g_class *mpr, char const *arg) argument 416 gctl_get_provider(struct gctl_req *req, char const *arg) argument 435 struct gctl_req *req; local 462 struct gctl_req *req; local [all...] |
/freebsd-10.0-release/lib/libgeom/ |
H A D | geom_ctl.c | 55 gctl_dump(struct gctl_req *req, FILE *f) argument 61 if (req == NULL) { 65 fprintf(f, "Dump of gctl request at %p:\n", req); 66 if (req->error != NULL) 67 fprintf(f, " error:\t\"%s\"\n", req->error); 70 for (i = 0; i < req->narg; i++) { 71 ap = &req->arg[i]; 96 gctl_set_error(struct gctl_req *req, const char *error, ...) argument 100 if (req->error != NULL) 103 vasprintf(&req 112 gctl_check_alloc(struct gctl_req *req, void *ptr) argument 137 gctl_new_arg(struct gctl_req *req) argument 154 gctl_param_add(struct gctl_req *req, const char *name, int len, void *value, int flag) argument 180 gctl_ro_param(struct gctl_req *req, const char *name, int len, const void* value) argument 187 gctl_rw_param(struct gctl_req *req, const char *name, int len, void *value) argument 194 gctl_issue(struct gctl_req *req) argument 224 gctl_free(struct gctl_req *req) argument [all...] |
/freebsd-10.0-release/sys/dev/sfxge/common/ |
H A D | efx_wol.c | 69 efx_mcdi_req_t req; local 76 req.emr_cmd = MC_CMD_WOL_FILTER_RESET; 77 req.emr_in_buf = payload; 78 req.emr_in_length = MC_CMD_WOL_FILTER_RESET_IN_LEN; 79 req.emr_out_buf = NULL; 80 req.emr_out_length = 0; 82 MCDI_IN_SET_DWORD(req, WOL_FILTER_RESET_IN_MASK, 86 efx_mcdi_execute(enp, &req); 88 if (req.emr_rc != 0) { 89 rc = req 108 efx_mcdi_req_t req; local 228 efx_mcdi_req_t req; local 267 efx_mcdi_req_t req; local 342 efx_mcdi_req_t req; local [all...] |
/freebsd-10.0-release/cddl/contrib/dtracetoolkit/Apps/ |
H A D | weblatency.d | 108 self->req = stringof(this->str); 109 self->nam = strlen(self->req) > 15 ? self->req : self->nam; 110 self->req = dirname(self->req); 111 self->nam = strlen(self->req) > 15 ? self->req : self->nam; 112 self->req = dirname(self->req); 113 self->nam = strlen(self->req) > 1 [all...] |
/freebsd-10.0-release/cddl/contrib/dtracetoolkit/Bin/ |
H A D | weblatency.d | 108 self->req = stringof(this->str); 109 self->nam = strlen(self->req) > 15 ? self->req : self->nam; 110 self->req = dirname(self->req); 111 self->nam = strlen(self->req) > 15 ? self->req : self->nam; 112 self->req = dirname(self->req); 113 self->nam = strlen(self->req) > 1 [all...] |
/freebsd-10.0-release/crypto/heimdal/lib/hx509/ |
H A D | req.c | 49 hx509_request_init(hx509_context context, hx509_request *req) argument 51 *req = calloc(1, sizeof(**req)); 52 if (*req == NULL) 59 hx509_request_free(hx509_request *req) argument 61 if ((*req)->name) 62 hx509_name_free(&(*req)->name); 63 free_SubjectPublicKeyInfo(&(*req)->key); 64 free_ExtKeyUsage(&(*req)->eku); 65 free_GeneralNames(&(*req) 72 hx509_request_set_name(hx509_context context, hx509_request req, hx509_name name) argument 87 hx509_request_get_name(hx509_context context, hx509_request req, hx509_name *name) argument 99 hx509_request_set_SubjectPublicKeyInfo(hx509_context context, hx509_request req, const SubjectPublicKeyInfo *key) argument 108 hx509_request_get_SubjectPublicKeyInfo(hx509_context context, hx509_request req, SubjectPublicKeyInfo *key) argument 116 _hx509_request_add_eku(hx509_context context, hx509_request req, const heim_oid *oid) argument 138 _hx509_request_add_dns_name(hx509_context context, hx509_request req, const char *hostname) argument 153 _hx509_request_add_email(hx509_context context, hx509_request req, const char *email) argument 170 _hx509_request_to_pkcs10(hx509_context context, const hx509_request req, const hx509_private_key signer, heim_octet_string *request) argument 241 _hx509_request_parse(hx509_context context, const char *path, hx509_request *req) argument 309 _hx509_request_print(hx509_context context, hx509_request req, FILE *f) argument [all...] |
/freebsd-10.0-release/sys/fs/nfsserver/ |
H A D | nfs_fha_new.h | 36 SVCTHREAD *fhanew_assign(SVCTHREAD *this_thread, struct svc_req *req);
|
/freebsd-10.0-release/sys/nfsserver/ |
H A D | nfs_fha_old.h | 35 SVCTHREAD *fhaold_assign(SVCTHREAD *this_thread, struct svc_req *req);
|
/freebsd-10.0-release/sys/geom/mirror/ |
H A D | g_mirror_ctl.c | 92 g_mirror_ctl_configure(struct gctl_req *req, struct g_class *mp) argument 103 nargs = gctl_get_paraml(req, "nargs", sizeof(*nargs)); 105 gctl_error(req, "No '%s' argument.", "nargs"); 109 gctl_error(req, "Invalid number of arguments."); 112 name = gctl_get_asciiparam(req, "arg0"); 114 gctl_error(req, "No 'arg%u' argument.", 0); 117 balancep = gctl_get_asciiparam(req, "balance"); 119 gctl_error(req, "No '%s' argument.", "balance"); 122 autosync = gctl_get_paraml(req, "autosync", sizeof(*autosync)); 124 gctl_error(req, "N 302 g_mirror_ctl_rebuild(struct gctl_req *req, struct g_class *mp) argument 385 g_mirror_ctl_insert(struct gctl_req *req, struct g_class *mp) argument 556 g_mirror_ctl_remove(struct gctl_req *req, struct g_class *mp) argument 620 g_mirror_ctl_deactivate(struct gctl_req *req, struct g_class *mp) argument 671 g_mirror_ctl_forget(struct gctl_req *req, struct g_class *mp) argument 718 g_mirror_ctl_stop(struct gctl_req *req, struct g_class *mp) argument 771 g_mirror_config(struct gctl_req *req, struct g_class *mp, const char *verb) argument [all...] |
/freebsd-10.0-release/sbin/geom/class/cache/ |
H A D | geom_cache.c | 48 static void cache_main(struct gctl_req *req, unsigned flags); 49 static void cache_clear(struct gctl_req *req); 50 static void cache_dump(struct gctl_req *req); 51 static void cache_label(struct gctl_req *req); 107 cache_main(struct gctl_req *req, unsigned flags) argument 114 name = gctl_get_ascii(req, "verb"); 116 gctl_error(req, "No '%s' argument.", "verb"); 120 cache_label(req); 122 cache_clear(req); 124 cache_dump(req); 130 cache_label(struct gctl_req *req) argument 174 cache_clear(struct gctl_req *req) argument 212 cache_dump(struct gctl_req *req) argument [all...] |
/freebsd-10.0-release/sys/dev/nvme/ |
H A D | nvme_ns_cmd.c | 36 struct nvme_request *req; local 39 req = nvme_allocate_request_vaddr(payload, 42 if (req == NULL) 44 cmd = &req->cmd; 52 nvme_ctrlr_submit_io_request(ns->ctrlr, req); 61 struct nvme_request *req; local 66 req = nvme_allocate_request_bio(bp, cb_fn, cb_arg); 68 if (req == NULL) 70 cmd = &req->cmd; 81 nvme_ctrlr_submit_io_request(ns->ctrlr, req); 90 struct nvme_request *req; local 116 struct nvme_request *req; local 145 struct nvme_request *req; local 170 struct nvme_request *req; local [all...] |
/freebsd-10.0-release/sbin/geom/class/eli/ |
H A D | geom_eli.c | 64 static void eli_main(struct gctl_req *req, unsigned flags); 65 static void eli_init(struct gctl_req *req); 66 static void eli_attach(struct gctl_req *req); 67 static void eli_configure(struct gctl_req *req); 68 static void eli_setkey(struct gctl_req *req); 69 static void eli_delkey(struct gctl_req *req); 70 static void eli_resume(struct gctl_req *req); 71 static void eli_kill(struct gctl_req *req); 72 static void eli_backup(struct gctl_req *req); 73 static void eli_restore(struct gctl_req *req); 265 eli_protect(struct gctl_req *req) argument 286 eli_main(struct gctl_req *req, unsigned int flags) argument 346 eli_genkey_files(struct gctl_req *req, bool new, const char *type, struct hmac_ctx *ctxp, char *passbuf, size_t passbufsize) argument 419 eli_genkey_passphrase_prompt(struct gctl_req *req, bool new, char *passbuf, size_t passbufsize) argument 462 eli_genkey_passphrase(struct gctl_req *req, struct g_eli_metadata *md, bool new, struct hmac_ctx *ctxp) argument 532 eli_genkey(struct gctl_req *req, struct g_eli_metadata *md, unsigned char *key, bool new) argument 561 eli_metadata_read(struct gctl_req *req, const char *prov, struct g_eli_metadata *md) argument 617 eli_metadata_store(struct gctl_req *req, const char *prov, struct g_eli_metadata *md) argument 658 eli_init(struct gctl_req *req) argument 864 eli_attach(struct gctl_req *req) argument 902 eli_configure_detached(struct gctl_req *req, const char *prov, bool boot) argument 926 eli_configure(struct gctl_req *req) argument 961 eli_setkey_attached(struct gctl_req *req, struct g_eli_metadata *md) argument 995 eli_setkey_detached(struct gctl_req *req, const char *prov, struct g_eli_metadata *md) argument 1088 eli_setkey(struct gctl_req *req) argument 1117 eli_delkey_attached(struct gctl_req *req, const char *prov __unused) argument 1124 eli_delkey_detached(struct gctl_req *req, const char *prov) argument 1169 eli_delkey(struct gctl_req *req) argument 1188 eli_resume(struct gctl_req *req) argument 1226 eli_trash_metadata(struct gctl_req *req, const char *prov, int fd, off_t offset) argument 1270 eli_kill_detached(struct gctl_req *req, const char *prov) argument 1309 eli_kill(struct gctl_req *req) argument 1342 eli_backup_create(struct gctl_req *req, const char *prov, const char *file) argument 1399 eli_backup(struct gctl_req *req) argument 1416 eli_restore(struct gctl_req *req) argument 1456 eli_resize(struct gctl_req *req) argument 1562 eli_version(struct gctl_req *req) argument 1602 eli_clear(struct gctl_req *req) argument 1628 eli_dump(struct gctl_req *req) argument [all...] |
/freebsd-10.0-release/sbin/geom/class/label/ |
H A D | geom_label.c | 52 static void label_main(struct gctl_req *req, unsigned flags); 53 static void label_clear(struct gctl_req *req); 54 static void label_dump(struct gctl_req *req); 55 static void label_label(struct gctl_req *req); 90 label_main(struct gctl_req *req, unsigned flags) argument 97 name = gctl_get_ascii(req, "verb"); 99 gctl_error(req, "No '%s' argument.", "verb"); 103 label_label(req); 105 label_clear(req); 107 label_dump(req); 113 label_label(struct gctl_req *req) argument 163 label_clear(struct gctl_req *req) argument 198 label_dump(struct gctl_req *req) argument [all...] |
/freebsd-10.0-release/usr.sbin/bluetooth/sdpd/ |
H A D | scr.c | 48 uint8_t const *req = srv->req + sizeof(sdp_pdu_t); local 49 uint8_t const *req_end = req + ((sdp_pdu_p)(srv->req))->len; 62 !srv->fdidx[fd].priv || req_end - req < 4) 66 SDP_GET32(handle, req); 74 if (req_end - req < provider->profile->dsize || 76 (provider->profile->valid)(req, req_end - req) == 0) 80 if (provider_update(provider, req, req_en [all...] |
H A D | ssar.c | 43 uint8_t const *req, uint8_t const * const req_end, 53 uint8_t const *req = srv->req + sizeof(sdp_pdu_t); local 54 uint8_t const *req_end = req + ((sdp_pdu_p)(srv->req))->len; 76 if (req_end - req < 13) 81 SDP_GET8(type, req); 84 SDP_GET8(ssplen, req); 88 SDP_GET16(ssplen, req); 92 SDP_GET32(ssplen, req); [all...] |
/freebsd-10.0-release/sbin/geom/misc/ |
H A D | subr.h | 45 void gctl_error(struct gctl_req *req, const char *error, ...) __printflike(2, 3); 46 int gctl_get_int(struct gctl_req *req, const char *pfmt, ...) __printflike(2, 3); 47 intmax_t gctl_get_intmax(struct gctl_req *req, const char *pfmt, ...) __printflike(2, 3); 48 const char *gctl_get_ascii(struct gctl_req *req, const char *pfmt, ...) __printflike(2, 3); 49 int gctl_change_param(struct gctl_req *req, const char *name, int len, 51 int gctl_delete_param(struct gctl_req *req, const char *name); 52 int gctl_has_param(struct gctl_req *req, const char *name);
|
/freebsd-10.0-release/sbin/ifconfig/ |
H A D | ifbridge.c | 128 struct ifbreq req; local 130 strlcpy(req.ifbr_ifsname, ifs, sizeof(req.ifbr_ifsname)); 132 if (do_cmd(sock, BRDGGIFFLGS, &req, sizeof(req), 0) < 0) 136 req.ifbr_ifsflags |= flag; 138 req.ifbr_ifsflags &= ~flag; 140 if (do_cmd(sock, BRDGSIFFLGS, &req, sizeof(req), 1) < 0) 148 struct ifbreq *req; local 296 struct ifbreq req; local 307 struct ifbreq req; local 360 struct ifbreq req; local 371 struct ifbreq req; local 444 struct ifbreq req; local 455 struct ifbreq req; local 467 struct ifbareq req; local 488 struct ifbareq req; local 621 struct ifbreq req; local 640 struct ifbreq req; local 659 struct ifbreq req; local [all...] |
/freebsd-10.0-release/sbin/geom/class/journal/ |
H A D | geom_journal.c | 50 static void journal_main(struct gctl_req *req, unsigned flags); 51 static void journal_clear(struct gctl_req *req); 52 static void journal_dump(struct gctl_req *req); 53 static void journal_label(struct gctl_req *req); 88 journal_main(struct gctl_req *req, unsigned flags) argument 95 name = gctl_get_ascii(req, "verb"); 97 gctl_error(req, "No '%s' argument.", "verb"); 101 journal_label(req); 103 journal_clear(req); 105 journal_dump(req); 137 journal_label(struct gctl_req *req) argument 290 journal_clear(struct gctl_req *req) argument 316 journal_dump(struct gctl_req *req) argument [all...] |