Lines Matching refs:next_ptr
495 unsigned int ptr, next_ptr; in ether3_sendpacket() local
510 next_ptr = (priv(dev)->tx_head + 1) & 15; in ether3_sendpacket()
514 if (priv(dev)->tx_tail == next_ptr) { in ether3_sendpacket()
520 priv(dev)->tx_head = next_ptr; in ether3_sendpacket()
521 next_ptr *= 0x600; in ether3_sendpacket()
525 ether3_setbuffer(dev, buffer_write, next_ptr); in ether3_sendpacket()
530 ether3_writeword(dev, htons(next_ptr)); in ether3_sendpacket()
542 next_ptr = (priv(dev)->tx_head + 1) & 15; in ether3_sendpacket()
547 if (priv(dev)->tx_tail == next_ptr) in ether3_sendpacket()
591 unsigned int next_ptr = priv(dev)->rx_head, received = 0; in ether3_rx() local
607 ether3_setbuffer(dev, buffer_read, next_ptr); in ether3_rx()
614 this_ptr = next_ptr + 4; in ether3_rx()
615 next_ptr = ntohs(temp_ptr); in ether3_rx()
620 if (next_ptr < RX_START || next_ptr >= RX_END) { in ether3_rx()
623 printk("%02X %02X %02X %02X ", next_ptr >> 8, next_ptr & 255, status & 255, status >> 8); in ether3_rx()
627 next_ptr = priv(dev)->rx_head; in ether3_rx()
636 ether3_outw(next_ptr >> 8, REG_RECVEND); in ether3_rx()
639 unsigned int length = next_ptr - this_ptr; in ether3_rx()
642 if (next_ptr <= this_ptr) in ether3_rx()
652 ether3_outw(next_ptr >> 8, REG_RECVEND); in ether3_rx()
664 ether3_outw(next_ptr >> 8, REG_RECVEND); in ether3_rx()
676 priv(dev)->rx_head = next_ptr; in ether3_rx()
683 ether3_outw(next_ptr, REG_RECVPTR); in ether3_rx()
692 ether3_outw(next_ptr >> 8, REG_RECVEND); in ether3_rx()