Lines Matching refs:pf_current
267 static struct pf_unit *pf_current;/* unit of current request */ variable
802 return (((status_reg(pf_current) & (STAT_BUSY | pf_mask)) == pf_mask)); in pf_ready()
846 pf_current = pf_req->rq_disk->private_data; in pf_request()
862 pi_do_claimed(pf_current->pi, do_pf_read); in pf_request()
864 pi_do_claimed(pf_current->pi, do_pf_write); in pf_request()
928 if (pf_start(pf_current, ATAPI_READ_10, pf_block, pf_run)) { in do_pf_read_start()
929 pi_disconnect(pf_current->pi); in do_pf_read_start()
932 pi_do_claimed(pf_current->pi, do_pf_read_start); in do_pf_read_start()
945 if (pf_wait(pf_current, STAT_BUSY, STAT_DRQ | STAT_ERR, in do_pf_read_drq()
947 pi_disconnect(pf_current->pi); in do_pf_read_drq()
949 pf_req_sense(pf_current, 0); in do_pf_read_drq()
951 pi_do_claimed(pf_current->pi, do_pf_read_start); in do_pf_read_drq()
957 pi_read_block(pf_current->pi, pf_buf, 512); in do_pf_read_drq()
961 pi_disconnect(pf_current->pi); in do_pf_read_drq()
974 if (pf_start(pf_current, ATAPI_WRITE_10, pf_block, pf_run)) { in do_pf_write_start()
975 pi_disconnect(pf_current->pi); in do_pf_write_start()
978 pi_do_claimed(pf_current->pi, do_pf_write_start); in do_pf_write_start()
986 if (pf_wait(pf_current, STAT_BUSY, STAT_DRQ | STAT_ERR, in do_pf_write_start()
988 pi_disconnect(pf_current->pi); in do_pf_write_start()
991 pi_do_claimed(pf_current->pi, do_pf_write_start); in do_pf_write_start()
997 pi_write_block(pf_current->pi, pf_buf, 512); in do_pf_write_start()
1007 if (pf_wait(pf_current, STAT_BUSY, 0, "write block", "done") & STAT_ERR) { in do_pf_write_done()
1008 pi_disconnect(pf_current->pi); in do_pf_write_done()
1011 pi_do_claimed(pf_current->pi, do_pf_write_start); in do_pf_write_done()
1017 pi_disconnect(pf_current->pi); in do_pf_write_done()