Lines Matching full:query

341  * @args: [IN] Device query arguments containing a pointer to a userspace
344 * If the query object pointer is NULL, the size field is updated with the
345 * expected size of the query object.
381 * @args: [IN] Device query arguments containing a pointer to a userspace
384 * If the query object pointer is NULL, the size field is updated with the
385 * expected size of the query object.
431 * @args: [IN] Device query arguments containing a pointer to a userspace
434 * If the query object pointer is NULL, the size field is updated with the
435 * expected size of the query object.
436 * If the userspace pointer in the query object is NULL, or the count is
440 * The size field in the query object will be updated to the size copied.
468 struct drm_pvr_dev_query_quirks query; in pvr_dev_query_quirks_get() local
479 err = PVR_UOBJ_GET(query, args->size, args->pointer); in pvr_dev_query_quirks_get()
483 if (query._padding_c) in pvr_dev_query_quirks_get()
498 if (!query.quirks) in pvr_dev_query_quirks_get()
500 if (query.count < out_count) in pvr_dev_query_quirks_get()
503 if (copy_to_user(u64_to_user_ptr(query.quirks), out, in pvr_dev_query_quirks_get()
508 query.musthave_count = out_musthave_count; in pvr_dev_query_quirks_get()
511 query.count = out_count; in pvr_dev_query_quirks_get()
512 err = PVR_UOBJ_SET(args->pointer, args->size, query); in pvr_dev_query_quirks_get()
516 args->size = sizeof(query); in pvr_dev_query_quirks_get()
525 * @args: [IN] Device query arguments containing a pointer to a userspace
528 * If the query object pointer is NULL, the size field is updated with the
529 * expected size of the query object.
530 * If the userspace pointer in the query object is NULL, or the count is
534 * The size field in the query object will be updated to the size copied.
557 struct drm_pvr_dev_query_enhancements query; in pvr_dev_query_enhancements_get() local
567 err = PVR_UOBJ_GET(query, args->size, args->pointer); in pvr_dev_query_enhancements_get()
571 if (query._padding_a) in pvr_dev_query_enhancements_get()
573 if (query._padding_c) in pvr_dev_query_enhancements_get()
581 if (!query.enhancements) in pvr_dev_query_enhancements_get()
583 if (query.count < out_idx) in pvr_dev_query_enhancements_get()
586 if (copy_to_user(u64_to_user_ptr(query.enhancements), out, in pvr_dev_query_enhancements_get()
592 query.count = out_idx; in pvr_dev_query_enhancements_get()
593 err = PVR_UOBJ_SET(args->pointer, args->size, query); in pvr_dev_query_enhancements_get()
597 args->size = sizeof(query); in pvr_dev_query_enhancements_get()