Lines Matching refs:sas_info

586 	struct mptsas_device_info	*sas_info, *next;  in mptsas_add_device_component()  local
595 list_for_each_entry_safe(sas_info, next, &ioc->sas_device_info_list, in mptsas_add_device_component()
597 if (!sas_info->is_logical_volume && in mptsas_add_device_component()
598 (sas_info->sas_address == sas_address || in mptsas_add_device_component()
599 (sas_info->fw.channel == channel && in mptsas_add_device_component()
600 sas_info->fw.id == id))) { in mptsas_add_device_component()
601 list_del(&sas_info->list); in mptsas_add_device_component()
602 kfree(sas_info); in mptsas_add_device_component()
606 sas_info = kzalloc(sizeof(struct mptsas_device_info), GFP_KERNEL); in mptsas_add_device_component()
607 if (!sas_info) in mptsas_add_device_component()
613 sas_info->fw.id = id; in mptsas_add_device_component()
614 sas_info->fw.channel = channel; in mptsas_add_device_component()
616 sas_info->sas_address = sas_address; in mptsas_add_device_component()
617 sas_info->device_info = device_info; in mptsas_add_device_component()
618 sas_info->slot = slot; in mptsas_add_device_component()
619 sas_info->enclosure_logical_id = enclosure_logical_id; in mptsas_add_device_component()
620 INIT_LIST_HEAD(&sas_info->list); in mptsas_add_device_component()
621 list_add_tail(&sas_info->list, &ioc->sas_device_info_list); in mptsas_add_device_component()
630 sas_info->os.id = starget->id; in mptsas_add_device_component()
631 sas_info->os.channel = starget->channel; in mptsas_add_device_component()
688 struct mptsas_device_info *sas_info, *next; in mptsas_add_device_component_starget_ir() local
733 list_for_each_entry(sas_info, &ioc->sas_device_info_list, in mptsas_add_device_component_starget_ir()
735 if (!sas_info->is_logical_volume && in mptsas_add_device_component_starget_ir()
736 (sas_info->fw.channel == phys_disk.PhysDiskBus && in mptsas_add_device_component_starget_ir()
737 sas_info->fw.id == phys_disk.PhysDiskID)) { in mptsas_add_device_component_starget_ir()
738 sas_info->is_hidden_raid_component = 1; in mptsas_add_device_component_starget_ir()
739 sas_info->volume_id = starget->id; in mptsas_add_device_component_starget_ir()
750 list_for_each_entry_safe(sas_info, next, &ioc->sas_device_info_list, in mptsas_add_device_component_starget_ir()
752 if (sas_info->is_logical_volume && sas_info->fw.id == in mptsas_add_device_component_starget_ir()
754 list_del(&sas_info->list); in mptsas_add_device_component_starget_ir()
755 kfree(sas_info); in mptsas_add_device_component_starget_ir()
759 sas_info = kzalloc(sizeof(struct mptsas_device_info), GFP_KERNEL); in mptsas_add_device_component_starget_ir()
760 if (sas_info) { in mptsas_add_device_component_starget_ir()
761 sas_info->fw.id = starget->id; in mptsas_add_device_component_starget_ir()
762 sas_info->os.id = starget->id; in mptsas_add_device_component_starget_ir()
763 sas_info->os.channel = starget->channel; in mptsas_add_device_component_starget_ir()
764 sas_info->is_logical_volume = 1; in mptsas_add_device_component_starget_ir()
765 INIT_LIST_HEAD(&sas_info->list); in mptsas_add_device_component_starget_ir()
766 list_add_tail(&sas_info->list, &ioc->sas_device_info_list); in mptsas_add_device_component_starget_ir()
818 struct mptsas_device_info *sas_info, *next; in mptsas_del_device_component_by_os() local
823 list_for_each_entry_safe(sas_info, next, &ioc->sas_device_info_list, in mptsas_del_device_component_by_os()
825 if (sas_info->os.channel == channel && sas_info->os.id == id) in mptsas_del_device_component_by_os()
826 sas_info->is_cached = 1; in mptsas_del_device_component_by_os()
838 struct mptsas_device_info *sas_info, *next; in mptsas_del_device_components() local
841 list_for_each_entry_safe(sas_info, next, &ioc->sas_device_info_list, in mptsas_del_device_components()
843 list_del(&sas_info->list); in mptsas_del_device_components()
844 kfree(sas_info); in mptsas_del_device_components()
3798 struct mptsas_device_info *sas_info; in mptsas_not_responding_devices() local
3822 list_for_each_entry(sas_info, &ioc->sas_device_info_list, list) { in mptsas_not_responding_devices()
3823 if (sas_info->is_cached) in mptsas_not_responding_devices()
3825 if (!sas_info->is_logical_volume) { in mptsas_not_responding_devices()
3832 (sas_info->fw.channel << 8) + in mptsas_not_responding_devices()
3833 sas_info->fw.id); in mptsas_not_responding_devices()
3863 sas_info->sas_address)); in mptsas_not_responding_devices()
3869 sas_info->fw.channel, sas_info->fw.id); in mptsas_not_responding_devices()
3875 sas_info->sas_address); in mptsas_not_responding_devices()
3880 mptsas_volume_delete(ioc, sas_info->fw.id); in mptsas_not_responding_devices()
4049 struct mptsas_device_info *sas_info; in mptsas_handle_queue_full_event() local
4067 list_for_each_entry(sas_info, &ioc->sas_device_info_list, in mptsas_handle_queue_full_event()
4069 if (sas_info->is_cached || in mptsas_handle_queue_full_event()
4070 sas_info->is_logical_volume) in mptsas_handle_queue_full_event()
4072 if (sas_info->is_hidden_raid_component && in mptsas_handle_queue_full_event()
4073 (sas_info->fw.channel == fw_channel && in mptsas_handle_queue_full_event()
4074 sas_info->fw.id == fw_id)) { in mptsas_handle_queue_full_event()
4075 id = sas_info->volume_id; in mptsas_handle_queue_full_event()
4081 list_for_each_entry(sas_info, &ioc->sas_device_info_list, in mptsas_handle_queue_full_event()
4083 if (sas_info->is_cached || in mptsas_handle_queue_full_event()
4084 sas_info->is_hidden_raid_component || in mptsas_handle_queue_full_event()
4085 sas_info->is_logical_volume) in mptsas_handle_queue_full_event()
4087 if (sas_info->fw.channel == fw_channel && in mptsas_handle_queue_full_event()
4088 sas_info->fw.id == fw_id) { in mptsas_handle_queue_full_event()
4089 id = sas_info->os.id; in mptsas_handle_queue_full_event()
4090 channel = sas_info->os.channel; in mptsas_handle_queue_full_event()