Lines Matching refs:tx_grp

973 	vnet_pseudo_tx_group_t	*tx_grp;  in vnet_ring_grp_init()  local
977 tx_grp = &vnetp->tx_grp[0]; in vnet_ring_grp_init()
983 tx_grp->rings = tx_ringp; in vnet_ring_grp_init()
984 tx_grp->ring_cnt = VNET_NUM_PSEUDO_TXRINGS; in vnet_ring_grp_init()
985 mutex_init(&tx_grp->flowctl_lock, NULL, MUTEX_DRIVER, NULL); in vnet_ring_grp_init()
986 cv_init(&tx_grp->flowctl_cv, NULL, CV_DRIVER, NULL); in vnet_ring_grp_init()
987 tx_grp->flowctl_thread = thread_create(NULL, 0, in vnet_ring_grp_init()
988 vnet_tx_notify_thread, tx_grp, 0, &p0, TS_RUN, minclsyspri); in vnet_ring_grp_init()
1022 vnet_pseudo_tx_group_t *tx_grp; in vnet_ring_grp_uninit() local
1025 tx_grp = &vnetp->tx_grp[0]; in vnet_ring_grp_uninit()
1028 mutex_enter(&tx_grp->flowctl_lock); in vnet_ring_grp_uninit()
1029 if (tx_grp->flowctl_thread != NULL) { in vnet_ring_grp_uninit()
1030 tid = tx_grp->flowctl_thread->t_did; in vnet_ring_grp_uninit()
1031 tx_grp->flowctl_done = B_TRUE; in vnet_ring_grp_uninit()
1032 cv_signal(&tx_grp->flowctl_cv); in vnet_ring_grp_uninit()
1034 mutex_exit(&tx_grp->flowctl_lock); in vnet_ring_grp_uninit()
1038 if (tx_grp->rings != NULL) { in vnet_ring_grp_uninit()
1039 ASSERT(tx_grp->ring_cnt == VNET_NUM_PSEUDO_TXRINGS); in vnet_ring_grp_uninit()
1040 kmem_free(tx_grp->rings, sizeof (vnet_pseudo_tx_ring_t) * in vnet_ring_grp_uninit()
1041 tx_grp->ring_cnt); in vnet_ring_grp_uninit()
1042 tx_grp->rings = NULL; in vnet_ring_grp_uninit()
1392 vnet_pseudo_tx_group_t *tx_grp; in vnet_tx_update() local
1420 tx_grp = &vnetp->tx_grp[0]; in vnet_tx_update()
1421 for (i = 0; i < tx_grp->ring_cnt; i++) { in vnet_tx_update()
1422 tx_ringp = &tx_grp->rings[i]; in vnet_tx_update()
1442 vnet_pseudo_tx_group_t *tx_grp = (vnet_pseudo_tx_group_t *)arg; in vnet_tx_notify_thread() local
1447 CALLB_CPR_INIT(&cprinfo, &tx_grp->flowctl_lock, callb_generic_cpr, in vnet_tx_notify_thread()
1450 mutex_enter(&tx_grp->flowctl_lock); in vnet_tx_notify_thread()
1451 while (!tx_grp->flowctl_done) { in vnet_tx_notify_thread()
1453 cv_wait(&tx_grp->flowctl_cv, &tx_grp->flowctl_lock); in vnet_tx_notify_thread()
1454 CALLB_CPR_SAFE_END(&cprinfo, &tx_grp->flowctl_lock); in vnet_tx_notify_thread()
1456 for (i = 0; i < tx_grp->ring_cnt; i++) { in vnet_tx_notify_thread()
1457 tx_ringp = &tx_grp->rings[i]; in vnet_tx_notify_thread()
1468 tx_grp->flowctl_thread = NULL; in vnet_tx_notify_thread()
1477 vnet_pseudo_tx_group_t *tx_grp; in vnet_tx_ring_update() local
1481 tx_grp = &vnetp->tx_grp[0]; in vnet_tx_ring_update()
1482 for (i = 0; i < tx_grp->ring_cnt; i++) { in vnet_tx_ring_update()
1483 tx_ringp = &tx_grp->rings[i]; in vnet_tx_ring_update()
1485 mutex_enter(&tx_grp->flowctl_lock); in vnet_tx_ring_update()
1487 cv_signal(&tx_grp->flowctl_cv); in vnet_tx_ring_update()
1488 mutex_exit(&tx_grp->flowctl_lock); in vnet_tx_ring_update()
2186 cap_rings->mr_rnum = vnetp->tx_grp[0].ring_cnt; in vnet_m_capab()
2275 vnet_pseudo_tx_group_t *tx_grp; in vnet_get_ring() local
2281 tx_grp = &vnetp->tx_grp[0]; in vnet_get_ring()
2284 ASSERT((r_index >= 0) && (r_index < tx_grp->ring_cnt)); in vnet_get_ring()
2287 tx_ringp = &tx_grp->rings[r_index]; in vnet_get_ring()
2291 tx_ringp->grp = tx_grp; in vnet_get_ring()
2351 vnet_pseudo_tx_group_t *tx_grp; in vnet_get_group() local
2356 tx_grp = &vnetp->tx_grp[index]; in vnet_get_group()
2357 tx_grp->handle = handle; in vnet_get_group()
2358 tx_grp->index = index; in vnet_get_group()
2359 tx_grp->vnetp = vnetp; in vnet_get_group()
2361 infop->mgi_driver = (mac_group_driver_t)tx_grp; in vnet_get_group()
2798 vnet_pseudo_tx_group_t *tx_grp; in vnet_bind_hwrings() local
2877 tx_grp = &vnetp->tx_grp[0]; in vnet_bind_hwrings()
2878 for (i = 0; i < tx_grp->ring_cnt; i++) { in vnet_bind_hwrings()
2879 tx_ringp = &tx_grp->rings[i]; in vnet_bind_hwrings()
2883 tx_grp->tx_notify_handle = in vnet_bind_hwrings()
2902 vnet_pseudo_tx_group_t *tx_grp; in vnet_unbind_hwrings() local
2908 tx_grp = &vnetp->tx_grp[0]; in vnet_unbind_hwrings()
2910 tx_ringp = &tx_grp->rings[i]; in vnet_unbind_hwrings()
2917 tx_grp->tx_notify_handle); in vnet_unbind_hwrings()