Lines Matching refs:fun
272 static int pt_wait(struct pt_unit *tape, int go, int stop, char *fun, char *msg) in pt_wait() argument
288 if (fun) in pt_wait()
291 tape->name, fun, msg, r, s, e, j, p); in pt_wait()
297 static int pt_command(struct pt_unit *tape, char *cmd, int dlen, char *fun) in pt_command() argument
304 if (pt_wait(tape, STAT_BUSY | STAT_DRQ, 0, fun, "before command")) { in pt_command()
313 if (pt_wait(tape, STAT_BUSY, STAT_DRQ, fun, "command DRQ")) { in pt_command()
319 printk("%s: %s: command phase error\n", tape->name, fun); in pt_command()
329 static int pt_completion(struct pt_unit *tape, char *buf, char *fun) in pt_completion() argument
335 fun, "completion"); in pt_completion()
347 s = pt_wait(tape, STAT_BUSY, STAT_READY | STAT_ERR, fun, "data done"); in pt_completion()
375 static int pt_atapi(struct pt_unit *tape, char *cmd, int dlen, char *buf, char *fun) in pt_atapi() argument
379 r = pt_command(tape, cmd, dlen, fun); in pt_atapi()
382 r = pt_completion(tape, buf, fun); in pt_atapi()
384 pt_req_sense(tape, !fun); in pt_atapi()
425 static void pt_media_access_cmd(struct pt_unit *tape, int tmo, char *cmd, char *fun) in pt_media_access_cmd() argument
427 if (pt_command(tape, cmd, 0, fun)) { in pt_media_access_cmd()
432 pt_poll_dsc(tape, HZ, tmo, fun); in pt_media_access_cmd()