Lines Matching refs:next_ptr
490 unsigned int ptr, next_ptr; in ether3_sendpacket() local
505 next_ptr = (priv(dev)->tx_head + 1) & 15; in ether3_sendpacket()
509 if (priv(dev)->tx_tail == next_ptr) { in ether3_sendpacket()
515 priv(dev)->tx_head = next_ptr; in ether3_sendpacket()
516 next_ptr *= 0x600; in ether3_sendpacket()
520 ether3_setbuffer(dev, buffer_write, next_ptr); in ether3_sendpacket()
525 ether3_writeword(dev, htons(next_ptr)); in ether3_sendpacket()
537 next_ptr = (priv(dev)->tx_head + 1) & 15; in ether3_sendpacket()
542 if (priv(dev)->tx_tail == next_ptr) in ether3_sendpacket()
586 unsigned int next_ptr = priv(dev)->rx_head, received = 0; in ether3_rx() local
602 ether3_setbuffer(dev, buffer_read, next_ptr); in ether3_rx()
609 this_ptr = next_ptr + 4; in ether3_rx()
610 next_ptr = ntohs(temp_ptr); in ether3_rx()
615 if (next_ptr < RX_START || next_ptr >= RX_END) { in ether3_rx()
618 printk("%02X %02X %02X %02X ", next_ptr >> 8, next_ptr & 255, status & 255, status >> 8); in ether3_rx()
622 next_ptr = priv(dev)->rx_head; in ether3_rx()
631 ether3_outw(next_ptr >> 8, REG_RECVEND); in ether3_rx()
634 unsigned int length = next_ptr - this_ptr; in ether3_rx()
637 if (next_ptr <= this_ptr) in ether3_rx()
647 ether3_outw(next_ptr >> 8, REG_RECVEND); in ether3_rx()
656 ether3_outw(next_ptr >> 8, REG_RECVEND); in ether3_rx()
662 ether3_outw(next_ptr >> 8, REG_RECVEND); in ether3_rx()
674 priv(dev)->rx_head = next_ptr; in ether3_rx()
681 ether3_outw(next_ptr, REG_RECVPTR); in ether3_rx()