Lines Matching refs:sc_txq

1165 		txbf = list_head(&rsc->sc_txq[i].tx_free_list);
1168 list_remove(&rsc->sc_txq[i].tx_free_list, txbf);
1169 txbf = list_head(&rsc->sc_txq[i].tx_free_list);
1171 list_destroy(&rsc->sc_txq[i].tx_free_list);
1172 txbf = list_head(&rsc->sc_txq[i].tx_dirty_list);
1175 list_remove(&rsc->sc_txq[i].tx_dirty_list, txbf);
1176 txbf = list_head(&rsc->sc_txq[i].tx_dirty_list);
1178 list_destroy(&rsc->sc_txq[i].tx_dirty_list);
1180 if (rsc->sc_txq[i].txbuf_h != NULL) {
1181 kmem_free(rsc->sc_txq[i].txbuf_h,
1183 rsc->sc_txq[i].txbuf_h = NULL;
1242 list_create(&rsc->sc_txq[i].tx_free_list,
1245 list_create(&rsc->sc_txq[i].tx_dirty_list,
1249 rsc->sc_txq[i].txdesc_h =
1252 txds = rsc->sc_txq[i].txdesc_h;
1256 rsc->sc_txq[i].txbuf_h = txbf;
1260 (uintptr_t)rsc->sc_txq[i].txdesc_h);
1261 list_insert_tail(&rsc->sc_txq[i].tx_free_list, txbf);
1341 rsc->sc_txq[i].tx_prod = rsc->sc_txq[i].tx_cons = 0;
1342 rsc->sc_txq[i].tx_nfree = rtw_qlen[i];
1343 txbf = list_head(&rsc->sc_txq[i].tx_free_list);
1345 list_remove(&rsc->sc_txq[i].tx_free_list, txbf);
1346 txbf = list_head(&rsc->sc_txq[i].tx_free_list);
1348 txbf = list_head(&rsc->sc_txq[i].tx_dirty_list);
1350 list_remove(&rsc->sc_txq[i].tx_dirty_list, txbf);
1351 txbf = list_head(&rsc->sc_txq[i].tx_dirty_list);
1353 txbf = rsc->sc_txq[i].txbuf_h;
1357 list_insert_tail(&rsc->sc_txq[i].tx_free_list, txbf);
2257 mutex_enter(&rsc->sc_txq[i].txbuf_lock);
2258 bf = list_head(&rsc->sc_txq[i].tx_free_list);
2260 if ((bf == NULL) || (rsc->sc_txq[i].tx_nfree <= 4)) {
2271 mutex_exit(&rsc->sc_txq[i].txbuf_lock);
2275 list_remove(&rsc->sc_txq[i].tx_free_list, bf);
2276 rsc->sc_txq[i].tx_nfree--;
2282 mutex_exit(&rsc->sc_txq[i].txbuf_lock);
2290 list_insert_tail(&rsc->sc_txq[i].tx_dirty_list, bf);
2294 mutex_exit(&rsc->sc_txq[i].txbuf_lock);
2702 mutex_enter(&rsc->sc_txq[pri].txbuf_lock);
2705 mutex_exit(&rsc->sc_txq[pri].txbuf_lock);
2711 bf = list_head(&rsc->sc_txq[pri].tx_dirty_list);
2715 mutex_exit(&rsc->sc_txq[pri].txbuf_lock);
2755 list_remove(&rsc->sc_txq[pri].tx_dirty_list, bf);
2756 list_insert_tail(&rsc->sc_txq[pri].tx_free_list,
2758 (rsc->sc_txq[pri].tx_nfree)++;
2765 pri, rsc->sc_txq[pri].tx_nfree);
2771 bf = list_head(&rsc->sc_txq[pri].tx_dirty_list);
2773 mutex_exit(&rsc->sc_txq[pri].txbuf_lock);
3111 mutex_destroy(&rsc->sc_txq[RTW_NTXPRI - 1 - i].txbuf_lock);
3294 mutex_init(&rsc->sc_txq[i].txbuf_lock, NULL, MUTEX_DRIVER,