Lines Matching refs:mdata
4097 IPS_SCSI_MODE_PAGE_DATA mdata; in ips_msense() local
4114 memset(&mdata, 0, sizeof (IPS_SCSI_MODE_PAGE_DATA)); in ips_msense()
4116 mdata.hdr.BlockDescLength = 8; in ips_msense()
4120 mdata.pdata.pg3.PageCode = 3; in ips_msense()
4121 mdata.pdata.pg3.PageLength = sizeof (IPS_SCSI_MODE_PAGE3); in ips_msense()
4122 mdata.hdr.DataLength = in ips_msense()
4123 3 + mdata.hdr.BlockDescLength + mdata.pdata.pg3.PageLength; in ips_msense()
4124 mdata.pdata.pg3.TracksPerZone = 0; in ips_msense()
4125 mdata.pdata.pg3.AltSectorsPerZone = 0; in ips_msense()
4126 mdata.pdata.pg3.AltTracksPerZone = 0; in ips_msense()
4127 mdata.pdata.pg3.AltTracksPerVolume = 0; in ips_msense()
4128 mdata.pdata.pg3.SectorsPerTrack = cpu_to_be16(sectors); in ips_msense()
4129 mdata.pdata.pg3.BytesPerSector = cpu_to_be16(IPS_BLKSIZE); in ips_msense()
4130 mdata.pdata.pg3.Interleave = cpu_to_be16(1); in ips_msense()
4131 mdata.pdata.pg3.TrackSkew = 0; in ips_msense()
4132 mdata.pdata.pg3.CylinderSkew = 0; in ips_msense()
4133 mdata.pdata.pg3.flags = IPS_SCSI_MP3_SoftSector; in ips_msense()
4137 mdata.pdata.pg4.PageCode = 4; in ips_msense()
4138 mdata.pdata.pg4.PageLength = sizeof (IPS_SCSI_MODE_PAGE4); in ips_msense()
4139 mdata.hdr.DataLength = in ips_msense()
4140 3 + mdata.hdr.BlockDescLength + mdata.pdata.pg4.PageLength; in ips_msense()
4141 mdata.pdata.pg4.CylindersHigh = in ips_msense()
4143 mdata.pdata.pg4.CylindersLow = (cylinders & 0xFF); in ips_msense()
4144 mdata.pdata.pg4.Heads = heads; in ips_msense()
4145 mdata.pdata.pg4.WritePrecompHigh = 0; in ips_msense()
4146 mdata.pdata.pg4.WritePrecompLow = 0; in ips_msense()
4147 mdata.pdata.pg4.ReducedWriteCurrentHigh = 0; in ips_msense()
4148 mdata.pdata.pg4.ReducedWriteCurrentLow = 0; in ips_msense()
4149 mdata.pdata.pg4.StepRate = cpu_to_be16(1); in ips_msense()
4150 mdata.pdata.pg4.LandingZoneHigh = 0; in ips_msense()
4151 mdata.pdata.pg4.LandingZoneLow = 0; in ips_msense()
4152 mdata.pdata.pg4.flags = 0; in ips_msense()
4153 mdata.pdata.pg4.RotationalOffset = 0; in ips_msense()
4154 mdata.pdata.pg4.MediumRotationRate = 0; in ips_msense()
4157 mdata.pdata.pg8.PageCode = 8; in ips_msense()
4158 mdata.pdata.pg8.PageLength = sizeof (IPS_SCSI_MODE_PAGE8); in ips_msense()
4159 mdata.hdr.DataLength = in ips_msense()
4160 3 + mdata.hdr.BlockDescLength + mdata.pdata.pg8.PageLength; in ips_msense()
4168 ips_scmd_buf_write(scb->scsi_cmd, &mdata, sizeof (mdata)); in ips_msense()