Lines Matching refs:rdb_ndesc
1218 KASSERT(nsync <= rdb->rdb_ndesc); in rtw_rxdescs_sync()
1220 if (desc0 + nsync > rdb->rdb_ndesc) { in rtw_rxdescs_sync()
1223 sizeof(struct rtw_rxdesc) * (rdb->rdb_ndesc - desc0), ops); in rtw_rxdescs_sync()
1224 nsync -= (rdb->rdb_ndesc - desc0); in rtw_rxdescs_sync()
1228 KASSERT(desc0 < rdb->rdb_ndesc); in rtw_rxdescs_sync()
1229 KASSERT(nsync <= rdb->rdb_ndesc); in rtw_rxdescs_sync()
1230 KASSERT(desc0 + nsync <= rdb->rdb_ndesc); in rtw_rxdescs_sync()
1352 int is_last = (idx == rdb->rdb_ndesc - 1); in rtw_rxdesc_init()
1396 for (i = 0; i < rdb->rdb_ndesc; i++) { in rtw_rxdesc_init_all()
1467 KASSERT(next < rdb->rdb_ndesc); in rtw_intr_rx()
1496 rdb->rdb_next = (next + 1) % rdb->rdb_ndesc; in rtw_intr_rx()
1951 (desc >= rdb->rdb_ndesc) ? "UNUSED " : "", in rtw_dump_rings()
2003 if ((rc = rtw_rxsoft_init_all(sc->sc_dmat, sc->sc_rxsoft, &rdb->rdb_ndesc, in rtw_swring_setup()
2004 sc->sc_dev)) != 0 && rdb->rdb_ndesc == 0) { in rtw_swring_setup()
2010 rtw_rxdescs_sync(rdb, 0, rdb->rdb_ndesc, in rtw_swring_setup()