Lines Matching defs:write_ptr
685 void __iomem *write_ptr;
693 write_ptr = lp->base + cur_rxbuf;
695 writew(0x0000,write_ptr); /* Status */
696 writew(0x0000,write_ptr+=2); /* Command */
697 writew(cur_rxbuf + RX_BUF_SIZE,write_ptr+=2); /* Link */
698 writew(cur_rxbuf + 22,write_ptr+=2); /* Buffer offset */
699 writew(0x0000,write_ptr+=2); /* Pad for dest addr. */
700 writew(0x0000,write_ptr+=2);
701 writew(0x0000,write_ptr+=2);
702 writew(0x0000,write_ptr+=2); /* Pad for source addr. */
703 writew(0x0000,write_ptr+=2);
704 writew(0x0000,write_ptr+=2);
705 writew(0x0000,write_ptr+=2); /* Pad for protocol. */
707 writew(0x0000,write_ptr+=2); /* Buffer: Actual count */
708 writew(-1,write_ptr+=2); /* Buffer: Next (none). */
709 writew(cur_rxbuf + 0x20 + SCB_base,write_ptr+=2);/* Buffer: Address low */
710 writew(0x0000,write_ptr+=2);
712 writew(0x8000 + RX_BUF_SIZE-0x20,write_ptr+=2);
720 write_ptr = lp->base + lp->rx_tail + 2;
721 writew(0xC000,write_ptr); /* Command, mark as last. */
722 writew(lp->rx_head,write_ptr+2); /* Link */
788 void __iomem *write_ptr = lp->base + tx_block;
792 writew(0x0000,write_ptr); /* Tx status */
793 writew(CMD_INTR|CmdTx,write_ptr+=2); /* Tx command */
794 writew(tx_block+16,write_ptr+=2); /* Next command is a NoOp. */
795 writew(tx_block+8,write_ptr+=2); /* Data Buffer offset. */
798 writew((pad + length) | 0x8000,write_ptr+=2); /* Byte count parameter. */
799 writew(-1,write_ptr+=2); /* No next data buffer. */
800 writew(tx_block+22+SCB_BASE,write_ptr+=2); /* Buffer follows the NoOp command. */
801 writew(0x0000,write_ptr+=2); /* Buffer address high bits (always zero). */
804 writew(0x0000,write_ptr+=2); /* Tx status */
805 writew(CmdNOp,write_ptr+=2); /* Tx command */
806 writew(tx_block+16,write_ptr+=2); /* Next is myself. */
809 memcpy_toio(write_ptr+2, buf, length);
811 memcpy_toio(write_ptr+length+2, padding, pad);