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
427 if (copy_to_user(query_ptr, gt_list, size)) { in query_gt_list()
441 void __user *query_ptr = u64_to_user_ptr(query->data); in query_hwconfig() local
457 if (copy_to_user(query_ptr, hwconfig, size)) { in query_hwconfig()
507 void __user *query_ptr = u64_to_user_ptr(query->data); in query_gt_topology() local
526 err = copy_mask(&query_ptr, &topo, gt->fuse_topo.g_dss_mask, in query_gt_topology()
532 err = copy_mask(&query_ptr, &topo, gt->fuse_topo.c_dss_mask, in query_gt_topology()
544 err = copy_mask(&query_ptr, &topo, gt->fuse_topo.l3_bank_mask, in query_gt_topology()
553 err = copy_mask(&query_ptr, &topo, in query_gt_topology()
566 struct drm_xe_query_uc_fw_version __user *query_ptr = u64_to_user_ptr(query->data); in query_uc_fw_version() local
578 if (copy_from_user(&resp, query_ptr, size)) in query_uc_fw_version()
630 if (copy_to_user(query_ptr, &resp, size)) in query_uc_fw_version()
656 void __user *query_ptr = u64_to_user_ptr(query->data); in query_oa_units() local
708 ret = copy_to_user(query_ptr, qoa, size); in query_oa_units()
716 struct drm_xe_query_pxp_status __user *query_ptr = u64_to_user_ptr(query->data); in query_pxp_status() local
735 if (copy_to_user(query_ptr, &resp, size)) in query_pxp_status()
744 void __user *query_ptr = u64_to_user_ptr(query->data); in query_eu_stall() local
776 ret = copy_to_user(query_ptr, info, size); in query_eu_stall()