Lines Matching refs:pd_wait_for

307 static int pd_wait_for(struct pd_unit *disk, int w, char *msg)  in pd_wait_for()  function
545 if (pd_wait_for(pd_current, STAT_READY, "do_pd_read") & STAT_ERR) { in do_pd_read_start()
560 if (pd_wait_for(pd_current, STAT_READY, "do_pd_write") & STAT_ERR) { in do_pd_write_start()
569 if (pd_wait_for(pd_current, STAT_DRQ, "do_pd_write_drq") & STAT_ERR) { in do_pd_write_start()
596 if (pd_wait_for(pd_current, STAT_DRQ, "do_pd_read_drq") & STAT_ERR) { in do_pd_read_drq()
616 if (pd_wait_for(pd_current, STAT_READY, "do_pd_write_done") & STAT_ERR) { in do_pd_write_done()
637 pd_wait_for(disk, 0, DBMSG("before init_dev_parms")); in pd_init_dev_parms()
641 pd_wait_for(disk, 0, "Initialise device parameters"); in pd_init_dev_parms()
646 if (!(pd_wait_for(disk, STAT_READY, "Lock") & STAT_ERR)) { in pd_door_lock()
648 pd_wait_for(disk, STAT_READY, "Lock done"); in pd_door_lock()
655 if (!(pd_wait_for(disk, STAT_READY, "Lock") & STAT_ERR)) { in pd_door_unlock()
657 pd_wait_for(disk, STAT_READY, "Lock done"); in pd_door_unlock()
664 pd_wait_for(disk, 0, DBMSG("before unlock on eject")); in pd_eject()
666 pd_wait_for(disk, 0, DBMSG("after unlock on eject")); in pd_eject()
667 pd_wait_for(disk, 0, DBMSG("before eject")); in pd_eject()
669 pd_wait_for(disk, 0, DBMSG("after eject")); in pd_eject()
675 int r = pd_wait_for(disk, STAT_READY, DBMSG("before media_check")); in pd_media_check()
678 r = pd_wait_for(disk, STAT_READY, DBMSG("RDY after READ_VRFY")); in pd_media_check()
684 pd_wait_for(disk, STAT_READY, DBMSG("RDY after ACKCHANGE")); in pd_media_check()
686 r = pd_wait_for(disk, STAT_READY, DBMSG("RDY after VRFY")); in pd_media_check()
693 pd_wait_for(disk, 0, DBMSG("before STANDBY")); in pd_standby_off()
695 pd_wait_for(disk, 0, DBMSG("after STANDBY")); in pd_standby_off()
713 pd_wait_for(disk, 0, DBMSG("before IDENT")); in pd_identify()
716 if (pd_wait_for(disk, STAT_DRQ, DBMSG("IDENT DRQ")) & STAT_ERR) in pd_identify()