Lines Matching refs:reloc_info
143 struct qxl_reloc_info *reloc_info; in qxl_process_single_command() local
169 reloc_info = kmalloc_array(cmd->relocs_num, in qxl_process_single_command()
171 if (!reloc_info) in qxl_process_single_command()
220 reloc_info[i].type = reloc.reloc_type; in qxl_process_single_command()
224 &reloc_info[i].dst_bo); in qxl_process_single_command()
227 reloc_info[i].dst_offset = reloc.dst_offset; in qxl_process_single_command()
229 reloc_info[i].dst_bo = cmd_bo; in qxl_process_single_command()
230 reloc_info[i].dst_offset = reloc.dst_offset + release->release_offset; in qxl_process_single_command()
236 &reloc_info[i].src_bo); in qxl_process_single_command()
239 reloc_info[i].src_offset = reloc.src_offset; in qxl_process_single_command()
241 reloc_info[i].src_bo = NULL; in qxl_process_single_command()
242 reloc_info[i].src_offset = 0; in qxl_process_single_command()
252 if (reloc_info[i].type == QXL_RELOC_TYPE_BO) in qxl_process_single_command()
253 apply_reloc(qdev, &reloc_info[i]); in qxl_process_single_command()
254 else if (reloc_info[i].type == QXL_RELOC_TYPE_SURF) in qxl_process_single_command()
255 apply_surf_reloc(qdev, &reloc_info[i]); in qxl_process_single_command()
266 kfree(reloc_info); in qxl_process_single_command()