Lines Matching refs:fun
401 static int pf_wait(struct pf_unit *pf, int go, int stop, char *fun, char *msg) in pf_wait() argument
416 if (fun) in pf_wait()
419 pf->name, fun, msg, r, s, e, j, p); in pf_wait()
425 static int pf_command(struct pf_unit *pf, char *cmd, int dlen, char *fun) in pf_command() argument
431 if (pf_wait(pf, STAT_BUSY | STAT_DRQ, 0, fun, "before command")) { in pf_command()
440 if (pf_wait(pf, STAT_BUSY, STAT_DRQ, fun, "command DRQ")) { in pf_command()
446 printk("%s: %s: command phase error\n", pf->name, fun); in pf_command()
456 static int pf_completion(struct pf_unit *pf, char *buf, char *fun) in pf_completion() argument
461 fun, "completion"); in pf_completion()
469 s = pf_wait(pf, STAT_BUSY, STAT_READY | STAT_ERR, fun, "data done"); in pf_completion()
493 static int pf_atapi(struct pf_unit *pf, char *cmd, int dlen, char *buf, char *fun) in pf_atapi() argument
497 r = pf_command(pf, cmd, dlen, fun); in pf_atapi()
500 r = pf_completion(pf, buf, fun); in pf_atapi()
502 pf_req_sense(pf, !fun); in pf_atapi()