Lines Matching refs:desc0
1216 rtw_rxdescs_sync(struct rtw_rxdesc_blk *rdb, int desc0, int nsync, int ops)
1220 if (desc0 + nsync > rdb->rdb_ndesc) {
1222 offsetof(struct rtw_descs, hd_rx[desc0]),
1223 sizeof(struct rtw_rxdesc) * (rdb->rdb_ndesc - desc0), ops);
1224 nsync -= (rdb->rdb_ndesc - desc0);
1225 desc0 = 0;
1228 KASSERT(desc0 < rdb->rdb_ndesc);
1230 KASSERT(desc0 + nsync <= rdb->rdb_ndesc);
1234 desc0]),
1239 rtw_txdescs_sync(struct rtw_txdesc_blk *tdb, u_int desc0, u_int nsync, int ops)
1242 if (desc0 + nsync > tdb->tdb_ndesc) {
1244 tdb->tdb_ofs + sizeof(struct rtw_txdesc) * desc0,
1245 sizeof(struct rtw_txdesc) * (tdb->tdb_ndesc - desc0),
1247 nsync -= (tdb->tdb_ndesc - desc0);
1248 desc0 = 0;
1253 tdb->tdb_ofs + sizeof(struct rtw_txdesc) * desc0,