Lines Matching refs:fun
330 static int pcd_wait(struct pcd_unit *cd, int go, int stop, char *fun, char *msg) in pcd_wait() argument
345 if (fun) in pcd_wait()
348 cd->name, fun, msg, r, s, e, j, p); in pcd_wait()
354 static int pcd_command(struct pcd_unit *cd, char *cmd, int dlen, char *fun) in pcd_command() argument
360 if (pcd_wait(cd, IDE_BUSY | IDE_DRQ, 0, fun, "before command")) { in pcd_command()
369 if (pcd_wait(cd, IDE_BUSY, IDE_DRQ, fun, "command DRQ")) { in pcd_command()
375 printk("%s: %s: command phase error\n", cd->name, fun); in pcd_command()
385 static int pcd_completion(struct pcd_unit *cd, char *buf, char *fun) in pcd_completion() argument
394 fun, "completion")) { in pcd_completion()
405 cd->name, fun, n); in pcd_completion()
412 cd->name, fun, p, d, k); in pcd_completion()
424 (cd, IDE_BUSY, IDE_DRQ | IDE_READY | IDE_ERR, fun, in pcd_completion()
437 static void pcd_req_sense(struct pcd_unit *cd, char *fun) in pcd_req_sense() argument
451 if (fun) in pcd_req_sense()
453 cd->name, fun, buf[2] & 0xf, buf[12], buf[13]); in pcd_req_sense()
462 static int pcd_atapi(struct pcd_unit *cd, char *cmd, int dlen, char *buf, char *fun) in pcd_atapi() argument
466 r = pcd_command(cd, cmd, dlen, fun); in pcd_atapi()
469 r = pcd_completion(cd, buf, fun); in pcd_atapi()
471 pcd_req_sense(cd, fun); in pcd_atapi()