/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | tpm_emul_swtpm.c | 81 tpm_swtpm_execute_cmd(void *sc, void *cmd, uint32_t cmd_size, void *rsp, in tpm_swtpm_execute_cmd() argument 95 len = send(tpm->fd, cmd, cmd_size, MSG_NOSIGNAL|MSG_DONTWAIT); in tpm_swtpm_execute_cmd() 98 if (len != cmd_size) { in tpm_swtpm_execute_cmd() 100 len, cmd_size); in tpm_swtpm_execute_cmd() 113 while (cmd_size > 0) { in tpm_swtpm_execute_cmd() 114 len = send(tpm->fd, cmd, cmd_size, MSG_NOSIGNAL|MSG_DONTWAIT); in tpm_swtpm_execute_cmd() 122 cmd_size -= len; in tpm_swtpm_execute_cmd()
|
H A D | tpm_emul_passthru.c | 68 tpm_passthru_execute_cmd(void *sc, void *cmd, uint32_t cmd_size, void *rsp, in tpm_passthru_execute_cmd() argument 81 len = write(tpm->fd, cmd, cmd_size); in tpm_passthru_execute_cmd() 82 if (len != cmd_size) { in tpm_passthru_execute_cmd() 84 len, cmd_size); in tpm_passthru_execute_cmd()
|
H A D | tpm_intf_crb.c | 137 uint32_t cmd_size; /* 58h */ member 148 #define CRB_CMD_SIZE_READ(regs) (regs.cmd_size) 151 regs.cmd_size = val; \ 213 const uint32_t cmd_size = CRB_CMD_SIZE_READ(crb->regs); in tpm_crb_thread() local 217 (cmd_size < sizeof (struct tpm_cmd_hdr)) || in tpm_crb_thread() 218 (cmd_size > TPM_CRB_DATA_BUFFER_SIZE) || in tpm_crb_thread() 219 (cmd_addr + cmd_size > in tpm_crb_thread() 222 "buffer", __func__, cmd_addr, cmd_size); in tpm_crb_thread() 240 cmd_off + cmd_size > TPM_CRB_DATA_BUFFER_SIZE || in tpm_crb_thread() 245 __func__, cmd_addr, cmd_addr + cmd_size, rsp_addr, in tpm_crb_thread() [all …]
|
H A D | tpm_emul.h | 21 int (*execute_cmd)(void *sc, void *cmd, uint32_t cmd_size, void *rsp,
|
/illumos-gate/usr/src/uts/common/io/cpqary3/ |
H A D | cpqary3_talk2ctlr.c | 442 size_t cmd_size; in cpqary3_init_ctlr() local 503 cmd_size = (8 * queue_depth); in cpqary3_init_ctlr() 511 replyq_start_addr = MEM_ZALLOC(cmd_size); in cpqary3_init_ctlr() 512 bzero(replyq_start_addr, cmd_size); in cpqary3_init_ctlr() 683 cmd_size = (8 * queue_depth); in cpqary3_init_ctlr() 686 cmd_size, &phy_addr, cpqary3_phyctgp); in cpqary3_init_ctlr() 693 bzero(replyq_start_addr, cmd_size); in cpqary3_init_ctlr()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_dump.c | 44 uint32_t cmd_size; in emlxs_menlo_set_mode() local 55 cmd_size = sizeof (menlo_set_cmd_t); in emlxs_menlo_set_mode() 56 cmd_buf = (menlo_cmd_t *)kmem_zalloc(cmd_size, KM_SLEEP); in emlxs_menlo_set_mode() 66 emlxs_swap32_buffer((uint8_t *)cmd_buf, cmd_size); in emlxs_menlo_set_mode() 69 if (rval = emlxs_send_menlo_cmd(hba, (uint8_t *)cmd_buf, cmd_size, in emlxs_menlo_set_mode() 108 uint32_t cmd_size; in emlxs_menlo_reset() local 119 cmd_size = sizeof (menlo_reset_cmd_t); in emlxs_menlo_reset() 120 cmd_buf = (menlo_cmd_t *)kmem_zalloc(cmd_size, KM_SLEEP); in emlxs_menlo_reset() 129 emlxs_swap32_buffer((uint8_t *)cmd_buf, cmd_size); in emlxs_menlo_reset() 132 if (rval = emlxs_send_menlo_cmd(hba, (uint8_t *)cmd_buf, cmd_size, in emlxs_menlo_reset() [all …]
|
H A D | emlxs_dfc.c | 5620 uint32_t cmd_size; in emlxs_dfc_send_ct() local 5629 cmd_size = dfc->buf1_size; in emlxs_dfc_send_ct() 5639 "%s: csize=%d rsize=%d", emlxs_dfc_xlate(dfc->cmd), cmd_size, in emlxs_dfc_send_ct() 5643 if (!cmd_size || !cmd_buf) { in emlxs_dfc_send_ct() 5684 if (cmd_size > MAX_CT_PAYLOAD) { in emlxs_dfc_send_ct() 5687 emlxs_dfc_xlate(dfc->cmd), cmd_size); in emlxs_dfc_send_ct() 5741 if (!(pkt = emlxs_pkt_alloc(port, cmd_size, rsp_size, 0, KM_NOSLEEP))) { in emlxs_dfc_send_ct() 5773 bcopy((void *)cmd_buf, (void *)pkt->pkt_cmd, cmd_size); in emlxs_dfc_send_ct() 5822 uint32_t cmd_size; in emlxs_dfc_send_ct_rsp() local 5828 cmd_size = dfc->buf1_size; in emlxs_dfc_send_ct_rsp() [all …]
|
H A D | emlxs_dhchap.c | 104 uint32_t d_id, uint32_t cmd_size, uint32_t rsp_size, 1163 uint32_t cmd_size; in emlxs_issue_dhchap_success() local 1192 cmd_size = cmdsize; in emlxs_issue_dhchap_success() 1195 if ((pkt = emlxs_prep_els_fc_pkt(port, ndlp->nlp_DID, cmd_size, in emlxs_issue_dhchap_success() 1348 uint32_t cmd_size; in emlxs_issue_auth_reject() local 1359 cmd_size = cmdsize; in emlxs_issue_auth_reject() 1362 if ((pkt = emlxs_prep_els_fc_pkt(port, ndlp->nlp_DID, cmd_size, in emlxs_issue_auth_reject() 1426 uint32_t cmd_size, in emlxs_prep_els_fc_pkt() argument 1434 if (!(pkt = emlxs_pkt_alloc(port, cmd_size, rsp_size, in emlxs_prep_els_fc_pkt() 1485 uint32_t cmd_size; in emlxs_issue_auth_negotiate() local [all …]
|
/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/ |
H A D | sbd_scsi.c | 1973 uint32_t cmd_size, n; in sbd_handle_mode_sense() local 1990 cmd_size = cdb[4]; in sbd_handle_mode_sense() 1994 cmd_size = READ_SCSI16(&cdb[7], uint32_t); in sbd_handle_mode_sense() 2114 cmd_size, n); in sbd_handle_mode_sense() 2250 uint32_t cmd_size; in sbd_handle_identifying_info() local 2257 cmd_size = READ_SCSI32(&cdb[6], uint32_t); in sbd_handle_identifying_info() 2261 if (cmd_size < 4) { in sbd_handle_identifying_info() 2303 cmd_size, xfer_size); in sbd_handle_identifying_info() 2853 uint16_t cmd_size; in sbd_handle_inquiry() local 2877 cmd_size = (((uint16_t)cdbp[3]) << 8) | cdbp[4]; in sbd_handle_inquiry() [all …]
|
/illumos-gate/usr/src/uts/common/io/1394/ |
H A D | h1394.c | 120 uint_t cmd_size; in h1394_attach() local 187 cmd_size = sizeof (cmd1394_cmd_t) + sizeof (s1394_cmd_priv_t) + in h1394_attach() 190 hal->hal_kmem_cachep = kmem_cache_create(buf, cmd_size, 8, NULL, NULL, in h1394_attach()
|
H A D | s1394_asynch.c | 68 uint_t cmd_size; in s1394_alloc_cmd() local 90 cmd_size = sizeof (cmd1394_cmd_t) + in s1394_alloc_cmd() 92 bzero((void *)*cmdp, cmd_size); in s1394_alloc_cmd()
|
/illumos-gate/usr/src/uts/i86pc/io/ioat/ |
H A D | ioat_chan.c | 159 size_t cmd_size; in ioat_channel_alloc() local 229 cmd_size = sizeof (struct dcopy_cmd_s) + in ioat_channel_alloc() 234 channel->ic_cmd_cache = kmem_cache_create(chanstr, cmd_size, 64, in ioat_channel_alloc()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_xioctl.c | 10189 uint32_t pkt_size, pld_byte_cnt, cmd_size, *long_ptr; in ql_els_passthru() local 10292 cmd_size = cmd->RequestLen - sizeof (EXT_ELS_PT_REQ); in ql_els_passthru() 10293 pld_byte_cnt = cmd_size < cmd->ResponseLen ? cmd->ResponseLen : in ql_els_passthru() 10294 cmd_size; in ql_els_passthru() 10323 (uint8_t *)dma_mem->bp, cmd_size, DDI_DEV_AUTOINCR); in ql_els_passthru() 10326 (void) ddi_dma_sync(dma_mem->dma_handle, 0, cmd_size, in ql_els_passthru() 10358 pkt->els.xmt_payld_data_bcnt = LE_32(cmd_size); in ql_els_passthru() 10367 *long_ptr++ = LE_32(cmd_size); in ql_els_passthru() 10423 pkt->ms.cmd_byte_count = LE_32(cmd_size); in ql_els_passthru() 10424 pkt->ms.dseg[0].length = LE_32(cmd_size); in ql_els_passthru()
|
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/emlxs/ |
H A D | emlxs_extern.h | 843 uint32_t cmd_size, uint8_t *rsp_buf,
|
/illumos-gate/usr/src/tools/smatch/src/smatch_data/ |
H A D | kernel.implicit_dependencies.no_structs | 405 …ic, (struct request_queue)->mq_sysfs_init_done, (struct request_queue)->cmd_size, (struct request_…
|