Lines Matching refs:blks
762 int transfer, blks; in st_flush_write_buffer() local
781 blks = transfer / STp->block_size; in st_flush_write_buffer()
782 cmd[2] = blks >> 16; in st_flush_write_buffer()
783 cmd[3] = blks >> 8; in st_flush_write_buffer()
784 cmd[4] = blks; in st_flush_write_buffer()
805 STps->drv_block += blks; in st_flush_write_buffer()
814 STps->drv_block += blks; in st_flush_write_buffer()
1623 ssize_t i, do_count, blks, transfer; in st_write() local
1761 blks = transfer = do_count; in st_write()
1764 blks = STbp->buffer_bytes; in st_write()
1766 blks = do_count; in st_write()
1767 blks /= STp->block_size; in st_write()
1768 transfer = blks * STp->block_size; in st_write()
1770 cmd[2] = blks >> 16; in st_write()
1771 cmd[3] = blks >> 8; in st_write()
1772 cmd[4] = blks; in st_write()
1811 blks = (transfer - undone) / STp->block_size; in st_write()
1845 blks = do_count = 0; in st_write()
1865 STps->drv_block += blks; in st_write()
1902 int transfer, blks, bytes; in read_tape() local
1920 blks = bytes = count; in read_tape()
1923 blks = (STp->buffer)->buffer_blocks; in read_tape()
1924 bytes = blks * STp->block_size; in read_tape()
1929 blks = bytes / STp->block_size; in read_tape()
1930 bytes = blks * STp->block_size; in read_tape()
1939 cmd[2] = blks >> 16; in read_tape()
1940 cmd[3] = blks >> 8; in read_tape()
1941 cmd[4] = blks; in read_tape()
1999 if (transfer == blks) { /* We did not get anything, error */ in read_tape()
2004 STps->drv_block += blks - transfer + 1; in read_tape()
2009 STbp->buffer_bytes = (blks - transfer) * in read_tape()