Lines Matching refs:g

146 	struct host1x_job_gather *g;  in pin_job()  local
223 g = &job->cmds[i].gather; in pin_job()
225 g->bo = host1x_bo_get(g->bo); in pin_job()
226 if (!g->bo) { in pin_job()
231 map = host1x_bo_pin(host->dev, g->bo, DMA_TO_DEVICE, NULL); in pin_job()
273 host1x_bo_put(g->bo); in pin_job()
279 static int do_relocs(struct host1x_job *job, struct host1x_job_gather *g) in do_relocs() argument
282 struct host1x_bo *cmdbuf = g->bo; in do_relocs()
299 g->offset / sizeof(u32); in do_relocs()
456 static int validate(struct host1x_firewall *fw, struct host1x_job_gather *g) in validate() argument
459 (g->offset / sizeof(u32)); in validate()
463 fw->words = g->words; in validate()
464 fw->cmdbuf = g->bo; in validate()
539 struct host1x_job_gather *g; in copy_gathers() local
544 g = &job->cmds[i].gather; in copy_gathers()
546 size += g->words * sizeof(u32); in copy_gathers()
567 struct host1x_job_gather *g; in copy_gathers() local
572 g = &job->cmds[i].gather; in copy_gathers()
575 gather = host1x_bo_mmap(g->bo); in copy_gathers()
576 memcpy(job->gather_copy_mapped + offset, gather + g->offset, in copy_gathers()
577 g->words * sizeof(u32)); in copy_gathers()
578 host1x_bo_munmap(g->bo, gather); in copy_gathers()
581 g->base = job->gather_copy; in copy_gathers()
582 g->offset = offset; in copy_gathers()
585 if (validate(&fw, g)) in copy_gathers()
588 offset += g->words * sizeof(u32); in copy_gathers()
617 struct host1x_job_gather *g; in host1x_job_pin() local
621 g = &job->cmds[i].gather; in host1x_job_pin()
624 if (g->handled) in host1x_job_pin()
629 g->base = job->gather_addr_phys[i]; in host1x_job_pin()
633 job->cmds[j].gather.bo == g->bo) { in host1x_job_pin()
635 job->cmds[j].gather.base = g->base; in host1x_job_pin()
639 err = do_relocs(job, g); in host1x_job_pin()