Home
last modified time | relevance | path

Searched refs:pwrk (Results 1 – 10 of 10) sorted by relevance

/titanic_50/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_ds.c48 struct pmcwork *pwrk; in pmcs_get_dev_state() local
64 pwrk = pmcs_gwork(pwp, PMCS_TAG_TYPE_WAIT, phyp); in pmcs_get_dev_state()
65 if (pwrk == NULL) { in pmcs_get_dev_state()
69 pwrk->arg = msg; in pmcs_get_dev_state()
70 pwrk->dtype = phyp->dtype; in pmcs_get_dev_state()
73 pmcs_pwork(pwp, pwrk); in pmcs_get_dev_state()
78 htag = pwrk->htag; in pmcs_get_dev_state()
81 msg[1] = LE_32(pwrk->htag); in pmcs_get_dev_state()
89 pmcs_pwork(pwp, pwrk); in pmcs_get_dev_state()
94 pwrk->state = PMCS_WORK_STATE_ONCHIP; in pmcs_get_dev_state()
[all …]
H A Dpmcs_scsa.c633 pmcwork_t *pwrk; in pmcs_scsa_abort() local
683 pwrk = pmcs_tag2wp(pwp, sp->cmd_tag, B_FALSE); in pmcs_scsa_abort()
684 if (pwrk && pwrk->arg == sp) { in pmcs_scsa_abort()
685 tag = pwrk->htag; in pmcs_scsa_abort()
686 pptr = pwrk->phy; in pmcs_scsa_abort()
687 pwrk->timer = 0; /* we don't time this here */ in pmcs_scsa_abort()
688 ASSERT(pwrk->state == PMCS_WORK_STATE_ONCHIP); in pmcs_scsa_abort()
689 mutex_exit(&pwrk->lock); in pmcs_scsa_abort()
717 if (pwrk) { in pmcs_scsa_abort()
718 mutex_exit(&pwrk->lock); in pmcs_scsa_abort()
[all …]
H A Dpmcs_intr.c104 pmcs_complete_work(pmcs_hw_t *pwp, pmcwork_t *pwrk, uint32_t *iomb, size_t amt) in pmcs_complete_work() argument
108 pwp->ltags[pwp->lti++] = pwrk->htag; in pmcs_complete_work()
110 pwrk->htag |= PMCS_TAG_DONE; in pmcs_complete_work()
115 if (pwrk->state != PMCS_WORK_STATE_TIMED_OUT) { in pmcs_complete_work()
116 pwrk->state = PMCS_WORK_STATE_INTR; in pmcs_complete_work()
117 pwrk->onwire = 0; in pmcs_complete_work()
120 pmcs_complete_work_impl(pwp, pwrk, iomb, amt); in pmcs_complete_work()
166 pmcwork_t *pwrk; in pmcs_process_io_completion() local
170 pwrk = pmcs_tag2wp(pwp, htag, B_FALSE); in pmcs_process_io_completion()
171 if (pwrk == NULL) { in pmcs_process_io_completion()
[all …]
H A Dpmcs_subr.c520 struct pmcwork *pwrk; in pmcs_echo_test() local
539 pwrk = pmcs_gwork(pwp, PMCS_TAG_TYPE_WAIT, NULL); in pmcs_echo_test()
540 if (pwrk == NULL) { in pmcs_echo_test()
551 pmcs_pwork(pwp, pwrk); in pmcs_echo_test()
566 msg[1] = LE_32(pwrk->htag); in pmcs_echo_test()
571 pwrk->state = PMCS_WORK_STATE_ONCHIP; in pmcs_echo_test()
577 hrtime_t, echo_start, uint32_t, pwrk->htag); in pmcs_echo_test()
586 WAIT_FOR(pwrk, 250, result); in pmcs_echo_test()
587 pmcs_pwork(pwp, pwrk); in pmcs_echo_test()
627 struct pmcwork *pwrk; in pmcs_start_phy() local
[all …]
H A Dpmcs_attach.c931 pmcwork_t *pwrk = &pwp->work[i]; in pmcs_attach() local
932 mutex_init(&pwrk->lock, NULL, MUTEX_DRIVER, in pmcs_attach()
934 cv_init(&pwrk->sleep_cv, NULL, CV_DRIVER, NULL); in pmcs_attach()
935 STAILQ_INSERT_TAIL(&pwp->wf, pwrk, next); in pmcs_attach()
1593 pmcwork_t *pwrk = &pwp->work[i]; in pmcs_unattach() local
1594 mutex_destroy(&pwrk->lock); in pmcs_unattach()
1595 cv_destroy(&pwrk->sleep_cv); in pmcs_unattach()
2018 pmcwork_t *pwrk; in pmcs_check_commands() local
2023 for (pwrk = pwp->work; pwrk < &pwp->work[pwp->max_cmd]; pwrk++) { in pmcs_check_commands()
2024 mutex_enter(&pwrk->lock); in pmcs_check_commands()
[all …]
H A Dpmcs_sata.c624 struct pmcwork *pwrk; in pmcs_run_sata_cmd() local
629 pwrk = pmcs_gwork(pwp, PMCS_TAG_TYPE_WAIT, pptr); in pmcs_run_sata_cmd()
630 if (pwrk == NULL) { in pmcs_run_sata_cmd()
636 htag = pwrk->htag; in pmcs_run_sata_cmd()
637 pwrk->arg = msg; in pmcs_run_sata_cmd()
638 pwrk->dtype = SATA; in pmcs_run_sata_cmd()
639 msg[1] = LE_32(pwrk->htag); in pmcs_run_sata_cmd()
669 pmcs_pwork(pwp, pwrk); in pmcs_run_sata_cmd()
673 pwrk->state = PMCS_WORK_STATE_ONCHIP; in pmcs_run_sata_cmd()
677 WAIT_FOR(pwrk, 1000, result); in pmcs_run_sata_cmd()
[all …]
H A Dpmcs_nvram.c331 pmcwork_t *pwrk; in pmcs_flash_chunk() local
347 pwrk = pmcs_gwork(pwp, PMCS_TAG_TYPE_WAIT, NULL); in pmcs_flash_chunk()
348 if (pwrk == NULL) { in pmcs_flash_chunk()
351 pwrk->arg = msg; in pmcs_flash_chunk()
354 msg[1] = LE_32(pwrk->htag); in pmcs_flash_chunk()
377 pmcs_pwork(pwp, pwrk); in pmcs_flash_chunk()
384 pwrk->state = PMCS_WORK_STATE_ONCHIP; in pmcs_flash_chunk()
386 WAIT_FOR(pwrk, PMCS_FLASH_WAIT_TIME, result); in pmcs_flash_chunk()
387 pmcs_pwork(pwp, pwrk); in pmcs_flash_chunk()
/titanic_50/usr/src/uts/common/sys/scsi/adapters/pmcs/
H A Dpmcs_proto.h297 void pmcs_complete_work_impl(pmcs_hw_t *pwp, pmcwork_t *pwrk, uint32_t *iomb,
306 void pmcs_start_ssp_event_recovery(pmcs_hw_t *pwp, pmcwork_t *pwrk,
H A Dpmcs.h213 pmcwork_t *pwrk; member
/titanic_50/usr/src/cmd/mdb/common/modules/pmcs/
H A Dpmcs.c541 if (mdb_vread(&work, sizeof (pmcwork_t), (uintptr_t)ccb.pwrk) in display_completion_queue()