Lines Matching refs:this_device
3310 unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device) in hpsa_get_raid_map() argument
3318 if (fill_cmd(c, HPSA_GET_RAID_MAP, h, &this_device->raid_map, in hpsa_get_raid_map()
3319 sizeof(this_device->raid_map), 0, in hpsa_get_raid_map()
3338 if (le32_to_cpu(this_device->raid_map.structure_size) > in hpsa_get_raid_map()
3339 sizeof(this_device->raid_map)) { in hpsa_get_raid_map()
3343 hpsa_debug_map_buff(h, rc, &this_device->raid_map); in hpsa_get_raid_map()
3669 unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device) in hpsa_get_ioaccel_status() argument
3675 this_device->offload_config = 0; in hpsa_get_ioaccel_status()
3676 this_device->offload_enabled = 0; in hpsa_get_ioaccel_status()
3677 this_device->offload_to_be_enabled = 0; in hpsa_get_ioaccel_status()
3693 this_device->offload_config = in hpsa_get_ioaccel_status()
3695 if (this_device->offload_config) { in hpsa_get_ioaccel_status()
3702 rc = hpsa_get_raid_map(h, scsi3addr, this_device); in hpsa_get_ioaccel_status()
3705 this_device->offload_to_be_enabled = 1; in hpsa_get_ioaccel_status()
3940 unsigned char scsi3addr[], struct hpsa_scsi_dev_t *this_device, in hpsa_update_device_info() argument
3972 this_device->devtype = (inq_buff[0] & 0x1f); in hpsa_update_device_info()
3973 memcpy(this_device->scsi3addr, scsi3addr, 8); in hpsa_update_device_info()
3974 memcpy(this_device->vendor, &inq_buff[8], in hpsa_update_device_info()
3975 sizeof(this_device->vendor)); in hpsa_update_device_info()
3976 memcpy(this_device->model, &inq_buff[16], in hpsa_update_device_info()
3977 sizeof(this_device->model)); in hpsa_update_device_info()
3978 this_device->rev = inq_buff[2]; in hpsa_update_device_info()
3979 memset(this_device->device_id, 0, in hpsa_update_device_info()
3980 sizeof(this_device->device_id)); in hpsa_update_device_info()
3981 if (hpsa_get_device_id(h, scsi3addr, this_device->device_id, 8, in hpsa_update_device_info()
3982 sizeof(this_device->device_id)) < 0) { in hpsa_update_device_info()
3987 this_device->bus, this_device->target, in hpsa_update_device_info()
3988 this_device->lun, in hpsa_update_device_info()
3989 scsi_device_type(this_device->devtype), in hpsa_update_device_info()
3990 this_device->model); in hpsa_update_device_info()
3995 if ((this_device->devtype == TYPE_DISK || in hpsa_update_device_info()
3996 this_device->devtype == TYPE_ZBC) && in hpsa_update_device_info()
4000 hpsa_get_raid_level(h, scsi3addr, &this_device->raid_level); in hpsa_update_device_info()
4002 hpsa_get_ioaccel_status(h, scsi3addr, this_device); in hpsa_update_device_info()
4011 this_device->target, this_device->lun); in hpsa_update_device_info()
4014 this_device->volume_offline = volume_offline; in hpsa_update_device_info()
4023 this_device->raid_level = RAID_UNKNOWN; in hpsa_update_device_info()
4024 this_device->offload_config = 0; in hpsa_update_device_info()
4025 hpsa_turn_off_ioaccel_for_device(this_device); in hpsa_update_device_info()
4026 this_device->hba_ioaccel_enabled = 0; in hpsa_update_device_info()
4027 this_device->volume_offline = 0; in hpsa_update_device_info()
4028 this_device->queue_depth = h->nr_cmds; in hpsa_update_device_info()
4031 if (this_device->external) in hpsa_update_device_info()
4032 this_device->queue_depth = EXTERNAL_QD; in hpsa_update_device_info()
4039 *is_OBDR_device = (this_device->devtype == TYPE_ROM && in hpsa_update_device_info()
4211 static void hpsa_get_path_info(struct hpsa_scsi_dev_t *this_device, in hpsa_get_path_info() argument
4222 if ((rle->device_flags & 0x08) && this_device->ioaccel_handle) in hpsa_get_path_info()
4223 this_device->hba_ioaccel_enabled = 1; in hpsa_get_path_info()
4225 memcpy(&this_device->active_path_index, in hpsa_get_path_info()
4227 sizeof(this_device->active_path_index)); in hpsa_get_path_info()
4228 memcpy(&this_device->path_map, in hpsa_get_path_info()
4230 sizeof(this_device->path_map)); in hpsa_get_path_info()
4231 memcpy(&this_device->box, in hpsa_get_path_info()
4233 sizeof(this_device->box)); in hpsa_get_path_info()
4234 memcpy(&this_device->phys_connector, in hpsa_get_path_info()
4236 sizeof(this_device->phys_connector)); in hpsa_get_path_info()
4237 memcpy(&this_device->bay, in hpsa_get_path_info()
4239 sizeof(this_device->bay)); in hpsa_get_path_info()
4352 struct hpsa_scsi_dev_t **currentsd, *this_device, *tmpdevice; in hpsa_update_scsi_devices() local
4462 this_device = currentsd[ncurrent]; in hpsa_update_scsi_devices()
4464 *this_device = *tmpdevice; in hpsa_update_scsi_devices()
4465 this_device->physical_device = physical_device; in hpsa_update_scsi_devices()
4471 if (MASKED_DEVICE(lunaddrbytes) && this_device->physical_device) in hpsa_update_scsi_devices()
4472 this_device->expose_device = 0; in hpsa_update_scsi_devices()
4474 this_device->expose_device = 1; in hpsa_update_scsi_devices()
4480 if (this_device->physical_device && this_device->expose_device) in hpsa_update_scsi_devices()
4481 hpsa_get_sas_address(h, lunaddrbytes, this_device); in hpsa_update_scsi_devices()
4483 switch (this_device->devtype) { in hpsa_update_scsi_devices()
4497 if (this_device->physical_device) { in hpsa_update_scsi_devices()
4500 this_device->offload_enabled = 0; in hpsa_update_scsi_devices()
4501 hpsa_get_ioaccel_drive_info(h, this_device, in hpsa_update_scsi_devices()
4503 hpsa_get_path_info(this_device, in hpsa_update_scsi_devices()
4513 if (!this_device->external) in hpsa_update_scsi_devices()
4516 this_device); in hpsa_update_scsi_devices()