Lines Matching refs:tc
296 tx_cpu_t *tc = &tx->tx_cpu[CPU_SEQID]; in txg_hold_open() local
299 mutex_enter(&tc->tc_open_lock); in txg_hold_open()
302 mutex_enter(&tc->tc_lock); in txg_hold_open()
303 tc->tc_count[txg & TXG_MASK]++; in txg_hold_open()
304 mutex_exit(&tc->tc_lock); in txg_hold_open()
306 th->th_cpu = tc; in txg_hold_open()
315 tx_cpu_t *tc = th->th_cpu; in txg_rele_to_quiesce() local
317 ASSERT(!MUTEX_HELD(&tc->tc_lock)); in txg_rele_to_quiesce()
318 mutex_exit(&tc->tc_open_lock); in txg_rele_to_quiesce()
324 tx_cpu_t *tc = th->th_cpu; in txg_register_callbacks() local
327 mutex_enter(&tc->tc_lock); in txg_register_callbacks()
328 list_move_tail(&tc->tc_callbacks[g], tx_callbacks); in txg_register_callbacks()
329 mutex_exit(&tc->tc_lock); in txg_register_callbacks()
335 tx_cpu_t *tc = th->th_cpu; in txg_rele_to_sync() local
338 mutex_enter(&tc->tc_lock); in txg_rele_to_sync()
339 ASSERT(tc->tc_count[g] != 0); in txg_rele_to_sync()
340 if (--tc->tc_count[g] == 0) in txg_rele_to_sync()
341 cv_broadcast(&tc->tc_cv[g]); in txg_rele_to_sync()
342 mutex_exit(&tc->tc_lock); in txg_rele_to_sync()
384 tx_cpu_t *tc = &tx->tx_cpu[c]; in txg_quiesce() local
385 mutex_enter(&tc->tc_lock); in txg_quiesce()
386 while (tc->tc_count[g] != 0) in txg_quiesce()
387 cv_wait(&tc->tc_cv[g], &tc->tc_lock); in txg_quiesce()
388 mutex_exit(&tc->tc_lock); in txg_quiesce()
416 tx_cpu_t *tc = &tx->tx_cpu[c]; in txg_dispatch_callbacks() local
424 if (list_is_empty(&tc->tc_callbacks[g])) in txg_dispatch_callbacks()
440 list_move_tail(cb_list, &tc->tc_callbacks[g]); in txg_dispatch_callbacks()