malo_rxbuf
malo_getrxmbuf(struct malo_softc *sc, struct malo_rxbuf *bf)
malo_rxbuf_init(struct malo_softc *sc, struct malo_rxbuf *bf)
struct malo_rxbuf *bf, *prev;
STAILQ_FOREACH(bf, &sc->malo_rxbuf, bf_list) {
htole32(STAILQ_FIRST(&sc->malo_rxbuf)->bf_daddr);
if (bootverbose || malo_rxbuf != MALO_RXBUF)
"using %u rx buffers\n", malo_rxbuf);
struct malo_rxbuf *bf;
bf = STAILQ_FIRST(&sc->malo_rxbuf);
struct malo_rxbuf *bf;
malo_rxbuf, sizeof(struct malo_rxbuf),
bsize = malo_rxbuf * sizeof(struct malo_rxbuf);
STAILQ_INIT(&sc->malo_rxbuf);
for (i = 0; i < malo_rxbuf; i++, bf++, ds++) {
STAILQ_INSERT_TAIL(&sc->malo_rxbuf, bf, bf_list);
struct malo_rxbuf *bf;
STAILQ_FOREACH(bf, &sc->malo_rxbuf, bf_list) {
STAILQ_INIT(&sc->malo_rxbuf);
static int malo_rxbuf = MALO_RXBUF; /* # rx buffers to allocate */
SYSCTL_INT(_hw_malo, OID_AUTO, rxbuf, CTLFLAG_RWTUN, &malo_rxbuf,
malo_printrxbuf(const struct malo_rxbuf *bf, u_int ix)
STAILQ_ENTRY(malo_rxbuf) bf_list;
typedef STAILQ_HEAD(, malo_rxbuf) malo_rxbufhead;
malo_rxbufhead malo_rxbuf; /* rx buffers */
struct malo_rxbuf *malo_rxnext; /* next rx buffer to process */