Lines Matching refs:mem
41 void *mem; in host1x_job_alloc() local
54 mem = job = kzalloc(total, GFP_KERNEL); in host1x_job_alloc()
62 mem += sizeof(struct host1x_job); in host1x_job_alloc()
63 job->relocarray = num_relocs ? mem : NULL; in host1x_job_alloc()
64 mem += num_relocs * sizeof(struct host1x_reloc); in host1x_job_alloc()
65 job->unpins = num_unpins ? mem : NULL; in host1x_job_alloc()
66 mem += num_unpins * sizeof(struct host1x_job_unpin_data); in host1x_job_alloc()
67 job->waitchk = num_waitchks ? mem : NULL; in host1x_job_alloc()
68 mem += num_waitchks * sizeof(struct host1x_waitchk); in host1x_job_alloc()
69 job->gathers = num_cmdbufs ? mem : NULL; in host1x_job_alloc()
70 mem += num_cmdbufs * sizeof(struct host1x_job_gather); in host1x_job_alloc()
71 job->addr_phys = num_unpins ? mem : NULL; in host1x_job_alloc()