Lines Matching refs:raid_device

58 	struct _raid_device *raid_device;  in _warpdrive_disable_ddio()  local
72 raid_device = mpt3sas_raid_device_find_by_handle(ioc, handle); in _warpdrive_disable_ddio()
73 if (raid_device) in _warpdrive_disable_ddio()
74 raid_device->direct_io_enabled = 0; in _warpdrive_disable_ddio()
115 struct _raid_device *raid_device) in mpt3sas_init_warpdrive_properties() argument
138 if ((mpt3sas_config_get_number_pds(ioc, raid_device->handle, in mpt3sas_init_warpdrive_properties()
152 MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, raid_device->handle, sz))) { in mpt3sas_init_warpdrive_properties()
164 raid_device->handle, num_pds, MPT_MAX_WARPDRIVE_PDS); in mpt3sas_init_warpdrive_properties()
175 raid_device->handle, in mpt3sas_init_warpdrive_properties()
183 raid_device->handle, in mpt3sas_init_warpdrive_properties()
189 raid_device->pd_handle[count] = le16_to_cpu(pd_pg0.DevHandle); in mpt3sas_init_warpdrive_properties()
196 if (raid_device->volume_type != MPI2_RAID_VOL_TYPE_RAID0) { in mpt3sas_init_warpdrive_properties()
198 raid_device->handle, raid_device->volume_type, in mpt3sas_init_warpdrive_properties()
209 raid_device->handle, in mpt3sas_init_warpdrive_properties()
214 raid_device->stripe_exponent = stripe_exp; in mpt3sas_init_warpdrive_properties()
219 raid_device->handle, le16_to_cpu(vol_pg0->BlockSize)); in mpt3sas_init_warpdrive_properties()
222 raid_device->block_exponent = block_exp; in mpt3sas_init_warpdrive_properties()
223 raid_device->direct_io_enabled = 1; in mpt3sas_init_warpdrive_properties()
226 raid_device->handle); in mpt3sas_init_warpdrive_properties()
231 raid_device->max_lba = le64_to_cpu(vol_pg0->MaxLBA); in mpt3sas_init_warpdrive_properties()
232 raid_device->stripe_sz = le32_to_cpu(vol_pg0->StripeSize); in mpt3sas_init_warpdrive_properties()
233 raid_device->block_sz = le16_to_cpu(vol_pg0->BlockSize); in mpt3sas_init_warpdrive_properties()
240 raid_device->direct_io_enabled = 0; in mpt3sas_init_warpdrive_properties()
242 raid_device->pd_handle[count] = 0; in mpt3sas_init_warpdrive_properties()
256 struct _raid_device *raid_device, Mpi25SCSIIORequest_t *mpi_request) in mpt3sas_setup_direct_io() argument
272 io_size = scsi_bufflen(scmd) >> raid_device->block_exponent; in mpt3sas_setup_direct_io()
274 if (v_lba + io_size - 1 > raid_device->max_lba) in mpt3sas_setup_direct_io()
277 stripe_sz = raid_device->stripe_sz; in mpt3sas_setup_direct_io()
278 stripe_exp = raid_device->stripe_exponent; in mpt3sas_setup_direct_io()
285 num_pds = raid_device->num_pds; in mpt3sas_setup_direct_io()
289 mpi_request->DevHandle = cpu_to_le16(raid_device->pd_handle[column]); in mpt3sas_setup_direct_io()