Lines Matching refs:g
203 struct host1x_job_gather *g = &job->gathers[i]; in pin_job() local
207 g->bo = host1x_bo_get(g->bo); in pin_job()
208 if (!g->bo) in pin_job()
211 phys_addr = host1x_bo_pin(g->bo, &sgt); in pin_job()
216 job->unpins[job->num_unpins].bo = g->bo; in pin_job()
383 static int validate(struct host1x_firewall *fw, struct host1x_job_gather *g) in validate() argument
386 (g->offset / sizeof(u32)); in validate()
392 fw->words = g->words; in validate()
393 fw->cmdbuf = g->bo; in validate()
466 struct host1x_job_gather *g = &job->gathers[i]; in copy_gathers() local
467 size += g->words * sizeof(u32); in copy_gathers()
481 struct host1x_job_gather *g = &job->gathers[i]; in copy_gathers() local
485 gather = host1x_bo_mmap(g->bo); in copy_gathers()
486 memcpy(job->gather_copy_mapped + offset, gather + g->offset, in copy_gathers()
487 g->words * sizeof(u32)); in copy_gathers()
488 host1x_bo_munmap(g->bo, gather); in copy_gathers()
491 g->base = job->gather_copy; in copy_gathers()
492 g->offset = offset; in copy_gathers()
495 if (validate(&fw, g)) in copy_gathers()
498 offset += g->words * sizeof(u32); in copy_gathers()
533 struct host1x_job_gather *g = &job->gathers[i]; in host1x_job_pin() local
536 if (g->handled) in host1x_job_pin()
539 g->base = job->gather_addr_phys[i]; in host1x_job_pin()
542 if (job->gathers[j].bo == g->bo) in host1x_job_pin()
545 err = do_relocs(job, g->bo); in host1x_job_pin()
549 err = do_waitchks(job, host, g->bo); in host1x_job_pin()