Lines Matching refs:saddr
206 sata_address_t *saddr);
9933 sata_address_t *saddr, struct scsi_inquiry *inq)
9959 spkt->satapkt_device.satadev_addr = *saddr;
9987 cport_mutex = &(SATA_CPORT_MUTEX(sata_hba, saddr->cport));
10667 sata_address_t *saddr = &sata_device->satadev_addr;
10671 cport = saddr->cport;
10672 pmport = saddr->pmport;
10685 switch (saddr->qual) {
10690 saddr->qual = SATA_ADDR_DCPORT;
10734 cdip = sata_create_target_node(pdip, sata_hba_inst, saddr);
10751 saddr->qual = SATA_ADDR_DPMPORT;
10758 pmportinfo = pminfo->pmult_dev_port[saddr->pmport];
10803 cdip = sata_create_target_node(pdip, sata_hba_inst, saddr);
14390 sata_get_scsi_target_dip(dev_info_t *dip, sata_address_t *saddr)
14396 target = SATA_TO_SCSI_TARGET(saddr->cport, saddr->pmport, saddr->qual);
17626 sata_address_t *saddr;
17664 saddr = &sata_device->satadev_addr;
17665 if (saddr->cport >= SATA_NUM_CPORTS(sata_hba_inst))
17668 cport = saddr->cport;
17669 pmport = saddr->pmport;
17677 if ((saddr->qual & (SATA_ADDR_CPORT | SATA_ADDR_PMPORT |
17686 if ((saddr->qual & (SATA_ADDR_PMULT | SATA_ADDR_PMPORT |
17719 if ((saddr->qual &
17753 if (saddr->qual & (SATA_ADDR_CPORT | SATA_ADDR_PMPORT)) {
17765 if (saddr->qual == SATA_ADDR_CPORT) {
17848 } else if (saddr->qual & (SATA_ADDR_DCPORT | SATA_ADDR_DPMPORT)) {
17878 } else if (saddr->qual == SATA_ADDR_PMULT) {
17915 if (saddr->qual != SATA_ADDR_NULL) {
17919 *(uint32_t *)saddr));
17968 if (saddr->qual == SATA_ADDR_CPORT ||
17969 saddr->qual == SATA_ADDR_DCPORT) {
17978 } else if (saddr->qual == SATA_ADDR_PMPORT ||
17979 saddr->qual == SATA_ADDR_DPMPORT) {
18119 sata_address_t *saddr;
18190 saddr = &(SATA_CPORT_INFO(sata_hba_inst, ncport))->cport_addr;
18207 saddr);
18211 saddr);
18215 saddr);
18221 saddr);
18225 saddr);
18229 sata_hba_inst, saddr);
18233 sata_hba_inst, saddr);
18277 saddr);
18300 sata_address_t *saddr;
18413 saddr = &pmportinfo->pmport_addr;
18428 saddr);
18432 saddr);
18437 saddr);
18441 sata_hba_inst, saddr);
18456 saddr);
18494 sata_address_t *saddr)
18501 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
18502 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
18505 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
18514 sata_address_t *saddr)
18518 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
18519 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
18525 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->
18531 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
18532 sata_log(sata_hba_inst, CE_WARN, "SATA port %d failed", saddr->cport);
18547 sata_address_t *saddr)
18556 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
18557 sdinfo = SATA_CPORT_DRV_INFO(sata_hba_inst, saddr->cport);
18570 if ((SATA_CPORT_DEV_TYPE(sata_hba_inst, saddr->cport) ==
18580 if ((SATA_CPORT_DEV_TYPE(sata_hba_inst, saddr->cport) &
18615 "Processing port %d device reset", saddr->cport);
18622 sata_device.satadev_addr = *saddr;
18627 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
18630 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
18635 sdinfo = SATA_CPORT_DRV_INFO(sata_hba_inst, saddr->cport);
18638 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->
18642 saddr->cport));
18644 saddr->cport)->cport_mutex);
18657 sdinfo = SATA_CPORT_DRV_INFO(sata_hba_inst, saddr->cport);
18667 sdinfo = SATA_CPORT_DRV_INFO(sata_hba_inst, saddr->cport);
18683 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
18693 sata_device.satadev_addr = *saddr;
18698 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->
18742 saddr->cport)->cport_mutex);
18751 saddr->cport);
18775 saddr->cport);
18782 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
18804 sata_address_t *saddr)
18812 uint8_t cport = saddr->cport;
18813 uint8_t pmport = saddr->pmport;
18876 sata_device.satadev_addr = *saddr;
18890 sdinfo = SATA_PMPORT_DRV_INFO(sata_hba_inst, saddr->cport,
18891 saddr->pmport);
18897 saddr->cport, saddr->pmport));
18911 sdinfo = SATA_PMPORT_DRV_INFO(sata_hba_inst, saddr->cport,
18912 saddr->pmport);
18918 saddr->cport);
18925 sdinfo = SATA_PMPORT_DRV_INFO(sata_hba_inst, saddr->cport,
18926 saddr->pmport);
18951 sata_device.satadev_addr = *saddr;
18997 saddr->cport, saddr->pmport);
19026 saddr->cport);
19059 sata_address_t *saddr)
19068 "Processing port %d link event(s)", saddr->cport);
19070 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
19071 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
19081 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->
19092 sata_device.satadev_addr = *saddr;
19097 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
19100 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
19105 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->
19109 saddr->cport));
19127 saddr->cport);
19133 saddr->cport);
19194 saddr->cport);
19201 saddr->cport);
19232 saddr->cport);
19247 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
19263 sata_address_t *saddr)
19269 uint8_t cport = saddr->cport;
19270 uint8_t pmport = saddr->pmport;
19298 sata_device.satadev_addr = *saddr;
19303 mutex_exit(&SATA_PMPORT_MUTEX(sata_hba_inst, saddr->cport,
19304 saddr->pmport));
19307 mutex_enter(&SATA_PMPORT_MUTEX(sata_hba_inst, saddr->cport,
19308 saddr->pmport));
19313 mutex_exit(&SATA_PMPORT_MUTEX(sata_hba_inst, saddr->cport,
19314 saddr->pmport));
19317 saddr->cport, saddr->pmport));
19329 saddr->cport, saddr->pmport));
19331 saddr->cport, saddr->pmport));
19340 saddr->cport, saddr->pmport);
19407 saddr->cport, saddr->pmport);
19415 saddr->cport, saddr->pmport);
19446 saddr->cport, saddr->pmport);
19461 mutex_exit(&SATA_PMPORT_MUTEX(sata_hba_inst, saddr->cport,
19462 saddr->pmport));
19485 sata_address_t *saddr)
19493 uint8_t cport = saddr->cport;
19498 "Processing port %d device detached", saddr->cport);
19500 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
19501 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
19508 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->
19514 sata_device.satadev_addr = *saddr;
19520 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
19523 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
19528 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->
19532 saddr->cport));
19552 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->
19630 saddr->cport)->cport_mutex);
19643 saddr->cport)->cport_mutex);
19649 sata_remove_target_node(sata_hba_inst, saddr);
19657 sata_gen_sysevent(sata_hba_inst, saddr, SE_HINT_REMOVE);
19667 sata_address_t *saddr)
19675 cport = saddr->cport;
19676 pmport = saddr->pmport;
19696 sata_device.satadev_addr = *saddr;
19713 saddr->pmport));
19759 sata_remove_target_node(sata_hba_inst, saddr);
19765 sata_gen_sysevent(sata_hba_inst, saddr, SE_HINT_REMOVE);
19787 sata_address_t *saddr)
19800 "Processing port %d device attached", saddr->cport);
19802 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
19803 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
19812 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->
19835 sata_device.satadev_addr = *saddr;
19841 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
19844 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
19850 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->
19854 saddr->cport));
19871 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->
19879 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
19884 sata_gen_sysevent(sata_hba_inst, saddr, SE_HINT_INSERT);
19890 sata_device.satadev_addr = *saddr;
19894 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->
19924 saddr->cport);
19942 saddr->cport);
19947 saddr->cport)->cport_mutex);
19951 saddr->cport)->cport_mutex);
19959 saddr->cport, npmport);
19963 saddr->cport)->cport_mutex);
19972 saddr->cport)->cport_mutex);
19989 "SATA device detected at port %d", saddr->cport);
20002 saddr->cport)->cport_mutex);
20011 saddr->cport, saddr->pmport);
20013 saddr->cport)->cport_mutex);
20028 saddr->cport)->cport_mutex);
20032 saddr->cport)->cport_mutex);
20057 saddr->cport);
20075 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
20093 sata_address_t *saddr)
20100 uint8_t cport = saddr->cport;
20101 uint8_t pmport = saddr->pmport;
20140 sata_device.satadev_addr = *saddr;
20188 sata_gen_sysevent(sata_hba_inst, saddr, SE_HINT_INSERT);
20194 sata_device.satadev_addr = *saddr;
20275 saddr->cport, saddr->pmport);
20354 saddr->cport);
20374 sata_address_t *saddr)
20380 "Processing port %d device target node cleanup", saddr->cport);
20382 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
20388 tdip = sata_get_target_dip(SATA_DIP(sata_hba_inst), saddr->cport,
20389 saddr->pmport);
20405 saddr->cport)->cport_mutex);
20409 saddr->cport)->cport_mutex);
20423 if (saddr->qual == SATA_ADDR_CPORT ||
20424 saddr->qual == SATA_ADDR_DCPORT) {
20426 saddr->cport)->cport_mutex);
20430 saddr->cport)->cport_mutex);
20433 if (SATA_CPORT_DEV_TYPE(sata_hba_inst, saddr->cport) !=
20435 saddr->cport) == NULL)
20437 if (SATA_PMPORT_INFO(sata_hba_inst, saddr->cport,
20438 saddr->pmport) == NULL)
20442 saddr->cport, saddr->pmport)->pmport_mutex);
20443 SATA_PMPORT_INFO(sata_hba_inst, saddr->cport,
20444 saddr->pmport)->pmport_event_flags &=
20447 saddr->cport, saddr->pmport)->pmport_mutex);
20465 sata_address_t *saddr)
20473 "Processing port %d attached device auto-onlining", saddr->cport);
20475 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport);
20480 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
20485 saddr->cport)->cport_mutex);
20488 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
20495 tdip = sata_get_target_dip(SATA_DIP(sata_hba_inst), saddr->cport,
20496 saddr->pmport);
20530 saddr->cport)->cport_mutex);
20531 sata_device.satadev_addr = *saddr;
20532 if (saddr->qual == SATA_ADDR_CPORT)
20548 saddr->cport)->cport_mutex);
20559 saddr->cport));
20563 saddr->cport)->cport_mutex);
20567 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex);
20570 saddr->cport)->cport_mutex);
20575 sata_gen_sysevent(sata_hba_inst_t *sata_hba_inst, sata_address_t *saddr,
20607 SATA_MAKE_AP_NUMBER(saddr->cport, saddr->pmport, saddr->qual));
20657 sata_address_t *saddr)
20659 if (saddr->qual == SATA_ADDR_CPORT ||
20660 saddr->qual == SATA_ADDR_DCPORT) {
20662 saddr->cport)->cport_mutex);
20663 SATA_CPORT_EVENT_FLAGS(sata_hba_inst, saddr->cport) |=
20665 SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->
20668 saddr->cport)->cport_mutex);
20671 saddr->cport, saddr->pmport)->pmport_mutex);
20672 SATA_PMPORT_EVENT_FLAGS(sata_hba_inst, saddr->cport,
20673 saddr->pmport) |= SATA_EVNT_TARGET_NODE_CLEANUP;
20674 SATA_PMPORT_INFO(sata_hba_inst, saddr->cport, saddr->pmport)->
20677 saddr->cport, saddr->pmport)->pmport_mutex);