Lines Matching refs:pd_current
384 static struct pd_unit *pd_current; /* current request's drive */ variable
395 pd_current = pd_req->rq_disk->private_data; in run_fsm()
396 pi_current = pd_current->pi; in run_fsm()
469 return func(pd_current); in pd_special()
496 if (pd_wait_for(pd_current, STAT_READY, "do_pd_read") & STAT_ERR) { in do_pd_read_start()
503 pd_ide_command(pd_current, IDE_READ, pd_block, pd_run); in do_pd_read_start()
511 if (pd_wait_for(pd_current, STAT_READY, "do_pd_write") & STAT_ERR) { in do_pd_write_start()
518 pd_ide_command(pd_current, IDE_WRITE, pd_block, pd_run); 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()
527 pi_write_block(pd_current->pi, pd_buf, 512); in do_pd_write_start()
538 return !(status_reg(pd_current) & STAT_BUSY); in pd_ready()
547 if (pd_wait_for(pd_current, STAT_DRQ, "do_pd_read_drq") & STAT_ERR) { in do_pd_read_drq()
555 pi_read_block(pd_current->pi, pd_buf, 512); 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()