Lines Matching refs:attached

460 mptsas_is_end_device(struct mptsas_devinfo * attached)  in mptsas_is_end_device()  argument
462 if ((attached->sas_address) && in mptsas_is_end_device()
463 (attached->device_info & in mptsas_is_end_device()
465 ((attached->device_info & in mptsas_is_end_device()
467 (attached->device_info & in mptsas_is_end_device()
469 (attached->device_info & in mptsas_is_end_device()
498 memset(&phy_info->attached, 0, sizeof(struct mptsas_devinfo)); in mptsas_port_delete()
800 phy_info->attached.handle_enclosure); in mptsas_add_device_component_starget()
802 mptsas_add_device_component(ioc, phy_info->attached.channel, in mptsas_add_device_component_starget()
803 phy_info->attached.id, phy_info->attached.sas_address, in mptsas_add_device_component_starget()
804 phy_info->attached.device_info, in mptsas_add_device_component_starget()
805 phy_info->attached.slot, enclosure_info.enclosure_logical_id); in mptsas_add_device_component_starget()
868 if (phy_info->attached.handle) in mptsas_setup_wide_ports()
884 memset(&phy_info->attached, 0, sizeof(struct mptsas_devinfo)); in mptsas_setup_wide_ports()
900 sas_address = phy_info->attached.sas_address; in mptsas_setup_wide_ports()
931 if (!phy_info_cmp->attached.sas_address) in mptsas_setup_wide_ports()
933 if (sas_address != phy_info_cmp->attached.sas_address) in mptsas_setup_wide_ports()
940 phy_info_cmp->attached.sas_address)); in mptsas_setup_wide_ports()
1459 fw_id = phy_info->attached.id; in mptsas_add_end_device()
1476 if (phy_info->attached.device_info & in mptsas_add_end_device()
1479 if (phy_info->attached.device_info & in mptsas_add_end_device()
1482 if (phy_info->attached.device_info & in mptsas_add_end_device()
1488 phy_info->attached.channel, phy_info->attached.id, in mptsas_add_end_device()
1489 phy_info->attached.phy_id, (unsigned long long) in mptsas_add_end_device()
1490 phy_info->attached.sas_address); in mptsas_add_end_device()
1492 mptsas_parse_device_info(&identify, &phy_info->attached); in mptsas_add_end_device()
1534 fw_id = phy_info->attached.id; in mptsas_del_end_device()
1535 sas_address = phy_info->attached.sas_address; in mptsas_del_end_device()
1551 if (phy_info->attached.device_info & MPI_SAS_DEVICE_INFO_SSP_INITIATOR in mptsas_del_end_device()
1552 || phy_info->attached.device_info in mptsas_del_end_device()
1554 || phy_info->attached.device_info in mptsas_del_end_device()
1557 if (phy_info->attached.device_info & in mptsas_del_end_device()
1560 if (phy_info->attached.device_info & in mptsas_del_end_device()
1563 if (phy_info->attached.device_info & in mptsas_del_end_device()
1569 "sas_addr 0x%llx\n", ioc->name, ds, phy_info->attached.channel, in mptsas_del_end_device()
1570 phy_info->attached.id, phy_info->attached.phy_id, in mptsas_del_end_device()
1585 if (phy_info_parent->attached.sas_address != in mptsas_del_end_device()
1620 if (port_info->phy_info[i].attached.sas_address != in mptsas_refreshing_device_handles()
1623 port_info->phy_info[i].attached.channel = sas_device->channel; in mptsas_refreshing_device_handles()
1624 port_info->phy_info[i].attached.id = sas_device->id; in mptsas_refreshing_device_handles()
1625 port_info->phy_info[i].attached.sas_address = in mptsas_refreshing_device_handles()
1627 port_info->phy_info[i].attached.handle = sas_device->handle; in mptsas_refreshing_device_handles()
1628 port_info->phy_info[i].attached.handle_parent = in mptsas_refreshing_device_handles()
1630 port_info->phy_info[i].attached.handle_enclosure = in mptsas_refreshing_device_handles()
1787 if (p->phy_info[i].attached.sas_address != in mptsas_target_alloc()
1790 id = p->phy_info[i].attached.id; in mptsas_target_alloc()
1791 channel = p->phy_info[i].attached.channel; in mptsas_target_alloc()
1802 p->phy_info[i].attached.phys_disk_num = id; in mptsas_target_alloc()
1846 if (p->phy_info[i].attached.sas_address != in mptsas_target_destroy()
1853 p->phy_info[i].attached.channel, in mptsas_target_destroy()
1854 p->phy_info[i].attached.id, in mptsas_target_destroy()
1855 p->phy_info[i].attached.phy_id, (unsigned long long) in mptsas_target_destroy()
1856 p->phy_info[i].attached.sas_address); in mptsas_target_destroy()
1897 if (p->phy_info[i].attached.sas_address != in mptsas_slave_alloc()
1905 p->phy_info[i].attached.channel, in mptsas_slave_alloc()
1906 p->phy_info[i].attached.id)) in mptsas_slave_alloc()
2195 if (p->phy_info[i].attached.sas_address == in mptsas_get_enclosure_identifier()
2198 attached.handle_enclosure; in mptsas_get_enclosure_identifier()
2227 if (p->phy_info[i].attached.sas_address == in mptsas_get_bay_identifier()
2229 rc = p->phy_info[i].attached.slot; in mptsas_get_bay_identifier()
2573 phy_info->attached.handle = le16_to_cpu(buffer->AttachedDevHandle); in mptsas_sas_phy_pg0()
2810 phy_info->attached.handle = le16_to_cpu(buffer->AttachedDevHandle); in mptsas_sas_expander_pg1()
3179 if (!phy_info->attached.handle || in mptsas_probe_one_phy()
3206 attached.sas_address)); in mptsas_probe_one_phy()
3229 if (mptsas_is_end_device(&phy_info->attached) && in mptsas_probe_one_phy()
3230 phy_info->attached.handle_parent) { in mptsas_probe_one_phy()
3234 mptsas_parse_device_info(&identify, &phy_info->attached); in mptsas_probe_one_phy()
3296 phy_info->attached.channel, in mptsas_probe_one_phy()
3297 phy_info->attached.id); in mptsas_probe_one_phy()
3360 if (port_info->phy_info[i].attached.handle) in mptsas_probe_hba_phys()
3362 &port_info->phy_info[i].attached, in mptsas_probe_hba_phys()
3365 port_info->phy_info[i].attached.handle); in mptsas_probe_hba_phys()
3407 if (port_info->phy_info[i].attached.handle) { in mptsas_expander_refresh()
3409 &port_info->phy_info[i].attached, in mptsas_expander_refresh()
3412 port_info->phy_info[i].attached.handle); in mptsas_expander_refresh()
3413 port_info->phy_info[i].attached.phy_id = in mptsas_expander_refresh()
3427 if (parent->phy_info[i].attached.sas_address == sas_address) { in mptsas_expander_refresh()
3583 if (phy_info->attached.sas_address != in mptsas_expander_delete()
3758 mptsas_is_end_device(&phy_info->attached)) { in mptsas_send_link_status_event()
3762 id = phy_info->attached.id; in mptsas_send_link_status_event()
3763 channel = phy_info->attached.channel; in mptsas_send_link_status_event()
3766 ioc->name, phy_info->attached.id, in mptsas_send_link_status_event()
3767 phy_info->attached.channel)); in mptsas_send_link_status_event()
4144 &port_info->phy_info[i].attached)) in mptsas_find_phyinfo_by_sas_address()
4146 if (port_info->phy_info[i].attached.sas_address in mptsas_find_phyinfo_by_sas_address()
4216 &port_info->phy_info[i].attached)) in mptsas_find_phyinfo_by_phys_disk_num()
4218 if (port_info->phy_info[i].attached.phys_disk_num == ~0) in mptsas_find_phyinfo_by_phys_disk_num()
4220 if ((port_info->phy_info[i].attached.phys_disk_num == in mptsas_find_phyinfo_by_phys_disk_num()
4222 (port_info->phy_info[i].attached.id == id) && in mptsas_find_phyinfo_by_phys_disk_num()
4223 (port_info->phy_info[i].attached.channel == in mptsas_find_phyinfo_by_phys_disk_num()
4485 phy_info->attached.phys_disk_num = hot_plug_info->phys_disk_num; in mptsas_hotplug_work()
4551 phy_info->attached.phys_disk_num = ~0; in mptsas_hotplug_work()