Lines Matching refs:this_device

2324 	unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device)  in hpsa_get_raid_map()  argument
2335 if (fill_cmd(c, HPSA_GET_RAID_MAP, h, &this_device->raid_map, in hpsa_get_raid_map()
2336 sizeof(this_device->raid_map), 0, in hpsa_get_raid_map()
2352 if (le32_to_cpu(this_device->raid_map.structure_size) > in hpsa_get_raid_map()
2353 sizeof(this_device->raid_map)) { in hpsa_get_raid_map()
2357 hpsa_debug_map_buff(h, rc, &this_device->raid_map); in hpsa_get_raid_map()
2433 unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device) in hpsa_get_ioaccel_status() argument
2439 this_device->offload_config = 0; in hpsa_get_ioaccel_status()
2440 this_device->offload_enabled = 0; in hpsa_get_ioaccel_status()
2456 this_device->offload_config = in hpsa_get_ioaccel_status()
2458 if (this_device->offload_config) { in hpsa_get_ioaccel_status()
2459 this_device->offload_enabled = in hpsa_get_ioaccel_status()
2461 if (hpsa_get_raid_map(h, scsi3addr, this_device)) in hpsa_get_ioaccel_status()
2462 this_device->offload_enabled = 0; in hpsa_get_ioaccel_status()
2660 unsigned char scsi3addr[], struct hpsa_scsi_dev_t *this_device, in hpsa_update_device_info() argument
2685 this_device->devtype = (inq_buff[0] & 0x1f); in hpsa_update_device_info()
2686 memcpy(this_device->scsi3addr, scsi3addr, 8); in hpsa_update_device_info()
2687 memcpy(this_device->vendor, &inq_buff[8], in hpsa_update_device_info()
2688 sizeof(this_device->vendor)); in hpsa_update_device_info()
2689 memcpy(this_device->model, &inq_buff[16], in hpsa_update_device_info()
2690 sizeof(this_device->model)); in hpsa_update_device_info()
2691 memset(this_device->device_id, 0, in hpsa_update_device_info()
2692 sizeof(this_device->device_id)); in hpsa_update_device_info()
2693 hpsa_get_device_id(h, scsi3addr, this_device->device_id, in hpsa_update_device_info()
2694 sizeof(this_device->device_id)); in hpsa_update_device_info()
2696 if (this_device->devtype == TYPE_DISK && in hpsa_update_device_info()
2700 hpsa_get_raid_level(h, scsi3addr, &this_device->raid_level); in hpsa_update_device_info()
2702 hpsa_get_ioaccel_status(h, scsi3addr, this_device); in hpsa_update_device_info()
2706 this_device->volume_offline = volume_offline & 0xff; in hpsa_update_device_info()
2708 this_device->raid_level = RAID_UNKNOWN; in hpsa_update_device_info()
2709 this_device->offload_config = 0; in hpsa_update_device_info()
2710 this_device->offload_enabled = 0; in hpsa_update_device_info()
2711 this_device->volume_offline = 0; in hpsa_update_device_info()
2712 this_device->queue_depth = h->nr_cmds; in hpsa_update_device_info()
2720 *is_OBDR_device = (this_device->devtype == TYPE_ROM && in hpsa_update_device_info()
2801 struct hpsa_scsi_dev_t *this_device, u8 *lunaddrbytes, in add_ext_target_dev() argument
2833 if (hpsa_update_device_info(h, scsi3addr, this_device, NULL)) in add_ext_target_dev()
2836 hpsa_set_bus_target_lun(this_device, in add_ext_target_dev()
3073 struct hpsa_scsi_dev_t **currentsd, *this_device, *tmpdevice; in hpsa_update_scsi_devices() local
3155 this_device = currentsd[ncurrent]; in hpsa_update_scsi_devices()
3164 if (add_ext_target_dev(h, tmpdevice, this_device, in hpsa_update_scsi_devices()
3168 this_device = currentsd[ncurrent]; in hpsa_update_scsi_devices()
3171 *this_device = *tmpdevice; in hpsa_update_scsi_devices()
3173 switch (this_device->devtype) { in hpsa_update_scsi_devices()
3188 this_device->offload_enabled = 0; in hpsa_update_scsi_devices()
3204 hpsa_get_ioaccel_drive_info(h, this_device, in hpsa_update_scsi_devices()
3206 atomic_set(&this_device->ioaccel_cmds_out, 0); in hpsa_update_scsi_devices()