Lines Matching refs:tc

295 	tx_cpu_t *tc = &tx->tx_cpu[CPU_SEQID];  in txg_hold_open()  local
298 mutex_enter(&tc->tc_open_lock); in txg_hold_open()
301 mutex_enter(&tc->tc_lock); in txg_hold_open()
302 tc->tc_count[txg & TXG_MASK]++; in txg_hold_open()
303 mutex_exit(&tc->tc_lock); in txg_hold_open()
305 th->th_cpu = tc; in txg_hold_open()
314 tx_cpu_t *tc = th->th_cpu; in txg_rele_to_quiesce() local
316 ASSERT(!MUTEX_HELD(&tc->tc_lock)); in txg_rele_to_quiesce()
317 mutex_exit(&tc->tc_open_lock); in txg_rele_to_quiesce()
323 tx_cpu_t *tc = th->th_cpu; in txg_register_callbacks() local
326 mutex_enter(&tc->tc_lock); in txg_register_callbacks()
327 list_move_tail(&tc->tc_callbacks[g], tx_callbacks); in txg_register_callbacks()
328 mutex_exit(&tc->tc_lock); in txg_register_callbacks()
334 tx_cpu_t *tc = th->th_cpu; in txg_rele_to_sync() local
337 mutex_enter(&tc->tc_lock); in txg_rele_to_sync()
338 ASSERT(tc->tc_count[g] != 0); in txg_rele_to_sync()
339 if (--tc->tc_count[g] == 0) in txg_rele_to_sync()
340 cv_broadcast(&tc->tc_cv[g]); in txg_rele_to_sync()
341 mutex_exit(&tc->tc_lock); in txg_rele_to_sync()
383 tx_cpu_t *tc = &tx->tx_cpu[c]; in txg_quiesce() local
384 mutex_enter(&tc->tc_lock); in txg_quiesce()
385 while (tc->tc_count[g] != 0) in txg_quiesce()
386 cv_wait(&tc->tc_cv[g], &tc->tc_lock); in txg_quiesce()
387 mutex_exit(&tc->tc_lock); in txg_quiesce()
415 tx_cpu_t *tc = &tx->tx_cpu[c]; in txg_dispatch_callbacks() local
423 if (list_is_empty(&tc->tc_callbacks[g])) in txg_dispatch_callbacks()
439 list_move_tail(cb_list, &tc->tc_callbacks[g]); in txg_dispatch_callbacks()