Lines Matching defs:nr
326 static void motor_on_callback(unsigned long nr)
336 static int fd_motor_on(int nr)
338 nr &= 3;
340 del_timer(motor_off_timer + nr);
342 if (!unit[nr].motor) {
343 unit[nr].motor = 1;
344 fd_select(nr);
347 motor_on_timer.data = nr;
352 fd_deselect(nr);
385 static void floppy_off (unsigned int nr)
389 drive = nr & 3;
391 motor_off_timer[drive].data = nr | 0x80000000;
1239 static void flush_track_callback(unsigned long nr)
1241 nr&=3;
1243 if (!try_fdc(nr)) {
1245 flush_track_timer[nr].expires = jiffies + 1;
1246 add_timer(flush_track_timer + nr);
1249 get_fdc(nr);
1250 (*unit[nr].dtype->write_fkt)(nr);
1251 if (!raw_write(nr)) {
1259 static int non_int_flush_track (unsigned long nr)
1263 nr&=3;
1266 get_fdc(nr);
1267 if (!fd_motor_on(nr)) {
1275 (*unit[nr].dtype->write_fkt)(nr);
1276 if (!raw_write(nr)) {
1287 post_write(nr);