Lines Matching refs:gen
137 struct gru_control_block_status *gen = (void *)cb; in gru_get_cb_exception_detail_str() local
140 if (ret > 0 && gen->istatus == CBS_EXCEPTION) { in gru_get_cb_exception_detail_str()
145 gen, excdet.opc, excdet.exopc, excdet.ecause, in gru_get_cb_exception_detail_str()
153 static int gru_wait_idle_or_exception(struct gru_control_block_status *gen) in gru_wait_idle_or_exception() argument
155 while (gen->istatus >= CBS_ACTIVE) { in gru_wait_idle_or_exception()
159 return gen->istatus; in gru_wait_idle_or_exception()
164 struct gru_control_block_status *gen = (void *)cb; in gru_retry_exception() local
171 if (gru_wait_idle_or_exception(gen) == CBS_IDLE) in gru_retry_exception()
179 gen->icmd = 1; in gru_retry_exception()
180 gru_flush_cache(gen); in gru_retry_exception()
187 struct gru_control_block_status *gen = (void *)cb; in gru_check_status_proc() local
190 ret = gen->istatus; in gru_check_status_proc()
199 struct gru_control_block_status *gen = (void *)cb; in gru_wait_proc() local
202 ret = gru_wait_idle_or_exception(gen); in gru_wait_proc()