Lines Matching refs:entry
78 static unsigned int cur_rx, cur_tx; /* The next free ring entry */
267 /* Mark the last entry as wrapping the ring. */
300 int entry;
302 /* Calculate the next Tx descriptor entry. */
303 entry = cur_tx % TX_RING_SIZE;
305 if ((tx_ring[entry].status & TRING_OWN) == TRING_OWN) {
307 tx_ring[entry].status);
313 txp = (char*)tx_ring[entry].bufaddr;
328 tx_ring[entry].txlength = (len >= 60 ? len : 60);
329 tx_ring[entry].buflength = len;
330 tx_ring[entry].status = TRING_OWN; /* Pass ownership to the chip. */
338 while ((tx_ring[entry].status & TRING_OWN) && timer2_running())
341 if ((tx_ring[entry].status & TRING_OWN) != 0)
343 tx_ring[entry].status);
361 int entry;
365 entry = cur_rx % RX_RING_SIZE;
367 if ((status = rx_ring[entry].status & RRING_OWN) == RRING_OWN)
370 /* We own the next entry, it's a new packet. Send it up. */
373 printf("epic_poll: entry %d status %hX\n", entry, status);
386 nic->packetlen = rx_ring[entry].rxlength - 4;
387 memcpy(nic->packet, (char*)rx_ring[entry].bufaddr, nic->packetlen);
395 rx_ring[entry].status = RRING_OWN;