Lines Matching refs:count
40 * - transfer count loaded to registers is 1 less than actual count
71 * Transfer count (_not # bytes_) is limited to 64K, represented as actual
72 * count - 1 : 64K => 0xFFFF, 1 => 0x0000. Thus, count is always 1 or more,
135 #define DMA_CNT_0 0x01 /* DMA count registers */
266 * than the initial word count"! This is taken into account.
268 * NOTE 2: "count" represents _bytes_ and must be even for channels 5-7.
270 static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count)
272 count--;
274 dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE );
275 dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE );
277 dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE );
278 dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE );
283 /* Get DMA residue count. After a DMA transfer, this
297 unsigned short count;
299 count = 1 + dma_inb(io_port);
300 count += dma_inb(io_port) << 8;
302 return (dmanr<=3)? count : (count<<1);