Home
last modified time | relevance | path

Searched refs:smcm (Results 1 – 7 of 7) sorted by relevance

/titanic_44/usr/src/uts/common/io/scsi/adapters/smrt/
H A Dsmrt_sata.c37 smrt_command_t *smcm; in smrt_sata_determine_wwn() local
45 if ((smcm = smrt_command_alloc(smrt, SMRT_CMDTYPE_INTERNAL, in smrt_sata_determine_wwn()
46 KM_NOSLEEP)) == NULL || smrt_command_attach_internal(smrt, smcm, in smrt_sata_determine_wwn()
48 if (smcm != NULL) { in smrt_sata_determine_wwn()
49 smrt_command_free(smcm); in smrt_sata_determine_wwn()
54 smcm->smcm_va_cmd->Header.LUN.PhysDev = *addr; in smrt_sata_determine_wwn()
55 smcm->smcm_va_cmd->Request.CDBLen = CDB_GROUP0; in smrt_sata_determine_wwn()
56 smcm->smcm_va_cmd->Request.Type.Type = CISS_TYPE_CMD; in smrt_sata_determine_wwn()
57 smcm->smcm_va_cmd->Request.Type.Attribute = CISS_ATTR_SIMPLE; in smrt_sata_determine_wwn()
58 smcm->smcm_va_cmd->Request.Type.Direction = CISS_XFER_READ; in smrt_sata_determine_wwn()
[all …]
H A Dsmrt_commands.c155 smrt_command_t *smcm; in smrt_command_alloc_impl() local
159 if ((smcm = kmem_zalloc(sizeof (*smcm), kmflags)) == NULL) { in smrt_command_alloc_impl()
163 smcm->smcm_ctlr = smrt; in smrt_command_alloc_impl()
164 smcm->smcm_type = smrt_check_command_type(type); in smrt_command_alloc_impl()
177 if (smrt_contig_alloc(smrt, &smcm->smcm_contig, contig_size, in smrt_command_alloc_impl()
178 kmflags, (void **)&smcm->smcm_va_cmd, &smcm->smcm_pa_cmd) != in smrt_command_alloc_impl()
180 kmem_free(smcm, sizeof (*smcm)); in smrt_command_alloc_impl()
184 smcm->smcm_va_err = (void *)((caddr_t)smcm->smcm_va_cmd + in smrt_command_alloc_impl()
186 smcm->smcm_pa_err = smcm->smcm_pa_cmd + errorinfo_offset; in smrt_command_alloc_impl()
191 VERIFY0(smcm->smcm_pa_cmd & 0x1f); in smrt_command_alloc_impl()
[all …]
H A Dsmrt_ciss.c206 smrt_write_message_common(smrt_command_t *smcm, uint8_t type, int timeout_secs) in smrt_write_message_common() argument
218 smcm->smcm_va_cmd->Request.Type.Type = CISS_TYPE_MSG; in smrt_write_message_common()
219 smcm->smcm_va_cmd->Request.Type.Attribute = CISS_ATTR_HEADOFQUEUE; in smrt_write_message_common()
220 smcm->smcm_va_cmd->Request.Type.Direction = CISS_XFER_NONE; in smrt_write_message_common()
221 smcm->smcm_va_cmd->Request.Timeout = LE_16(timeout_secs); in smrt_write_message_common()
222 smcm->smcm_va_cmd->Request.CDBLen = CISS_CDBLEN; in smrt_write_message_common()
223 smcm->smcm_va_cmd->Request.CDB[0] = type; in smrt_write_message_common()
227 smrt_write_message_abort_one(smrt_command_t *smcm, uint32_t tag) in smrt_write_message_abort_one() argument
235 smrt_write_lun_addr_phys(&smcm->smcm_va_cmd->Header.LUN, in smrt_write_message_abort_one()
238 smrt_write_message_common(smcm, CISS_MSG_ABORT, 0); in smrt_write_message_abort_one()
[all …]
H A Dsmrt_hba.c298 smrt_command_t *smcm; in smrt_tran_setup_pkt() local
327 if ((smcm = smrt_command_alloc(smrt, SMRT_CMDTYPE_SCSA, in smrt_tran_setup_pkt()
331 smcm->smcm_scsa = smcms; in smrt_tran_setup_pkt()
332 smcms->smcms_command = smcm; in smrt_tran_setup_pkt()
335 pkt->pkt_cdbp = &smcm->smcm_va_cmd->Request.CDB[0]; in smrt_tran_setup_pkt()
336 smcm->smcm_va_cmd->Request.CDBLen = pkt->pkt_cdblen; in smrt_tran_setup_pkt()
338 smcm->smcm_target = smtg; in smrt_tran_setup_pkt()
348 smrt_command_t *smcm = smcms->smcms_command; in smrt_tran_teardown_pkt() local
350 smrt_command_free(smcm); in smrt_tran_teardown_pkt()
396 smrt_fake_report_lun(smrt_command_t *smcm, struct scsi_pkt *pkt) in smrt_fake_report_lun() argument
[all …]
H A Dsmrt_physical.c114 smrt_command_t *smcm = NULL; in smrt_phys_identify() local
122 if ((smcm = smrt_command_alloc(smrt, SMRT_CMDTYPE_INTERNAL, in smrt_phys_identify()
123 KM_NOSLEEP)) == NULL || smrt_command_attach_internal(smrt, smcm, in smrt_phys_identify()
129 sipd = smcm->smcm_internal->smcmi_va; in smrt_phys_identify()
131 smrt_write_controller_lun_addr(&smcm->smcm_va_cmd->Header.LUN); in smrt_phys_identify()
133 smcm->smcm_va_cmd->Request.CDBLen = sizeof (sipdr); in smrt_phys_identify()
134 smcm->smcm_va_cmd->Request.Timeout = LE_16(timeout); in smrt_phys_identify()
135 smcm->smcm_va_cmd->Request.Type.Type = CISS_TYPE_CMD; in smrt_phys_identify()
136 smcm->smcm_va_cmd->Request.Type.Attribute = CISS_ATTR_SIMPLE; in smrt_phys_identify()
137 smcm->smcm_va_cmd->Request.Type.Direction = CISS_XFER_READ; in smrt_phys_identify()
[all …]
H A Dsmrt_ciss_simple.c90 smrt_command_t *smcm; in smrt_retrieve_simple() local
92 if ((smcm = smrt_lookup_inflight(smrt, tag)) == NULL) { in smrt_retrieve_simple()
98 avl_remove(&smrt->smrt_inflight, smcm); in smrt_retrieve_simple()
99 smcm->smcm_status &= ~SMRT_CMD_STATUS_INFLIGHT; in smrt_retrieve_simple()
101 smcm->smcm_status |= SMRT_CMD_STATUS_ERROR; in smrt_retrieve_simple()
103 smcm->smcm_time_complete = gethrtime(); in smrt_retrieve_simple()
108 list_insert_tail(&smrt->smrt_finishq, smcm); in smrt_retrieve_simple()
117 smrt_submit_simple(smrt_t *smrt, smrt_command_t *smcm) in smrt_submit_simple() argument
119 smrt_put32(smrt, CISS_I2O_INBOUND_POST_Q, smcm->smcm_pa_cmd); in smrt_submit_simple()
131 smrt_preinit_command_simple(smrt_t *smrt, smrt_command_t *smcm) in smrt_preinit_command_simple() argument
[all …]
H A Dsmrt_logvol.c178 smrt_command_t *smcm; in smrt_logvol_discover() local
187 if ((smcm = smrt_command_alloc(smrt, SMRT_CMDTYPE_INTERNAL, in smrt_logvol_discover()
188 KM_NOSLEEP)) == NULL || smrt_command_attach_internal(smrt, smcm, in smrt_logvol_discover()
195 smrll = smcm->smcm_internal->smcmi_va; in smrt_logvol_discover()
197 smrt_write_controller_lun_addr(&smcm->smcm_va_cmd->Header.LUN); in smrt_logvol_discover()
199 smcm->smcm_va_cmd->Request.CDBLen = sizeof (smrllr); in smrt_logvol_discover()
200 smcm->smcm_va_cmd->Request.Timeout = LE_16(timeout); in smrt_logvol_discover()
201 smcm->smcm_va_cmd->Request.Type.Type = CISS_TYPE_CMD; in smrt_logvol_discover()
202 smcm->smcm_va_cmd->Request.Type.Attribute = CISS_ATTR_SIMPLE; in smrt_logvol_discover()
203 smcm->smcm_va_cmd->Request.Type.Direction = CISS_XFER_READ; in smrt_logvol_discover()
[all …]