Lines Matching refs:this_device

3294 	unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device)  in hpsa_get_raid_map()  argument
3302 if (fill_cmd(c, HPSA_GET_RAID_MAP, h, &this_device->raid_map, in hpsa_get_raid_map()
3303 sizeof(this_device->raid_map), 0, in hpsa_get_raid_map()
3322 if (le32_to_cpu(this_device->raid_map.structure_size) > in hpsa_get_raid_map()
3323 sizeof(this_device->raid_map)) { in hpsa_get_raid_map()
3327 hpsa_debug_map_buff(h, rc, &this_device->raid_map); in hpsa_get_raid_map()
3648 unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device) in hpsa_get_ioaccel_status() argument
3654 this_device->offload_config = 0; in hpsa_get_ioaccel_status()
3655 this_device->offload_enabled = 0; in hpsa_get_ioaccel_status()
3656 this_device->offload_to_be_enabled = 0; in hpsa_get_ioaccel_status()
3672 this_device->offload_config = in hpsa_get_ioaccel_status()
3674 if (this_device->offload_config) { in hpsa_get_ioaccel_status()
3675 this_device->offload_to_be_enabled = in hpsa_get_ioaccel_status()
3677 if (hpsa_get_raid_map(h, scsi3addr, this_device)) in hpsa_get_ioaccel_status()
3678 this_device->offload_to_be_enabled = 0; in hpsa_get_ioaccel_status()
3916 unsigned char scsi3addr[], struct hpsa_scsi_dev_t *this_device, in hpsa_update_device_info() argument
3948 this_device->devtype = (inq_buff[0] & 0x1f); in hpsa_update_device_info()
3949 memcpy(this_device->scsi3addr, scsi3addr, 8); in hpsa_update_device_info()
3950 memcpy(this_device->vendor, &inq_buff[8], in hpsa_update_device_info()
3951 sizeof(this_device->vendor)); in hpsa_update_device_info()
3952 memcpy(this_device->model, &inq_buff[16], in hpsa_update_device_info()
3953 sizeof(this_device->model)); in hpsa_update_device_info()
3954 this_device->rev = inq_buff[2]; in hpsa_update_device_info()
3955 memset(this_device->device_id, 0, in hpsa_update_device_info()
3956 sizeof(this_device->device_id)); in hpsa_update_device_info()
3957 if (hpsa_get_device_id(h, scsi3addr, this_device->device_id, 8, in hpsa_update_device_info()
3958 sizeof(this_device->device_id)) < 0) in hpsa_update_device_info()
3963 this_device->target, this_device->lun, in hpsa_update_device_info()
3964 scsi_device_type(this_device->devtype), in hpsa_update_device_info()
3965 this_device->model); in hpsa_update_device_info()
3967 if ((this_device->devtype == TYPE_DISK || in hpsa_update_device_info()
3968 this_device->devtype == TYPE_ZBC) && in hpsa_update_device_info()
3972 hpsa_get_raid_level(h, scsi3addr, &this_device->raid_level); in hpsa_update_device_info()
3974 hpsa_get_ioaccel_status(h, scsi3addr, this_device); in hpsa_update_device_info()
3983 this_device->target, this_device->lun); in hpsa_update_device_info()
3986 this_device->volume_offline = volume_offline; in hpsa_update_device_info()
3995 this_device->raid_level = RAID_UNKNOWN; in hpsa_update_device_info()
3996 this_device->offload_config = 0; in hpsa_update_device_info()
3997 this_device->offload_enabled = 0; in hpsa_update_device_info()
3998 this_device->offload_to_be_enabled = 0; in hpsa_update_device_info()
3999 this_device->hba_ioaccel_enabled = 0; in hpsa_update_device_info()
4000 this_device->volume_offline = 0; in hpsa_update_device_info()
4001 this_device->queue_depth = h->nr_cmds; in hpsa_update_device_info()
4004 if (this_device->external) in hpsa_update_device_info()
4005 this_device->queue_depth = EXTERNAL_QD; in hpsa_update_device_info()
4012 *is_OBDR_device = (this_device->devtype == TYPE_ROM && in hpsa_update_device_info()
4181 static void hpsa_get_path_info(struct hpsa_scsi_dev_t *this_device, in hpsa_get_path_info() argument
4187 if ((rle->device_flags & 0x08) && this_device->ioaccel_handle) in hpsa_get_path_info()
4188 this_device->hba_ioaccel_enabled = 1; in hpsa_get_path_info()
4190 memcpy(&this_device->active_path_index, in hpsa_get_path_info()
4192 sizeof(this_device->active_path_index)); in hpsa_get_path_info()
4193 memcpy(&this_device->path_map, in hpsa_get_path_info()
4195 sizeof(this_device->path_map)); in hpsa_get_path_info()
4196 memcpy(&this_device->box, in hpsa_get_path_info()
4198 sizeof(this_device->box)); in hpsa_get_path_info()
4199 memcpy(&this_device->phys_connector, in hpsa_get_path_info()
4201 sizeof(this_device->phys_connector)); in hpsa_get_path_info()
4202 memcpy(&this_device->bay, in hpsa_get_path_info()
4204 sizeof(this_device->bay)); in hpsa_get_path_info()
4317 struct hpsa_scsi_dev_t **currentsd, *this_device, *tmpdevice; in hpsa_update_scsi_devices() local
4429 this_device = currentsd[ncurrent]; in hpsa_update_scsi_devices()
4431 *this_device = *tmpdevice; in hpsa_update_scsi_devices()
4432 this_device->physical_device = physical_device; in hpsa_update_scsi_devices()
4438 if (MASKED_DEVICE(lunaddrbytes) && this_device->physical_device) in hpsa_update_scsi_devices()
4439 this_device->expose_device = 0; in hpsa_update_scsi_devices()
4441 this_device->expose_device = 1; in hpsa_update_scsi_devices()
4447 if (this_device->physical_device && this_device->expose_device) in hpsa_update_scsi_devices()
4448 hpsa_get_sas_address(h, lunaddrbytes, this_device); in hpsa_update_scsi_devices()
4450 switch (this_device->devtype) { in hpsa_update_scsi_devices()
4464 if (this_device->physical_device) { in hpsa_update_scsi_devices()
4467 this_device->offload_enabled = 0; in hpsa_update_scsi_devices()
4468 hpsa_get_ioaccel_drive_info(h, this_device, in hpsa_update_scsi_devices()
4470 hpsa_get_path_info(this_device, in hpsa_update_scsi_devices()
4480 if (!this_device->external) in hpsa_update_scsi_devices()
4483 this_device); in hpsa_update_scsi_devices()