Lines Matching refs:job_data
259 struct tegra_drm_submit_data *job_data) in submit_process_bufs() argument
307 job_data->used_mappings = mappings; in submit_process_bufs()
308 job_data->num_used_mappings = i; in submit_process_bufs()
319 job_data->used_mappings = NULL; in submit_process_bufs()
353 struct tegra_drm_submit_data *job_data, in submit_job_add_gather() argument
380 cmd->words, job_data, class)) { in submit_job_add_gather()
394 struct drm_tegra_channel_submit *args, struct tegra_drm_submit_data *job_data, in submit_create_job() argument
438 &gather_offset, job_data, &class); in submit_create_job()
493 struct tegra_drm_submit_data *job_data = job->user_data; in release_job() local
499 for (i = 0; i < job_data->num_used_mappings; i++) in release_job()
500 tegra_drm_mapping_put(job_data->used_mappings[i].mapping); in release_job()
502 kfree(job_data->used_mappings); in release_job()
503 kfree(job_data); in release_job()
514 struct tegra_drm_submit_data *job_data; in tegra_drm_ioctl_channel_submit() local
563 job_data = kzalloc(sizeof(*job_data), GFP_KERNEL); in tegra_drm_ioctl_channel_submit()
564 if (!job_data) { in tegra_drm_ioctl_channel_submit()
571 err = submit_process_bufs(context, bo, args, job_data); in tegra_drm_ioctl_channel_submit()
576 job = submit_create_job(context, bo, args, job_data, &fpriv->syncpoints); in tegra_drm_ioctl_channel_submit()
628 job->user_data = job_data; in tegra_drm_ioctl_channel_submit()
636 job_data = NULL; in tegra_drm_ioctl_channel_submit()
668 if (job_data && job_data->used_mappings) { in tegra_drm_ioctl_channel_submit()
669 for (i = 0; i < job_data->num_used_mappings; i++) in tegra_drm_ioctl_channel_submit()
670 tegra_drm_mapping_put(job_data->used_mappings[i].mapping); in tegra_drm_ioctl_channel_submit()
672 kfree(job_data->used_mappings); in tegra_drm_ioctl_channel_submit()
675 kfree(job_data); in tegra_drm_ioctl_channel_submit()