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()
3181 if (!phy_info->attached.handle || in mptsas_probe_one_phy()
3208 attached.sas_address)); in mptsas_probe_one_phy()
3231 if (mptsas_is_end_device(&phy_info->attached) && in mptsas_probe_one_phy()
3232 phy_info->attached.handle_parent) { in mptsas_probe_one_phy()
3236 mptsas_parse_device_info(&identify, &phy_info->attached); in mptsas_probe_one_phy()
3298 phy_info->attached.channel, in mptsas_probe_one_phy()
3299 phy_info->attached.id); in mptsas_probe_one_phy()
3362 if (port_info->phy_info[i].attached.handle) in mptsas_probe_hba_phys()
3364 &port_info->phy_info[i].attached, in mptsas_probe_hba_phys()
3367 port_info->phy_info[i].attached.handle); in mptsas_probe_hba_phys()
3409 if (port_info->phy_info[i].attached.handle) { in mptsas_expander_refresh()
3411 &port_info->phy_info[i].attached, in mptsas_expander_refresh()
3414 port_info->phy_info[i].attached.handle); in mptsas_expander_refresh()
3415 port_info->phy_info[i].attached.phy_id = in mptsas_expander_refresh()
3429 if (parent->phy_info[i].attached.sas_address == sas_address) { in mptsas_expander_refresh()
3585 if (phy_info->attached.sas_address != in mptsas_expander_delete()
3760 mptsas_is_end_device(&phy_info->attached)) { in mptsas_send_link_status_event()
3764 id = phy_info->attached.id; in mptsas_send_link_status_event()
3765 channel = phy_info->attached.channel; in mptsas_send_link_status_event()
3768 ioc->name, phy_info->attached.id, in mptsas_send_link_status_event()
3769 phy_info->attached.channel)); in mptsas_send_link_status_event()
4146 &port_info->phy_info[i].attached)) in mptsas_find_phyinfo_by_sas_address()
4148 if (port_info->phy_info[i].attached.sas_address in mptsas_find_phyinfo_by_sas_address()
4218 &port_info->phy_info[i].attached)) in mptsas_find_phyinfo_by_phys_disk_num()
4220 if (port_info->phy_info[i].attached.phys_disk_num == ~0) in mptsas_find_phyinfo_by_phys_disk_num()
4222 if ((port_info->phy_info[i].attached.phys_disk_num == in mptsas_find_phyinfo_by_phys_disk_num()
4224 (port_info->phy_info[i].attached.id == id) && in mptsas_find_phyinfo_by_phys_disk_num()
4225 (port_info->phy_info[i].attached.channel == in mptsas_find_phyinfo_by_phys_disk_num()
4487 phy_info->attached.phys_disk_num = hot_plug_info->phys_disk_num; in mptsas_hotplug_work()
4553 phy_info->attached.phys_disk_num = ~0; in mptsas_hotplug_work()