Searched refs:bs_kgts_sema (Results 1 – 4 of 4) sorted by relevance
147 up_read(&bs->bs_kgts_sema); in gru_load_kernel_context()148 down_write(&bs->bs_kgts_sema); in gru_load_kernel_context()180 downgrade_write(&bs->bs_kgts_sema); in gru_load_kernel_context()199 if (down_write_trylock(&bs->bs_kgts_sema)) { in gru_free_kernel_contexts()204 up_write(&bs->bs_kgts_sema); in gru_free_kernel_contexts()227 down_read(&bs->bs_kgts_sema); in gru_lock_kernel_context()229 up_read(&bs->bs_kgts_sema); in gru_lock_kernel_context()247 up_read(&bs->bs_kgts_sema); in gru_unlock_kernel_context()297 down_write(&bs->bs_kgts_sema); in gru_reserve_async_resources()313 up_write(&bs->bs_kgts_sema); in gru_reserve_async_resources()[all …]
758 return down_write_trylock(&bs->bs_kgts_sema); in is_gts_stealable()767 up_write(&bs->bs_kgts_sema); in gts_stolen()
450 struct rw_semaphore bs_kgts_sema; /* lock for kgts */ member
274 init_rwsem(&gru_base[bid]->bs_kgts_sema); in gru_init_tables()