Lines Matching refs:blks
763 int transfer, blks; in st_flush_write_buffer() local
782 blks = transfer / STp->block_size; in st_flush_write_buffer()
783 cmd[2] = blks >> 16; in st_flush_write_buffer()
784 cmd[3] = blks >> 8; in st_flush_write_buffer()
785 cmd[4] = blks; in st_flush_write_buffer()
806 STps->drv_block += blks; in st_flush_write_buffer()
815 STps->drv_block += blks; in st_flush_write_buffer()
1620 ssize_t i, do_count, blks, transfer; in st_write() local
1758 blks = transfer = do_count; in st_write()
1761 blks = STbp->buffer_bytes; in st_write()
1763 blks = do_count; in st_write()
1764 blks /= STp->block_size; in st_write()
1765 transfer = blks * STp->block_size; in st_write()
1767 cmd[2] = blks >> 16; in st_write()
1768 cmd[3] = blks >> 8; in st_write()
1769 cmd[4] = blks; in st_write()
1808 blks = (transfer - undone) / STp->block_size; in st_write()
1842 blks = do_count = 0; in st_write()
1862 STps->drv_block += blks; in st_write()
1899 int transfer, blks, bytes; in read_tape() local
1917 blks = bytes = count; in read_tape()
1920 blks = (STp->buffer)->buffer_blocks; in read_tape()
1921 bytes = blks * STp->block_size; in read_tape()
1926 blks = bytes / STp->block_size; in read_tape()
1927 bytes = blks * STp->block_size; in read_tape()
1936 cmd[2] = blks >> 16; in read_tape()
1937 cmd[3] = blks >> 8; in read_tape()
1938 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()