Lines Matching defs:args

654 	struct qaic_create_bo *args = data;
663 if (args->pad)
666 size = PAGE_ALIGN(args->size);
698 bo->size = args->size;
700 ret = drm_gem_handle_create(file_priv, obj, &args->handle);
704 bo->handle = args->handle;
724 struct qaic_mmap_bo *args = data;
745 obj = drm_gem_object_lookup(file_priv, args->handle);
753 args->offset = drm_vma_node_offset_addr(&obj->vma_node);
924 struct qaic_attach_slice *args = data;
935 if (args->hdr.count == 0)
938 arg_size = args->hdr.count * sizeof(*slice_ent);
939 if (arg_size / args->hdr.count != sizeof(*slice_ent))
942 if (args->hdr.size == 0)
945 if (!(args->hdr.dir == DMA_TO_DEVICE || args->hdr.dir == DMA_FROM_DEVICE))
948 if (args->data == 0)
965 if (args->hdr.dbc_id >= qdev->num_dbc) {
970 user_data = u64_to_user_ptr(args->data);
984 ret = qaic_validate_req(qdev, slice_ent, args->hdr.count, args->hdr.size);
988 obj = drm_gem_object_lookup(file_priv, args->hdr.handle);
1001 dbc = &qdev->dbc[args->hdr.dbc_id];
1008 ret = qaic_prepare_bo(qdev, bo, &args->hdr);
1012 ret = qaic_attach_slicing_bo(qdev, bo, &args->hdr, slice_ent);
1016 if (args->hdr.dir == DMA_TO_DEVICE)
1017 dma_sync_sgtable_for_cpu(&qdev->pdev->dev, bo->sgt, args->hdr.dir);
1294 struct qaic_execute *args = data;
1314 n = (unsigned long)size * args->hdr.count;
1315 if (args->hdr.count == 0 || n / args->hdr.count != size)
1318 user_data = u64_to_user_ptr(args->data);
1320 exec = kcalloc(args->hdr.count, size, GFP_KERNEL);
1343 if (args->hdr.dbc_id >= qdev->num_dbc) {
1348 dbc = &qdev->dbc[args->hdr.dbc_id];
1367 ret = send_bo_list_to_device(qdev, file_priv, exec, args->hdr.count, is_partial, dbc,
1376 update_profiling_data(file_priv, exec, args->hdr.count, is_partial, received_ts,
1650 struct qaic_wait *args = data;
1661 if (args->pad != 0)
1678 if (args->dbc_id >= qdev->num_dbc) {
1683 dbc = &qdev->dbc[args->dbc_id];
1691 obj = drm_gem_object_lookup(file_priv, args->handle);
1698 timeout = args->timeout ? args->timeout : wait_exec_default_timeout_ms;
1725 struct qaic_perf_stats *args = data;
1747 if (args->hdr.dbc_id >= qdev->num_dbc) {
1752 ent = kcalloc(args->hdr.count, sizeof(*ent), GFP_KERNEL);
1758 ret = copy_from_user(ent, u64_to_user_ptr(args->data), args->hdr.count * sizeof(*ent));
1764 for (i = 0; i < args->hdr.count; i++) {
1788 if (copy_to_user(u64_to_user_ptr(args->data), ent, args->hdr.count * sizeof(*ent)))