Lines Matching refs:bytes_todo
1451 static int start_dma(short mode, unsigned long bytes_todo) in start_dma() argument
1462 dma_bytes_todo = bytes_todo; in start_dma()
1820 unsigned long bytes_todo, bytes_done, total_bytes_done = 0; in qic02_tape_read() local
1853 bytes_todo = TPQBUF_SIZE; in qic02_tape_read()
1854 if (bytes_todo > count) { in qic02_tape_read()
1855 bytes_todo = count; in qic02_tape_read()
1901 if (bytes_todo == 0) { in qic02_tape_read()
1906 if (bytes_todo > 0) { in qic02_tape_read()
1920 stat = start_dma(READ, bytes_todo); in qic02_tape_read()
1941 if (bytes_done > bytes_todo) { in qic02_tape_read()
1960 if ((bytes_todo != bytes_done) in qic02_tape_read()
2015 unsigned long bytes_todo, bytes_done, total_bytes_done = 0; in qic02_tape_write() local
2056 bytes_todo = TPQBUF_SIZE; in qic02_tape_write()
2057 if (bytes_todo > count) { in qic02_tape_write()
2058 bytes_todo = count; in qic02_tape_write()
2065 if (bytes_todo > 0) { in qic02_tape_write()
2078 if (bytes_todo == 0) { in qic02_tape_write()
2083 if (bytes_todo > 0) { in qic02_tape_write()
2084 if (copy_from_user(buffaddr, buf, bytes_todo)) in qic02_tape_write()
2093 if (start_dma(WRITE, bytes_todo) != TE_OK) { in qic02_tape_write()
2107 if (bytes_done > bytes_todo) { in qic02_tape_write()
2136 if (bytes_todo != bytes_done) { in qic02_tape_write()