Lines Matching refs:query_ptr
116 struct drm_xe_query_engine_cycles __user *query_ptr; in query_engine_cycles() local
135 query_ptr = u64_to_user_ptr(query->data); in query_engine_cycles()
136 if (copy_from_user(&resp, query_ptr, size)) in query_engine_cycles()
176 if (put_user(resp.cpu_timestamp, &query_ptr->cpu_timestamp) || in query_engine_cycles()
177 put_user(resp.cpu_delta, &query_ptr->cpu_delta) || in query_engine_cycles()
178 put_user(resp.engine_cycles, &query_ptr->engine_cycles) || in query_engine_cycles()
179 put_user(resp.width, &query_ptr->width)) in query_engine_cycles()
189 struct drm_xe_query_engines __user *query_ptr = in query_engines() local
225 if (copy_to_user(query_ptr, engines, size)) { in query_engines()
251 struct drm_xe_query_mem_regions __user *query_ptr = in query_mem_regions() local
308 if (!copy_to_user(query_ptr, mem_regions, size)) in query_mem_regions()
322 struct drm_xe_query_config __user *query_ptr = in query_config() local
354 if (copy_to_user(query_ptr, config, size)) { in query_config()
368 struct drm_xe_query_gt_list __user *query_ptr = in query_gt_list() local
424 if (copy_to_user(query_ptr, gt_list, size)) { in query_gt_list()
438 void __user *query_ptr = u64_to_user_ptr(query->data); in query_hwconfig() local
454 if (copy_to_user(query_ptr, hwconfig, size)) { in query_hwconfig()
504 void __user *query_ptr = u64_to_user_ptr(query->data); in query_gt_topology() local
523 err = copy_mask(&query_ptr, &topo, gt->fuse_topo.g_dss_mask, in query_gt_topology()
529 err = copy_mask(&query_ptr, &topo, gt->fuse_topo.c_dss_mask, in query_gt_topology()
541 err = copy_mask(&query_ptr, &topo, gt->fuse_topo.l3_bank_mask, in query_gt_topology()
550 err = copy_mask(&query_ptr, &topo, in query_gt_topology()
563 struct drm_xe_query_uc_fw_version __user *query_ptr = u64_to_user_ptr(query->data); in query_uc_fw_version() local
575 if (copy_from_user(&resp, query_ptr, size)) in query_uc_fw_version()
627 if (copy_to_user(query_ptr, &resp, size)) in query_uc_fw_version()
653 void __user *query_ptr = u64_to_user_ptr(query->data); in query_oa_units() local
705 ret = copy_to_user(query_ptr, qoa, size); in query_oa_units()
713 struct drm_xe_query_pxp_status __user *query_ptr = u64_to_user_ptr(query->data); in query_pxp_status() local
732 if (copy_to_user(query_ptr, &resp, size)) in query_pxp_status()
741 void __user *query_ptr = u64_to_user_ptr(query->data); in query_eu_stall() local
773 ret = copy_to_user(query_ptr, info, size); in query_eu_stall()