Lines Matching defs:cpqary3p

37 	cpqary3_t		*cpqary3p;
44 cpqary3p = (void *)per_ctlr;
45 ctp = (CfgTable_t *)cpqary3p->ct;
46 replyq_ptr = (cpqary3_drvr_replyq_t *)cpqary3p->drvr_replyq;
48 if (CPQARY3_FAILURE == cpqary3p->check_ctlr_intr(cpqary3p)) {
49 if (cpqary3p->heartbeat ==
50 DDI_GET32(cpqary3p, &ctp->HeartBeat)) {
51 if (0x2 & ddi_get32(cpqary3p->odr_handle,
52 (uint32_t *)cpqary3p->odr)) {
53 spr0 = ddi_get32(cpqary3p->spr0_handle,
54 (uint32_t *)cpqary3p->spr0);
58 cpqary3p->hba_name, spr0);
61 ddi_put32(cpqary3p->odr_cl_handle,
62 (uint32_t *)cpqary3p->odr_cl, 0x2);
63 cpqary3_intr_onoff(cpqary3p,
65 if (cpqary3p->host_support & 0x4) {
66 cpqary3_lockup_intr_onoff(cpqary3p,
69 cpqary3p->controller_lockup = CPQARY3_TRUE;
88 if (!(cpqary3p->bddef->bd_flags & SA_BD_SAS)) {
89 while ((tag = ddi_get32(cpqary3p->opq_handle,
90 (uint32_t *)cpqary3p->opq)) != 0xFFFFFFFF) {
110 doorbell_status = ddi_get32(cpqary3p->odr_handle,
111 (uint32_t *)cpqary3p->odr);
113 ddi_put32(cpqary3p->odr_cl_handle,
114 (uint32_t *)cpqary3p->odr_cl,
115 (ddi_get32(cpqary3p->odr_cl_handle,
116 (uint32_t *)cpqary3p->odr_cl) | 0x1));
117 doorbell_status = ddi_get32(cpqary3p->odr_handle,
118 (uint32_t *)cpqary3p->odr);
133 mutex_enter(&cpqary3p->hw_mutex);
135 if (cpqary3p->swintr_flag == CPQARY3_TRUE) {
139 cpqary3p->swintr_flag = CPQARY3_TRUE;
142 mutex_exit(&cpqary3p->hw_mutex);
145 ddi_trigger_softintr(cpqary3p->cpqary3_softintr_id);
165 cpqary3_t *cpqary3p;
167 cpqary3p = (void *)per_ctlr;
168 if (!cpqary3p) {
178 mutex_enter(&cpqary3p->hw_mutex);
179 if (CPQARY3_TRUE != cpqary3p->swintr_flag) {
180 mutex_exit(&cpqary3p->hw_mutex);
184 cpqary3p->swintr_flag = CPQARY3_FALSE;
187 mutex_exit(&cpqary3p->hw_mutex);
188 (void) cpqary3_retrieve(cpqary3p);