Lines Matching refs:buffer_bytes

693 	STbuffer->buffer_bytes -= STbuffer->writing;  in write_behind_check()
781 transfer = STp->buffer->buffer_bytes; in st_flush_write_buffer()
809 (STp->buffer)->buffer_bytes = 0; in st_flush_write_buffer()
822 (STp->buffer)->buffer_bytes = 0; in st_flush_write_buffer()
854 backspace = ((STp->buffer)->buffer_bytes + in flush_buffer()
858 (STp->buffer)->buffer_bytes = 0; in flush_buffer()
1192 (STp->buffer)->buffer_bytes = (STp->buffer)->read_pointer = 0; in check_tape()
1562 STbp->buffer_bytes = 0; /* can be used as transfer counter */ in setup_buffering()
1735 STbp->buffer_bytes; in st_write()
1754 STbp->buffer_bytes < STbp->buffer_size) { in st_write()
1766 blks = STbp->buffer_bytes; in st_write()
1786 STbp->buffer_bytes); in st_write()
1840 STp->buffer->buffer_bytes); in st_write()
1870 STbp->buffer_bytes = 0; in st_write()
1997 STbp->buffer_bytes = 0; in read_tape()
2000 STbp->buffer_bytes = bytes - transfer; in read_tape()
2014 STbp->buffer_bytes = (blks - transfer) * in read_tape()
2020 STbp->buffer_bytes); in read_tape()
2032 STbp->buffer_bytes = 0; in read_tape()
2034 STbp->buffer_bytes = in read_tape()
2038 STbp->buffer_bytes); in read_tape()
2045 STbp->buffer_bytes = bytes - transfer; in read_tape()
2047 STbp->buffer_bytes = in read_tape()
2052 STbp->buffer_bytes); in read_tape()
2069 if (STbp->buffer_bytes < 0) /* Caused by bogus sense data */ in read_tape()
2070 STbp->buffer_bytes = 0; in read_tape()
2080 STbp->buffer_bytes = bytes; in read_tape()
2082 STbp->buffer_bytes -= STp->buffer->cmdstat.residual; in read_tape()
2089 STps->drv_block += STbp->buffer_bytes / STp->block_size; in read_tape()
2136 STps->eof, STbp->buffer_bytes); in st_read()
2144 if (STbp->buffer_bytes == 0 && in st_read()
2174 if (STbp->buffer_bytes == 0) { in st_read()
2183 if (STbp->buffer_bytes > 0) { in st_read()
2188 STps->eof, STbp->buffer_bytes, in st_read()
2191 transfer = STbp->buffer_bytes < count - total ? in st_read()
2192 STbp->buffer_bytes : count - total; in st_read()
2235 STbp->buffer_bytes = 0; in st_read()
2899 if (STp->dirty || (STp->buffer)->buffer_bytes != 0) in st_int_ioctl()
2985 (STp->buffer)->buffer_bytes = (STp->buffer)->read_pointer = 0; in st_int_ioctl()
3762 (STp->buffer)->buffer_bytes / STp->block_size; in st_ioctl()
3765 ((STp->buffer)->buffer_bytes + in st_ioctl()
3992 for (i = 0, offset = st_bp->buffer_bytes; in append_to_buffer()
4006 st_bp->buffer_bytes += cnt; in append_to_buffer()
4038 st_bp->buffer_bytes -= cnt; in from_buffer()
4060 total=st_bp->buffer_bytes - offset; in move_buffer_data()
4068 st_bp->buffer_bytes = st_bp->read_pointer = total; in move_buffer_data()