Searched refs:req (Results 1 - 25 of 1064) sorted by relevance

1234567891011>>

/freebsd-10-stable/lib/libefi/
H A Defi_nextvarname.c47 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 Defi_setvar.c50 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 Defi_getvar.c50 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-stable/contrib/wpa/src/wps/
H A Dhttp_server.h15 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 Dhttp_server.c30 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-stable/sys/dev/io/
H A Diodev.c51 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-stable/lib/libdevctl/
H A Ddevctl.c38 devctl_request(u_long cmd, struct devreq *req) argument
47 return (ioctl(devctl2_fd, cmd, req));
53 struct devreq req; local
55 memset(&req, 0, sizeof(req));
56 if (strlcpy(req.dr_name, name, sizeof(req.dr_name)) >=
57 sizeof(req.dr_name)) {
61 req.dr_flags = flags;
62 return (devctl_request(cmd, &req));
98 struct devreq req; local
[all...]
/freebsd-10-stable/sys/ia64/ia64/
H A Diodev_machdep.c43 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-stable/sys/geom/
H A Dgeom_ctl.c91 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;
102 return (req->nerror);
104 if (!req->nerror)
105 req->nerror = EINVAL;
108 sbuf_vprintf(req->serror, fmt, ap);
110 sbuf_finish(req
121 geom_alloc_copyin(struct gctl_req *req, void *uaddr, size_t len) argument
134 gctl_copyin(struct gctl_req *req) argument
191 gctl_copyout(struct gctl_req *req) argument
213 gctl_free(struct gctl_req *req) argument
231 gctl_dump(struct gctl_req *req) argument
270 gctl_set_param(struct gctl_req *req, const char *param, void const *ptr, int len) argument
294 gctl_set_param_err(struct gctl_req *req, const char *param, void const *ptr, int len) argument
312 gctl_get_param(struct gctl_req *req, const char *param, int *len) argument
333 gctl_get_asciiparam(struct gctl_req *req, const char *param) argument
360 gctl_get_paraml(struct gctl_req *req, const char *param, int len) argument
376 gctl_get_class(struct gctl_req *req, char const *arg) argument
392 gctl_get_geom(struct gctl_req *req, struct g_class *mpr, char const *arg) argument
414 gctl_get_provider(struct gctl_req *req, char const *arg) argument
433 struct gctl_req *req; local
460 struct gctl_req *req; local
[all...]
/freebsd-10-stable/usr.sbin/ctld/
H A Disns.c50 struct isns_req *req; local
52 req = calloc(sizeof(struct isns_req), 1);
53 if (req == NULL) {
57 req->ir_buflen = sizeof(struct isns_hdr);
58 req->ir_usedlen = 0;
59 req->ir_buf = calloc(req->ir_buflen, 1);
60 if (req->ir_buf == NULL) {
61 free(req);
65 return (req);
71 struct isns_req *req; local
84 isns_req_free(struct isns_req *req) argument
92 isns_req_getspace(struct isns_req *req, uint32_t len) argument
111 isns_req_add(struct isns_req *req, uint32_t tag, uint32_t len, const void *value) argument
129 isns_req_add_delim(struct isns_req *req) argument
136 isns_req_add_str(struct isns_req *req, uint32_t tag, const char *value) argument
143 isns_req_add_32(struct isns_req *req, uint32_t tag, uint32_t value) argument
152 isns_req_add_addr(struct isns_req *req, uint32_t tag, struct addrinfo *ai) argument
178 isns_req_add_port(struct isns_req *req, uint32_t tag, struct addrinfo *ai) argument
202 isns_req_send(int s, struct isns_req *req) argument
219 isns_req_receive(int s, struct isns_req *req) argument
246 isns_req_get_status(struct isns_req *req) argument
[all...]
/freebsd-10-stable/lib/libgeom/
H A Dgeom_ctl.c54 gctl_dump(struct gctl_req *req, FILE *f) argument
60 if (req == NULL) {
64 fprintf(f, "Dump of gctl request at %p:\n", req);
65 if (req->error != NULL)
66 fprintf(f, " error:\t\"%s\"\n", req->error);
69 for (i = 0; i < req->narg; i++) {
70 ap = &req->arg[i];
95 gctl_set_error(struct gctl_req *req, const char *error, ...) argument
99 if (req->error != NULL)
102 vasprintf(&req
111 gctl_check_alloc(struct gctl_req *req, void *ptr) argument
136 gctl_new_arg(struct gctl_req *req) argument
153 gctl_param_add(struct gctl_req *req, const char *name, int len, void *value, int flag) argument
179 gctl_ro_param(struct gctl_req *req, const char *name, int len, const void* value) argument
186 gctl_rw_param(struct gctl_req *req, const char *name, int len, void *value) argument
193 gctl_issue(struct gctl_req *req) argument
223 gctl_free(struct gctl_req *req) argument
[all...]
/freebsd-10-stable/cddl/contrib/dtracetoolkit/Apps/
H A Dweblatency.d108 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-stable/cddl/contrib/dtracetoolkit/Bin/
H A Dweblatency.d108 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-stable/crypto/heimdal/lib/hx509/
H A Dreq.c49 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-stable/sys/fs/nfsserver/
H A Dnfs_fha_new.h36 SVCTHREAD *fhanew_assign(SVCTHREAD *this_thread, struct svc_req *req);
/freebsd-10-stable/sys/nfsserver/
H A Dnfs_fha_old.h35 SVCTHREAD *fhaold_assign(SVCTHREAD *this_thread, struct svc_req *req);
/freebsd-10-stable/sys/dev/nvme/
H A Dnvme_ns_cmd.c36 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-stable/sbin/geom/class/cache/
H A Dgeom_cache.c48 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
175 cache_clear(struct gctl_req *req) argument
213 cache_dump(struct gctl_req *req) argument
[all...]
/freebsd-10-stable/sbin/geom/class/eli/
H A Dgeom_eli.c64 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-stable/usr.sbin/mpsutil/
H A Dmps_cmd.c290 MPI2_CONFIG_REQUEST req; local
293 bzero(&req, sizeof(req));
294 req.Function = MPI2_FUNCTION_CONFIG;
295 req.Action = MPI2_CONFIG_ACTION_PAGE_HEADER;
296 req.Header.PageType = PageType;
297 req.Header.PageNumber = PageNumber;
298 req.PageAddress = PageAddress;
300 if (mps_pass_command(fd, &req, sizeof(req),
318 MPI2_CONFIG_REQUEST req; local
349 MPI2_CONFIG_REQUEST req; local
398 MPI2_CONFIG_REQUEST req; local
450 MPI2_FW_DOWNLOAD_REQUEST req; local
470 MPI2_FW_UPLOAD_REQUEST req; local
509 struct mps_cfg_page_req req; local
534 struct mps_cfg_page_req req; local
574 struct mps_ext_cfg_page_req req; local
630 mps_user_command(int fd, void *req, uint32_t req_len, void *reply, uint32_t reply_len, void *buffer, int len, uint32_t flags) argument
650 mps_pass_command(int fd, void *req, uint32_t req_len, void *reply, uint32_t reply_len, void *data_in, uint32_t datain_len, void *data_out, uint32_t dataout_len, uint32_t timeout) argument
700 MPI2_IOC_FACTS_REQUEST req; local
[all...]
/freebsd-10-stable/sbin/geom/class/label/
H A Dgeom_label.c52 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
165 label_clear(struct gctl_req *req) argument
200 label_dump(struct gctl_req *req) argument
[all...]
/freebsd-10-stable/usr.sbin/bluetooth/sdpd/
H A Dscr.c48 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...]
/freebsd-10-stable/sbin/geom/misc/
H A Dsubr.h45 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-stable/sbin/ifconfig/
H A Difbridge.c128 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-stable/sbin/geom/class/journal/
H A Dgeom_journal.c50 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
291 journal_clear(struct gctl_req *req) argument
317 journal_dump(struct gctl_req *req) argument
[all...]

Completed in 224 milliseconds

1234567891011>>