Home
last modified time | relevance | path

Searched refs:bs_kgts_sema (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/misc/sgi-gru/
Dgrukservices.c146 up_read(&bs->bs_kgts_sema); in gru_load_kernel_context()
147 down_write(&bs->bs_kgts_sema); in gru_load_kernel_context()
179 downgrade_write(&bs->bs_kgts_sema); in gru_load_kernel_context()
198 if (down_write_trylock(&bs->bs_kgts_sema)) { in gru_free_kernel_contexts()
203 up_write(&bs->bs_kgts_sema); in gru_free_kernel_contexts()
226 down_read(&bs->bs_kgts_sema); in gru_lock_kernel_context()
228 up_read(&bs->bs_kgts_sema); in gru_lock_kernel_context()
246 up_read(&bs->bs_kgts_sema); in gru_unlock_kernel_context()
298 down_write(&bs->bs_kgts_sema); in gru_reserve_async_resources()
314 up_write(&bs->bs_kgts_sema); in gru_reserve_async_resources()
[all …]
Dgrutables.h449 struct rw_semaphore bs_kgts_sema; /* lock for kgts */ member
Dgrumain.c753 return down_write_trylock(&bs->bs_kgts_sema); in is_gts_stealable()
762 up_write(&bs->bs_kgts_sema); in gts_stolen()
Dgrufile.c273 init_rwsem(&gru_base[bid]->bs_kgts_sema); in gru_init_tables()