Lines Matching defs:args
118 static int ivpu_get_capabilities(struct ivpu_device *vdev, struct drm_ivpu_param *args)
120 switch (args->index) {
122 args->value = 0;
125 args->value = 1;
139 struct drm_ivpu_param *args = data;
146 switch (args->param) {
148 args->value = pdev->device;
151 args->value = pdev->revision;
154 args->value = vdev->platform;
157 args->value = ivpu_hw_ratio_to_freq(vdev, vdev->hw->pll.max_ratio);
160 args->value = ivpu_get_context_count(vdev);
163 args->value = vdev->hw->ranges.user.start;
166 args->value = file_priv->ctx.id;
169 if (args->index < VPU_FW_API_VER_NUM) {
173 args->value = fw_hdr->api_version[args->index];
179 ret = ivpu_jsm_get_heartbeat(vdev, args->index, &args->value);
182 args->value = (u64)atomic64_inc_return(&vdev->unique_id_counter);
185 args->value = vdev->hw->tile_fuse;
188 args->value = vdev->hw->sku;
191 ret = ivpu_get_capabilities(vdev, args);
204 struct drm_ivpu_param *args = data;
207 switch (args->param) {