Lines Matching defs:entry
80 static unsigned int cur_rx, cur_tx; /* The next free ring entry */
274 /* Mark the last entry as wrapping the ring. */
306 int entry;
308 /* Calculate the next Tx descriptor entry. */
309 entry = cur_tx % TX_RING_SIZE;
311 if ((tx_ring[entry].status & TRING_OWN) == TRING_OWN) {
313 tx_ring[entry].status);
319 txp = tx_packet + (entry * PKT_BUF_SZ);
337 tx_ring[entry].buflength |= cpu_to_le32(len);
338 tx_ring[entry].status = cpu_to_le32(len << 16) |
347 while ((le32_to_cpu(tx_ring[entry].status) & (TRING_OWN)) && timer2_running())
350 if ((le32_to_cpu(tx_ring[entry].status) & TRING_OWN) != 0)
352 tx_ring[entry].status);
370 int entry;
373 entry = cur_rx % RX_RING_SIZE;
375 if ((rx_ring[entry].status & cpu_to_le32(RRING_OWN)) == RRING_OWN)
380 status = le32_to_cpu(rx_ring[entry].status);
381 /* We own the next entry, it's a new packet. Send it up. */
384 printf("epic_poll: entry %d status %hX\n", entry, status);
397 nic->packetlen = le32_to_cpu((rx_ring[entry].buflength))- 4;
398 memcpy(nic->packet, &rx_packet[entry * PKT_BUF_SZ], nic->packetlen);
406 rx_ring[entry].status = RRING_OWN;