Lines Matching refs:jobs
103 * We need to wait until all G2D jobs are finished, otherwise we
110 static void wait_all_jobs(struct g2d_job* jobs, unsigned num_jobs)
115 while (jobs[i].busy)
121 static struct g2d_job* free_job(struct g2d_job* jobs, unsigned num_jobs)
126 if (jobs[i].busy == 0)
127 return &jobs[i];
136 struct g2d_job *jobs = calloc(num_jobs, sizeof(struct g2d_job));
142 jobs[i].id = i;
150 j = free_job(jobs, num_jobs);
189 wait_all_jobs(jobs, num_jobs);
190 free(jobs);
200 fprintf(stderr, "\t-j <number of G2D jobs> (default = 4)\n\n");