drm_accel.c (0b30d57acafcaa5374756d314ee54f80d0bcc860) | drm_accel.c (8e455145d8f163aefa6b9cc29478e0a9f82276e6) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2 3/* 4 * Copyright 2022 HabanaLabs, Ltd. 5 * All Rights Reserved. 6 * 7 */ 8 --- 85 unchanged lines hidden (view full) --- 94 * @dev: Pointer to the device instance. 95 * 96 * Creates common files for accelerators. 97 */ 98void accel_debugfs_register(struct drm_device *dev) 99{ 100 struct drm_minor *minor = dev->accel; 101 | 1// SPDX-License-Identifier: GPL-2.0 2 3/* 4 * Copyright 2022 HabanaLabs, Ltd. 5 * All Rights Reserved. 6 * 7 */ 8 --- 85 unchanged lines hidden (view full) --- 94 * @dev: Pointer to the device instance. 95 * 96 * Creates common files for accelerators. 97 */ 98void accel_debugfs_register(struct drm_device *dev) 99{ 100 struct drm_minor *minor = dev->accel; 101 |
102 INIT_LIST_HEAD(&minor->debugfs_list); 103 mutex_init(&minor->debugfs_lock); | |
104 minor->debugfs_root = dev->debugfs_root; 105 106 drm_debugfs_create_files(accel_debugfs_list, ACCEL_DEBUGFS_ENTRIES, 107 dev->debugfs_root, minor); 108} 109 110/** 111 * accel_set_device_instance_params() - Set some device parameters for accel device --- 215 unchanged lines hidden --- | 102 minor->debugfs_root = dev->debugfs_root; 103 104 drm_debugfs_create_files(accel_debugfs_list, ACCEL_DEBUGFS_ENTRIES, 105 dev->debugfs_root, minor); 106} 107 108/** 109 * accel_set_device_instance_params() - Set some device parameters for accel device --- 215 unchanged lines hidden --- |