Lines Matching refs:fun
385 static int pf_wait(struct pf_unit *pf, int go, int stop, char *fun, char *msg) in pf_wait() argument
400 if (fun) in pf_wait()
403 pf->name, fun, msg, r, s, e, j, p); in pf_wait()
409 static int pf_command(struct pf_unit *pf, char *cmd, int dlen, char *fun) in pf_command() argument
415 if (pf_wait(pf, STAT_BUSY | STAT_DRQ, 0, fun, "before command")) { in pf_command()
424 if (pf_wait(pf, STAT_BUSY, STAT_DRQ, fun, "command DRQ")) { in pf_command()
430 printk("%s: %s: command phase error\n", pf->name, fun); in pf_command()
440 static int pf_completion(struct pf_unit *pf, char *buf, char *fun) in pf_completion() argument
445 fun, "completion"); in pf_completion()
453 s = pf_wait(pf, STAT_BUSY, STAT_READY | STAT_ERR, fun, "data done"); in pf_completion()
477 static int pf_atapi(struct pf_unit *pf, char *cmd, int dlen, char *buf, char *fun) in pf_atapi() argument
481 r = pf_command(pf, cmd, dlen, fun); in pf_atapi()
484 r = pf_completion(pf, buf, fun); in pf_atapi()
486 pf_req_sense(pf, !fun); in pf_atapi()