/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | dca_dsa.c | 58 dca_request_t *reqp = ctx->cc_provider_private; in dca_dsa_sign() local 87 reqp->dr_job_stat = DS_DSASIGN; in dca_dsa_sign() 88 reqp->dr_byte_stat = -1; in dca_dsa_sign() 89 reqp->dr_in = data; in dca_dsa_sign() 90 reqp->dr_out = sig; in dca_dsa_sign() 91 reqp->dr_callback = dca_dsa_sign_done; in dca_dsa_sign() 93 reqp->dr_kcf_req = req; in dca_dsa_sign() 95 err = dca_gather(data, reqp->dr_ibuf_kaddr, SHA1LEN, 1); in dca_dsa_sign() 104 (void) ddi_dma_sync(reqp->dr_ibuf_dmah, 0, SHA1LEN, in dca_dsa_sign() 106 if (dca_check_dma_handle(dca, reqp->dr_ibuf_dmah, in dca_dsa_sign() [all …]
|
H A D | dca_rsa.c | 64 dca_request_t *reqp = ctx->cc_provider_private; in dca_rsastart() local 88 if (dca_length(out) < reqp->dr_ctx.modlen) { in dca_rsastart() 91 dca_length(out), reqp->dr_ctx.modlen); in dca_rsastart() 92 out->cd_length = reqp->dr_ctx.modlen; in dca_rsastart() 97 if (out != in && out->cd_length > reqp->dr_ctx.modlen) in dca_rsastart() 98 out->cd_length = reqp->dr_ctx.modlen; in dca_rsastart() 101 if (len > reqp->dr_ctx.modlen) { in dca_rsastart() 111 if (len < reqp->dr_ctx.modlen && (mode == DCA_RSA_DEC || in dca_rsastart() 122 if (out->cd_length < reqp->dr_ctx.modlen && (mode == DCA_RSA_DEC || in dca_rsastart() 124 reqp->dr_ctx.ctx_cm_type == RSA_X_509_MECH_INFO_TYPE) { in dca_rsastart() [all …]
|
H A D | dca_rng.c | 53 dca_request_t *reqp; in dca_rng() local 57 if ((reqp = dca_getreq(dca, MCR2, 1)) == NULL) { in dca_rng() 62 reqp->dr_kcf_req = req; in dca_rng() 64 data = &reqp->dr_ctx.in_dup; in dca_rng() 70 reqp->dr_out = data; in dca_rng() 71 reqp->dr_in = NULL; in dca_rng() 73 rv = dca_rngstart(dca, reqp); in dca_rng() 75 if (reqp->destroy) in dca_rng() 76 dca_destroyreq(reqp); in dca_rng() 78 dca_freereq(reqp); in dca_rng() [all …]
|
H A D | dca_3des.c | 60 dca_request_t *reqp = ctx->cc_provider_private; in dca_3des() local 63 crypto_data_t *nin = &reqp->dr_ctx.in_dup; in dca_3des() 125 reqp->dr_kcf_req = req; in dca_3des() 126 reqp->dr_in = nin; in dca_3des() 127 reqp->dr_out = out; in dca_3des() 128 reqp->dr_job_stat = DS_3DESJOBS; in dca_3des() 129 reqp->dr_byte_stat = DS_3DESBYTES; in dca_3des() 131 rv = dca_3desstart(dca, flags, reqp); in dca_3des() 168 dca_request_t *reqp = ctx->cc_provider_private; in dca_3desupdate() local 171 crypto_data_t *nin = &reqp->dr_ctx.in_dup; in dca_3desupdate() [all …]
|
H A D | dca.c | 421 static int dca_bindchains_one(dca_request_t *reqp, size_t cnt, int dr_offset, 1143 dca_request_t *reqp; in dca_initworklist() local 1145 if ((reqp = dca_newreq(dca)) == NULL) { in dca_initworklist() 1149 reqp->dr_dca = dca; in dca_initworklist() 1150 reqp->dr_wlp = wlp; in dca_initworklist() 1151 dca_freereq(reqp); in dca_initworklist() 1225 dca_request_t *reqp; in dca_uninit() local 1236 while ((reqp = dca_getreq(dca, mcr, 0)) != NULL) { in dca_uninit() 1237 dca_destroyreq(reqp); in dca_uninit() 1583 dca_request_t *reqp; in dca_newreq() local [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | aio_subr.c | 80 aio_req_t *reqp = (aio_req_t *)aio->aio_private; in aphysio() local 81 struct buf *bp = &reqp->aio_req_buf; in aphysio() 128 bp->b_forw = (struct buf *)reqp; in aphysio() 149 reqp->aio_req_flags |= AIO_PAGELOCKDONE; in aphysio() 159 reqp->aio_req_cancel = cancel; in aphysio() 188 aio_req_t *reqp; in aio_done() local 206 reqp = (aio_req_t *)bp->b_forw; in aio_done() 207 fd = reqp->aio_req_fd; in aio_done() 225 ASSERT(reqp->aio_req_flags & AIO_PENDING); in aio_done() 227 reqp->aio_req_flags &= ~AIO_PENDING; in aio_done() [all …]
|
H A D | aio.c | 528 aio_req_t *reqp; in aiowait() local 560 if ((reqp = aio_req_remove(NULL)) != NULL) { in aiowait() 561 *rval = (long)reqp->aio_req_resultp; in aiowait() 591 if (reqp) { in aiowait() 592 aphysio_unlock(reqp); in aiowait() 593 aio_copyout_result(reqp); in aiowait() 595 aio_req_free(aiop, reqp); in aiowait() 814 aio_req_t *reqp, *nreqp; in aio_unlock_requests() local 817 for (reqp = reqlist; reqp != NULL; reqp = nreqp) { in aio_unlock_requests() 819 reqp->aio_req_iocb.iocb; in aio_unlock_requests() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/requests/ |
H A D | getrequest.c | 60 REQUEST *reqp; local 106 reqp = calloc(sizeof (*reqp), 1); 107 reqp->copies = 1; 108 reqp->priority = -1; 140 reqp->copies = atoi(p); 144 reqp->destination = Strdup(p); 148 appendlist (&reqp->file_list, p); 153 reqp->form = Strdup(p); 158 reqp->actions |= ACT_RESUME; 160 reqp->actions |= ACT_HOLD; [all …]
|
/illumos-gate/usr/src/lib/libc/port/aio/ |
H A D | aio.c | 349 aio_req_t *reqp; in _aiorw() local 423 if ((reqp = _aio_req_alloc()) == NULL) { in _aiorw() 432 reqp->req_op = mode; in _aiorw() 433 reqp->req_resultp = resultp; in _aiorw() 434 ap = &reqp->req_args; in _aiorw() 440 if (_aio_hash_insert(resultp, reqp) != 0) { in _aiorw() 441 _aio_req_free(reqp); in _aiorw() 449 _aio_req_add(reqp, &__nextworker_rw, umode); in _aiorw() 456 aio_req_t *reqp; in aiocancel() local 468 reqp = _aio_hash_find(resultp); in aiocancel() [all …]
|
H A D | aio_alloc.c | 164 aio_req_t *reqp; in _aio_req_alloc() local 171 if ((reqp = _aio_freelist) == NULL) { in _aio_req_alloc() 181 for (i = 0, reqp = _aio_freelist; i < nelem; i++, reqp++) { in _aio_req_alloc() 182 reqp->req_state = AIO_REQ_FREE; in _aio_req_alloc() 183 reqp->req_link = reqp + 1; in _aio_req_alloc() 185 _aio_freelast = reqp - 1; in _aio_req_alloc() 188 reqp = _aio_freelist; in _aio_req_alloc() 190 if ((_aio_freelist = reqp->req_link) == NULL) in _aio_req_alloc() 196 ASSERT(reqp->req_state == AIO_REQ_FREE); in _aio_req_alloc() 197 reqp->req_state = 0; in _aio_req_alloc() [all …]
|
H A D | posix_aio.c | 634 aio_req_t *reqp; in aio_error() local 655 if ((reqp = _aio_hash_del((aio_result_t *)resultp)) == NULL) { in aio_error() 660 ASSERT(reqp->req_head == NULL); in aio_error() 661 (void) _aio_req_remove(reqp); in aio_error() 663 _aio_req_free(reqp); in aio_error() 673 aio_req_t *reqp; in aio_return() local 711 if ((reqp = _aio_hash_del(resultp)) == NULL) in aio_return() 715 ASSERT(reqp->req_head == NULL); in aio_return() 716 (void) _aio_req_remove(reqp); in aio_return() 718 _aio_req_free(reqp); in aio_return() [all …]
|
/illumos-gate/usr/src/test/nvme-tests/tests/libnvme/ |
H A D | bad-req.c | 29 nvme_id_req_t **reqp, nvme_err_t exp_err, const char *desc) in bad_id_req() argument 31 if (nvme_id_req_init_by_cns(ctrl, csi, cns, reqp)) { in bad_id_req() 34 nvme_id_req_fini(*reqp); in bad_id_req() 51 bad_log_req(nvme_ctrl_t *ctrl, nvme_log_req_t **reqp, nvme_err_t exp_err, in bad_log_req() argument 54 if (nvme_log_req_init(ctrl, reqp)) { in bad_log_req() 57 nvme_log_req_fini(*reqp); in bad_log_req() 75 nvme_log_req_t **reqp, nvme_err_t exp_err, const char *desc) in bad_log_req_by_name() argument 77 if (nvme_log_req_init_by_name(ctrl, name, flags, NULL, reqp)) { in bad_log_req_by_name() 80 nvme_log_req_fini(*reqp); in bad_log_req_by_name() 97 bad_get_feat_req(nvme_ctrl_t *ctrl, nvme_get_feat_req_t **reqp, in bad_get_feat_req() argument [all …]
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp_mbox.c | 121 sbbc_msg_t request, *reqp = &request; in sbdp_get_board_status() local 148 sbdp_init_msg_pkt(reqp, DR_MBOX_SHOW_BOARD, len, (caddr_t)informp); in sbdp_get_board_status() 160 rv = sbbc_mbox_request_response(reqp, resp, sbdp_shw_bd_wait); in sbdp_get_board_status() 251 sbbc_msg_t request, *reqp = &request; in sbdp_assign_board() local 276 sbdp_init_msg_pkt(reqp, DR_MBOX_ASSIGN, len, (caddr_t)informp); in sbdp_assign_board() 282 rv = sbbc_mbox_request_response(reqp, resp, sbdp_mbox_wait); in sbdp_assign_board() 302 sbbc_msg_t request, *reqp = &request; in sbdp_unassign_board() local 327 sbdp_init_msg_pkt(reqp, DR_MBOX_ASSIGN, len, (caddr_t)informp); in sbdp_unassign_board() 333 rv = sbbc_mbox_request_response(reqp, resp, sbdp_mbox_wait); in sbdp_unassign_board() 396 sbbc_msg_t request, *reqp = &request; in sbdp_connect_board() local [all …]
|
H A D | sghsc.c | 1225 sbbc_msg_t request, *reqp = &request; in sghsc_scctl() local 1233 reqp->msg_type.type = CPCI_MBOX; in sghsc_scctl() 1234 reqp->msg_status = 0xeeeeffff; in sghsc_scctl() 1235 reqp->msg_len = sizeof (cmd_info); in sghsc_scctl() 1236 reqp->msg_bytes = 8; in sghsc_scctl() 1237 reqp->msg_buf = (caddr_t)cmd_infop; in sghsc_scctl() 1238 reqp->msg_data[0] = 0; in sghsc_scctl() 1239 reqp->msg_data[1] = 0; in sghsc_scctl() 1253 reqp->msg_type.sub_type = CPCI_GET_SLOT_STATUS; in sghsc_scctl() 1255 reqp->msg_len -= 4; in sghsc_scctl() [all …]
|
/illumos-gate/usr/src/uts/sun4u/excalibur/io/ |
H A D | xcalppm.c | 496 xcppm_detach_ctlop(dev_info_t *dip, power_req_t *reqp) in xcppm_detach_ctlop() argument 501 if (ppmd == NULL || reqp->req.ppm_config_req.result != DDI_SUCCESS) in xcppm_detach_ctlop() 516 xcppm_resume_ctlop(dev_info_t *dip, power_req_t *reqp) in xcppm_resume_ctlop() argument 912 xcppm_manage_cpus(dev_info_t *dip, power_req_t *reqp, int *result) in xcppm_manage_cpus() argument 924 switch (reqp->request_type) { in xcppm_manage_cpus() 935 old = reqp->req.ppm_set_power_req.old_level; in xcppm_manage_cpus() 936 new = reqp->req.ppm_set_power_req.new_level; in xcppm_manage_cpus() 996 if (reqp->req.ppm_set_power_req.canblock == PM_CANBLOCK_BLOCK) in xcppm_manage_cpus() 1017 reqp->req.ppm_set_power_req.cookie = (void *) devlist; in xcppm_manage_cpus() 1034 xcppm_manage_fet(dev_info_t *dip, power_req_t *reqp, int *result) in xcppm_manage_fet() argument [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/usba/ |
H A D | usba_ugen.c | 2427 usb_ctrl_req_t *reqp = NULL; in ugen_epx_ctrl_req() local 2464 reqp = usb_alloc_ctrl_req(ugenp->ug_dip, wLength, USB_FLAGS_NOSLEEP); in ugen_epx_ctrl_req() 2465 if (reqp == NULL) { in ugen_epx_ctrl_req() 2472 reqp->ctrl_bmRequestType = setup[0]; in ugen_epx_ctrl_req() 2473 reqp->ctrl_bRequest = setup[1]; in ugen_epx_ctrl_req() 2474 reqp->ctrl_wValue = (setup[3] << 8) | setup[2]; in ugen_epx_ctrl_req() 2475 reqp->ctrl_wIndex = (setup[5] << 8) | setup[4]; in ugen_epx_ctrl_req() 2476 reqp->ctrl_wLength = wLength; in ugen_epx_ctrl_req() 2477 reqp->ctrl_timeout = ugen_ctrl_timeout; in ugen_epx_ctrl_req() 2478 reqp->ctrl_attributes = USB_ATTRS_AUTOCLEARING | in ugen_epx_ctrl_req() [all …]
|
H A D | usba10_calls.c | 246 usba10_usb_free_ctrl_req(usb_ctrl_req_t *reqp) in usba10_usb_free_ctrl_req() argument 248 usb_free_ctrl_req(reqp); in usba10_usb_free_ctrl_req() 255 usb_ctrl_req_t *reqp, in usba10_usb_pipe_ctrl_xfer() argument 258 return (usb_pipe_ctrl_xfer(pipe_handle, reqp, flags)); in usba10_usb_pipe_ctrl_xfer() 368 usba10_usb_free_bulk_req(usb_bulk_req_t *reqp) in usba10_usb_free_bulk_req() argument 370 usb_free_bulk_req(reqp); in usba10_usb_free_bulk_req() 377 usb_bulk_req_t *reqp, in usba10_usb_pipe_bulk_xfer() argument 380 return (usb_pipe_bulk_xfer(pipe_handle, reqp, flags)); in usba10_usb_pipe_bulk_xfer() 404 usba10_usb_free_intr_req(usb_intr_req_t *reqp) in usba10_usb_free_intr_req() argument 406 usb_free_intr_req(reqp); in usba10_usb_free_intr_req() [all …]
|
/illumos-gate/usr/src/uts/sun4u/opl/io/ |
H A D | oplkmdrv.c | 92 int okm_process_req(okms_t *okmsp, okm_req_hdr_t *reqp, uint32_t len, 467 okm_req_hdr_t *reqp; in okm_get_req() local 482 reqp = okmsp->km_reqp; in okm_get_req() 539 reqp = (okm_req_hdr_t *)msgbuf; in okm_get_req() 540 reqp->krq_version = ntohl(reqp->krq_version); in okm_get_req() 541 reqp->krq_transid = ntohl(reqp->krq_transid); in okm_get_req() 542 reqp->krq_cmd = ntohl(reqp->krq_cmd); in okm_get_req() 543 reqp->krq_reserved = ntohl(reqp->krq_reserved); in okm_get_req() 546 if (reqp->krq_version != OKM_PROTOCOL_VERSION) { in okm_get_req() 547 (void) okm_send_reply(okmsp, reqp->krq_transid, in okm_get_req() [all …]
|
/illumos-gate/usr/src/uts/sun4u/lw8/io/ |
H A D | sgfru.c | 1158 sbbc_msg_t request, *reqp = &request; in sgfru_mbox() local 1166 reqp->msg_type.type = SGFRU_MBOX; in sgfru_mbox() 1174 reqp->msg_type.sub_type = SGFRU_MBOX_GETCHILDLIST; in sgfru_mbox() 1175 reqp->msg_len = sizeof (fru_info_t); in sgfru_mbox() 1176 reqp->msg_buf = (caddr_t)fru; in sgfru_mbox() 1183 reqp->msg_type.sub_type = SGFRU_MBOX_GETCHILDHANDLES; in sgfru_mbox() 1184 reqp->msg_len = sizeof (fru_info_t); in sgfru_mbox() 1185 reqp->msg_buf = (caddr_t)fru; in sgfru_mbox() 1192 reqp->msg_type.sub_type = SGFRU_MBOX_GETNODEINFO; in sgfru_mbox() 1193 reqp->msg_len = sizeof (fru_hdl_t); in sgfru_mbox() [all …]
|
H A D | lw8.c | 837 sbbc_msg_t request, *reqp = &request; in lw8_lomcmd() local 843 reqp->msg_type.type = LW8_MBOX; in lw8_lomcmd() 844 reqp->msg_type.sub_type = cmd; in lw8_lomcmd() 851 reqp->msg_len = 0; in lw8_lomcmd() 852 reqp->msg_buf = (caddr_t)NULL; in lw8_lomcmd() 857 reqp->msg_len = sizeof (lom_ctl2_t); in lw8_lomcmd() 858 reqp->msg_buf = (caddr_t)arg; in lw8_lomcmd() 863 reqp->msg_len = sizeof (lom_prog_t); in lw8_lomcmd() 864 reqp->msg_buf = (caddr_t)arg; in lw8_lomcmd() 869 reqp->msg_len = sizeof (lw8_get_led_payload_t); in lw8_lomcmd() [all …]
|
/illumos-gate/usr/src/uts/common/io/ppm/ |
H A D | ppm.c | 759 power_req_t *reqp = (power_req_t *)arg; in ppm_ctlops() local 774 char *ctlstr = ppm_get_ctlstr(reqp->request_type, mask); in ppm_ctlops() 786 switch (reqp->request_type) { in ppm_ctlops() 790 mode = (reqp->req.ppm_all_lowest_req.mode == PM_ALL_LOWEST); in ppm_ctlops() 799 ASSERT(reqp->req.ppm_set_power_req.who == rdip); in ppm_ctlops() 801 if (reqp->req.ppm_config_req.result != DDI_SUCCESS || in ppm_ctlops() 812 ppm_svc_resume_ctlop(rdip, reqp); in ppm_ctlops() 825 else if (reqp->request_type != PMR_PPM_UNLOCK_POWER) { in ppm_ctlops() 836 ppmd->path, ppm_get_ctlstr(reqp->request_type, D_LOCKS))) in ppm_ctlops() 839 ppm_lock_all(domp, reqp, result); in ppm_ctlops() [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/usba10/ |
H A D | usba10.c | 274 usb_free_ctrl_req(usb_ctrl_req_t *reqp) in usb_free_ctrl_req() argument 276 usba10_usb_free_ctrl_req(reqp); in usb_free_ctrl_req() 283 usb_ctrl_req_t *reqp, in usb_pipe_ctrl_xfer() argument 286 return (usba10_usb_pipe_ctrl_xfer(pipe_handle, reqp, flags)); in usb_pipe_ctrl_xfer() 396 usb_free_bulk_req(usb_bulk_req_t *reqp) in usb_free_bulk_req() argument 398 usba10_usb_free_bulk_req(reqp); in usb_free_bulk_req() 405 usb_bulk_req_t *reqp, in usb_pipe_bulk_xfer() argument 408 return (usba10_usb_pipe_bulk_xfer(pipe_handle, reqp, flags)); in usb_pipe_bulk_xfer() 432 usb_free_intr_req(usb_intr_req_t *reqp) in usb_free_intr_req() argument 434 usba10_usb_free_intr_req(reqp); in usb_free_intr_req() [all …]
|
/illumos-gate/usr/src/lib/libnvme/common/ |
H A D | libnvme_feature.c | 323 nvme_get_feat_req_init(nvme_ctrl_t *ctrl, nvme_get_feat_req_t **reqp) in nvme_get_feat_req_init() argument 327 if (reqp == NULL) { in nvme_get_feat_req_init() 330 "%p", reqp)); in nvme_get_feat_req_init() 360 *reqp = req; in nvme_get_feat_req_init() 366 nvme_get_feat_req_t **reqp) in nvme_get_feat_req_init_by_disc() argument 375 if (reqp == NULL) { in nvme_get_feat_req_init_by_disc() 378 "%p", reqp)); in nvme_get_feat_req_init_by_disc() 427 *reqp = req; in nvme_get_feat_req_init_by_disc() 467 uint32_t df, nvme_feat_disc_t **discp, nvme_get_feat_req_t **reqp) in nvme_get_feat_req_init_by_name() argument 481 if (reqp == NULL) { in nvme_get_feat_req_init_by_name() [all …]
|
H A D | libnvme_log.c | 394 nvme_log_req_init(nvme_ctrl_t *ctrl, nvme_log_req_t **reqp) in nvme_log_req_init() argument 398 if (reqp == NULL) { in nvme_log_req_init() 401 reqp)); in nvme_log_req_init() 430 *reqp = req; in nvme_log_req_init() 436 nvme_log_req_t **reqp) in nvme_log_req_init_by_disc() argument 445 if (reqp == NULL) { in nvme_log_req_init_by_disc() 448 reqp)); in nvme_log_req_init_by_disc() 525 *reqp = req; in nvme_log_req_init_by_disc() 564 nvme_log_disc_t **discp, nvme_log_req_t **reqp) in nvme_log_req_init_by_name() argument 572 if (reqp == NULL) { in nvme_log_req_init_by_name() [all …]
|
H A D | libnvme_format.c | 32 nvme_format_req_init(nvme_ctrl_t *ctrl, nvme_format_req_t **reqp) in nvme_format_req_init() argument 37 if (reqp == NULL) { in nvme_format_req_init() 40 reqp)); in nvme_format_req_init() 68 *reqp = req; in nvme_format_req_init()
|