Lines Matching refs:query_item
16 struct drm_i915_query_item *query_item) in copy_query_item() argument
18 if (query_item->length == 0) in copy_query_item()
21 if (query_item->length < total_length) in copy_query_item()
24 if (copy_from_user(query_hdr, u64_to_user_ptr(query_item->data_ptr), in copy_query_item()
32 struct drm_i915_query_item *query_item) in query_topology_info() argument
39 if (query_item->flags != 0) in query_topology_info()
54 query_item); in query_topology_info()
71 if (copy_to_user(u64_to_user_ptr(query_item->data_ptr), in query_topology_info()
75 if (copy_to_user(u64_to_user_ptr(query_item->data_ptr + sizeof(topo)), in query_topology_info()
79 if (copy_to_user(u64_to_user_ptr(query_item->data_ptr + in query_topology_info()
84 if (copy_to_user(u64_to_user_ptr(query_item->data_ptr + in query_topology_info()
95 struct drm_i915_query_item *query_item) in query_engine_info() argument
98 u64_to_user_ptr(query_item->data_ptr); in query_engine_info()
106 if (query_item->flags) in query_engine_info()
114 ret = copy_query_item(&query, sizeof(query), len, query_item); in query_engine_info()
192 struct drm_i915_query_item *query_item, in query_perf_config_data() argument
196 u64_to_user_ptr(query_item->data_ptr); in query_perf_config_data()
198 u64_to_user_ptr(query_item->data_ptr + in query_perf_config_data()
215 if (query_item->length == 0) in query_perf_config_data()
218 if (query_item->length < total_size) { in query_perf_config_data()
220 query_item->length, total_size); in query_perf_config_data()
338 struct drm_i915_query_item *query_item) in query_perf_config_list() argument
341 u64_to_user_ptr(query_item->data_ptr); in query_perf_config_list()
351 if (query_item->length == 0) in query_perf_config_list()
386 if (query_item->length < sizeof_perf_config_list(n_configs)) { in query_perf_config_list()
388 query_item->length, in query_perf_config_list()
410 struct drm_i915_query_item *query_item) in query_perf_config() argument
412 switch (query_item->flags) { in query_perf_config()
414 return query_perf_config_list(i915, query_item); in query_perf_config()
416 return query_perf_config_data(i915, query_item, true); in query_perf_config()
418 return query_perf_config_data(i915, query_item, false); in query_perf_config()
425 struct drm_i915_query_item *query_item) in query_memregion_info() argument
428 u64_to_user_ptr(query_item->data_ptr); in query_memregion_info()
437 if (query_item->flags != 0) in query_memregion_info()
448 ret = copy_query_item(&query, sizeof(query), total_length, query_item); in query_memregion_info()
483 struct drm_i915_query_item *query_item) = {