Lines Matching refs:transfer

483 	int offset, transfer, blks;  in flush_write_buffer()  local
507 transfer = ((offset + STp->block_size - 1) / in flush_write_buffer()
510 TAPE_NR(STp->devt), transfer)); in flush_write_buffer()
512 memset((STp->buffer)->b_data + offset, 0, transfer - offset); in flush_write_buffer()
517 blks = transfer / STp->block_size; in flush_write_buffer()
522 SRpnt = st_do_scsi(NULL, STp, cmd, transfer, SCSI_DATA_WRITE, in flush_write_buffer()
1193 ssize_t i, do_count, blks, transfer; in st_write() local
1401 blks = transfer = do_count; in st_write()
1405 transfer = blks * STp->block_size; in st_write()
1411 SRpnt = st_do_scsi(SRpnt, STp, cmd, transfer, SCSI_DATA_WRITE, in st_write()
1445 (transfer - residual) / in st_write()
1457 move_buffer_data(STp->buffer, transfer - residual); in st_write()
1460 STps->drv_block += (transfer - residual) / in st_write()
1560 int transfer, blks, bytes; in read_tape() local
1624 transfer = (SRpnt->sr_sense_buffer[3] << 24) | in read_tape()
1629 transfer = 0; in read_tape()
1632 transfer = bytes; in read_tape()
1636 if (transfer <= 0) { in read_tape()
1637 if (transfer < 0) in read_tape()
1640 dev, bytes - transfer, bytes); in read_tape()
1646 (STp->buffer)->buffer_bytes = bytes - transfer; in read_tape()
1650 if (transfer == blks) { /* We did not get anything, error */ in read_tape()
1653 STps->drv_block += blks - transfer + 1; in read_tape()
1658 (STp->buffer)->buffer_bytes = (blks - transfer) * in read_tape()
1677 bytes - transfer * STp->block_size; in read_tape()
1687 (STp->buffer)->buffer_bytes = bytes - transfer; in read_tape()
1690 bytes - transfer * STp->block_size; in read_tape()
1741 ssize_t i, transfer; in st_read() local
1886 transfer = (STp->buffer)->buffer_bytes < count - total ? in st_read()
1888 i = from_buffer(STp->buffer, buf, transfer); in st_read()
1893 pos += transfer; in st_read()
1894 buf += transfer; in st_read()
1895 total += transfer; in st_read()