Lines Matching refs:found_device
329 struct pqi_scsi_dev *found_device; in pqi_sas_get_enclosure_identifier() local
338 found_device = pqi_find_device_by_sas_rphy(ctrl_info, rphy); in pqi_sas_get_enclosure_identifier()
340 if (!found_device) { in pqi_sas_get_enclosure_identifier()
345 if (found_device->devtype == TYPE_ENCLOSURE) { in pqi_sas_get_enclosure_identifier()
346 *identifier = get_unaligned_be64(&found_device->wwid[8]); in pqi_sas_get_enclosure_identifier()
351 if (found_device->box_index == 0xff || in pqi_sas_get_enclosure_identifier()
352 found_device->phys_box_on_bus == 0 || in pqi_sas_get_enclosure_identifier()
353 found_device->bay == 0xff) { in pqi_sas_get_enclosure_identifier()
361 device->box_index == found_device->box_index && in pqi_sas_get_enclosure_identifier()
363 found_device->phys_box_on_bus && in pqi_sas_get_enclosure_identifier()
365 found_device->phys_connector, 2) == 0) { in pqi_sas_get_enclosure_identifier()
373 if (found_device->phy_connected_dev_type != SA_DEVICE_TYPE_CONTROLLER) { in pqi_sas_get_enclosure_identifier()