Home
last modified time | relevance | path

Searched full:req (Results 1 – 25 of 2091) sorted by relevance

12345678910>>...84

/freebsd/sys/dev/firmware/arm/
H A Dscmi.c269 struct scmi_req *req; in scmi_reqs_pool_allocate() local
275 req = malloc(sizeof(*req) + max_payld_sz, in scmi_reqs_pool_allocate()
278 req->dev = dev; in scmi_reqs_pool_allocate()
279 req->tsk.ta_context = &req->tsk; in scmi_reqs_pool_allocate()
280 req->tsk.ta_func = scmi_req_async_waiter; in scmi_reqs_pool_allocate()
282 mtx_init(&req->mtx, "req", "SCMI", MTX_SPIN); in scmi_reqs_pool_allocate()
283 LIST_INSERT_HEAD(&rp->head, req, next); in scmi_reqs_pool_allocate()
294 struct scmi_req *req, *tmp; in scmi_reqs_pool_free() local
296 LIST_FOREACH_SAFE(req, &rp->head, next, tmp) { in scmi_reqs_pool_free()
297 mtx_destroy(&req->mtx); in scmi_reqs_pool_free()
[all …]
/freebsd/sys/geom/
H A Dgeom_ctl.c79 gctl_error(struct gctl_req *req, const char *fmt, ...) in gctl_error() argument
83 if (req == NULL) in gctl_error()
87 if (sbuf_done(req->serror)) { in gctl_error()
88 if (!req->nerror) in gctl_error()
89 req->nerror = EEXIST; in gctl_error()
93 return (req->nerror); in gctl_error()
95 if (!req->nerror) in gctl_error()
96 req->nerror = EINVAL; in gctl_error()
99 if (sbuf_len(req->serror) > 0) in gctl_error()
100 sbuf_cat(req->serror, "\n\t"); in gctl_error()
[all …]
/freebsd/sys/dev/bnxt/bnxt_en/
H A Dbnxt_hwrm.c41 struct hwrm_port_phy_cfg_input *req);
43 struct hwrm_port_phy_cfg_input *req);
45 struct hwrm_port_phy_cfg_input *req);
134 struct input *req = request; in bnxt_hwrm_cmd_hdr_init() local
136 req->req_type = htole16(req_type); in bnxt_hwrm_cmd_hdr_init()
137 req->cmpl_ring = 0xffff; in bnxt_hwrm_cmd_hdr_init()
138 req->target_id = 0xffff; in bnxt_hwrm_cmd_hdr_init()
139 req->resp_addr = htole64(softc->hwrm_cmd_resp.idi_paddr); in bnxt_hwrm_cmd_hdr_init()
145 struct input *req = msg; in _hwrm_send_message() local
155 req->seq_id = htole16(softc->hwrm_cmd_seq++); in _hwrm_send_message()
[all …]
/freebsd/sys/dev/netmap/
H A Dnetmap_legacy.c62 struct nmreq_register *req) in nmreq_register_from_legacy() argument
64 req->nr_offset = nmr->nr_offset; in nmreq_register_from_legacy()
65 req->nr_memsize = nmr->nr_memsize; in nmreq_register_from_legacy()
66 req->nr_tx_slots = nmr->nr_tx_slots; in nmreq_register_from_legacy()
67 req->nr_rx_slots = nmr->nr_rx_slots; in nmreq_register_from_legacy()
68 req->nr_tx_rings = nmr->nr_tx_rings; in nmreq_register_from_legacy()
69 req->nr_rx_rings = nmr->nr_rx_rings; in nmreq_register_from_legacy()
70 req->nr_host_tx_rings = 0; in nmreq_register_from_legacy()
71 req->nr_host_rx_rings = 0; in nmreq_register_from_legacy()
72 req->nr_mem_id = nmr->nr_arg2; in nmreq_register_from_legacy()
[all …]
/freebsd/usr.sbin/mpsutil/
H A Dmps_cmd.c284 MPI2_SEP_REQUEST req; in mps_set_slot_status() local
287 bzero(&req, sizeof(req)); in mps_set_slot_status()
288 req.Function = MPI2_FUNCTION_SCSI_ENCLOSURE_PROCESSOR; in mps_set_slot_status()
289 req.Action = MPI2_SEP_REQ_ACTION_WRITE_STATUS; in mps_set_slot_status()
290 req.Flags = MPI2_SEP_REQ_FLAGS_ENCLOSURE_SLOT_ADDRESS; in mps_set_slot_status()
291 req.EnclosureHandle = handle; in mps_set_slot_status()
292 req.Slot = slot; in mps_set_slot_status()
293 req.SlotStatus = status; in mps_set_slot_status()
295 if (mps_pass_command(fd, &req, sizeof(req), &reply, sizeof(reply), in mps_set_slot_status()
308 MPI2_CONFIG_REQUEST req; in mps_read_config_page_header() local
[all …]
/freebsd/contrib/lib9p/
H A Drequest.c51 static int l9p_dispatch_tversion(struct l9p_request *req);
52 static int l9p_dispatch_tattach(struct l9p_request *req);
53 static int l9p_dispatch_tclunk(struct l9p_request *req);
54 static int l9p_dispatch_tcreate(struct l9p_request *req);
55 static int l9p_dispatch_topen(struct l9p_request *req);
56 static int l9p_dispatch_tread(struct l9p_request *req);
57 static int l9p_dispatch_tremove(struct l9p_request *req);
58 static int l9p_dispatch_tstat(struct l9p_request *req);
59 static int l9p_dispatch_twalk(struct l9p_request *req);
60 static int l9p_dispatch_twrite(struct l9p_request *req);
[all …]
/freebsd/lib/libgeom/
H A Dgeom_ctl.c54 gctl_dump(struct gctl_req *req, FILE *f) in gctl_dump() argument
60 if (req == NULL) { in gctl_dump()
64 fprintf(f, "Dump of gctl request at %p:\n", req); in gctl_dump()
65 if (req->error != NULL) in gctl_dump()
66 fprintf(f, " error:\t\"%s\"\n", req->error); in gctl_dump()
69 for (i = 0; i < req->narg; i++) { in gctl_dump()
70 ap = &req->arg[i]; in gctl_dump()
95 gctl_set_error(struct gctl_req *req, const char *error, ...) in gctl_set_error() argument
99 if (req->error != NULL) in gctl_set_error()
102 vasprintf(&req->error, error, ap); in gctl_set_error()
[all …]
/freebsd/crypto/openssl/crypto/x509/
H A Dx509_req.c63 EVP_PKEY *X509_REQ_get_pubkey(X509_REQ *req) in X509_REQ_get_pubkey() argument
65 if (req == NULL) in X509_REQ_get_pubkey()
67 return X509_PUBKEY_get(req->req_info.pubkey); in X509_REQ_get_pubkey()
70 EVP_PKEY *X509_REQ_get0_pubkey(X509_REQ *req) in X509_REQ_get0_pubkey() argument
72 if (req == NULL) in X509_REQ_get0_pubkey()
74 return X509_PUBKEY_get0(req->req_info.pubkey); in X509_REQ_get0_pubkey()
77 X509_PUBKEY *X509_REQ_get_X509_PUBKEY(X509_REQ *req) in X509_REQ_get_X509_PUBKEY() argument
79 return req->req_info.pubkey; in X509_REQ_get_X509_PUBKEY()
139 STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req) in STACK_OF()
146 if (req == NULL || !ext_nids) in STACK_OF()
[all …]
/freebsd/sys/dev/sfxge/common/
H A Defx_nvram.c542 efx_mcdi_req_t req; in efx_mcdi_nvram_partitions() local
548 req.emr_cmd = MC_CMD_NVRAM_PARTITIONS; in efx_mcdi_nvram_partitions()
549 req.emr_in_buf = payload; in efx_mcdi_nvram_partitions()
550 req.emr_in_length = MC_CMD_NVRAM_PARTITIONS_IN_LEN; in efx_mcdi_nvram_partitions()
551 req.emr_out_buf = payload; in efx_mcdi_nvram_partitions()
552 req.emr_out_length = MC_CMD_NVRAM_PARTITIONS_OUT_LENMAX; in efx_mcdi_nvram_partitions()
554 efx_mcdi_execute(enp, &req); in efx_mcdi_nvram_partitions()
556 if (req.emr_rc != 0) { in efx_mcdi_nvram_partitions()
557 rc = req.emr_rc; in efx_mcdi_nvram_partitions()
561 if (req.emr_out_length_used < MC_CMD_NVRAM_PARTITIONS_OUT_LENMIN) { in efx_mcdi_nvram_partitions()
[all …]
H A Defx_mcdi.c929 efx_mcdi_req_t req; variable
942 req.emr_cmd = MC_CMD_GET_VERSION;
943 req.emr_in_buf = payload;
944 req.emr_in_length = MC_CMD_GET_VERSION_IN_LEN;
945 req.emr_out_buf = payload;
946 req.emr_out_length = MC_CMD_GET_VERSION_OUT_LEN;
948 efx_mcdi_execute(enp, &req);
950 if (req.emr_rc != 0) {
951 rc = req.emr_rc;
956 if (req.emr_out_length_used == MC_CMD_GET_VERSION_V0_OUT_LEN) {
[all …]
H A Def10_nic.c47 efx_mcdi_req_t req; in efx_mcdi_get_port_assignment() local
56 req.emr_cmd = MC_CMD_GET_PORT_ASSIGNMENT; in efx_mcdi_get_port_assignment()
57 req.emr_in_buf = payload; in efx_mcdi_get_port_assignment()
58 req.emr_in_length = MC_CMD_GET_PORT_ASSIGNMENT_IN_LEN; in efx_mcdi_get_port_assignment()
59 req.emr_out_buf = payload; in efx_mcdi_get_port_assignment()
60 req.emr_out_length = MC_CMD_GET_PORT_ASSIGNMENT_OUT_LEN; in efx_mcdi_get_port_assignment()
62 efx_mcdi_execute(enp, &req); in efx_mcdi_get_port_assignment()
64 if (req.emr_rc != 0) { in efx_mcdi_get_port_assignment()
65 rc = req.emr_rc; in efx_mcdi_get_port_assignment()
69 if (req.emr_out_length_used < MC_CMD_GET_PORT_ASSIGNMENT_OUT_LEN) { in efx_mcdi_get_port_assignment()
[all …]
/freebsd/contrib/wpa/src/wps/
H A Dhttp_server.c30 void (*cb)(void *ctx, struct http_request *req);
44 struct http_request *req = cookie; in http_request_cb() local
45 struct http_server *srv = req->srv; in http_request_cb()
49 inet_ntoa(req->cli.sin_addr), in http_request_cb()
50 ntohs(req->cli.sin_port)); in http_request_cb()
51 srv->cb(srv->cb_ctx, req); in http_request_cb()
55 "completely", inet_ntoa(req->cli.sin_addr), in http_request_cb()
56 ntohs(req->cli.sin_port)); in http_request_cb()
57 http_request_deinit(req); in http_request_cb()
64 struct http_request *req; in http_request_init() local
[all …]
/freebsd/sys/dev/io/
H A Diodev.c50 static int iopio_read(struct iodev_pio_req *req);
51 static int iopio_write(struct iodev_pio_req *req);
121 iopio_read(struct iodev_pio_req *req) in iopio_read() argument
124 switch (req->width) { in iopio_read()
126 req->val = iodev_read_1(req->port); in iopio_read()
129 if (req->port & 1) { in iopio_read()
130 req->val = iodev_read_1(req->port); in iopio_read()
131 req->val |= iodev_read_1(req->port + 1) << 8; in iopio_read()
133 req->val = iodev_read_2(req->port); in iopio_read()
136 if (req->port & 1) { in iopio_read()
[all …]
/freebsd/usr.sbin/ctld/
H A Disns.cc49 struct isns_req *req; in isns_req_alloc() local
51 req = reinterpret_cast<struct isns_req *>(calloc(1, sizeof(struct isns_req))); in isns_req_alloc()
52 if (req == NULL) { in isns_req_alloc()
56 req->ir_buflen = sizeof(struct isns_hdr); in isns_req_alloc()
57 req->ir_usedlen = 0; in isns_req_alloc()
58 req->ir_buf = reinterpret_cast<uint8_t *>(calloc(1, req->ir_buflen)); in isns_req_alloc()
59 if (req->ir_buf == NULL) { in isns_req_alloc()
60 free(req); in isns_req_alloc()
64 return (req); in isns_req_alloc()
70 struct isns_req *req; in isns_req_create() local
[all …]
H A Dkernel.cc673 struct ctl_lun_req req; in kernel_lun_add() local
676 bzero(&req, sizeof(req)); in kernel_lun_add()
678 strlcpy(req.backend, lun->l_backend, sizeof(req.backend)); in kernel_lun_add()
679 req.reqtype = CTL_LUNREQ_CREATE; in kernel_lun_add()
681 req.reqdata.create.blocksize_bytes = lun->l_blocksize; in kernel_lun_add()
684 req.reqdata.create.lun_size_bytes = lun->l_size; in kernel_lun_add()
687 req.reqdata.create.req_lun_id = lun->l_ctl_lun; in kernel_lun_add()
688 req.reqdata.create.flags |= CTL_LUN_FLAG_ID_REQ; in kernel_lun_add()
691 req.reqdata.create.flags |= CTL_LUN_FLAG_DEV_TYPE; in kernel_lun_add()
692 req.reqdata.create.device_type = lun->l_device_type; in kernel_lun_add()
[all …]
/freebsd/sys/dev/tws/
H A Dtws_cam.c49 static void tws_scsi_complete(struct tws_request *req);
51 void tws_unmap_request(struct tws_softc *sc, struct tws_request *req);
52 int32_t tws_map_request(struct tws_softc *sc, struct tws_request *req);
61 static void tws_freeze_simq(struct tws_softc *sc, struct tws_request *req);
67 static void tws_scsi_err_complete(struct tws_request *req,
69 static void tws_passthru_err_complete(struct tws_request *req,
77 void tws_cmd_complete(struct tws_request *req);
78 void tws_aen_complete(struct tws_request *req);
80 void tws_getset_param_complete(struct tws_request *req);
88 extern void *tws_release_request(struct tws_request *req);
[all …]
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_tlv.h73 static inline u8 __get_cmdq_base_opcode(struct cmdq_base *req, u32 size) in __get_cmdq_base_opcode() argument
75 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __get_cmdq_base_opcode()
76 return ((struct cmdq_base *)GET_TLV_DATA(req))->opcode; in __get_cmdq_base_opcode()
78 return req->opcode; in __get_cmdq_base_opcode()
81 static inline void __set_cmdq_base_opcode(struct cmdq_base *req, in __set_cmdq_base_opcode() argument
84 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __set_cmdq_base_opcode()
85 ((struct cmdq_base *)GET_TLV_DATA(req))->opcode = val; in __set_cmdq_base_opcode()
87 req->opcode = val; in __set_cmdq_base_opcode()
90 static inline __le16 __get_cmdq_base_cookie(struct cmdq_base *req, u32 size) in __get_cmdq_base_cookie() argument
92 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __get_cmdq_base_cookie()
[all …]
H A Dqplib_sp.c62 struct cmdq_query_version req = {}; in bnxt_qplib_query_version() local
65 bnxt_qplib_rcfw_cmd_prep(&req, CMDQ_BASE_OPCODE_QUERY_VERSION, in bnxt_qplib_query_version()
66 sizeof(req)); in bnxt_qplib_query_version()
67 bnxt_qplib_fill_cmdqmsg(&msg, &req, &resp, NULL, sizeof(req), in bnxt_qplib_query_version()
88 struct cmdq_query_func req = {}; in bnxt_qplib_get_dev_attr() local
97 bnxt_qplib_rcfw_cmd_prep(&req, CMDQ_BASE_OPCODE_QUERY_FUNC, in bnxt_qplib_get_dev_attr()
98 sizeof(req)); in bnxt_qplib_get_dev_attr()
107 req.resp_size = sbuf.size / BNXT_QPLIB_CMDQE_UNITS; in bnxt_qplib_get_dev_attr()
108 bnxt_qplib_fill_cmdqmsg(&msg, &req, &resp, &sbuf, sizeof(req), in bnxt_qplib_get_dev_attr()
211 struct cmdq_set_func_resources req = {}; in bnxt_qplib_set_func_resources() local
[all …]
/freebsd/crypto/openssl/test/smime-certs/
H A Dmksmime-certs.sh17 CN="Test S/MIME RSA Root" $OPENSSL req -config ca.cnf -x509 -noenc \
21 CN="Test S/MIME EE RSA #1" $OPENSSL req -config ca.cnf -noenc \
22 -keyout smrsa1.pem -out req.pem -newkey rsa:2048
24 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
27 CN="Test S/MIME EE RSA #2" $OPENSSL req -config ca.cnf -noenc \
28 -keyout smrsa2.pem -out req.pem -newkey rsa:2048
29 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
32 CN="Test S/MIME EE RSA #3" $OPENSSL req -config ca.cnf -noenc \
33 -keyout smrsa3.pem -out req.pem -newkey rsa:2048
34 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
[all …]
/freebsd/lib/geom/eli/
H A Dgeom_eli.c70 static void eli_main(struct gctl_req *req, unsigned flags);
71 static void eli_init(struct gctl_req *req);
72 static void eli_attach(struct gctl_req *req);
73 static void eli_configure(struct gctl_req *req);
74 static void eli_setkey(struct gctl_req *req);
75 static void eli_delkey(struct gctl_req *req);
76 static void eli_resume(struct gctl_req *req);
77 static void eli_kill(struct gctl_req *req);
78 static void eli_backup(struct gctl_req *req);
79 static void eli_restore(struct gctl_req *req);
[all …]
/freebsd/sbin/ifconfig/
H A Difbridge.c98 struct ifbreq req; in do_bridgeflag() local
100 strlcpy(req.ifbr_ifsname, ifs, sizeof(req.ifbr_ifsname)); in do_bridgeflag()
102 if (do_cmd(ctx, BRDGGIFFLGS, &req, sizeof(req), 0) < 0) in do_bridgeflag()
106 req.ifbr_ifsflags |= flag; in do_bridgeflag()
108 req.ifbr_ifsflags &= ~flag; in do_bridgeflag()
110 if (do_cmd(ctx, BRDGSIFFLGS, &req, sizeof(req), 1) < 0) in do_bridgeflag()
256 struct ifbreq req; in setbridge_add() local
258 memset(&req, 0, sizeof(req)); in setbridge_add()
259 strlcpy(req.ifbr_ifsname, val, sizeof(req.ifbr_ifsname)); in setbridge_add()
260 if (do_cmd(ctx, BRDGADD, &req, sizeof(req), 1) < 0) in setbridge_add()
[all …]
/freebsd/crypto/heimdal/lib/hx509/
H A Dreq.c49 hx509_request_init(hx509_context context, hx509_request *req) in hx509_request_init() argument
51 *req = calloc(1, sizeof(**req)); in hx509_request_init()
52 if (*req == NULL) in hx509_request_init()
59 hx509_request_free(hx509_request *req) in hx509_request_free() argument
61 if ((*req)->name) in hx509_request_free()
62 hx509_name_free(&(*req)->name); in hx509_request_free()
63 free_SubjectPublicKeyInfo(&(*req)->key); in hx509_request_free()
64 free_ExtKeyUsage(&(*req)->eku); in hx509_request_free()
65 free_GeneralNames(&(*req)->san); in hx509_request_free()
66 memset(*req, 0, sizeof(**req)); in hx509_request_free()
[all …]
/freebsd/sys/geom/raid3/
H A Dg_raid3_ctl.c94 g_raid3_ctl_configure(struct gctl_req *req, struct g_class *mp) in g_raid3_ctl_configure() argument
106 nargs = gctl_get_paraml(req, "nargs", sizeof(*nargs)); in g_raid3_ctl_configure()
108 gctl_error(req, "No '%s' argument.", "nargs"); in g_raid3_ctl_configure()
112 gctl_error(req, "Invalid number of arguments."); in g_raid3_ctl_configure()
115 autosync = gctl_get_paraml(req, "autosync", sizeof(*autosync)); in g_raid3_ctl_configure()
117 gctl_error(req, "No '%s' argument.", "autosync"); in g_raid3_ctl_configure()
120 noautosync = gctl_get_paraml(req, "noautosync", sizeof(*noautosync)); in g_raid3_ctl_configure()
122 gctl_error(req, "No '%s' argument.", "noautosync"); in g_raid3_ctl_configure()
126 gctl_error(req, "'%s' and '%s' specified.", "autosync", in g_raid3_ctl_configure()
130 failsync = gctl_get_paraml(req, "failsync", sizeof(*failsync)); in g_raid3_ctl_configure()
[all …]
/freebsd/sys/geom/mirror/
H A Dg_mirror_ctl.c145 g_mirror_ctl_configure(struct gctl_req *req, struct g_class *mp) in g_mirror_ctl_configure() argument
156 nargs = gctl_get_paraml(req, "nargs", sizeof(*nargs)); in g_mirror_ctl_configure()
158 gctl_error(req, "No '%s' argument.", "nargs"); in g_mirror_ctl_configure()
162 gctl_error(req, "Invalid number of arguments."); in g_mirror_ctl_configure()
165 name = gctl_get_asciiparam(req, "arg0"); in g_mirror_ctl_configure()
167 gctl_error(req, "No 'arg%u' argument.", 0); in g_mirror_ctl_configure()
170 balancep = gctl_get_asciiparam(req, "balance"); in g_mirror_ctl_configure()
172 gctl_error(req, "No '%s' argument.", "balance"); in g_mirror_ctl_configure()
175 autosync = gctl_get_paraml(req, "autosync", sizeof(*autosync)); in g_mirror_ctl_configure()
177 gctl_error(req, "No '%s' argument.", "autosync"); in g_mirror_ctl_configure()
[all …]
/freebsd/usr.sbin/nvmfd/
H A Dctl.c48 struct ctl_req req; in init_ctl_port() local
62 memset(&req, 0, sizeof(req)); in init_ctl_port()
63 strlcpy(req.driver, "nvmf", sizeof(req.driver)); in init_ctl_port()
64 req.reqtype = CTL_REQ_CREATE; in init_ctl_port()
65 req.args = nvlist_pack(nvl, &req.args_len); in init_ctl_port()
66 if (req.args == NULL) in init_ctl_port()
68 req.result = result_buf; in init_ctl_port()
69 req.result_len = sizeof(result_buf); in init_ctl_port()
70 if (ioctl(ctl_fd, CTL_PORT_REQ, &req) != 0) in init_ctl_port()
72 if (req.status == CTL_LUN_ERROR) in init_ctl_port()
[all …]

12345678910>>...84