Lines Matching refs:attached

433 mptsas_is_end_device(struct mptsas_devinfo * attached)  in mptsas_is_end_device()  argument
435 if ((attached->sas_address) && in mptsas_is_end_device()
436 (attached->device_info & in mptsas_is_end_device()
438 ((attached->device_info & in mptsas_is_end_device()
440 (attached->device_info & in mptsas_is_end_device()
442 (attached->device_info & in mptsas_is_end_device()
471 memset(&phy_info->attached, 0, sizeof(struct mptsas_devinfo)); in mptsas_port_delete()
774 phy_info->attached.handle_enclosure); in mptsas_add_device_component_starget()
776 mptsas_add_device_component(ioc, phy_info->attached.channel, in mptsas_add_device_component_starget()
777 phy_info->attached.id, phy_info->attached.sas_address, in mptsas_add_device_component_starget()
778 phy_info->attached.device_info, in mptsas_add_device_component_starget()
779 phy_info->attached.slot, enclosure_info.enclosure_logical_id); in mptsas_add_device_component_starget()
842 if (phy_info->attached.handle) in mptsas_setup_wide_ports()
858 memset(&phy_info->attached, 0, sizeof(struct mptsas_devinfo)); in mptsas_setup_wide_ports()
874 sas_address = phy_info->attached.sas_address; in mptsas_setup_wide_ports()
905 if (!phy_info_cmp->attached.sas_address) in mptsas_setup_wide_ports()
907 if (sas_address != phy_info_cmp->attached.sas_address) in mptsas_setup_wide_ports()
914 phy_info_cmp->attached.sas_address)); in mptsas_setup_wide_ports()
1432 fw_id = phy_info->attached.id; in mptsas_add_end_device()
1449 if (phy_info->attached.device_info & in mptsas_add_end_device()
1452 if (phy_info->attached.device_info & in mptsas_add_end_device()
1455 if (phy_info->attached.device_info & in mptsas_add_end_device()
1461 phy_info->attached.channel, phy_info->attached.id, in mptsas_add_end_device()
1462 phy_info->attached.phy_id, (unsigned long long) in mptsas_add_end_device()
1463 phy_info->attached.sas_address); in mptsas_add_end_device()
1465 mptsas_parse_device_info(&identify, &phy_info->attached); in mptsas_add_end_device()
1507 fw_id = phy_info->attached.id; in mptsas_del_end_device()
1508 sas_address = phy_info->attached.sas_address; in mptsas_del_end_device()
1524 if (phy_info->attached.device_info & MPI_SAS_DEVICE_INFO_SSP_INITIATOR in mptsas_del_end_device()
1525 || phy_info->attached.device_info in mptsas_del_end_device()
1527 || phy_info->attached.device_info in mptsas_del_end_device()
1530 if (phy_info->attached.device_info & in mptsas_del_end_device()
1533 if (phy_info->attached.device_info & in mptsas_del_end_device()
1536 if (phy_info->attached.device_info & in mptsas_del_end_device()
1542 "sas_addr 0x%llx\n", ioc->name, ds, phy_info->attached.channel, in mptsas_del_end_device()
1543 phy_info->attached.id, phy_info->attached.phy_id, in mptsas_del_end_device()
1558 if (phy_info_parent->attached.sas_address != in mptsas_del_end_device()
1593 if (port_info->phy_info[i].attached.sas_address != in mptsas_refreshing_device_handles()
1596 port_info->phy_info[i].attached.channel = sas_device->channel; in mptsas_refreshing_device_handles()
1597 port_info->phy_info[i].attached.id = sas_device->id; in mptsas_refreshing_device_handles()
1598 port_info->phy_info[i].attached.sas_address = in mptsas_refreshing_device_handles()
1600 port_info->phy_info[i].attached.handle = sas_device->handle; in mptsas_refreshing_device_handles()
1601 port_info->phy_info[i].attached.handle_parent = in mptsas_refreshing_device_handles()
1603 port_info->phy_info[i].attached.handle_enclosure = in mptsas_refreshing_device_handles()
1760 if (p->phy_info[i].attached.sas_address != in mptsas_target_alloc()
1763 id = p->phy_info[i].attached.id; in mptsas_target_alloc()
1764 channel = p->phy_info[i].attached.channel; in mptsas_target_alloc()
1775 p->phy_info[i].attached.phys_disk_num = id; in mptsas_target_alloc()
1819 if (p->phy_info[i].attached.sas_address != in mptsas_target_destroy()
1826 p->phy_info[i].attached.channel, in mptsas_target_destroy()
1827 p->phy_info[i].attached.id, in mptsas_target_destroy()
1828 p->phy_info[i].attached.phy_id, (unsigned long long) in mptsas_target_destroy()
1829 p->phy_info[i].attached.sas_address); in mptsas_target_destroy()
1870 if (p->phy_info[i].attached.sas_address != in mptsas_slave_alloc()
1878 p->phy_info[i].attached.channel, in mptsas_slave_alloc()
1879 p->phy_info[i].attached.id)) in mptsas_slave_alloc()
2168 if (p->phy_info[i].attached.sas_address == in mptsas_get_enclosure_identifier()
2171 attached.handle_enclosure; in mptsas_get_enclosure_identifier()
2200 if (p->phy_info[i].attached.sas_address == in mptsas_get_bay_identifier()
2202 rc = p->phy_info[i].attached.slot; in mptsas_get_bay_identifier()
2551 phy_info->attached.handle = le16_to_cpu(buffer->AttachedDevHandle); in mptsas_sas_phy_pg0()
2788 phy_info->attached.handle = le16_to_cpu(buffer->AttachedDevHandle); in mptsas_sas_expander_pg1()
3156 if (!phy_info->attached.handle || in mptsas_probe_one_phy()
3183 attached.sas_address)); in mptsas_probe_one_phy()
3206 if (mptsas_is_end_device(&phy_info->attached) && in mptsas_probe_one_phy()
3207 phy_info->attached.handle_parent) { in mptsas_probe_one_phy()
3211 mptsas_parse_device_info(&identify, &phy_info->attached); in mptsas_probe_one_phy()
3273 phy_info->attached.channel, in mptsas_probe_one_phy()
3274 phy_info->attached.id); in mptsas_probe_one_phy()
3337 if (port_info->phy_info[i].attached.handle) in mptsas_probe_hba_phys()
3339 &port_info->phy_info[i].attached, in mptsas_probe_hba_phys()
3342 port_info->phy_info[i].attached.handle); in mptsas_probe_hba_phys()
3384 if (port_info->phy_info[i].attached.handle) { in mptsas_expander_refresh()
3386 &port_info->phy_info[i].attached, in mptsas_expander_refresh()
3389 port_info->phy_info[i].attached.handle); in mptsas_expander_refresh()
3390 port_info->phy_info[i].attached.phy_id = in mptsas_expander_refresh()
3404 if (parent->phy_info[i].attached.sas_address == sas_address) { in mptsas_expander_refresh()
3562 if (phy_info->attached.sas_address != in mptsas_expander_delete()
3738 mptsas_is_end_device(&phy_info->attached)) { in mptsas_send_link_status_event()
3742 id = phy_info->attached.id; in mptsas_send_link_status_event()
3743 channel = phy_info->attached.channel; in mptsas_send_link_status_event()
3746 ioc->name, phy_info->attached.id, in mptsas_send_link_status_event()
3747 phy_info->attached.channel)); in mptsas_send_link_status_event()
4124 &port_info->phy_info[i].attached)) in mptsas_find_phyinfo_by_sas_address()
4126 if (port_info->phy_info[i].attached.sas_address in mptsas_find_phyinfo_by_sas_address()
4195 &port_info->phy_info[i].attached)) in mptsas_find_phyinfo_by_phys_disk_num()
4197 if (port_info->phy_info[i].attached.phys_disk_num == ~0) in mptsas_find_phyinfo_by_phys_disk_num()
4199 if ((port_info->phy_info[i].attached.phys_disk_num == in mptsas_find_phyinfo_by_phys_disk_num()
4201 (port_info->phy_info[i].attached.id == id) && in mptsas_find_phyinfo_by_phys_disk_num()
4202 (port_info->phy_info[i].attached.channel == in mptsas_find_phyinfo_by_phys_disk_num()
4464 phy_info->attached.phys_disk_num = hot_plug_info->phys_disk_num; in mptsas_hotplug_work()
4530 phy_info->attached.phys_disk_num = ~0; in mptsas_hotplug_work()