Lines Matching refs:txl

182 smb_net_txl_constructor(smb_txlst_t *txl)  in smb_net_txl_constructor()  argument
184 ASSERT(txl->tl_magic != SMB_TXLST_MAGIC); in smb_net_txl_constructor()
186 mutex_init(&txl->tl_mutex, NULL, MUTEX_DEFAULT, NULL); in smb_net_txl_constructor()
187 cv_init(&txl->tl_wait_cv, NULL, CV_DEFAULT, NULL); in smb_net_txl_constructor()
188 txl->tl_active = B_FALSE; in smb_net_txl_constructor()
189 txl->tl_magic = SMB_TXLST_MAGIC; in smb_net_txl_constructor()
198 smb_net_txl_destructor(smb_txlst_t *txl) in smb_net_txl_destructor() argument
200 ASSERT(txl->tl_magic == SMB_TXLST_MAGIC); in smb_net_txl_destructor()
202 txl->tl_magic = 0; in smb_net_txl_destructor()
203 cv_destroy(&txl->tl_wait_cv); in smb_net_txl_destructor()
204 mutex_destroy(&txl->tl_mutex); in smb_net_txl_destructor()
285 smb_txlst_t *txl; in smb_net_send_mblks() local
325 txl = &s->s_txlst; in smb_net_send_mblks()
326 mutex_enter(&txl->tl_mutex); in smb_net_send_mblks()
327 while (txl->tl_active) in smb_net_send_mblks()
328 cv_wait(&txl->tl_wait_cv, &txl->tl_mutex); in smb_net_send_mblks()
329 txl->tl_active = B_TRUE; in smb_net_send_mblks()
330 mutex_exit(&txl->tl_mutex); in smb_net_send_mblks()
344 mutex_enter(&txl->tl_mutex); in smb_net_send_mblks()
345 txl->tl_active = B_FALSE; in smb_net_send_mblks()
346 cv_signal(&txl->tl_wait_cv); in smb_net_send_mblks()
347 mutex_exit(&txl->tl_mutex); in smb_net_send_mblks()
365 smb_txlst_t *txl; in smb_net_send_uio() local
400 txl = &s->s_txlst; in smb_net_send_uio()
401 mutex_enter(&txl->tl_mutex); in smb_net_send_uio()
402 while (txl->tl_active) in smb_net_send_uio()
403 cv_wait(&txl->tl_wait_cv, &txl->tl_mutex); in smb_net_send_uio()
404 txl->tl_active = B_TRUE; in smb_net_send_uio()
405 mutex_exit(&txl->tl_mutex); in smb_net_send_uio()
424 mutex_enter(&txl->tl_mutex); in smb_net_send_uio()
425 txl->tl_active = B_FALSE; in smb_net_send_uio()
426 cv_signal(&txl->tl_wait_cv); in smb_net_send_uio()
427 mutex_exit(&txl->tl_mutex); in smb_net_send_uio()