Searched refs:cch (Results 1 – 5 of 5) sorted by relevance
79 int cch_allocate(struct gru_context_configuration_handle *cch) in cch_allocate() argument83 cch->opc = CCHOP_ALLOCATE; in cch_allocate()84 start_instruction(cch); in cch_allocate()85 ret = wait_instruction_complete(cch, cchop_allocate); in cch_allocate()95 int cch_start(struct gru_context_configuration_handle *cch) in cch_start() argument97 cch->opc = CCHOP_START; in cch_start()98 start_instruction(cch); in cch_start()99 return wait_instruction_complete(cch, cchop_start); in cch_start()102 int cch_interrupt(struct gru_context_configuration_handle *cch) in cch_interrupt() argument104 cch->opc = CCHOP_INTERRUPT; in cch_interrupt()[all …]
36 struct gru_context_configuration_handle *cch, in gru_dump_context_data() argument48 for_each_cbr_in_allocation_map(i, &cch->cbr_allocation_map, scr) { in gru_dump_context_data()113 struct gru_context_configuration_handle *cch, *ubufcch; in gru_dump_context() local120 cch = get_cch(grubase, ctxnum); in gru_dump_context()122 cch_locked = trylock_cch_handle(cch); in gru_dump_context()130 if (gru_user_copy_handle(&ubuf, cch)) { in gru_dump_context()132 unlock_cch_handle(cch); in gru_dump_context()145 if (cch->state != CCHSTATE_INACTIVE) { in gru_dump_context()146 cbrcnt = hweight64(cch->cbr_allocation_map) * in gru_dump_context()148 dsrcnt = data_opt ? hweight32(cch->dsr_allocation_map) * in gru_dump_context()[all …]
502 int cch_allocate(struct gru_context_configuration_handle *cch);503 int cch_start(struct gru_context_configuration_handle *cch);504 int cch_interrupt(struct gru_context_configuration_handle *cch);505 int cch_deallocate(struct gru_context_configuration_handle *cch);506 int cch_interrupt_sync(struct gru_context_configuration_handle *cch);
562 static inline int trylock_cch_handle(struct gru_context_configuration_handle *cch) in trylock_cch_handle() argument564 return __trylock_handle(cch); in trylock_cch_handle()567 static inline void lock_cch_handle(struct gru_context_configuration_handle *cch) in lock_cch_handle() argument569 __lock_handle(cch); in lock_cch_handle()573 *cch) in unlock_cch_handle()575 __unlock_handle(cch); in unlock_cch_handle()
742 E: cch.devel@gmail.com