Lines Matching refs:this_device
3292 unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device) in hpsa_get_raid_map() argument
3300 if (fill_cmd(c, HPSA_GET_RAID_MAP, h, &this_device->raid_map, in hpsa_get_raid_map()
3301 sizeof(this_device->raid_map), 0, in hpsa_get_raid_map()
3320 if (le32_to_cpu(this_device->raid_map.structure_size) > in hpsa_get_raid_map()
3321 sizeof(this_device->raid_map)) { in hpsa_get_raid_map()
3325 hpsa_debug_map_buff(h, rc, &this_device->raid_map); in hpsa_get_raid_map()
3646 unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device) in hpsa_get_ioaccel_status() argument
3652 this_device->offload_config = 0; in hpsa_get_ioaccel_status()
3653 this_device->offload_enabled = 0; in hpsa_get_ioaccel_status()
3654 this_device->offload_to_be_enabled = 0; in hpsa_get_ioaccel_status()
3670 this_device->offload_config = in hpsa_get_ioaccel_status()
3672 if (this_device->offload_config) { in hpsa_get_ioaccel_status()
3673 this_device->offload_to_be_enabled = in hpsa_get_ioaccel_status()
3675 if (hpsa_get_raid_map(h, scsi3addr, this_device)) in hpsa_get_ioaccel_status()
3676 this_device->offload_to_be_enabled = 0; in hpsa_get_ioaccel_status()
3914 unsigned char scsi3addr[], struct hpsa_scsi_dev_t *this_device, in hpsa_update_device_info() argument
3946 this_device->devtype = (inq_buff[0] & 0x1f); in hpsa_update_device_info()
3947 memcpy(this_device->scsi3addr, scsi3addr, 8); in hpsa_update_device_info()
3948 memcpy(this_device->vendor, &inq_buff[8], in hpsa_update_device_info()
3949 sizeof(this_device->vendor)); in hpsa_update_device_info()
3950 memcpy(this_device->model, &inq_buff[16], in hpsa_update_device_info()
3951 sizeof(this_device->model)); in hpsa_update_device_info()
3952 this_device->rev = inq_buff[2]; in hpsa_update_device_info()
3953 memset(this_device->device_id, 0, in hpsa_update_device_info()
3954 sizeof(this_device->device_id)); in hpsa_update_device_info()
3955 if (hpsa_get_device_id(h, scsi3addr, this_device->device_id, 8, in hpsa_update_device_info()
3956 sizeof(this_device->device_id)) < 0) { in hpsa_update_device_info()
3961 this_device->bus, this_device->target, in hpsa_update_device_info()
3962 this_device->lun, in hpsa_update_device_info()
3963 scsi_device_type(this_device->devtype), in hpsa_update_device_info()
3964 this_device->model); in hpsa_update_device_info()
3969 if ((this_device->devtype == TYPE_DISK || in hpsa_update_device_info()
3970 this_device->devtype == TYPE_ZBC) && in hpsa_update_device_info()
3974 hpsa_get_raid_level(h, scsi3addr, &this_device->raid_level); in hpsa_update_device_info()
3976 hpsa_get_ioaccel_status(h, scsi3addr, this_device); in hpsa_update_device_info()
3985 this_device->target, this_device->lun); in hpsa_update_device_info()
3988 this_device->volume_offline = volume_offline; in hpsa_update_device_info()
3997 this_device->raid_level = RAID_UNKNOWN; in hpsa_update_device_info()
3998 this_device->offload_config = 0; in hpsa_update_device_info()
3999 this_device->offload_enabled = 0; in hpsa_update_device_info()
4000 this_device->offload_to_be_enabled = 0; in hpsa_update_device_info()
4001 this_device->hba_ioaccel_enabled = 0; in hpsa_update_device_info()
4002 this_device->volume_offline = 0; in hpsa_update_device_info()
4003 this_device->queue_depth = h->nr_cmds; in hpsa_update_device_info()
4006 if (this_device->external) in hpsa_update_device_info()
4007 this_device->queue_depth = EXTERNAL_QD; in hpsa_update_device_info()
4014 *is_OBDR_device = (this_device->devtype == TYPE_ROM && in hpsa_update_device_info()
4183 static void hpsa_get_path_info(struct hpsa_scsi_dev_t *this_device, in hpsa_get_path_info() argument
4189 if ((rle->device_flags & 0x08) && this_device->ioaccel_handle) in hpsa_get_path_info()
4190 this_device->hba_ioaccel_enabled = 1; in hpsa_get_path_info()
4192 memcpy(&this_device->active_path_index, in hpsa_get_path_info()
4194 sizeof(this_device->active_path_index)); in hpsa_get_path_info()
4195 memcpy(&this_device->path_map, in hpsa_get_path_info()
4197 sizeof(this_device->path_map)); in hpsa_get_path_info()
4198 memcpy(&this_device->box, in hpsa_get_path_info()
4200 sizeof(this_device->box)); in hpsa_get_path_info()
4201 memcpy(&this_device->phys_connector, in hpsa_get_path_info()
4203 sizeof(this_device->phys_connector)); in hpsa_get_path_info()
4204 memcpy(&this_device->bay, in hpsa_get_path_info()
4206 sizeof(this_device->bay)); in hpsa_get_path_info()
4319 struct hpsa_scsi_dev_t **currentsd, *this_device, *tmpdevice; in hpsa_update_scsi_devices() local
4431 this_device = currentsd[ncurrent]; in hpsa_update_scsi_devices()
4433 *this_device = *tmpdevice; in hpsa_update_scsi_devices()
4434 this_device->physical_device = physical_device; in hpsa_update_scsi_devices()
4440 if (MASKED_DEVICE(lunaddrbytes) && this_device->physical_device) in hpsa_update_scsi_devices()
4441 this_device->expose_device = 0; in hpsa_update_scsi_devices()
4443 this_device->expose_device = 1; in hpsa_update_scsi_devices()
4449 if (this_device->physical_device && this_device->expose_device) in hpsa_update_scsi_devices()
4450 hpsa_get_sas_address(h, lunaddrbytes, this_device); in hpsa_update_scsi_devices()
4452 switch (this_device->devtype) { in hpsa_update_scsi_devices()
4466 if (this_device->physical_device) { in hpsa_update_scsi_devices()
4469 this_device->offload_enabled = 0; in hpsa_update_scsi_devices()
4470 hpsa_get_ioaccel_drive_info(h, this_device, in hpsa_update_scsi_devices()
4472 hpsa_get_path_info(this_device, in hpsa_update_scsi_devices()
4482 if (!this_device->external) in hpsa_update_scsi_devices()
4485 this_device); in hpsa_update_scsi_devices()