Lines Matching defs:cportinfo
994 sata_cport_info_t *cportinfo;
1025 cportinfo = SATA_CPORT_INFO(sata_hba_inst, ncport);
1026 if (cportinfo->cport_dev_type != SATA_DTYPE_PMULT) {
1027 sdinfo = SATA_CPORTINFO_DRV_INFO(cportinfo);
1046 mutex_enter(&cportinfo->cport_mutex);
1047 pminfo = SATA_CPORTINFO_PMULT_INFO(cportinfo);
1053 mutex_exit(&cportinfo->cport_mutex);
1076 mutex_exit(&cportinfo->
1082 mutex_exit(&cportinfo->cport_mutex);
1111 cportinfo = SATA_CPORT_INFO(sata_hba_inst, ncport);
1112 if (cportinfo->cport_dev_type != SATA_DTYPE_PMULT) {
1114 cportinfo->cport_devp.cport_sata_drive;
1121 mutex_destroy(&cportinfo->cport_mutex);
1122 kmem_free(cportinfo,
1319 sata_cport_info_t *cportinfo;
1377 cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
1380 if (cportinfo->cport_event_flags & SATA_EVNT_LOCK_PORT_BUSY) {
1390 cportinfo->cport_event_flags |= SATA_APCTL_LOCK_PORT_BUSY;
1537 cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
1541 if (cportinfo->cport_event_flags & SATA_EVNT_LOCK_PORT_BUSY) {
1550 cportinfo->cport_event_flags |= SATA_APCTL_LOCK_PORT_BUSY;
1681 cportinfo->cport_event_flags &= ~SATA_APCTL_LOCK_PORT_BUSY;
10425 sata_cport_info_t *cportinfo;
10439 cportinfo = kmem_zalloc(sizeof (sata_cport_info_t), KM_SLEEP);
10440 ASSERT(cportinfo != NULL);
10441 mutex_init(&cportinfo->cport_mutex, NULL, MUTEX_DRIVER, NULL);
10443 mutex_enter(&cportinfo->cport_mutex);
10445 cportinfo->cport_addr.cport = ncport;
10446 cportinfo->cport_addr.pmport = 0;
10447 cportinfo->cport_addr.qual = SATA_ADDR_CPORT;
10448 cportinfo->cport_state &= ~SATA_PORT_STATE_CLEAR_MASK;
10449 cportinfo->cport_state |= SATA_STATE_PROBING;
10450 SATA_CPORT_INFO(sata_hba_inst, ncport) = cportinfo;
10456 mutex_exit(&cportinfo->cport_mutex);
10479 mutex_enter(&cportinfo->cport_mutex);
10480 cportinfo->cport_scr = sata_device.satadev_scr;
10483 cportinfo->cport_state = SATA_PSTATE_FAILED;
10484 mutex_exit(&cportinfo->cport_mutex);
10487 cportinfo->cport_state &= ~SATA_STATE_PROBING;
10488 cportinfo->cport_state |= SATA_STATE_PROBED;
10489 cportinfo->cport_dev_type = sata_device.satadev_type;
10491 cportinfo->cport_state |= SATA_STATE_READY;
10492 if (cportinfo->cport_dev_type == SATA_DTYPE_NONE) {
10493 mutex_exit(&cportinfo->cport_mutex);
10496 if (cportinfo->cport_dev_type != SATA_DTYPE_PMULT) {
10501 if (SATA_CPORTINFO_DRV_INFO(cportinfo) == NULL) {
10502 mutex_exit(&cportinfo->cport_mutex);
10503 SATA_CPORTINFO_DRV_INFO(cportinfo) =
10506 mutex_enter(&cportinfo->cport_mutex);
10508 drive = SATA_CPORTINFO_DRV_INFO(cportinfo);
10509 drive->satadrv_addr = cportinfo->cport_addr;
10511 drive->satadrv_type = cportinfo->cport_dev_type;
10514 mutex_exit(&cportinfo->cport_mutex);
10531 mutex_exit(&cportinfo->cport_mutex);
10663 sata_cport_info_t *cportinfo;
10673 cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
10674 ASSERT(cportinfo->cport_dev_type != SATA_DTYPE_NONE);
10697 mutex_enter(&cportinfo->cport_mutex);
10699 SATA_CPORTINFO_DRV_INFO(cportinfo));
10707 cportinfo->cport_dev_type = SATA_DTYPE_UNKNOWN;
10708 mutex_exit(&cportinfo->cport_mutex);
10711 cportinfo->cport_dev_type = sata_device->satadev_type;
10712 cportinfo->cport_tgtnode_clean = B_TRUE;
10713 mutex_exit(&cportinfo->cport_mutex);
10721 SATA_CPORTINFO_DRV_INFO(cportinfo)) != SATA_SUCCESS) {
10724 SATA_CPORTINFO_DRV_INFO(cportinfo));
10743 mutex_enter(&cportinfo->cport_mutex);
10744 (SATA_CPORTINFO_DRV_INFO(cportinfo))->
10746 mutex_exit(&cportinfo->cport_mutex);
10753 mutex_enter(&cportinfo->cport_mutex);
10755 ASSERT(cportinfo->cport_dev_type == SATA_DTYPE_PMULT);
10757 pminfo = SATA_CPORTINFO_PMULT_INFO(cportinfo);
10759 mutex_exit(&cportinfo->cport_mutex);
11187 sata_cport_info_t *cportinfo;
11207 cportinfo = SATA_CPORT_INFO(sata_hba_inst,
11214 if (cportinfo->cport_dev_type == SATA_DTYPE_PMULT)
11218 osdinfo = SATA_CPORTINFO_DRV_INFO(cportinfo);
11224 prev_device_type = cportinfo->cport_dev_type;
11235 mutex_enter(&cportinfo->cport_mutex);
11236 cportinfo->cport_state &= ~SATA_PORT_STATE_CLEAR_MASK;
11237 cportinfo->cport_state |= SATA_STATE_PROBING;
11238 mutex_exit(&cportinfo->cport_mutex);
11243 mutex_enter(&cportinfo->cport_mutex);
11245 cportinfo->cport_state = SATA_PSTATE_FAILED;
11246 mutex_exit(&cportinfo->cport_mutex);
11249 cportinfo->cport_addr.cport));
11257 cportinfo->cport_state &= ~SATA_STATE_PROBING;
11263 if ((cportinfo->cport_state &
11265 (cportinfo->cport_scr.sstatus & SATA_PORT_DEVLINK_UP_MASK) !=
11272 sdinfo = SATA_CPORTINFO_DRV_INFO(cportinfo);
11273 SATA_CPORTINFO_DRV_INFO(cportinfo) = NULL;
11275 cportinfo->cport_dev_type = SATA_DTYPE_NONE;
11276 mutex_exit(&cportinfo->cport_mutex);
11282 cportinfo->cport_state |= SATA_STATE_READY;
11283 cportinfo->cport_state |= SATA_STATE_PROBED;
11285 cportinfo->cport_dev_type = sata_device->satadev_type;
11286 sdinfo = SATA_CPORTINFO_DRV_INFO(cportinfo);
11299 SATA_CPORTINFO_DRV_INFO(cportinfo) = NULL;
11300 cportinfo->cport_dev_type = SATA_DTYPE_NONE;
11305 "from port %d", cportinfo->cport_addr.cport);
11307 mutex_exit(&cportinfo->cport_mutex);
11320 mutex_exit(&cportinfo->cport_mutex);
11323 mutex_enter(&cportinfo->cport_mutex);
11328 if (cportinfo->cport_state & SATA_STATE_READY) {
11329 SATA_CPORTINFO_DRV_INFO(cportinfo) = sdinfo;
11330 sdinfo->satadrv_addr = cportinfo->cport_addr;
11339 mutex_exit(&cportinfo->cport_mutex);
11350 cportinfo->cport_dev_type = SATA_DTYPE_UNKNOWN;
11354 SATA_CPORTINFO_DRV_INFO(cportinfo) = NULL;
11359 "from port %d", cportinfo->cport_addr.cport);
11364 cportinfo->cport_addr.cport);
11366 mutex_exit(&cportinfo->cport_mutex);
11371 mutex_enter(&cportinfo->cport_mutex);
11380 mutex_exit(&cportinfo->cport_mutex);
11383 mutex_exit(&cportinfo->cport_mutex);
11392 mutex_enter(&cportinfo->cport_mutex);
11402 mutex_exit(&cportinfo->cport_mutex);
11422 cportinfo->cport_dev_type = prev_device_type;
11429 cportinfo->cport_dev_type = SATA_DTYPE_NONE;
11430 SATA_CPORTINFO_DRV_INFO(cportinfo) = NULL;
11431 mutex_exit(&cportinfo->cport_mutex);
11434 mutex_exit(&cportinfo->cport_mutex);
11450 mutex_enter(&cportinfo->cport_mutex);
11451 if (SATA_CPORTINFO_DRV_INFO(cportinfo) != NULL) {
11462 cportinfo->cport_addr.cport);
11464 SATA_CPORTINFO_DRV_INFO(cportinfo)->
11468 mutex_exit(&cportinfo->cport_mutex);
11483 sata_cport_info_t *cportinfo;
11488 cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
11492 mutex_enter(&cportinfo->cport_mutex);
11493 cportinfo->cport_state &= ~SATA_PORT_STATE_CLEAR_MASK;
11494 cportinfo->cport_state |= SATA_STATE_PROBING;
11495 mutex_exit(&cportinfo->cport_mutex);
11500 mutex_enter(&cportinfo->cport_mutex);
11502 cportinfo->cport_state = SATA_PSTATE_FAILED;
11507 mutex_exit(&cportinfo->cport_mutex);
11516 cportinfo->cport_state &= ~SATA_STATE_PROBING;
11517 cportinfo->cport_state |= SATA_STATE_PROBED;
11523 if ((cportinfo->cport_state &
11525 (cportinfo->cport_scr.sstatus & SATA_PORT_DEVLINK_UP_MASK) !=
11528 cportinfo->cport_dev_type = SATA_DTYPE_NONE;
11529 mutex_exit(&cportinfo->cport_mutex);
11546 cportinfo->cport_dev_type = SATA_DTYPE_UNKNOWN;
11547 mutex_exit(&cportinfo->cport_mutex);
11565 mutex_exit(&cportinfo->cport_mutex);
11569 mutex_enter(&cportinfo->cport_mutex);
11582 mutex_exit(&cportinfo->cport_mutex);
11611 sata_cport_info_t *cportinfo = NULL;
11624 cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
11641 mutex_enter(&cportinfo->cport_mutex);
11642 if ((cportinfo->cport_state &
11644 (cportinfo->cport_scr.sstatus & SATA_PORT_DEVLINK_UP_MASK) !=
11646 mutex_exit(&cportinfo->cport_mutex);
11649 mutex_exit(&cportinfo->cport_mutex);
11699 if ((cportinfo->cport_state &
11701 (cportinfo->cport_scr.sstatus & SATA_PORT_DEVLINK_UP_MASK) !=
11703 (cportinfo->cport_dev_type != SATA_DTYPE_PMULT)) {
11708 cportinfo->cport_dev_type = SATA_DTYPE_UNKNOWN;
11713 mutex_exit(&cportinfo->cport_mutex);
11899 sata_cport_info_t *cportinfo = NULL;
11909 cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
11912 mutex_enter(&cportinfo->cport_mutex);
11915 if (SATA_CPORTINFO_PMULT_INFO(cportinfo) == NULL) {
11917 SATA_CPORTINFO_PMULT_INFO(cportinfo) =
11920 pmultinfo = SATA_CPORTINFO_PMULT_INFO(cportinfo);
11935 mutex_exit(&cportinfo->cport_mutex);
11938 mutex_enter(&cportinfo->cport_mutex);
11943 SATA_CPORTINFO_PMULT_INFO(cportinfo) = NULL;
11945 cportinfo->cport_state = SATA_PSTATE_FAILED;
11946 cportinfo->cport_dev_type = SATA_DTYPE_UNKNOWN;
11947 mutex_exit(&cportinfo->cport_mutex);
11964 mutex_exit(&cportinfo->cport_mutex);
11973 mutex_enter(&cportinfo->cport_mutex);
11991 cportinfo->cport_dev_type = SATA_DTYPE_PMULT;
11993 mutex_exit(&cportinfo->cport_mutex);
12005 sata_cport_info_t *cportinfo;
12015 cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
12018 mutex_enter(&cportinfo->cport_mutex);
12020 cportinfo->cport_dev_type = SATA_DTYPE_NONE;
12021 pmultinfo = SATA_CPORTINFO_PMULT_INFO(cportinfo);
12030 mutex_exit(&cportinfo->cport_mutex);
12087 mutex_enter(&cportinfo->cport_mutex);
12105 cportinfo->cport_devp.cport_sata_pmult = NULL;
12110 mutex_exit(&cportinfo->cport_mutex);
12291 sata_cport_info_t *cportinfo;
12302 cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
12304 if (cportinfo == NULL ||
12305 cportinfo->cport_dev_type == SATA_DTYPE_NONE)
12308 sdinfo = SATA_CPORTINFO_DRV_INFO(cportinfo);
12309 if (cportinfo->cport_dev_type == SATA_DTYPE_UNKNOWN &&
12315 if ((cportinfo->cport_dev_type &
12322 pmultinfo = SATA_CPORTINFO_PMULT_INFO(cportinfo);
14234 sata_cport_info_t *cportinfo;
14242 cportinfo = SATA_CPORT_INFO(sata_hba_inst,
14245 ASSERT(mutex_owned(&cportinfo->cport_mutex));
14246 cportinfo->cport_scr = sata_device->satadev_scr;
14249 cportinfo->cport_state &= ~(SATA_PSTATE_PWRON |
14251 cportinfo->cport_state |=
14450 sata_cport_info_t *cportinfo = NULL;
14483 cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
14490 mutex_enter(&cportinfo->cport_mutex);
14505 mutex_exit(&cportinfo->cport_mutex);
14510 pmultinfo = SATA_CPORTINFO_PMULT_INFO(cportinfo);
14523 mutex_exit(&cportinfo->cport_mutex);
14530 mutex_enter(&cportinfo->cport_mutex);
14535 cportinfo->cport_state &= ~SATA_STATE_READY;
14536 mutex_exit(&cportinfo->cport_mutex);
14545 mutex_enter(&cportinfo->cport_mutex);
14549 cportinfo->cport_state = SATA_PSTATE_FAILED;
14552 cportinfo->cport_state |= SATA_PSTATE_SHUTDOWN;
14554 mutex_exit(&cportinfo->cport_mutex);
14611 mutex_enter(&cportinfo->cport_mutex);
14624 mutex_exit(&cportinfo->cport_mutex);
14628 if (cportinfo->cport_dev_type == SATA_DTYPE_PMULT) {
14629 pmultinfo = SATA_CPORTINFO_PMULT_INFO(cportinfo);
14631 } else if (cportinfo->cport_dev_type != SATA_DTYPE_NONE) {
14632 sdinfo = SATA_CPORTINFO_DRV_INFO(cportinfo);
14635 cportinfo->cport_state &= ~SATA_STATE_READY;
14644 mutex_exit(&cportinfo->cport_mutex);
14647 mutex_enter(&cportinfo->cport_mutex);
14650 SATA_CPORTINFO_DRV_INFO(cportinfo) = NULL;
14651 cportinfo->cport_dev_type = SATA_DTYPE_NONE;
14655 mutex_exit(&cportinfo->cport_mutex);
14698 mutex_enter(&cportinfo->cport_mutex);
14703 cportinfo->cport_state = SATA_PSTATE_FAILED;
14706 cportinfo->cport_state |= SATA_PSTATE_SHUTDOWN;
14708 mutex_exit(&cportinfo->cport_mutex);
14950 sata_cport_info_t *cportinfo;
14963 cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
15026 cportinfo->cport_state =
15053 cportinfo->cport_state = 0;
15192 cportinfo-> cport_tgtnode_clean = B_TRUE;
15207 cportinfo-> cport_tgtnode_clean = B_TRUE;
15243 sata_cport_info_t *cportinfo;
15265 cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
15274 mutex_enter(&cportinfo->cport_mutex);
15277 pmultinfo = SATA_CPORTINFO_PMULT_INFO(cportinfo);
15293 mutex_exit(&cportinfo->cport_mutex);
15300 mutex_enter(&cportinfo->cport_mutex);
15305 cportinfo->cport_state &= ~SATA_STATE_READY;
15306 mutex_exit(&cportinfo->cport_mutex);
15315 mutex_enter(&cportinfo->cport_mutex);
15319 cportinfo->cport_state = SATA_PSTATE_FAILED;
15323 cportinfo->cport_state |= SATA_PSTATE_SHUTDOWN;
15325 mutex_exit(&cportinfo->cport_mutex);
15337 if (cportinfo->cport_dev_type != SATA_DTYPE_NONE) {
15339 if ((cportinfo->cport_dev_type &
15341 sdinfo = SATA_CPORTINFO_DRV_INFO(cportinfo);
15343 cportinfo->cport_state &= ~SATA_STATE_READY;
15402 SATA_CPORTINFO_DRV_INFO(cportinfo) = NULL;
15403 cportinfo->cport_dev_type = SATA_DTYPE_NONE;
15414 cportinfo->cport_state &= ~(SATA_STATE_PROBED |
15454 cportinfo->cport_state |= SATA_PSTATE_SHUTDOWN;
15489 sata_cport_info_t *cportinfo;
15501 cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
15520 if (cportinfo->cport_state & SATA_PSTATE_SHUTDOWN ||
15521 cportinfo->cport_dev_type == SATA_DTYPE_NONE)
15542 cportinfo->cport_state = SATA_PSTATE_FAILED;
15559 cportinfo->cport_state &= ~SATA_PSTATE_SHUTDOWN;
15564 * Port re-probing may change the cportinfo device type if device is
15591 cportinfo->cport_dev_type != SATA_DTYPE_NONE) {
15597 if (cportinfo->cport_dev_type != SATA_DTYPE_PMULT) {
17630 sata_cport_info_t *cportinfo;
17680 cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
17682 if (cportinfo == NULL || cportinfo->cport_state == 0)
17688 if (cportinfo->cport_dev_type != SATA_DTYPE_PMULT) {
17692 "event 0x%x", cportinfo->cport_dev_type,
17697 mutex_enter(&cportinfo->cport_mutex);
17699 mutex_exit(&cportinfo->cport_mutex);
17722 mutex_enter(&cportinfo->cport_mutex);
17729 mutex_exit(&cportinfo->cport_mutex);
17732 mutex_exit(&cportinfo->cport_mutex);
18120 sata_cport_info_t *cportinfo;
18148 cportinfo = SATA_CPORT_INFO(sata_hba_inst, ncport);
18150 if (cportinfo == NULL || cportinfo->cport_state == NULL)
18245 if (cportinfo->cport_dev_type == SATA_DTYPE_PMULT) {
18297 sata_cport_info_t *cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
18311 mutex_enter(&cportinfo->cport_mutex);
18360 mutex_exit(&cportinfo->cport_mutex);
18363 mutex_enter(&cportinfo->cport_mutex);
18366 cportinfo->cport_state = SATA_PSTATE_FAILED;
18367 mutex_exit(&cportinfo->cport_mutex);
18382 if ((cportinfo->cport_state &
18384 ((cportinfo->cport_scr.sstatus &
18386 (cportinfo->cport_dev_type != SATA_DTYPE_PMULT)) {
18387 mutex_exit(&cportinfo->cport_mutex);
18395 cportinfo->cport_state |=
18402 mutex_exit(&cportinfo->cport_mutex);
18462 mutex_enter(&cportinfo->cport_mutex);
18463 cportinfo->cport_event_flags &= ~SATA_EVNT_LOCK_PORT_BUSY;
18464 mutex_exit(&cportinfo->cport_mutex);
18496 sata_cport_info_t *cportinfo;
18501 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
18504 cportinfo->cport_event_flags &= ~SATA_EVNT_PWR_LEVEL_CHANGED;
18516 sata_cport_info_t *cportinfo;
18518 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
18521 cportinfo->cport_event_flags &= ~SATA_EVNT_PORT_FAILED;
18523 if ((cportinfo->cport_state &
18530 cportinfo->cport_state = SATA_PSTATE_FAILED;
18551 sata_cport_info_t *cportinfo;
18556 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
18562 if (((cportinfo->cport_state &
18576 mutex_exit(&cportinfo->cport_mutex);
18634 cportinfo->cport_state = SATA_PSTATE_FAILED;
18711 if ((cportinfo->cport_dev_type &
18713 SATA_CPORTINFO_DRV_INFO(cportinfo) != NULL &&
18783 if (SATA_CPORTINFO_DRV_INFO(cportinfo) != NULL) {
18785 if ((cportinfo->cport_dev_type & SATA_VALID_DEV_TYPE) != 0) {
18786 sdinfo = SATA_CPORTINFO_DRV_INFO(cportinfo);
18808 sata_cport_info_t *cportinfo = NULL;
18819 cportinfo = SATA_CPORT_INFO(sata_hba_inst, cport);
18827 if (((cportinfo->cport_state &
19062 sata_cport_info_t *cportinfo;
19070 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
19072 event_flags = cportinfo->cport_event_flags;
19075 cportinfo->cport_event_flags &=
19079 if ((cportinfo->cport_state &
19104 cportinfo->cport_state = SATA_PSTATE_FAILED;
19117 cportinfo->cport_state |= SATA_STATE_PROBED | SATA_STATE_READY;
19145 if (cportinfo->cport_dev_type != SATA_DTYPE_NONE) {
19146 ASSERT(SATA_CPORTINFO_DRV_INFO(cportinfo) !=
19149 sdinfo = SATA_CPORTINFO_DRV_INFO(cportinfo);
19166 (SATA_CPORTINFO_DRV_INFO(cportinfo))->
19170 } else if (cportinfo->cport_dev_type ==
19179 cportinfo->cport_event_flags |=
19184 cportinfo->cport_link_lost_time = 0;
19198 if (cportinfo->cport_link_lost_time == 0) {
19211 if (cportinfo->cport_link_lost_time == 0) {
19213 cportinfo->cport_link_lost_time =
19216 cportinfo->cport_event_flags |=
19221 cportinfo->cport_link_lost_time) >=
19225 cportinfo->cport_event_flags |=
19227 cportinfo->cport_link_lost_time = 0;
19235 cportinfo->cport_event_flags |=
19246 event_flags = cportinfo->cport_event_flags;
19487 sata_cport_info_t *cportinfo;
19500 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
19503 cportinfo->cport_event_flags &= ~SATA_EVNT_DEVICE_DETACHED;
19506 if ((cportinfo->cport_state &
19527 cportinfo->cport_state = SATA_PSTATE_FAILED;
19540 cportinfo->cport_state |= SATA_STATE_PROBED | SATA_STATE_READY;
19562 if (cportinfo->cport_dev_type == SATA_DTYPE_PMULT) {
19621 SATA_CPORTINFO_PMULT_INFO(cportinfo),
19623 SATA_CPORTINFO_PMULT_INFO(cportinfo) = NULL;
19628 cportinfo->cport_dev_type = SATA_DTYPE_NONE;
19632 if (SATA_CPORTINFO_DRV_INFO(cportinfo) != NULL) {
19633 sdevinfo = SATA_CPORTINFO_DRV_INFO(cportinfo);
19634 SATA_CPORTINFO_DRV_INFO(cportinfo) = NULL;
19641 cportinfo->cport_dev_type = SATA_DTYPE_NONE;
19789 sata_cport_info_t *cportinfo = NULL;
19802 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
19806 cportinfo->cport_event_flags &= ~SATA_EVNT_DEVICE_ATTACHED;
19809 if ((cportinfo->cport_state &
19811 cportinfo->cport_dev_attach_time = 0;
19823 if (SATA_CPORTINFO_DRV_INFO(cportinfo) != NULL) {
19824 sdevinfo = SATA_CPORTINFO_DRV_INFO(cportinfo);
19825 SATA_CPORTINFO_DRV_INFO(cportinfo) = NULL;
19831 cportinfo->cport_dev_type = SATA_DTYPE_NONE;
19848 cportinfo->cport_state = SATA_PSTATE_FAILED;
19849 cportinfo->cport_dev_attach_time = 0;
19858 cportinfo->cport_state |= SATA_STATE_PROBED | SATA_STATE_READY;
19870 cportinfo->cport_dev_attach_time = 0;
19896 if ((cportinfo->cport_state & SATA_STATE_READY) &&
19897 (cportinfo->cport_dev_type != SATA_DTYPE_NONE)) {
19899 if (cportinfo->cport_dev_type == SATA_DTYPE_UNKNOWN) {
19904 if (cportinfo->cport_dev_attach_time != 0) {
19911 cportinfo->cport_dev_attach_time) <
19915 cportinfo->cport_event_flags |=
19919 cportinfo->cport_dev_attach_time = 0;
19932 cportinfo->cport_dev_attach_time =
19935 cportinfo->cport_event_flags |=
19938 } else if (cportinfo->cport_dev_type == SATA_DTYPE_PMULT) {
19939 cportinfo->cport_dev_attach_time = 0;
19944 if (SATA_CPORTINFO_PMULT_INFO(cportinfo) != NULL) {
19954 ASSERT(SATA_CPORTINFO_PMULT_INFO(cportinfo) != NULL);
19955 pmultinfo = SATA_CPORTINFO_PMULT_INFO(cportinfo);
19987 cportinfo->cport_dev_attach_time = 0;
19991 if (SATA_CPORTINFO_DRV_INFO(cportinfo) != NULL) {
19996 cportinfo));
20017 if ((cportinfo->cport_event_flags &
20035 cportinfo->cport_event_flags &=
20037 cportinfo->cport_tgtnode_clean = B_TRUE;
20058 cportinfo->cport_event_flags |=
20060 cportinfo->cport_tgtnode_clean =
20065 cportinfo->cport_event_flags |=
20071 cportinfo->cport_dev_attach_time = 0;
20074 event_flags = cportinfo->cport_event_flags;
20376 sata_cport_info_t *cportinfo;
20382 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
20406 cportinfo->cport_event_flags &=
20427 cportinfo->cport_event_flags &=
20467 sata_cport_info_t *cportinfo;
20475 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
20481 if ((cportinfo->cport_dev_type & SATA_VALID_DEV_TYPE) == 0) {
20483 cportinfo->cport_event_flags &= ~SATA_EVNT_AUTOONLINE_DEVICE;
20546 cportinfo->cport_tgtnode_clean = B_TRUE;
20568 cportinfo->cport_event_flags &= ~SATA_EVNT_AUTOONLINE_DEVICE;