Lines Matching refs:blks
767 int transfer, blks; in st_flush_write_buffer() local
786 blks = transfer / STp->block_size; in st_flush_write_buffer()
787 cmd[2] = blks >> 16; in st_flush_write_buffer()
788 cmd[3] = blks >> 8; in st_flush_write_buffer()
789 cmd[4] = blks; in st_flush_write_buffer()
810 STps->drv_block += blks; in st_flush_write_buffer()
819 STps->drv_block += blks; in st_flush_write_buffer()
1633 ssize_t i, do_count, blks, transfer; in st_write() local
1771 blks = transfer = do_count; in st_write()
1774 blks = STbp->buffer_bytes; in st_write()
1776 blks = do_count; in st_write()
1777 blks /= STp->block_size; in st_write()
1778 transfer = blks * STp->block_size; in st_write()
1780 cmd[2] = blks >> 16; in st_write()
1781 cmd[3] = blks >> 8; in st_write()
1782 cmd[4] = blks; in st_write()
1821 blks = (transfer - undone) / STp->block_size; in st_write()
1855 blks = do_count = 0; in st_write()
1875 STps->drv_block += blks; in st_write()
1912 int transfer, blks, bytes; in read_tape() local
1930 blks = bytes = count; in read_tape()
1933 blks = (STp->buffer)->buffer_blocks; in read_tape()
1934 bytes = blks * STp->block_size; in read_tape()
1939 blks = bytes / STp->block_size; in read_tape()
1940 bytes = blks * STp->block_size; in read_tape()
1949 cmd[2] = blks >> 16; in read_tape()
1950 cmd[3] = blks >> 8; in read_tape()
1951 cmd[4] = blks; in read_tape()
2012 if (transfer == blks) { /* We did not get anything, error */ in read_tape()
2017 STps->drv_block += blks - transfer + 1; in read_tape()
2022 STbp->buffer_bytes = (blks - transfer) * in read_tape()