Lines Matching refs:this_device

3064 	unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device)  in hpsa_get_raid_map()  argument
3072 if (fill_cmd(c, HPSA_GET_RAID_MAP, h, &this_device->raid_map, in hpsa_get_raid_map()
3073 sizeof(this_device->raid_map), 0, in hpsa_get_raid_map()
3092 if (le32_to_cpu(this_device->raid_map.structure_size) > in hpsa_get_raid_map()
3093 sizeof(this_device->raid_map)) { in hpsa_get_raid_map()
3097 hpsa_debug_map_buff(h, rc, &this_device->raid_map); in hpsa_get_raid_map()
3299 unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device) in hpsa_get_ioaccel_status() argument
3305 this_device->offload_config = 0; in hpsa_get_ioaccel_status()
3306 this_device->offload_enabled = 0; in hpsa_get_ioaccel_status()
3307 this_device->offload_to_be_enabled = 0; in hpsa_get_ioaccel_status()
3323 this_device->offload_config = in hpsa_get_ioaccel_status()
3325 if (this_device->offload_config) { in hpsa_get_ioaccel_status()
3326 this_device->offload_enabled = in hpsa_get_ioaccel_status()
3328 if (hpsa_get_raid_map(h, scsi3addr, this_device)) in hpsa_get_ioaccel_status()
3329 this_device->offload_enabled = 0; in hpsa_get_ioaccel_status()
3331 this_device->offload_to_be_enabled = this_device->offload_enabled; in hpsa_get_ioaccel_status()
3596 unsigned char scsi3addr[], struct hpsa_scsi_dev_t *this_device, in hpsa_update_device_info() argument
3628 this_device->devtype = (inq_buff[0] & 0x1f); in hpsa_update_device_info()
3629 memcpy(this_device->scsi3addr, scsi3addr, 8); in hpsa_update_device_info()
3630 memcpy(this_device->vendor, &inq_buff[8], in hpsa_update_device_info()
3631 sizeof(this_device->vendor)); in hpsa_update_device_info()
3632 memcpy(this_device->model, &inq_buff[16], in hpsa_update_device_info()
3633 sizeof(this_device->model)); in hpsa_update_device_info()
3634 memset(this_device->device_id, 0, in hpsa_update_device_info()
3635 sizeof(this_device->device_id)); in hpsa_update_device_info()
3636 hpsa_get_device_id(h, scsi3addr, this_device->device_id, 8, in hpsa_update_device_info()
3637 sizeof(this_device->device_id)); in hpsa_update_device_info()
3639 if (this_device->devtype == TYPE_DISK && in hpsa_update_device_info()
3643 hpsa_get_raid_level(h, scsi3addr, &this_device->raid_level); in hpsa_update_device_info()
3645 hpsa_get_ioaccel_status(h, scsi3addr, this_device); in hpsa_update_device_info()
3649 this_device->volume_offline = volume_offline & 0xff; in hpsa_update_device_info()
3651 this_device->raid_level = RAID_UNKNOWN; in hpsa_update_device_info()
3652 this_device->offload_config = 0; in hpsa_update_device_info()
3653 this_device->offload_enabled = 0; in hpsa_update_device_info()
3654 this_device->offload_to_be_enabled = 0; in hpsa_update_device_info()
3655 this_device->hba_ioaccel_enabled = 0; in hpsa_update_device_info()
3656 this_device->volume_offline = 0; in hpsa_update_device_info()
3657 this_device->queue_depth = h->nr_cmds; in hpsa_update_device_info()
3665 *is_OBDR_device = (this_device->devtype == TYPE_ROM && in hpsa_update_device_info()
3882 static void hpsa_get_path_info(struct hpsa_scsi_dev_t *this_device, in hpsa_get_path_info() argument
3888 if ((rle->device_flags & 0x08) && this_device->ioaccel_handle) in hpsa_get_path_info()
3889 this_device->hba_ioaccel_enabled = 1; in hpsa_get_path_info()
3891 memcpy(&this_device->active_path_index, in hpsa_get_path_info()
3893 sizeof(this_device->active_path_index)); in hpsa_get_path_info()
3894 memcpy(&this_device->path_map, in hpsa_get_path_info()
3896 sizeof(this_device->path_map)); in hpsa_get_path_info()
3897 memcpy(&this_device->box, in hpsa_get_path_info()
3899 sizeof(this_device->box)); in hpsa_get_path_info()
3900 memcpy(&this_device->phys_connector, in hpsa_get_path_info()
3902 sizeof(this_device->phys_connector)); in hpsa_get_path_info()
3903 memcpy(&this_device->bay, in hpsa_get_path_info()
3905 sizeof(this_device->bay)); in hpsa_get_path_info()
3954 struct hpsa_scsi_dev_t **currentsd, *this_device, *tmpdevice; in hpsa_update_scsi_devices() local
4060 this_device = currentsd[ncurrent]; in hpsa_update_scsi_devices()
4074 *this_device = *tmpdevice; in hpsa_update_scsi_devices()
4075 this_device->physical_device = physical_device; in hpsa_update_scsi_devices()
4081 if (MASKED_DEVICE(lunaddrbytes) && this_device->physical_device) in hpsa_update_scsi_devices()
4082 this_device->expose_device = 0; in hpsa_update_scsi_devices()
4084 this_device->expose_device = 1; in hpsa_update_scsi_devices()
4090 if (this_device->physical_device && this_device->expose_device) in hpsa_update_scsi_devices()
4091 hpsa_get_sas_address(h, lunaddrbytes, this_device); in hpsa_update_scsi_devices()
4093 switch (this_device->devtype) { in hpsa_update_scsi_devices()
4106 if (this_device->physical_device) { in hpsa_update_scsi_devices()
4109 this_device->offload_enabled = 0; in hpsa_update_scsi_devices()
4110 hpsa_get_ioaccel_drive_info(h, this_device, in hpsa_update_scsi_devices()
4112 hpsa_get_path_info(this_device, in hpsa_update_scsi_devices()