Lines Matching refs:dlen
213 int dlen; /* transfer size requested */ member
320 static int pg_command(struct pg *dev, char *cmd, int dlen, unsigned long tmo) in pg_command() argument
331 write_reg(dev, 4, dlen % 256); in pg_command()
332 write_reg(dev, 5, dlen / 256); in pg_command()
346 printk("%s: Command sent, dlen=%d packet= ", dev->name, dlen); in pg_command()
364 dev->dlen = 0; in pg_completion()
377 dev->dlen += (1 - p) * d; in pg_completion()
592 if (hdr.dlen < 0 || hdr.dlen > PG_MAX_DATA) in pg_write()
611 if (pg_command(dev, hdr.packet, hdr.dlen, jiffies + PG_TMO)) { in pg_write()
644 hdr.dlen = dev->dlen; in pg_read()
647 if (hdr.dlen < 0) { in pg_read()
648 hdr.dlen = -1 * hdr.dlen; in pg_read()
649 copy = hdr.dlen; in pg_read()