Lines Matching defs:this_device

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