mwl_rxbuf
static int mwl_rxbuf_init(struct mwl_softc *, struct mwl_rxbuf *);
static int mwl_rxbuf = MWL_RXBUF; /* # rx buffers to allocate */
SYSCTL_INT(_hw_mwl, OID_AUTO, rxbuf, CTLFLAG_RWTUN, &mwl_rxbuf,
struct mwl_rxbuf *bf;
mwl_rxdesc, sizeof(struct mwl_rxbuf),
if (mwl_rxbuf < 2*mwl_rxdesc) {
mwl_rxbuf, 2*mwl_rxdesc);
mwl_rxbuf = 2*mwl_rxdesc;
sc->sc_rxmemsize = mwl_rxbuf*jumbosize;
bsize = mwl_rxdesc * sizeof(struct mwl_rxbuf);
for (; i < mwl_rxbuf; i++) {
static void mwl_printrxbuf(const struct mwl_rxbuf *bf, u_int ix);
mwl_rxbuf_init(struct mwl_softc *sc, struct mwl_rxbuf *bf)
struct mwl_rxbuf *bf;
struct mwl_rxbuf *bf, *prev;
mwl_printrxbuf(const struct mwl_rxbuf *bf, u_int ix)
if (bootverbose || mwl_rxbuf != MWL_RXBUF)
device_printf(sc->sc_dev, "using %u rx buffers\n", mwl_rxbuf);
STAILQ_ENTRY(mwl_rxbuf) bf_list;
typedef STAILQ_HEAD(, mwl_rxbuf) mwl_rxbufhead;
struct mwl_rxbuf *sc_rxnext; /* next rx buffer to process */