Lines Matching refs:fun
403 static int pf_wait(struct pf_unit *pf, int go, int stop, char *fun, char *msg) in pf_wait() argument
418 if (fun) in pf_wait()
421 pf->name, fun, msg, r, s, e, j, p); in pf_wait()
427 static int pf_command(struct pf_unit *pf, char *cmd, int dlen, char *fun) in pf_command() argument
433 if (pf_wait(pf, STAT_BUSY | STAT_DRQ, 0, fun, "before command")) { in pf_command()
442 if (pf_wait(pf, STAT_BUSY, STAT_DRQ, fun, "command DRQ")) { in pf_command()
448 printk("%s: %s: command phase error\n", pf->name, fun); in pf_command()
458 static int pf_completion(struct pf_unit *pf, char *buf, char *fun) in pf_completion() argument
463 fun, "completion"); in pf_completion()
471 s = pf_wait(pf, STAT_BUSY, STAT_READY | STAT_ERR, fun, "data done"); in pf_completion()
495 static int pf_atapi(struct pf_unit *pf, char *cmd, int dlen, char *buf, char *fun) in pf_atapi() argument
499 r = pf_command(pf, cmd, dlen, fun); in pf_atapi()
502 r = pf_completion(pf, buf, fun); in pf_atapi()
504 pf_req_sense(pf, !fun); in pf_atapi()