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