Lines Matching refs:g

139 	struct host1x_job_gather *g;  in pin_job()  local
238 g = &job->cmds[i].gather; in pin_job()
240 g->bo = host1x_bo_get(g->bo); in pin_job()
241 if (!g->bo) { in pin_job()
256 sgt = host1x_bo_pin(host->dev, g->bo, phys); in pin_job()
299 job->unpins[job->num_unpins].bo = g->bo; in pin_job()
307 host1x_bo_put(g->bo); in pin_job()
313 static int do_relocs(struct host1x_job *job, struct host1x_job_gather *g) in do_relocs() argument
316 struct host1x_bo *cmdbuf = g->bo; in do_relocs()
333 g->offset / sizeof(u32); in do_relocs()
490 static int validate(struct host1x_firewall *fw, struct host1x_job_gather *g) in validate() argument
493 (g->offset / sizeof(u32)); in validate()
497 fw->words = g->words; in validate()
498 fw->cmdbuf = g->bo; in validate()
573 struct host1x_job_gather *g; in copy_gathers() local
578 g = &job->cmds[i].gather; in copy_gathers()
580 size += g->words * sizeof(u32); in copy_gathers()
601 struct host1x_job_gather *g; in copy_gathers() local
606 g = &job->cmds[i].gather; in copy_gathers()
609 gather = host1x_bo_mmap(g->bo); in copy_gathers()
610 memcpy(job->gather_copy_mapped + offset, gather + g->offset, in copy_gathers()
611 g->words * sizeof(u32)); in copy_gathers()
612 host1x_bo_munmap(g->bo, gather); in copy_gathers()
615 g->base = job->gather_copy; in copy_gathers()
616 g->offset = offset; in copy_gathers()
619 if (validate(&fw, g)) in copy_gathers()
622 offset += g->words * sizeof(u32); in copy_gathers()
651 struct host1x_job_gather *g; in host1x_job_pin() local
655 g = &job->cmds[i].gather; in host1x_job_pin()
658 if (g->handled) in host1x_job_pin()
663 g->base = job->gather_addr_phys[i]; in host1x_job_pin()
667 job->cmds[j].gather.bo == g->bo) { in host1x_job_pin()
669 job->cmds[j].gather.base = g->base; in host1x_job_pin()
673 err = do_relocs(job, g); in host1x_job_pin()