Lines Matching defs:speed
202 * ATAPI devices are free to select the speed you request or any slower
203 * rate. :-( Requesting too fast a speed will _not_ produce an error.
205 int ide_cdrom_select_speed(struct cdrom_device_info *cdi, int speed)
214 if (speed == 0)
215 speed = 0xffff; /* set to max */
217 speed *= 177; /* Nx to kbytes/s */
222 /* Read Drive speed in kbytes/second MSB/LSB */
223 cmd[2] = (speed >> 8) & 0xff;
224 cmd[3] = speed & 0xff;
227 /* Write Drive speed in kbytes/second MSB/LSB */
228 cmd[4] = (speed >> 8) & 0xff;
229 cmd[5] = speed & 0xff;
236 cdi->speed = cd->current_speed;