Lines Matching refs:fun
402 static int pf_wait(struct pf_unit *pf, int go, int stop, char *fun, char *msg) in pf_wait() argument
417 if (fun) in pf_wait()
420 pf->name, fun, msg, r, s, e, j, p); in pf_wait()
426 static int pf_command(struct pf_unit *pf, char *cmd, int dlen, char *fun) in pf_command() argument
432 if (pf_wait(pf, STAT_BUSY | STAT_DRQ, 0, fun, "before command")) { in pf_command()
441 if (pf_wait(pf, STAT_BUSY, STAT_DRQ, fun, "command DRQ")) { in pf_command()
447 printk("%s: %s: command phase error\n", pf->name, fun); in pf_command()
457 static int pf_completion(struct pf_unit *pf, char *buf, char *fun) in pf_completion() argument
462 fun, "completion"); in pf_completion()
470 s = pf_wait(pf, STAT_BUSY, STAT_READY | STAT_ERR, fun, "data done"); in pf_completion()
494 static int pf_atapi(struct pf_unit *pf, char *cmd, int dlen, char *buf, char *fun) in pf_atapi() argument
498 r = pf_command(pf, cmd, dlen, fun); in pf_atapi()
501 r = pf_completion(pf, buf, fun); in pf_atapi()
503 pf_req_sense(pf, !fun); in pf_atapi()