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