Lines Matching refs:reloc
208 struct drm_qxl_reloc reloc; in qxl_process_single_command() local
211 if (copy_from_user(&reloc, u + i, sizeof(reloc))) { in qxl_process_single_command()
218 if (reloc.reloc_type != QXL_RELOC_TYPE_BO && reloc.reloc_type != QXL_RELOC_TYPE_SURF) { in qxl_process_single_command()
219 DRM_DEBUG("unknown reloc type %d\n", reloc.reloc_type); in qxl_process_single_command()
224 reloc_info[i].type = reloc.reloc_type; in qxl_process_single_command()
226 if (reloc.dst_handle) { in qxl_process_single_command()
227 ret = qxlhw_handle_to_bo(file_priv, reloc.dst_handle, release, in qxl_process_single_command()
231 reloc_info[i].dst_offset = reloc.dst_offset; in qxl_process_single_command()
234 reloc_info[i].dst_offset = reloc.dst_offset + release->release_offset; in qxl_process_single_command()
239 if (reloc.reloc_type == QXL_RELOC_TYPE_BO || reloc.src_handle) { in qxl_process_single_command()
240 ret = qxlhw_handle_to_bo(file_priv, reloc.src_handle, release, in qxl_process_single_command()
244 reloc_info[i].src_offset = reloc.src_offset; in qxl_process_single_command()