Lines Matching defs:next_ptr
509 unsigned int ptr, next_ptr;
524 next_ptr = (priv(dev)->tx_head + 1) & 15;
528 if (priv(dev)->tx_tail == next_ptr) {
535 priv(dev)->tx_head = next_ptr;
536 next_ptr *= 0x600;
540 ether3_setbuffer(dev, buffer_write, next_ptr);
545 ether3_writeword(dev, htons(next_ptr));
557 next_ptr = (priv(dev)->tx_head + 1) & 15;
562 if (priv(dev)->tx_tail == next_ptr)
606 unsigned int next_ptr = priv(dev)->rx_head, received = 0;
622 ether3_setbuffer(dev, buffer_read, next_ptr);
629 this_ptr = next_ptr + 4;
630 next_ptr = ntohs(temp_ptr);
635 if (next_ptr < RX_START || next_ptr >= RX_END) {
638 printk("%02X %02X %02X %02X ", next_ptr >> 8, next_ptr & 255, status & 255, status >> 8);
642 next_ptr = priv(dev)->rx_head;
651 ether3_outw(next_ptr >> 8, REG_RECVEND);
654 unsigned int length = next_ptr - this_ptr;
657 if (next_ptr <= this_ptr)
667 ether3_outw(next_ptr >> 8, REG_RECVEND);
679 ether3_outw(next_ptr >> 8, REG_RECVEND);
691 priv(dev)->rx_head = next_ptr;
698 ether3_outw(next_ptr, REG_RECVPTR);
707 ether3_outw(next_ptr >> 8, REG_RECVEND);