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