Lines Matching full:eof

728 /* 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()
1081 STps->eof = ST_NOEOF; in check_tape()
1410 STps->eof = ST_FM; in st_flush()
1421 DEBC_printk(STp, "Buffer flushed, %d EOF(s) written\n", cmd[4]); in st_flush()
1427 else if (STps->eof == ST_FM_HIT) { in st_flush()
1433 STps->eof = ST_FM; in st_flush()
1435 STps->eof = ST_NOEOF; in st_flush()
1437 } else if ((STps->eof == ST_NOEOF && in st_flush()
1439 STps->eof == ST_FM_HIT) { in st_flush()
1443 STps->eof = ST_FM; in st_flush()
1687 STps->eof = ST_EOM_OK; in st_write()
1689 STps->eof = ST_EOM_ERROR; in st_write()
1692 if (STps->eof == ST_EOM_OK) { in st_write()
1693 STps->eof = ST_EOD_1; /* allow next write */ in st_write()
1697 else if (STps->eof == ST_EOM_ERROR) { in st_write()
1750 STm->do_async_writes && STps->eof < ST_EOM_OK; in st_write()
1753 !(STp->try_dio_now && try_wdio) && STps->eof < ST_EOM_OK && in st_write()
1814 STps->eof = ST_EOM_OK; in st_write()
1836 STps->eof = ST_EOM_OK; in st_write()
1848 STps->eof = ST_EOM_ERROR; in st_write()
1880 if (STps->eof == ST_EOD_1) in st_write()
1881 STps->eof = ST_EOM_OK; in st_write()
1882 else if (STps->eof != ST_EOM_OK) in st_write()
1883 STps->eof = ST_NOEOF; in st_write()
1896 eof status has changed, and the negative error code in case of a
1897 fatal error. Otherwise updates the buffer and the eof state.
1917 if (STps->eof == ST_FM_HIT) in read_tape()
1973 if (cmdstatp->flags != 0) { /* EOF, EOM, or ILI */ in read_tape()
2027 if (STps->eof != ST_FM_HIT) in read_tape()
2028 STps->eof = ST_FM_HIT; in read_tape()
2030 STps->eof = ST_EOD_2; in read_tape()
2036 DEBC_printk(STp, "EOF detected (%d " in read_tape()
2040 if (STps->eof == ST_FM) in read_tape()
2041 STps->eof = ST_EOD_1; in read_tape()
2043 STps->eof = ST_EOM_OK; in read_tape()
2055 /* end of EOF, EOM, ILI test */ in read_tape()
2059 if (STps->eof == ST_FM && in read_tape()
2063 "after EOF.\n"); in read_tape()
2064 STps->eof = ST_EOD_2; /* First BLANK_CHECK after FM */ in read_tape()
2133 if (debugging && STps->eof != ST_NOEOF) in st_read()
2135 "EOF/EOM flag up (%d). Bytes %d\n", in st_read()
2136 STps->eof, STbp->buffer_bytes); in st_read()
2145 STps->eof >= ST_EOD_1) { in st_read()
2146 if (STps->eof < ST_EOD) { in st_read()
2147 STps->eof += 1; in st_read()
2185 if (debugging && STps->eof != ST_NOEOF) in st_read()
2187 "EOF up (%d). Left %d, needed %d.\n", in st_read()
2188 STps->eof, STbp->buffer_bytes, in st_read()
2210 /* Change the eof state if no data from tape or buffer */ in st_read()
2212 if (STps->eof == ST_FM_HIT) { in st_read()
2213 STps->eof = ST_FM; in st_read()
2217 } else if (STps->eof == ST_EOD_1) { in st_read()
2218 STps->eof = ST_EOD_2; in st_read()
2222 } else if (STps->eof == ST_EOD_2) in st_read()
2223 STps->eof = ST_EOD; in st_read()
2224 } else if (STps->eof == ST_FM) in st_read()
2225 STps->eof = ST_NOEOF; in st_read()
2865 if (STps->eof >= ST_EOD_1) in st_int_ioctl()
2994 STps->eof = ST_EOD; in st_int_ioctl()
2996 STps->eof = ST_FM; in st_int_ioctl()
2998 STps->eof = ST_NOEOF; in st_int_ioctl()
3009 STps->eof = ST_EOM_OK; in st_int_ioctl()
3023 ioctl_result = 0; /* EOF(s) written successfully at EOM */ in st_int_ioctl()
3024 STps->eof = ST_NOEOF; in st_int_ioctl()
3025 } else { /* Writing EOF(s) failed */ in st_int_ioctl()
3029 STps->eof = ST_NOEOF; in st_int_ioctl()
3038 STps->eof = ST_NOEOF; in st_int_ioctl()
3045 STps->eof = ST_NOEOF; in st_int_ioctl()
3051 STps->eof = ST_FM; in st_int_ioctl()
3057 STps->eof = ST_NOEOF; in st_int_ioctl()
3069 STps->eof = ST_NOEOF; in st_int_ioctl()
3073 STps->eof = ST_EOD; in st_int_ioctl()
3088 STps->eof = ST_NOEOF; in st_int_ioctl()
3091 STps->eof = ST_EOD; in st_int_ioctl()
3234 STps->eof = ST_NOEOF; in set_location()
3569 if (STps->eof == ST_FM_HIT) { in st_ioctl()
3780 if (STps->eof == ST_EOM_OK || STps->eof == ST_EOM_ERROR) in st_ioctl()
3782 else if (STps->eof >= ST_EOM_OK) in st_ioctl()
4333 STps->eof = ST_NOEOF; in st_probe()