Lines Matching full:eof
727 /* Step over EOF if it has been inadvertently crossed (ioctl not used because
862 if (STps->eof == ST_FM_HIT) { in flush_buffer()
863 result = cross_eof(STp, 0); /* Back over the EOF hit */ in flush_buffer()
865 STps->eof = ST_NOEOF; in flush_buffer()
874 } else if (STps->eof == ST_FM_HIT) { in flush_buffer()
878 STps->eof = ST_NOEOF; in flush_buffer()
945 STps->eof = ST_NOEOF; in reset_state()
1089 STps->eof = ST_NOEOF; in check_tape()
1418 STps->eof = ST_FM; in st_flush()
1429 DEBC_printk(STp, "Buffer flushed, %d EOF(s) written\n", cmd[4]); in st_flush()
1435 else if (STps->eof == ST_FM_HIT) { in st_flush()
1441 STps->eof = ST_FM; in st_flush()
1443 STps->eof = ST_NOEOF; in st_flush()
1445 } else if ((STps->eof == ST_NOEOF && in st_flush()
1447 STps->eof == ST_FM_HIT) { in st_flush()
1451 STps->eof = ST_FM; in st_flush()
1695 STps->eof = ST_EOM_OK; in st_write()
1697 STps->eof = ST_EOM_ERROR; in st_write()
1700 if (STps->eof == ST_EOM_OK) { in st_write()
1701 STps->eof = ST_EOD_1; /* allow next write */ in st_write()
1705 else if (STps->eof == ST_EOM_ERROR) { in st_write()
1758 STm->do_async_writes && STps->eof < ST_EOM_OK; in st_write()
1761 !(STp->try_dio_now && try_wdio) && STps->eof < ST_EOM_OK && in st_write()
1822 STps->eof = ST_EOM_OK; in st_write()
1844 STps->eof = ST_EOM_OK; in st_write()
1856 STps->eof = ST_EOM_ERROR; in st_write()
1888 if (STps->eof == ST_EOD_1) in st_write()
1889 STps->eof = ST_EOM_OK; in st_write()
1890 else if (STps->eof != ST_EOM_OK) in st_write()
1891 STps->eof = ST_NOEOF; in st_write()
1904 eof status has changed, and the negative error code in case of a
1905 fatal error. Otherwise updates the buffer and the eof state.
1925 if (STps->eof == ST_FM_HIT) in read_tape()
1981 if (cmdstatp->flags != 0) { /* EOF, EOM, or ILI */ in read_tape()
2035 if (STps->eof != ST_FM_HIT) in read_tape()
2036 STps->eof = ST_FM_HIT; in read_tape()
2038 STps->eof = ST_EOD_2; in read_tape()
2044 DEBC_printk(STp, "EOF detected (%d " in read_tape()
2048 if (STps->eof == ST_FM) in read_tape()
2049 STps->eof = ST_EOD_1; in read_tape()
2051 STps->eof = ST_EOM_OK; in read_tape()
2063 /* end of EOF, EOM, ILI test */ in read_tape()
2067 if (STps->eof == ST_FM && in read_tape()
2071 "after EOF.\n"); in read_tape()
2072 STps->eof = ST_EOD_2; /* First BLANK_CHECK after FM */ in read_tape()
2141 if (debugging && STps->eof != ST_NOEOF) in st_read()
2143 "EOF/EOM flag up (%d). Bytes %d\n", in st_read()
2144 STps->eof, STbp->buffer_bytes); in st_read()
2153 STps->eof >= ST_EOD_1) { in st_read()
2154 if (STps->eof < ST_EOD) { in st_read()
2155 STps->eof += 1; in st_read()
2193 if (debugging && STps->eof != ST_NOEOF) in st_read()
2195 "EOF up (%d). Left %d, needed %d.\n", in st_read()
2196 STps->eof, STbp->buffer_bytes, in st_read()
2218 /* Change the eof state if no data from tape or buffer */ in st_read()
2220 if (STps->eof == ST_FM_HIT) { in st_read()
2221 STps->eof = ST_FM; in st_read()
2225 } else if (STps->eof == ST_EOD_1) { in st_read()
2226 STps->eof = ST_EOD_2; in st_read()
2230 } else if (STps->eof == ST_EOD_2) in st_read()
2231 STps->eof = ST_EOD; in st_read()
2232 } else if (STps->eof == ST_FM) in st_read()
2233 STps->eof = ST_NOEOF; in st_read()
2873 if (STps->eof >= ST_EOD_1) in st_int_ioctl()
3002 STps->eof = ST_EOD; in st_int_ioctl()
3004 STps->eof = ST_FM; in st_int_ioctl()
3006 STps->eof = ST_NOEOF; in st_int_ioctl()
3017 STps->eof = ST_EOM_OK; in st_int_ioctl()
3031 ioctl_result = 0; /* EOF(s) written successfully at EOM */ in st_int_ioctl()
3032 STps->eof = ST_NOEOF; in st_int_ioctl()
3033 } else { /* Writing EOF(s) failed */ in st_int_ioctl()
3037 STps->eof = ST_NOEOF; in st_int_ioctl()
3046 STps->eof = ST_NOEOF; in st_int_ioctl()
3053 STps->eof = ST_NOEOF; in st_int_ioctl()
3059 STps->eof = ST_FM; in st_int_ioctl()
3065 STps->eof = ST_NOEOF; in st_int_ioctl()
3077 STps->eof = ST_NOEOF; in st_int_ioctl()
3081 STps->eof = ST_EOD; in st_int_ioctl()
3096 STps->eof = ST_NOEOF; in st_int_ioctl()
3099 STps->eof = ST_EOD; in st_int_ioctl()
3242 STps->eof = ST_NOEOF; in set_location()
3578 if (STps->eof == ST_FM_HIT) { in st_ioctl()
3801 if (STps->eof == ST_EOM_OK || STps->eof == ST_EOM_ERROR) in st_ioctl()
3803 else if (STps->eof >= ST_EOM_OK) in st_ioctl()
4355 STps->eof = ST_NOEOF; in st_probe()