Lines Matching refs:count
34 * - transfer count loaded to registers is 1 less than actual count
65 * Transfer count (_not # bytes_) is limited to 64K, represented as actual
66 * count - 1 : 64K => 0xFFFF, 1 => 0x0000. Thus, count is always 1 or more,
123 #define DMA_CNT_0 0x01 /* DMA count registers */
260 * than the initial word count"! This is taken into account.
262 * NOTE 2: "count" represents _bytes_ and must be even for channels 5-7.
264 static inline void set_dma_count(unsigned int dmanr, unsigned int count)
266 count--;
268 dma_outb(count & 0xff, ((dmanr & 3) << 1) + 1 + IO_DMA1_BASE);
269 dma_outb((count >> 8) & 0xff,
272 dma_outb((count >> 1) & 0xff,
274 dma_outb((count >> 9) & 0xff,
280 /* Get DMA residue count. After a DMA transfer, this
292 unsigned short count;
297 count = 1 + dma_inb(io_port);
298 count += dma_inb(io_port) << 8;
300 return (dmanr <= 3) ? count : (count << 1);