Lines Matching refs:pd_wait_for

297 static int pd_wait_for(struct pd_unit *disk, int w, char *msg)  in pd_wait_for()  function
496 if (pd_wait_for(pd_current, STAT_READY, "do_pd_read") & STAT_ERR) { in do_pd_read_start()
511 if (pd_wait_for(pd_current, STAT_READY, "do_pd_write") & STAT_ERR) { in do_pd_write_start()
520 if (pd_wait_for(pd_current, STAT_DRQ, "do_pd_write_drq") & STAT_ERR) { in do_pd_write_start()
547 if (pd_wait_for(pd_current, STAT_DRQ, "do_pd_read_drq") & STAT_ERR) { in do_pd_read_drq()
567 if (pd_wait_for(pd_current, STAT_READY, "do_pd_write_done") & STAT_ERR) { in do_pd_write_done()
588 pd_wait_for(disk, 0, DBMSG("before init_dev_parms")); in pd_init_dev_parms()
592 pd_wait_for(disk, 0, "Initialise device parameters"); in pd_init_dev_parms()
597 if (!(pd_wait_for(disk, STAT_READY, "Lock") & STAT_ERR)) { in pd_door_lock()
599 pd_wait_for(disk, STAT_READY, "Lock done"); in pd_door_lock()
606 if (!(pd_wait_for(disk, STAT_READY, "Lock") & STAT_ERR)) { in pd_door_unlock()
608 pd_wait_for(disk, STAT_READY, "Lock done"); in pd_door_unlock()
615 pd_wait_for(disk, 0, DBMSG("before unlock on eject")); in pd_eject()
617 pd_wait_for(disk, 0, DBMSG("after unlock on eject")); in pd_eject()
618 pd_wait_for(disk, 0, DBMSG("before eject")); in pd_eject()
620 pd_wait_for(disk, 0, DBMSG("after eject")); in pd_eject()
626 int r = pd_wait_for(disk, STAT_READY, DBMSG("before media_check")); in pd_media_check()
629 r = pd_wait_for(disk, STAT_READY, DBMSG("RDY after READ_VRFY")); in pd_media_check()
635 pd_wait_for(disk, STAT_READY, DBMSG("RDY after ACKCHANGE")); in pd_media_check()
637 r = pd_wait_for(disk, STAT_READY, DBMSG("RDY after VRFY")); in pd_media_check()
644 pd_wait_for(disk, 0, DBMSG("before STANDBY")); in pd_standby_off()
646 pd_wait_for(disk, 0, DBMSG("after STANDBY")); in pd_standby_off()
664 pd_wait_for(disk, 0, DBMSG("before IDENT")); in pd_identify()
667 if (pd_wait_for(disk, STAT_DRQ, DBMSG("IDENT DRQ")) & STAT_ERR) in pd_identify()