Lines Matching refs:next_ptr
487 unsigned int ptr, next_ptr;
502 next_ptr = (priv(dev)->tx_head + 1) & 15;
506 if (priv(dev)->tx_tail == next_ptr) {
512 priv(dev)->tx_head = next_ptr;
513 next_ptr *= 0x600;
517 ether3_setbuffer(dev, buffer_write, next_ptr);
522 ether3_writeword(dev, htons(next_ptr));
534 next_ptr = (priv(dev)->tx_head + 1) & 15;
539 if (priv(dev)->tx_tail == next_ptr)
583 unsigned int next_ptr = priv(dev)->rx_head, received = 0;
599 ether3_setbuffer(dev, buffer_read, next_ptr);
606 this_ptr = next_ptr + 4;
607 next_ptr = ntohs(temp_ptr);
612 if (next_ptr < RX_START || next_ptr >= RX_END) {
614 printk("%02X %02X %02X %02X ", next_ptr >> 8, next_ptr & 255, status & 255, status >> 8);
616 next_ptr = priv(dev)->rx_head;
625 ether3_outw(next_ptr >> 8, REG_RECVEND);
628 unsigned int length = next_ptr - this_ptr;
631 if (next_ptr <= this_ptr)
641 ether3_outw(next_ptr >> 8, REG_RECVEND);
650 ether3_outw(next_ptr >> 8, REG_RECVEND);
656 ether3_outw(next_ptr >> 8, REG_RECVEND);
668 priv(dev)->rx_head = next_ptr;
675 ether3_outw(next_ptr, REG_RECVPTR);