Lines Matching refs:pd_current
394 static struct pd_unit *pd_current; /* current request's drive */ variable
433 pd_current = pd_req->rq_disk->private_data; in run_fsm()
434 pi_current = pd_current->pi; in run_fsm()
512 return req->func(pd_current); in pd_special()
545 if (pd_wait_for(pd_current, STAT_READY, "do_pd_read") & STAT_ERR) { in do_pd_read_start()
552 pd_ide_command(pd_current, IDE_READ, pd_block, pd_run); in do_pd_read_start()
560 if (pd_wait_for(pd_current, STAT_READY, "do_pd_write") & STAT_ERR) { in do_pd_write_start()
567 pd_ide_command(pd_current, IDE_WRITE, pd_block, pd_run); 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()
576 pi_write_block(pd_current->pi, pd_buf, 512); in do_pd_write_start()
587 return !(status_reg(pd_current) & STAT_BUSY); in pd_ready()
596 if (pd_wait_for(pd_current, STAT_DRQ, "do_pd_read_drq") & STAT_ERR) { in do_pd_read_drq()
604 pi_read_block(pd_current->pi, pd_buf, 512); 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()