Lines Matching refs:fun
426 static int pf_wait(struct pf_unit *pf, int go, int stop, char *fun, char *msg) in pf_wait() argument
441 if (fun) in pf_wait()
444 pf->name, fun, msg, r, s, e, j, p); in pf_wait()
450 static int pf_command(struct pf_unit *pf, char *cmd, int dlen, char *fun) in pf_command() argument
456 if (pf_wait(pf, STAT_BUSY | STAT_DRQ, 0, fun, "before command")) { in pf_command()
465 if (pf_wait(pf, STAT_BUSY, STAT_DRQ, fun, "command DRQ")) { in pf_command()
471 printk("%s: %s: command phase error\n", pf->name, fun); in pf_command()
481 static int pf_completion(struct pf_unit *pf, char *buf, char *fun) in pf_completion() argument
486 fun, "completion"); in pf_completion()
494 s = pf_wait(pf, STAT_BUSY, STAT_READY | STAT_ERR, fun, "data done"); in pf_completion()
518 static int pf_atapi(struct pf_unit *pf, char *cmd, int dlen, char *buf, char *fun) in pf_atapi() argument
522 r = pf_command(pf, cmd, dlen, fun); in pf_atapi()
525 r = pf_completion(pf, buf, fun); in pf_atapi()
527 pf_req_sense(pf, !fun); in pf_atapi()