Lines Matching refs:reloc
180 struct cs_reloc_gem *reloc; in cs_gem_write_reloc() local
208 reloc = (struct cs_reloc_gem*)&csg->relocs[idx]; in cs_gem_write_reloc()
209 if (reloc->handle == bo->handle) { in cs_gem_write_reloc()
217 if (write_domain && (reloc->read_domain & write_domain)) { in cs_gem_write_reloc()
218 reloc->read_domain = 0; in cs_gem_write_reloc()
219 reloc->write_domain = write_domain; in cs_gem_write_reloc()
220 } else if (read_domain & reloc->write_domain) { in cs_gem_write_reloc()
221 reloc->read_domain = 0; in cs_gem_write_reloc()
223 if (write_domain != reloc->write_domain) in cs_gem_write_reloc()
225 if (read_domain != reloc->read_domain) in cs_gem_write_reloc()
229 reloc->read_domain |= read_domain; in cs_gem_write_reloc()
230 reloc->write_domain |= write_domain; in cs_gem_write_reloc()
232 reloc->flags |= (flags & reloc->flags); in cs_gem_write_reloc()
261 reloc = (struct cs_reloc_gem*)&csg->relocs[idx]; in cs_gem_write_reloc()
262 reloc->handle = bo->handle; in cs_gem_write_reloc()
263 reloc->read_domain = read_domain; in cs_gem_write_reloc()
264 reloc->write_domain = write_domain; in cs_gem_write_reloc()
265 reloc->flags = flags; in cs_gem_write_reloc()