Lines Matching refs:g

138 		struct host1x_job_gather *g = &job->gathers[i];  in pin_job()  local
147 g->bo = host1x_bo_get(g->bo); in pin_job()
148 if (!g->bo) { in pin_job()
153 phys_addr = host1x_bo_pin(g->bo, &sgt); in pin_job()
186 job->unpins[job->num_unpins].bo = g->bo; in pin_job()
198 static int do_relocs(struct host1x_job *job, struct host1x_job_gather *g) in do_relocs() argument
202 struct host1x_bo *cmdbuf = g->bo; in do_relocs()
219 g->offset / sizeof(u32); in do_relocs()
382 static int validate(struct host1x_firewall *fw, struct host1x_job_gather *g) in validate() argument
385 (g->offset / sizeof(u32)); in validate()
389 fw->words = g->words; in validate()
390 fw->cmdbuf = g->bo; in validate()
464 struct host1x_job_gather *g = &job->gathers[i]; in copy_gathers() local
466 size += g->words * sizeof(u32); in copy_gathers()
487 struct host1x_job_gather *g = &job->gathers[i]; in copy_gathers() local
491 gather = host1x_bo_mmap(g->bo); in copy_gathers()
492 memcpy(job->gather_copy_mapped + offset, gather + g->offset, in copy_gathers()
493 g->words * sizeof(u32)); in copy_gathers()
494 host1x_bo_munmap(g->bo, gather); in copy_gathers()
497 g->base = job->gather_copy; in copy_gathers()
498 g->offset = offset; in copy_gathers()
501 if (validate(&fw, g)) in copy_gathers()
504 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()
541 g->base = job->gather_addr_phys[i]; in host1x_job_pin()
544 if (job->gathers[j].bo == g->bo) { in host1x_job_pin()
546 job->gathers[j].base = g->base; in host1x_job_pin()
550 err = do_relocs(job, g); in host1x_job_pin()