Lines Matching refs:query
134 struct drm_i915_query_engine_info query; in query_engine_info() local
148 ret = copy_query_item(&query, sizeof(query), len, query_item); in query_engine_info()
152 if (query.num_engines || query.rsvd[0] || query.rsvd[1] || in query_engine_info()
153 query.rsvd[2]) in query_engine_info()
168 query.num_engines++; in query_engine_info()
172 if (copy_to_user(query_ptr, &query, sizeof(query))) in query_engine_info()
466 struct drm_i915_query_memory_regions query; in query_memregion_info() local
474 total_length = sizeof(query); in query_memregion_info()
482 ret = copy_query_item(&query, sizeof(query), total_length, query_item); in query_memregion_info()
486 if (query.num_regions) in query_memregion_info()
489 for (i = 0; i < ARRAY_SIZE(query.rsvd); i++) { in query_memregion_info()
490 if (query.rsvd[i]) in query_memregion_info()
520 query.num_regions++; in query_memregion_info()
524 if (__copy_to_user(query_ptr, &query, sizeof(query))) in query_memregion_info()