Lines Matching defs:tx_grp

972 	vnet_pseudo_tx_group_t	*tx_grp;
976 tx_grp = &vnetp->tx_grp[0];
982 tx_grp->rings = tx_ringp;
983 tx_grp->ring_cnt = VNET_NUM_PSEUDO_TXRINGS;
984 mutex_init(&tx_grp->flowctl_lock, NULL, MUTEX_DRIVER, NULL);
985 cv_init(&tx_grp->flowctl_cv, NULL, CV_DRIVER, NULL);
986 tx_grp->flowctl_thread = thread_create(NULL, 0,
987 vnet_tx_notify_thread, tx_grp, 0, &p0, TS_RUN, minclsyspri);
1021 vnet_pseudo_tx_group_t *tx_grp;
1024 tx_grp = &vnetp->tx_grp[0];
1027 mutex_enter(&tx_grp->flowctl_lock);
1028 if (tx_grp->flowctl_thread != NULL) {
1029 tid = tx_grp->flowctl_thread->t_did;
1030 tx_grp->flowctl_done = B_TRUE;
1031 cv_signal(&tx_grp->flowctl_cv);
1033 mutex_exit(&tx_grp->flowctl_lock);
1037 if (tx_grp->rings != NULL) {
1038 ASSERT(tx_grp->ring_cnt == VNET_NUM_PSEUDO_TXRINGS);
1039 kmem_free(tx_grp->rings, sizeof (vnet_pseudo_tx_ring_t) *
1040 tx_grp->ring_cnt);
1041 tx_grp->rings = NULL;
1391 vnet_pseudo_tx_group_t *tx_grp;
1419 tx_grp = &vnetp->tx_grp[0];
1420 for (i = 0; i < tx_grp->ring_cnt; i++) {
1421 tx_ringp = &tx_grp->rings[i];
1441 vnet_pseudo_tx_group_t *tx_grp = (vnet_pseudo_tx_group_t *)arg;
1446 CALLB_CPR_INIT(&cprinfo, &tx_grp->flowctl_lock, callb_generic_cpr,
1449 mutex_enter(&tx_grp->flowctl_lock);
1450 while (!tx_grp->flowctl_done) {
1452 cv_wait(&tx_grp->flowctl_cv, &tx_grp->flowctl_lock);
1453 CALLB_CPR_SAFE_END(&cprinfo, &tx_grp->flowctl_lock);
1455 for (i = 0; i < tx_grp->ring_cnt; i++) {
1456 tx_ringp = &tx_grp->rings[i];
1465 * The tx_grp is being destroyed, exit the thread.
1467 tx_grp->flowctl_thread = NULL;
1476 vnet_pseudo_tx_group_t *tx_grp;
1480 tx_grp = &vnetp->tx_grp[0];
1481 for (i = 0; i < tx_grp->ring_cnt; i++) {
1482 tx_ringp = &tx_grp->rings[i];
1484 mutex_enter(&tx_grp->flowctl_lock);
1486 cv_signal(&tx_grp->flowctl_cv);
1487 mutex_exit(&tx_grp->flowctl_lock);
2185 cap_rings->mr_rnum = vnetp->tx_grp[0].ring_cnt;
2274 vnet_pseudo_tx_group_t *tx_grp;
2280 tx_grp = &vnetp->tx_grp[0];
2283 ASSERT((r_index >= 0) && (r_index < tx_grp->ring_cnt));
2286 tx_ringp = &tx_grp->rings[r_index];
2290 tx_ringp->grp = tx_grp;
2350 vnet_pseudo_tx_group_t *tx_grp;
2355 tx_grp = &vnetp->tx_grp[index];
2356 tx_grp->handle = handle;
2357 tx_grp->index = index;
2358 tx_grp->vnetp = vnetp;
2360 infop->mgi_driver = (mac_group_driver_t)tx_grp;
2797 vnet_pseudo_tx_group_t *tx_grp;
2876 tx_grp = &vnetp->tx_grp[0];
2877 for (i = 0; i < tx_grp->ring_cnt; i++) {
2878 tx_ringp = &tx_grp->rings[i];
2882 tx_grp->tx_notify_handle =
2901 vnet_pseudo_tx_group_t *tx_grp;
2907 tx_grp = &vnetp->tx_grp[0];
2909 tx_ringp = &tx_grp->rings[i];
2916 tx_grp->tx_notify_handle);