Lines Matching defs:ioc

51  * @ioc: per adapter object
54 _warpdrive_disable_ddio(struct MPT3SAS_ADAPTER *ioc)
64 while (!(mpt3sas_config_get_raid_volume_pg1(ioc, &mpi_reply,
71 spin_lock_irqsave(&ioc->raid_device_lock, flags);
72 raid_device = mpt3sas_raid_device_find_by_handle(ioc, handle);
75 spin_unlock_irqrestore(&ioc->raid_device_lock, flags);
82 * mpt3sas_get_num_volumes - Get number of volumes in the ioc
83 * @ioc: per adapter object
86 mpt3sas_get_num_volumes(struct MPT3SAS_ADAPTER *ioc)
95 while (!(mpt3sas_config_get_raid_volume_pg1(ioc, &mpi_reply,
110 * @ioc: per adapter object
114 mpt3sas_init_warpdrive_properties(struct MPT3SAS_ADAPTER *ioc,
126 if (!ioc->is_warpdrive)
129 if (ioc->mfg_pg10_hide_flag == MFG_PAGE10_EXPOSE_ALL_DISKS) {
130 ioc_info(ioc, "WarpDrive : Direct IO is disabled globally as drives are exposed\n");
133 if (mpt3sas_get_num_volumes(ioc) > 1) {
134 _warpdrive_disable_ddio(ioc);
135 ioc_info(ioc, "WarpDrive : Direct IO is disabled globally as number of drives > 1\n");
138 if ((mpt3sas_config_get_number_pds(ioc, raid_device->handle,
140 ioc_info(ioc, "WarpDrive : Direct IO is disabled Failure in computing number of drives\n");
147 ioc_info(ioc, "WarpDrive : Direct IO is disabled Memory allocation failure for RVPG0\n");
151 if ((mpt3sas_config_get_raid_volume_pg0(ioc, &mpi_reply, vol_pg0,
153 ioc_info(ioc, "WarpDrive : Direct IO is disabled Failure in retrieving RVPG0\n");
163 ioc_warn(ioc, "WarpDrive : Direct IO is disabled for the drive with handle(0x%04x): num_mem=%d, max_mem_allowed=%d\n",
169 if (mpt3sas_config_get_phys_disk_pg0(ioc, &mpi_reply,
174 ioc_info(ioc, "WarpDrive : Direct IO is disabled for the drive with handle(0x%04x) member handle retrieval failed for member number=%d\n",
182 ioc_info(ioc, "WarpDrive : Direct IO is disabled for the drive with handle(0x%04x) member handle (0x%04x) unsupported max lba 0x%016llx\n",
197 ioc_info(ioc, "WarpDrive : Direct IO is disabled for the drive with handle(0x%04x): type=%d, s_sz=%uK, blk_size=%u\n",
208 ioc_info(ioc, "WarpDrive : Direct IO is disabled for the drive with handle(0x%04x) invalid stripe sz %uK\n",
218 ioc_info(ioc, "WarpDrive : Direct IO is disabled for the drive with handle(0x%04x) invalid block sz %u\n",
225 ioc_info(ioc, "WarpDrive : Direct IO is Enabled for the drive with handle(0x%04x)\n",
249 * @ioc: per adapter object
255 mpt3sas_setup_direct_io(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd,