Lines Matching refs:qddev
107 struct qaic_drm_device *qddev = to_qaic_drm_device(dev); in qaic_open() local
108 struct qaic_device *qdev = qddev->qdev; in qaic_open()
130 usr->qddev = qddev; in qaic_open()
135 ret = mutex_lock_interruptible(&qddev->users_mutex); in qaic_open()
139 list_add(&usr->node, &qddev->users); in qaic_open()
140 mutex_unlock(&qddev->users_mutex); in qaic_open()
160 struct qaic_drm_device *qddev; in qaic_postclose() local
166 qddev = usr->qddev; in qaic_postclose()
168 if (qddev) { in qaic_postclose()
169 qdev = qddev->qdev; in qaic_postclose()
179 mutex_lock(&qddev->users_mutex); in qaic_postclose()
182 mutex_unlock(&qddev->users_mutex); in qaic_postclose()
223 struct qaic_drm_device *qddev = qdev->qddev; in qaic_create_drm_device() local
224 struct drm_device *drm = to_drm(qddev); in qaic_create_drm_device()
231 qddev->partition_id = partition_id; in qaic_create_drm_device()
239 qaic_debugfs_init(qddev); in qaic_create_drm_device()
246 struct qaic_drm_device *qddev = qdev->qddev; in qaic_destroy_drm_device() local
247 struct drm_device *drm = to_drm(qddev); in qaic_destroy_drm_device()
251 qddev->partition_id = 0; in qaic_destroy_drm_device()
266 mutex_lock(&qddev->users_mutex); in qaic_destroy_drm_device()
267 while (!list_empty(&qddev->users)) { in qaic_destroy_drm_device()
268 usr = list_first_entry(&qddev->users, struct qaic_user, node); in qaic_destroy_drm_device()
271 usr->qddev = NULL; in qaic_destroy_drm_device()
272 mutex_unlock(&qddev->users_mutex); in qaic_destroy_drm_device()
275 mutex_lock(&qddev->users_mutex); in qaic_destroy_drm_device()
277 mutex_unlock(&qddev->users_mutex); in qaic_destroy_drm_device()
317 kobject_uevent(&(to_accel_kdev(qdev->qddev))->kobj, KOBJ_ONLINE); in qaic_mhi_probe()
335 kobject_uevent(&(to_accel_kdev(qdev->qddev))->kobj, KOBJ_OFFLINE); in qaic_notify_reset()
358 struct qaic_drm_device *qddev; in create_qdev() local
375 qddev = devm_drm_dev_alloc(&pdev->dev, &qaic_accel_driver, struct qaic_drm_device, drm); in create_qdev()
376 if (IS_ERR(qddev)) in create_qdev()
379 drm = to_drm(qddev); in create_qdev()
382 ret = drmm_mutex_init(drm, &qddev->users_mutex); in create_qdev()
406 qdev->qddev = qddev; in create_qdev()
408 qddev->qdev = qdev; in create_qdev()
412 INIT_LIST_HEAD(&qddev->users); in create_qdev()