Lines Matching refs:saddr

209     sata_address_t *saddr);
10435 sata_address_t *saddr, struct scsi_inquiry *inq) in sata_get_atapi_inquiry_data() argument
10461 spkt->satapkt_device.satadev_addr = *saddr; in sata_get_atapi_inquiry_data()
10489 cport_mutex = &(SATA_CPORT_MUTEX(sata_hba, saddr->cport)); in sata_get_atapi_inquiry_data()
11169 sata_address_t *saddr = &sata_device->satadev_addr; in sata_add_device() local
11173 cport = saddr->cport; in sata_add_device()
11174 pmport = saddr->pmport; in sata_add_device()
11187 switch (saddr->qual) { in sata_add_device()
11192 saddr->qual = SATA_ADDR_DCPORT; in sata_add_device()
11236 cdip = sata_create_target_node(pdip, sata_hba_inst, saddr); in sata_add_device()
11253 saddr->qual = SATA_ADDR_DPMPORT; in sata_add_device()
11260 pmportinfo = pminfo->pmult_dev_port[saddr->pmport]; in sata_add_device()
11305 cdip = sata_create_target_node(pdip, sata_hba_inst, saddr); in sata_add_device()
14886 sata_get_scsi_target_dip(dev_info_t *dip, sata_address_t *saddr) in sata_get_scsi_target_dip() argument
14891 target = SATA_TO_SCSI_TARGET(saddr->cport, saddr->pmport, saddr->qual); in sata_get_scsi_target_dip()
18022 sata_address_t *saddr; in sata_hba_event_notify() local
18060 saddr = &sata_device->satadev_addr; in sata_hba_event_notify()
18061 if (saddr->cport >= SATA_NUM_CPORTS(sata_hba_inst)) in sata_hba_event_notify()
18064 cport = saddr->cport; in sata_hba_event_notify()
18065 pmport = saddr->pmport; in sata_hba_event_notify()
18073 if ((saddr->qual & (SATA_ADDR_CPORT | SATA_ADDR_PMPORT | in sata_hba_event_notify()
18082 if ((saddr->qual & (SATA_ADDR_PMULT | SATA_ADDR_PMPORT | in sata_hba_event_notify()
18115 if ((saddr->qual & in sata_hba_event_notify()
18149 if (saddr->qual & (SATA_ADDR_CPORT | SATA_ADDR_PMPORT)) { in sata_hba_event_notify()
18161 if (saddr->qual == SATA_ADDR_CPORT) { in sata_hba_event_notify()
18244 } else if (saddr->qual & (SATA_ADDR_DCPORT | SATA_ADDR_DPMPORT)) { in sata_hba_event_notify()
18274 } else if (saddr->qual == SATA_ADDR_PMULT) { in sata_hba_event_notify()
18311 if (saddr->qual != SATA_ADDR_NULL) { in sata_hba_event_notify()
18315 *(uint32_t *)saddr)); in sata_hba_event_notify()
18364 if (saddr->qual == SATA_ADDR_CPORT || in sata_hba_event_notify()
18365 saddr->qual == SATA_ADDR_DCPORT) { in sata_hba_event_notify()
18374 } else if (saddr->qual == SATA_ADDR_PMPORT || in sata_hba_event_notify()
18375 saddr->qual == SATA_ADDR_DPMPORT) { in sata_hba_event_notify()
18515 sata_address_t *saddr; in sata_process_controller_events() local
18586 saddr = &(SATA_CPORT_INFO(sata_hba_inst, ncport))->cport_addr; in sata_process_controller_events()
18603 saddr); in sata_process_controller_events()
18607 saddr); in sata_process_controller_events()
18611 saddr); in sata_process_controller_events()
18617 saddr); in sata_process_controller_events()
18621 saddr); in sata_process_controller_events()
18625 sata_hba_inst, saddr); in sata_process_controller_events()
18629 sata_hba_inst, saddr); in sata_process_controller_events()
18673 saddr); in sata_process_controller_events()
18696 sata_address_t *saddr; in sata_process_pmult_events() local
18809 saddr = &pmportinfo->pmport_addr; in sata_process_pmult_events()
18824 saddr); in sata_process_pmult_events()
18828 saddr); in sata_process_pmult_events()
18833 saddr); in sata_process_pmult_events()
18837 sata_hba_inst, saddr); in sata_process_pmult_events()
18852 saddr); in sata_process_pmult_events()
18890 sata_address_t *saddr) in sata_process_port_pwr_change() argument
18897 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport); in sata_process_port_pwr_change()
18898 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_port_pwr_change()
18901 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_port_pwr_change()
18910 sata_address_t *saddr) in sata_process_port_failed_event() argument
18914 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport); in sata_process_port_failed_event()
18915 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_port_failed_event()
18921 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)-> in sata_process_port_failed_event()
18927 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_port_failed_event()
18928 sata_log(sata_hba_inst, CE_WARN, "SATA port %d failed", saddr->cport); in sata_process_port_failed_event()
18943 sata_address_t *saddr) in sata_process_device_reset() argument
18952 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport); in sata_process_device_reset()
18953 sdinfo = SATA_CPORT_DRV_INFO(sata_hba_inst, saddr->cport); in sata_process_device_reset()
18966 if ((SATA_CPORT_DEV_TYPE(sata_hba_inst, saddr->cport) == in sata_process_device_reset()
18976 if ((SATA_CPORT_DEV_TYPE(sata_hba_inst, saddr->cport) & in sata_process_device_reset()
19011 "Processing port %d device reset", saddr->cport); in sata_process_device_reset()
19018 sata_device.satadev_addr = *saddr; in sata_process_device_reset()
19023 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_reset()
19026 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_reset()
19031 sdinfo = SATA_CPORT_DRV_INFO(sata_hba_inst, saddr->cport); in sata_process_device_reset()
19034 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)-> in sata_process_device_reset()
19038 saddr->cport)); in sata_process_device_reset()
19040 saddr->cport)->cport_mutex); in sata_process_device_reset()
19053 sdinfo = SATA_CPORT_DRV_INFO(sata_hba_inst, saddr->cport); in sata_process_device_reset()
19063 sdinfo = SATA_CPORT_DRV_INFO(sata_hba_inst, saddr->cport); in sata_process_device_reset()
19079 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_reset()
19089 sata_device.satadev_addr = *saddr; in sata_process_device_reset()
19094 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)-> in sata_process_device_reset()
19138 saddr->cport)->cport_mutex); in sata_process_device_reset()
19147 saddr->cport); in sata_process_device_reset()
19171 saddr->cport); in sata_process_device_reset()
19178 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_reset()
19200 sata_address_t *saddr) in sata_process_pmdevice_reset() argument
19208 uint8_t cport = saddr->cport; in sata_process_pmdevice_reset()
19209 uint8_t pmport = saddr->pmport; in sata_process_pmdevice_reset()
19272 sata_device.satadev_addr = *saddr; in sata_process_pmdevice_reset()
19286 sdinfo = SATA_PMPORT_DRV_INFO(sata_hba_inst, saddr->cport, in sata_process_pmdevice_reset()
19287 saddr->pmport); in sata_process_pmdevice_reset()
19293 saddr->cport, saddr->pmport)); in sata_process_pmdevice_reset()
19307 sdinfo = SATA_PMPORT_DRV_INFO(sata_hba_inst, saddr->cport, in sata_process_pmdevice_reset()
19308 saddr->pmport); in sata_process_pmdevice_reset()
19314 saddr->cport); in sata_process_pmdevice_reset()
19321 sdinfo = SATA_PMPORT_DRV_INFO(sata_hba_inst, saddr->cport, in sata_process_pmdevice_reset()
19322 saddr->pmport); in sata_process_pmdevice_reset()
19347 sata_device.satadev_addr = *saddr; in sata_process_pmdevice_reset()
19393 saddr->cport, saddr->pmport); in sata_process_pmdevice_reset()
19422 saddr->cport); in sata_process_pmdevice_reset()
19455 sata_address_t *saddr) in sata_process_port_link_events() argument
19464 "Processing port %d link event(s)", saddr->cport); in sata_process_port_link_events()
19466 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport); in sata_process_port_link_events()
19467 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_port_link_events()
19477 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)-> in sata_process_port_link_events()
19488 sata_device.satadev_addr = *saddr; in sata_process_port_link_events()
19493 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_port_link_events()
19496 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_port_link_events()
19501 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)-> in sata_process_port_link_events()
19505 saddr->cport)); in sata_process_port_link_events()
19523 saddr->cport); in sata_process_port_link_events()
19529 saddr->cport); in sata_process_port_link_events()
19590 saddr->cport); in sata_process_port_link_events()
19597 saddr->cport); in sata_process_port_link_events()
19628 saddr->cport); in sata_process_port_link_events()
19643 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_port_link_events()
19659 sata_address_t *saddr) in sata_process_pmport_link_events() argument
19665 uint8_t cport = saddr->cport; in sata_process_pmport_link_events()
19666 uint8_t pmport = saddr->pmport; in sata_process_pmport_link_events()
19694 sata_device.satadev_addr = *saddr; in sata_process_pmport_link_events()
19699 mutex_exit(&SATA_PMPORT_MUTEX(sata_hba_inst, saddr->cport, in sata_process_pmport_link_events()
19700 saddr->pmport)); in sata_process_pmport_link_events()
19703 mutex_enter(&SATA_PMPORT_MUTEX(sata_hba_inst, saddr->cport, in sata_process_pmport_link_events()
19704 saddr->pmport)); in sata_process_pmport_link_events()
19709 mutex_exit(&SATA_PMPORT_MUTEX(sata_hba_inst, saddr->cport, in sata_process_pmport_link_events()
19710 saddr->pmport)); in sata_process_pmport_link_events()
19713 saddr->cport, saddr->pmport)); in sata_process_pmport_link_events()
19725 saddr->cport, saddr->pmport)); in sata_process_pmport_link_events()
19727 saddr->cport, saddr->pmport)); in sata_process_pmport_link_events()
19736 saddr->cport, saddr->pmport); in sata_process_pmport_link_events()
19803 saddr->cport, saddr->pmport); in sata_process_pmport_link_events()
19811 saddr->cport, saddr->pmport); in sata_process_pmport_link_events()
19842 saddr->cport, saddr->pmport); in sata_process_pmport_link_events()
19857 mutex_exit(&SATA_PMPORT_MUTEX(sata_hba_inst, saddr->cport, in sata_process_pmport_link_events()
19858 saddr->pmport)); in sata_process_pmport_link_events()
19881 sata_address_t *saddr) in sata_process_device_detached() argument
19889 uint8_t cport = saddr->cport; in sata_process_device_detached()
19894 "Processing port %d device detached", saddr->cport); in sata_process_device_detached()
19896 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport); in sata_process_device_detached()
19897 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_detached()
19904 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)-> in sata_process_device_detached()
19910 sata_device.satadev_addr = *saddr; in sata_process_device_detached()
19916 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_detached()
19919 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_detached()
19924 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)-> in sata_process_device_detached()
19928 saddr->cport)); in sata_process_device_detached()
19948 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)-> in sata_process_device_detached()
20026 saddr->cport)->cport_mutex); in sata_process_device_detached()
20039 saddr->cport)->cport_mutex); in sata_process_device_detached()
20045 sata_remove_target_node(sata_hba_inst, saddr); in sata_process_device_detached()
20053 sata_gen_sysevent(sata_hba_inst, saddr, SE_HINT_REMOVE); in sata_process_device_detached()
20063 sata_address_t *saddr) in sata_process_pmdevice_detached() argument
20071 cport = saddr->cport; in sata_process_pmdevice_detached()
20072 pmport = saddr->pmport; in sata_process_pmdevice_detached()
20092 sata_device.satadev_addr = *saddr; in sata_process_pmdevice_detached()
20109 saddr->pmport)); in sata_process_pmdevice_detached()
20155 sata_remove_target_node(sata_hba_inst, saddr); in sata_process_pmdevice_detached()
20161 sata_gen_sysevent(sata_hba_inst, saddr, SE_HINT_REMOVE); in sata_process_pmdevice_detached()
20183 sata_address_t *saddr) in sata_process_device_attached() argument
20196 "Processing port %d device attached", saddr->cport); in sata_process_device_attached()
20198 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport); in sata_process_device_attached()
20199 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_attached()
20208 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)-> in sata_process_device_attached()
20231 sata_device.satadev_addr = *saddr; in sata_process_device_attached()
20237 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_attached()
20240 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_attached()
20246 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)-> in sata_process_device_attached()
20250 saddr->cport)); in sata_process_device_attached()
20267 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)-> in sata_process_device_attached()
20275 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_attached()
20280 sata_gen_sysevent(sata_hba_inst, saddr, SE_HINT_INSERT); in sata_process_device_attached()
20286 sata_device.satadev_addr = *saddr; in sata_process_device_attached()
20290 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)-> in sata_process_device_attached()
20320 saddr->cport); in sata_process_device_attached()
20338 saddr->cport); in sata_process_device_attached()
20343 saddr->cport)->cport_mutex); in sata_process_device_attached()
20347 saddr->cport)->cport_mutex); in sata_process_device_attached()
20355 saddr->cport, npmport); in sata_process_device_attached()
20359 saddr->cport)->cport_mutex); in sata_process_device_attached()
20368 saddr->cport)->cport_mutex); in sata_process_device_attached()
20385 "SATA device detected at port %d", saddr->cport); in sata_process_device_attached()
20398 saddr->cport)->cport_mutex); in sata_process_device_attached()
20407 saddr->cport, saddr->pmport); in sata_process_device_attached()
20409 saddr->cport)->cport_mutex); in sata_process_device_attached()
20424 saddr->cport)->cport_mutex); in sata_process_device_attached()
20428 saddr->cport)->cport_mutex); in sata_process_device_attached()
20453 saddr->cport); in sata_process_device_attached()
20471 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_attached()
20489 sata_address_t *saddr) in sata_process_pmdevice_attached() argument
20496 uint8_t cport = saddr->cport; in sata_process_pmdevice_attached()
20497 uint8_t pmport = saddr->pmport; in sata_process_pmdevice_attached()
20536 sata_device.satadev_addr = *saddr; in sata_process_pmdevice_attached()
20584 sata_gen_sysevent(sata_hba_inst, saddr, SE_HINT_INSERT); in sata_process_pmdevice_attached()
20590 sata_device.satadev_addr = *saddr; in sata_process_pmdevice_attached()
20671 saddr->cport, saddr->pmport); in sata_process_pmdevice_attached()
20750 saddr->cport); in sata_process_pmdevice_attached()
20770 sata_address_t *saddr) in sata_process_target_node_cleanup() argument
20776 "Processing port %d device target node cleanup", saddr->cport); in sata_process_target_node_cleanup()
20778 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport); in sata_process_target_node_cleanup()
20784 tdip = sata_get_target_dip(SATA_DIP(sata_hba_inst), saddr->cport, in sata_process_target_node_cleanup()
20785 saddr->pmport); in sata_process_target_node_cleanup()
20801 saddr->cport)->cport_mutex); in sata_process_target_node_cleanup()
20805 saddr->cport)->cport_mutex); in sata_process_target_node_cleanup()
20819 if (saddr->qual == SATA_ADDR_CPORT || in sata_process_target_node_cleanup()
20820 saddr->qual == SATA_ADDR_DCPORT) { in sata_process_target_node_cleanup()
20822 saddr->cport)->cport_mutex); in sata_process_target_node_cleanup()
20826 saddr->cport)->cport_mutex); in sata_process_target_node_cleanup()
20829 if (SATA_CPORT_DEV_TYPE(sata_hba_inst, saddr->cport) != in sata_process_target_node_cleanup()
20831 saddr->cport) == NULL) in sata_process_target_node_cleanup()
20833 if (SATA_PMPORT_INFO(sata_hba_inst, saddr->cport, in sata_process_target_node_cleanup()
20834 saddr->pmport) == NULL) in sata_process_target_node_cleanup()
20838 saddr->cport, saddr->pmport)->pmport_mutex); in sata_process_target_node_cleanup()
20839 SATA_PMPORT_INFO(sata_hba_inst, saddr->cport, in sata_process_target_node_cleanup()
20840 saddr->pmport)->pmport_event_flags &= in sata_process_target_node_cleanup()
20843 saddr->cport, saddr->pmport)->pmport_mutex); in sata_process_target_node_cleanup()
20861 sata_address_t *saddr) in sata_process_device_autoonline() argument
20869 "Processing port %d attached device auto-onlining", saddr->cport); in sata_process_device_autoonline()
20871 cportinfo = SATA_CPORT_INFO(sata_hba_inst, saddr->cport); in sata_process_device_autoonline()
20876 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_autoonline()
20881 saddr->cport)->cport_mutex); in sata_process_device_autoonline()
20884 mutex_exit(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_autoonline()
20891 tdip = sata_get_target_dip(SATA_DIP(sata_hba_inst), saddr->cport, in sata_process_device_autoonline()
20892 saddr->pmport); in sata_process_device_autoonline()
20926 saddr->cport)->cport_mutex); in sata_process_device_autoonline()
20927 sata_device.satadev_addr = *saddr; in sata_process_device_autoonline()
20928 if (saddr->qual == SATA_ADDR_CPORT) in sata_process_device_autoonline()
20944 saddr->cport)->cport_mutex); in sata_process_device_autoonline()
20955 saddr->cport)); in sata_process_device_autoonline()
20959 saddr->cport)->cport_mutex); in sata_process_device_autoonline()
20963 mutex_enter(&SATA_CPORT_INFO(sata_hba_inst, saddr->cport)->cport_mutex); in sata_process_device_autoonline()
20966 saddr->cport)->cport_mutex); in sata_process_device_autoonline()
20971 sata_gen_sysevent(sata_hba_inst_t *sata_hba_inst, sata_address_t *saddr, in sata_gen_sysevent() argument
21003 SATA_MAKE_AP_NUMBER(saddr->cport, saddr->pmport, saddr->qual)); in sata_gen_sysevent()
21051 sata_address_t *saddr) in sata_set_target_node_cleanup() argument
21053 if (saddr->qual == SATA_ADDR_CPORT || in sata_set_target_node_cleanup()
21054 saddr->qual == SATA_ADDR_DCPORT) { in sata_set_target_node_cleanup()
21056 saddr->cport)->cport_mutex); in sata_set_target_node_cleanup()
21057 SATA_CPORT_EVENT_FLAGS(sata_hba_inst, saddr->cport) |= in sata_set_target_node_cleanup()
21059 SATA_CPORT_INFO(sata_hba_inst, saddr->cport)-> in sata_set_target_node_cleanup()
21062 saddr->cport)->cport_mutex); in sata_set_target_node_cleanup()
21065 saddr->cport, saddr->pmport)->pmport_mutex); in sata_set_target_node_cleanup()
21066 SATA_PMPORT_EVENT_FLAGS(sata_hba_inst, saddr->cport, in sata_set_target_node_cleanup()
21067 saddr->pmport) |= SATA_EVNT_TARGET_NODE_CLEANUP; in sata_set_target_node_cleanup()
21068 SATA_PMPORT_INFO(sata_hba_inst, saddr->cport, saddr->pmport)-> in sata_set_target_node_cleanup()
21071 saddr->cport, saddr->pmport)->pmport_mutex); in sata_set_target_node_cleanup()