Lines Matching refs:query_ptr
113 struct drm_xe_query_engine_cycles __user *query_ptr; in query_engine_cycles() local
129 query_ptr = u64_to_user_ptr(query->data); in query_engine_cycles()
130 if (copy_from_user(&resp, query_ptr, size)) in query_engine_cycles()
170 if (put_user(resp.cpu_timestamp, &query_ptr->cpu_timestamp) || in query_engine_cycles()
171 put_user(resp.cpu_delta, &query_ptr->cpu_delta) || in query_engine_cycles()
172 put_user(resp.engine_cycles, &query_ptr->engine_cycles) || in query_engine_cycles()
173 put_user(resp.width, &query_ptr->width)) in query_engine_cycles()
183 struct drm_xe_query_engines __user *query_ptr = in query_engines() local
219 if (copy_to_user(query_ptr, engines, size)) { in query_engines()
245 struct drm_xe_query_mem_regions __user *query_ptr = in query_mem_regions() local
302 if (!copy_to_user(query_ptr, mem_regions, size)) in query_mem_regions()
316 struct drm_xe_query_config __user *query_ptr = in query_config() local
343 if (copy_to_user(query_ptr, config, size)) { in query_config()
357 struct drm_xe_query_gt_list __user *query_ptr = in query_gt_list() local
413 if (copy_to_user(query_ptr, gt_list, size)) { in query_gt_list()
427 void __user *query_ptr = u64_to_user_ptr(query->data); in query_hwconfig() local
443 if (copy_to_user(query_ptr, hwconfig, size)) { in query_hwconfig()
493 void __user *query_ptr = u64_to_user_ptr(query->data); in query_gt_topology() local
512 err = copy_mask(&query_ptr, &topo, gt->fuse_topo.g_dss_mask, in query_gt_topology()
518 err = copy_mask(&query_ptr, &topo, gt->fuse_topo.c_dss_mask, in query_gt_topology()
530 err = copy_mask(&query_ptr, &topo, gt->fuse_topo.l3_bank_mask, in query_gt_topology()
539 err = copy_mask(&query_ptr, &topo, in query_gt_topology()
552 struct drm_xe_query_uc_fw_version __user *query_ptr = u64_to_user_ptr(query->data); in query_uc_fw_version() local
564 if (copy_from_user(&resp, query_ptr, size)) in query_uc_fw_version()
616 if (copy_to_user(query_ptr, &resp, size)) in query_uc_fw_version()
642 void __user *query_ptr = u64_to_user_ptr(query->data); in query_oa_units() local
692 ret = copy_to_user(query_ptr, qoa, size); in query_oa_units()