Home
last modified time | relevance | path

Searched refs:cch (Results 1 – 5 of 5) sorted by relevance

/linux-4.19.296/drivers/misc/sgi-gru/
Dgruhandles.c97 int cch_allocate(struct gru_context_configuration_handle *cch) in cch_allocate() argument
101 cch->opc = CCHOP_ALLOCATE; in cch_allocate()
102 start_instruction(cch); in cch_allocate()
103 ret = wait_instruction_complete(cch, cchop_allocate); in cch_allocate()
113 int cch_start(struct gru_context_configuration_handle *cch) in cch_start() argument
115 cch->opc = CCHOP_START; in cch_start()
116 start_instruction(cch); in cch_start()
117 return wait_instruction_complete(cch, cchop_start); in cch_start()
120 int cch_interrupt(struct gru_context_configuration_handle *cch) in cch_interrupt() argument
122 cch->opc = CCHOP_INTERRUPT; in cch_interrupt()
[all …]
Dgrumain.c558 struct gru_context_configuration_handle *cch; in gru_unload_context() local
563 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_unload_context()
567 lock_cch_handle(cch); in gru_unload_context()
568 if (cch_interrupt_sync(cch)) in gru_unload_context()
580 if (cch_deallocate(cch)) in gru_unload_context()
582 unlock_cch_handle(cch); in gru_unload_context()
594 struct gru_context_configuration_handle *cch; in gru_load_context() local
597 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_load_context()
598 lock_cch_handle(cch); in gru_load_context()
599 cch->tfm_fault_bit_enable = in gru_load_context()
[all …]
Dgrukdump.c49 struct gru_context_configuration_handle *cch, in gru_dump_context_data() argument
61 for_each_cbr_in_allocation_map(i, &cch->cbr_allocation_map, scr) { in gru_dump_context_data()
126 struct gru_context_configuration_handle *cch, *ubufcch; in gru_dump_context() local
133 cch = get_cch(grubase, ctxnum); in gru_dump_context()
135 cch_locked = trylock_cch_handle(cch); in gru_dump_context()
143 if (gru_user_copy_handle(&ubuf, cch)) { in gru_dump_context()
145 unlock_cch_handle(cch); in gru_dump_context()
158 if (cch->state != CCHSTATE_INACTIVE) { in gru_dump_context()
159 cbrcnt = hweight64(cch->cbr_allocation_map) * in gru_dump_context()
161 dsrcnt = data_opt ? hweight32(cch->dsr_allocation_map) * in gru_dump_context()
[all …]
Dgruhandles.h515 int cch_allocate(struct gru_context_configuration_handle *cch);
516 int cch_start(struct gru_context_configuration_handle *cch);
517 int cch_interrupt(struct gru_context_configuration_handle *cch);
518 int cch_deallocate(struct gru_context_configuration_handle *cch);
519 int cch_interrupt_sync(struct gru_context_configuration_handle *cch);
Dgrutables.h582 static inline int trylock_cch_handle(struct gru_context_configuration_handle *cch) in trylock_cch_handle() argument
584 return __trylock_handle(cch); in trylock_cch_handle()
587 static inline void lock_cch_handle(struct gru_context_configuration_handle *cch) in lock_cch_handle() argument
589 __lock_handle(cch); in lock_cch_handle()
593 *cch) in unlock_cch_handle()
595 __unlock_handle(cch); in unlock_cch_handle()