Lines Matching refs:fun
271 static int pt_wait(struct pt_unit *tape, int go, int stop, char *fun, char *msg) in pt_wait() argument
287 if (fun) in pt_wait()
290 tape->name, fun, msg, r, s, e, j, p); in pt_wait()
296 static int pt_command(struct pt_unit *tape, char *cmd, int dlen, char *fun) in pt_command() argument
303 if (pt_wait(tape, STAT_BUSY | STAT_DRQ, 0, fun, "before command")) { in pt_command()
312 if (pt_wait(tape, STAT_BUSY, STAT_DRQ, fun, "command DRQ")) { in pt_command()
318 printk("%s: %s: command phase error\n", tape->name, fun); in pt_command()
328 static int pt_completion(struct pt_unit *tape, char *buf, char *fun) in pt_completion() argument
334 fun, "completion"); in pt_completion()
346 s = pt_wait(tape, STAT_BUSY, STAT_READY | STAT_ERR, fun, "data done"); in pt_completion()
374 static int pt_atapi(struct pt_unit *tape, char *cmd, int dlen, char *buf, char *fun) in pt_atapi() argument
378 r = pt_command(tape, cmd, dlen, fun); in pt_atapi()
381 r = pt_completion(tape, buf, fun); in pt_atapi()
383 pt_req_sense(tape, !fun); in pt_atapi()
424 static void pt_media_access_cmd(struct pt_unit *tape, int tmo, char *cmd, char *fun) in pt_media_access_cmd() argument
426 if (pt_command(tape, cmd, 0, fun)) { in pt_media_access_cmd()
431 pt_poll_dsc(tape, HZ, tmo, fun); in pt_media_access_cmd()