Lines Matching +defs:current +defs:buffer

106 	/* Allocate one xmit buffer if < 16k, two buffers otherwise. */
311 /* Initialize receive buffer ring. */
348 * Set current page pointer to one page after the boundary pointer, as
419 /* Set TX buffer start page. */
432 /* Point to next transmit buffer slot and wrap if necessary. */
443 * 1) that the current priority is set to splnet _before_ this code
454 int buffer;
461 /* See if there is room to put another packet in the buffer. */
478 /* txb_new points to next open buffer slot. */
479 buffer = sc->mem_start +
482 len = (*sc->write_mbuf)(sc, m0, buffer);
487 /* Point to next buffer slot and wrap if necessary. */
495 /* Loop back to the top to possibly buffer more packets. */
510 uint8_t boundary, current;
514 /* Set NIC to page 1 registers to get 'current' pointer. */
521 * 'sc->next_packet' is the logical beginning of the ring-buffer - i.e.
522 * it points to where new data has been buffered. The 'CURR' (current)
523 * register points to the logical end of the ring-buffer - i.e. it
526 * words, until the ring-buffer is empty).
528 current = NIC_GET(regt, regh, ED_P1_CURR);
529 if (sc->next_packet == current)
539 /* Get pointer to this buffer's header structure. */
552 * NOTE: sc->next_packet is pointing at the current packet.
570 sc->rec_page_start, sc->next_packet, current,
605 * buffer behind (as recommended by NS databook).
611 } while (sc->next_packet != current);
725 * Decrement buffer in-use count if not zero (can only
750 "ring buffer overrun\n",
926 * Retrieve packet from buffer memory and send to the next level up via
1019 * Copy data from receive buffer to a new mbuf chain allocating mbufs
1022 * src = pointer in dp8390 ring buffer
1086 * Zero NIC buffer memory and verify that it is clear.
1099 printf(": failed to clear NIC buffer at offset %x - "
1128 * Copy `amount' bytes from a packet in the ring buffer to a linear
1129 * destination buffer, given a source offset and destination address.
1139 /* Does copy wrap to lower addr in ring buffer? */
1156 * Copy a packet from an mbuf to the transmit buffer on the card.
1158 * Currently uses an extra buffer/extra memory copy, unless the whole
1408 uint8_t bnry, current, isr;
1444 current = NIC_GET(regt, regh, ED_P1_CURR);
1451 if (sc->next_packet == current) {