Home
last modified time | relevance | path

Searched refs:cpqary3_cmdpvtp (Results 1 – 6 of 6) sorted by relevance

/titanic_41/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_scsi.c72 cpqary3_build_cmdlist(cpqary3_cmdpvt_t *cpqary3_cmdpvtp, uint32_t tid) in cpqary3_build_cmdlist() argument
80 RETURN_FAILURE_IF_NULL(cpqary3_cmdpvtp); in cpqary3_build_cmdlist()
82 if (NULL == (cpqary3p = cpqary3_cmdpvtp->ctlr)) in cpqary3_build_cmdlist()
85 bfp = (struct buf *)cpqary3_cmdpvtp->pvt_pkt->bf; in cpqary3_build_cmdlist()
93 cmdlistp = cpqary3_cmdpvtp->cmdlist_memaddr; in cpqary3_build_cmdlist()
96 cmdlistp->Header.SGList = cpqary3_cmdpvtp->pvt_pkt->cmd_cookiecnt; in cpqary3_build_cmdlist()
97 cmdlistp->Header.SGTotal = cpqary3_cmdpvtp->pvt_pkt->cmd_cookiecnt; in cpqary3_build_cmdlist()
115 cmdlistp->Request.CDBLen = cpqary3_cmdpvtp->pvt_pkt->cdb_len; in cpqary3_build_cmdlist()
117 bcopy((caddr_t)cpqary3_cmdpvtp->pvt_pkt->scsi_cmd_pkt->pkt_cdbp, in cpqary3_build_cmdlist()
118 (caddr_t)cmdlistp->Request.CDB, cpqary3_cmdpvtp->pvt_pkt->cdb_len); in cpqary3_build_cmdlist()
[all …]
H A Dcpqary3_util.c595 cpqary3_cmdpvt_t *cpqary3_cmdpvtp; in cpqary3_detect_target_geometry() local
610 cpqary3_cmdpvtp = cpqary3_synccmd_alloc(ctlr, sizeof (IdLogDrive)); in cpqary3_detect_target_geometry()
611 if (cpqary3_cmdpvtp == NULL) in cpqary3_detect_target_geometry()
614 cmdlistp = cpqary3_cmdpvtp->cmdlist_memaddr; in cpqary3_detect_target_geometry()
615 idlogdrive = (IdLogDrive *)cpqary3_cmdpvtp->driverdata->sg; in cpqary3_detect_target_geometry()
688 cpqary3_cmdpvtp->complete = cpqary3_synccmd_complete; in cpqary3_detect_target_geometry()
692 if (cpqary3_synccmd_send(ctlr, cpqary3_cmdpvtp, 90000, in cpqary3_detect_target_geometry()
695 cpqary3_synccmd_free(ctlr, cpqary3_cmdpvtp); in cpqary3_detect_target_geometry()
698 if ((cpqary3_cmdpvtp-> in cpqary3_detect_target_geometry()
701 (cpqary3_cmdpvtp->errorinfop->CommandStatus != 2)) { in cpqary3_detect_target_geometry()
[all …]
H A Dcpqary3_transport.c964 cpqary3_cmdpvt_t *cpqary3_cmdpvtp; in cpqary3_handle_flag_nointr() local
988 cpqary3_cmdpvtp = &ctlr->cmdmemlistp->pool[i]; in cpqary3_handle_flag_nointr()
989 ASSERT(cpqary3_cmdpvtp != NULL); in cpqary3_handle_flag_nointr()
991 if ((tag != cpqary3_cmdpvtp->tag.tag_value) && in cpqary3_handle_flag_nointr()
992 (cpqary3_cmdpvtp->occupied == CPQARY3_OCCUPIED)) { in cpqary3_handle_flag_nointr()
994 if ((cpqary3_cmdpvtp->cmdlist_memaddr-> in cpqary3_handle_flag_nointr()
997 (cpqary3_cmdpvtp->cmdpvt_flag == in cpqary3_handle_flag_nointr()
1002 if (cpqary3_cmdpvtp->cmdpvt_flag == in cpqary3_handle_flag_nointr()
1031 cpqary3_cmdpvtp = in cpqary3_handle_flag_nointr()
1034 cpqary3_cmdpvtp->cmdlist_memaddr-> in cpqary3_handle_flag_nointr()
[all …]
H A Dcpqary3_talk2ctlr.c132 cpqary3_cmdpvt_t *cpqary3_cmdpvtp; in cpqary3_retrieve() local
160 cpqary3_cmdpvtp = &cpqary3p->cmdmemlistp->pool[ in cpqary3_retrieve()
162 cpqary3_cmdpvtp->cmdlist_memaddr-> in cpqary3_retrieve()
165 cpqary3_cmdpvtp->complete(cpqary3_cmdpvtp); in cpqary3_retrieve()
205 cpqary3_cmdpvt_t *cpqary3_cmdpvtp; in cpqary3_poll_retrieve() local
219 cpqary3_cmdpvtp = &cpqary3p->cmdmemlistp->pool[ in cpqary3_poll_retrieve()
221 cpqary3_cmdpvtp->cmdlist_memaddr-> in cpqary3_poll_retrieve()
223 temp_tag = cpqary3_cmdpvtp->tag.tag_value; in cpqary3_poll_retrieve()
227 cpqary3_cmdpvtp->complete(cpqary3_cmdpvtp); in cpqary3_poll_retrieve()
242 cpqary3_cmdpvtp = &cpqary3p->cmdmemlistp->pool[ in cpqary3_poll_retrieve()
[all …]
H A Dcpqary3_noe.c541 cpqary3_noe_complete(cpqary3_cmdpvt_t *cpqary3_cmdpvtp) in cpqary3_noe_complete() argument
543 ASSERT(cpqary3_cmdpvtp != NULL); in cpqary3_noe_complete()
545 if (CPQARY3_TIMEOUT == cpqary3_cmdpvtp->cmdpvt_flag) { in cpqary3_noe_complete()
546 cpqary3_cmdlist_release(cpqary3_cmdpvtp, CPQARY3_NO_MUTEX); in cpqary3_noe_complete()
550 if (cpqary3_cmdpvtp->cmdlist_memaddr->Request.CDB[6] == in cpqary3_noe_complete()
552 cv_signal(&cpqary3_cmdpvtp->ctlr->cv_noe_wait); in cpqary3_noe_complete()
553 cpqary3_cmdlist_release(cpqary3_cmdpvtp, CPQARY3_NO_MUTEX); in cpqary3_noe_complete()
555 cpqary3_NOE_handler(cpqary3_cmdpvtp); in cpqary3_noe_complete()
H A Dcpqary3.h484 void cpqary3_noe_complete(cpqary3_cmdpvt_t *cpqary3_cmdpvtp);
489 uint8_t cpqary3_build_cmdlist(cpqary3_cmdpvt_t *cpqary3_cmdpvtp, uint32_t tid);