Lines Matching refs:reloc
206 struct drm_qxl_reloc reloc; in qxl_process_single_command() local
209 if (copy_from_user(&reloc, u + i, sizeof(reloc))) { in qxl_process_single_command()
216 if (reloc.reloc_type != QXL_RELOC_TYPE_BO && reloc.reloc_type != QXL_RELOC_TYPE_SURF) { in qxl_process_single_command()
217 DRM_DEBUG("unknown reloc type %d\n", reloc.reloc_type); in qxl_process_single_command()
222 reloc_info[i].type = reloc.reloc_type; in qxl_process_single_command()
224 if (reloc.dst_handle) { in qxl_process_single_command()
225 ret = qxlhw_handle_to_bo(file_priv, reloc.dst_handle, release, in qxl_process_single_command()
229 reloc_info[i].dst_offset = reloc.dst_offset; in qxl_process_single_command()
232 reloc_info[i].dst_offset = reloc.dst_offset + release->release_offset; in qxl_process_single_command()
237 if (reloc.reloc_type == QXL_RELOC_TYPE_BO || reloc.src_handle) { in qxl_process_single_command()
238 ret = qxlhw_handle_to_bo(file_priv, reloc.src_handle, release, in qxl_process_single_command()
242 reloc_info[i].src_offset = reloc.src_offset; in qxl_process_single_command()