Lines Matching full:j

388 	int j;  in panfrost_job_enable_interrupts()  local
391 for (j = 0; j < NUM_JOB_SLOTS; j++) { in panfrost_job_enable_interrupts()
392 irq_mask |= MK_JS_MASK(j); in panfrost_job_enable_interrupts()
472 unsigned int i, j; in panfrost_job_handle_irq() local
478 for (j = 0; j < NUM_JOB_SLOTS; j++) { in panfrost_job_handle_irq()
479 if (status & MK_JS_MASK(j)) in panfrost_job_handle_irq()
480 js_state_mask |= MK_JS_MASK(j); in panfrost_job_handle_irq()
482 if (status & JOB_INT_MASK_DONE(j)) { in panfrost_job_handle_irq()
483 if (done[j][0]) in panfrost_job_handle_irq()
484 done[j][1] = panfrost_dequeue_job(pfdev, j); in panfrost_job_handle_irq()
486 done[j][0] = panfrost_dequeue_job(pfdev, j); in panfrost_job_handle_irq()
489 if (status & JOB_INT_MASK_ERR(j)) { in panfrost_job_handle_irq()
494 job_write(pfdev, JS_COMMAND_NEXT(j), JS_COMMAND_NOP); in panfrost_job_handle_irq()
495 failed[j] = panfrost_dequeue_job(pfdev, j); in panfrost_job_handle_irq()
519 for (j = 0; j < NUM_JOB_SLOTS; j++) { in panfrost_job_handle_irq()
520 if (!(js_events & MK_JS_MASK(j))) in panfrost_job_handle_irq()
523 if (failed[j]) { in panfrost_job_handle_irq()
524 panfrost_job_handle_err(pfdev, failed[j], j); in panfrost_job_handle_irq()
525 } else if (pfdev->jobs[j][0] && !(js_state & MK_JS_MASK(j))) { in panfrost_job_handle_irq()
530 * are inactive, but one job remains in pfdev->jobs[j], in panfrost_job_handle_irq()
535 if (WARN_ON(!done[j][0])) in panfrost_job_handle_irq()
536 done[j][0] = panfrost_dequeue_job(pfdev, j); in panfrost_job_handle_irq()
538 done[j][1] = panfrost_dequeue_job(pfdev, j); in panfrost_job_handle_irq()
541 for (i = 0; i < ARRAY_SIZE(done[0]) && done[j][i]; i++) in panfrost_job_handle_irq()
542 panfrost_job_handle_done(pfdev, done[j][i]); in panfrost_job_handle_irq()
548 for (j = 0; j < NUM_JOB_SLOTS; j++) { in panfrost_job_handle_irq()
549 if (!(js_events & MK_JS_MASK(j))) in panfrost_job_handle_irq()
552 if (!failed[j] || !pfdev->jobs[j][0]) in panfrost_job_handle_irq()
555 if (pfdev->jobs[j][0]->jc == 0) { in panfrost_job_handle_irq()
557 struct panfrost_job *canceled = panfrost_dequeue_job(pfdev, j); in panfrost_job_handle_irq()
563 job_write(pfdev, JS_COMMAND_NEXT(j), JS_COMMAND_START); in panfrost_job_handle_irq()
608 unsigned int i, j; in panfrost_reset() local
666 for (j = 0; j < ARRAY_SIZE(pfdev->jobs[0]) && pfdev->jobs[i][j]; j++) { in panfrost_reset()
780 int ret, j; in panfrost_job_init() local
814 for (j = 0; j < NUM_JOB_SLOTS; j++) { in panfrost_job_init()
815 js->queue[j].fence_context = dma_fence_context_alloc(1); in panfrost_job_init()
817 ret = drm_sched_init(&js->queue[j].sched, in panfrost_job_init()
834 for (j--; j >= 0; j--) in panfrost_job_init()
835 drm_sched_fini(&js->queue[j].sched); in panfrost_job_init()
844 int j; in panfrost_job_fini() local
848 for (j = 0; j < NUM_JOB_SLOTS; j++) { in panfrost_job_fini()
849 drm_sched_fini(&js->queue[j].sched); in panfrost_job_fini()
886 int j; in panfrost_job_close() local
888 for (j = ARRAY_SIZE(pfdev->jobs[0]) - 1; j >= 0; j--) { in panfrost_job_close()
889 struct panfrost_job *job = pfdev->jobs[i][j]; in panfrost_job_close()
895 if (j == 1) { in panfrost_job_close()