Lines Matching refs:blks
708 int transfer, blks; in st_flush_write_buffer() local
727 blks = transfer / STp->block_size; in st_flush_write_buffer()
728 cmd[2] = blks >> 16; in st_flush_write_buffer()
729 cmd[3] = blks >> 8; in st_flush_write_buffer()
730 cmd[4] = blks; in st_flush_write_buffer()
751 STps->drv_block += blks; in st_flush_write_buffer()
760 STps->drv_block += blks; in st_flush_write_buffer()
1569 ssize_t i, do_count, blks, transfer; in st_write() local
1707 blks = transfer = do_count; in st_write()
1710 blks = STbp->buffer_bytes; in st_write()
1712 blks = do_count; in st_write()
1713 blks /= STp->block_size; in st_write()
1714 transfer = blks * STp->block_size; in st_write()
1716 cmd[2] = blks >> 16; in st_write()
1717 cmd[3] = blks >> 8; in st_write()
1718 cmd[4] = blks; in st_write()
1757 blks = (transfer - undone) / STp->block_size; in st_write()
1791 blks = do_count = 0; in st_write()
1811 STps->drv_block += blks; in st_write()
1848 int transfer, blks, bytes; in read_tape() local
1866 blks = bytes = count; in read_tape()
1869 blks = (STp->buffer)->buffer_blocks; in read_tape()
1870 bytes = blks * STp->block_size; in read_tape()
1875 blks = bytes / STp->block_size; in read_tape()
1876 bytes = blks * STp->block_size; in read_tape()
1885 cmd[2] = blks >> 16; in read_tape()
1886 cmd[3] = blks >> 8; in read_tape()
1887 cmd[4] = blks; in read_tape()
1945 if (transfer == blks) { /* We did not get anything, error */ in read_tape()
1950 STps->drv_block += blks - transfer + 1; in read_tape()
1955 STbp->buffer_bytes = (blks - transfer) * in read_tape()