/third_party/ltp/testcases/kernel/device-drivers/dev_sim_framework/user_space/ |
D | user_tmod.c | 63 rc = mkdir(DEVICE_NAME, (S_IFDIR | S_IRWXU | in tmodopen() 74 rc = unlink(DEVICE_NAME); in tmodopen() 76 rc = mkdir(DEVICE_NAME, (S_IFDIR | S_IRWXU | in tmodopen() 87 rc = stat(DEVICE_NAME, &st); in tmodopen() 91 rc = mknod(DEVICE_NAME, in tmodopen() 108 rc = unlink(DEVICE_NAME); in tmodopen() 110 rc = mknod(DEVICE_NAME, in tmodopen() 117 tmod_fd = open(DEVICE_NAME, O_RDWR); in tmodopen() 121 DEVICE_NAME, tmod_fd, errno); in tmodopen()
|
/third_party/ltp/testcases/kernel/device-drivers/usb/user_usb/ |
D | user_tusb.c | 44 rc = mkdir(DEVICE_NAME, (S_IFDIR | S_IRWXU | in tusbopen() 55 rc = unlink(DEVICE_NAME); in tusbopen() 57 rc = mkdir(DEVICE_NAME, (S_IFDIR | S_IRWXU | in tusbopen() 68 rc = stat(DEVICE_NAME, &st); in tusbopen() 72 rc = mknod(DEVICE_NAME, in tusbopen() 89 rc = unlink(DEVICE_NAME); in tusbopen() 91 rc = mknod(DEVICE_NAME, in tusbopen() 98 tusb_fd = open(DEVICE_NAME, O_RDWR); in tusbopen() 102 DEVICE_NAME, tusb_fd, errno); in tusbopen()
|
/third_party/ltp/testcases/kernel/device-drivers/agp/user_space/ |
D | user_tagp.c | 59 rc = mkdir(DEVICE_NAME, (S_IFDIR | S_IRWXU | in tagpopen() 70 rc = unlink(DEVICE_NAME); in tagpopen() 72 rc = mkdir(DEVICE_NAME, (S_IFDIR | S_IRWXU | in tagpopen() 83 rc = stat(DEVICE_NAME, &st); in tagpopen() 87 rc = mknod(DEVICE_NAME, in tagpopen() 104 rc = unlink(DEVICE_NAME); in tagpopen() 106 rc = mknod(DEVICE_NAME, in tagpopen() 113 tagp_fd = open(DEVICE_NAME, O_RDWR); in tagpopen() 117 DEVICE_NAME, tagp_fd, errno); in tagpopen()
|
/third_party/ltp/testcases/kernel/device-drivers/include/ |
D | userBlockInclude.c | 49 block_dev_handle = open(DEVICE_NAME, O_RDWR); in main() 54 DEVICE_NAME, block_dev_handle, errno); in main() 116 rc = stat(DEVICE_NAME, &statbuf); in open_block_device() 120 rc = mknod(DEVICE_NAME, in open_block_device() 138 rc = unlink(DEVICE_NAME); in open_block_device() 140 rc = mknod(DEVICE_NAME, in open_block_device()
|
D | includeTest.c | 145 rc = register_blkdev(INCLUDEMAJOR, DEVICE_NAME); in test_init_module() 172 sprintf(gd_ptr->disk_name, DEVICE_NAME); in test_init_module() 199 rc = unregister_blkdev(INCLUDEMAJOR, DEVICE_NAME); in test_exit_module()
|
D | includeTest.h | 26 #define DEVICE_NAME "includeTest" macro
|
/third_party/ltp/testcases/kernel/device-drivers/nls/ |
D | userBlockNLS.c | 49 block_dev_handle = open(DEVICE_NAME, O_RDWR); in main() 54 DEVICE_NAME, block_dev_handle, errno); in main() 116 rc = stat(DEVICE_NAME, &statbuf); in open_block_device() 120 rc = mknod(DEVICE_NAME, in open_block_device() 138 rc = unlink(DEVICE_NAME); in open_block_device() 140 rc = mknod(DEVICE_NAME, in open_block_device()
|
D | nlsTest.c | 157 rc = register_blkdev(NLSMAJOR, DEVICE_NAME); in test_init_module() 171 unregister_blkdev(NLSMAJOR, DEVICE_NAME); in test_init_module() 181 unregister_blkdev(NLSMAJOR, DEVICE_NAME); in test_init_module() 191 snprintf(gd_ptr->disk_name, sizeof(gd_ptr->disk_name), DEVICE_NAME); in test_init_module() 194 printk(KERN_DEBUG "block device %s added\n", DEVICE_NAME); in test_init_module() 206 unregister_blkdev(NLSMAJOR, DEVICE_NAME); in test_exit_module()
|
D | nlsTest.h | 26 #define DEVICE_NAME "nlsTest" macro
|
/third_party/ltp/testcases/kernel/device-drivers/drm/user_space/ |
D | user_tdrm.c | 57 rc = mkdir(DEVICE_NAME, (S_IFDIR | S_IRWXU | in tdrmopen() 68 rc = unlink(DEVICE_NAME); in tdrmopen() 70 rc = mkdir(DEVICE_NAME, (S_IFDIR | S_IRWXU | in tdrmopen() 81 rc = stat(DEVICE_NAME, &st); in tdrmopen() 85 rc = mknod(DEVICE_NAME, in tdrmopen() 102 rc = unlink(DEVICE_NAME); in tdrmopen() 104 rc = mknod(DEVICE_NAME, in tdrmopen() 111 tdrm_fd = open(DEVICE_NAME, O_RDWR); in tdrmopen() 115 DEVICE_NAME, tdrm_fd, errno); in tdrmopen()
|
/third_party/mindspore/mindspore/ccsrc/ps/ps_cache/ |
D | ps_cache_factory.h | 51 #define MS_REG_PS_CACHE(DEVICE_NAME, PS_CACHE_CLASS) \ argument 52 static const PsCacheRegistrar g_ps_cache_registrar__##DEVICE_NAME##_##_reg( \ 53 DEVICE_NAME, []() { return std::make_shared<PS_CACHE_CLASS>(); });
|
/third_party/mindspore/mindspore/ccsrc/backend/session/ |
D | session_factory.h | 50 #define MS_REG_SESSION(DEVICE_NAME, SESSION_CLASS) \ argument 51 static const SessionRegistrar g_session_registrar__##DEVICE_NAME##_##_reg( \ 52 DEVICE_NAME, []() { return std::make_shared<SESSION_CLASS>(); });
|
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/ |
D | device_context_manager.h | 62 #define MS_REGISTER_DEVICE(DEVICE_NAME, DEVICE_CONTEXT_CLASS) \ argument 63 static const DeviceContextRegister g_device_##DEVICE_NAME##_reg( \ 64 DEVICE_NAME, [](const DeviceContextKey &device_context_key) { \
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/ |
D | kernel_runtime_manager.h | 62 #define MS_REG_KERNEL_RUNTIME(DEVICE_NAME, RUNTIME_CLASS) \ argument 63 static const KernelRuntimeRegistrar g_kernel_runtime_##DEVICE_NAME##_reg( \ 64 DEVICE_NAME, []() { return std::make_shared<RUNTIME_CLASS>(); });
|
/third_party/ltp/testcases/kernel/device-drivers/tbio/tbio_user/ |
D | tbio.c | 78 if (unlink(DEVICE_NAME) && (errno != ENOENT)) in cleanup() 110 if (stat(DEVICE_NAME, &st)) { in setup() 129 if (unlink(DEVICE_NAME) && (errno != ENOENT)) in setup() 131 if (mknod(DEVICE_NAME, S_IFBLK | S_IRUSR | S_IWUSR | in setup() 136 tbio_fd = SAFE_OPEN(cleanup, DEVICE_NAME, O_RDWR); in setup()
|
/third_party/mindspore/mindspore/ccsrc/cxx_api/ |
D | factory.h | 81 #define API_FACTORY_REG(BASE_CLASS, DEVICE_NAME, DERIVE_CLASS) \ argument 82 static const Registrar<BASE_CLASS> g_api_##DERIVE_CLASS##_registrar_##DEVICE_NAME##_reg( \ 83 #DEVICE_NAME, []() { return std::make_shared<DERIVE_CLASS>(); });
|
/third_party/ltp/testcases/kernel/device-drivers/drm/kernel_space/ |
D | tdrm.h | 34 #define DEVICE_NAME "/dev/tdrm" macro 35 #define DRIVER_NAME DEVICE_NAME
|
/third_party/ltp/testcases/kernel/device-drivers/dev_sim_framework/kernel_space/ |
D | tmod.c | 241 rc = register_chrdev(Major, DEVICE_NAME, &tmod_fops); in tmod_init_module() 267 rc = unregister_chrdev(Major, DEVICE_NAME); in tmod_exit_module()
|
D | tmod.h | 32 #define DEVICE_NAME "/dev/tmod" macro
|
/third_party/ltp/testcases/kernel/device-drivers/tbio/tbio_kernel/ |
D | tbio.h | 34 #define DEVICE_NAME "/dev/tbio" macro
|
D | ltp_tbio.c | 525 TBIO_MAJOR = register_blkdev(0, DEVICE_NAME); in tbio_init() 556 unregister_blkdev(TBIO_MAJOR, DEVICE_NAME); in tbio_init() 568 unregister_blkdev(TBIO_MAJOR, DEVICE_NAME); in tbio_exit()
|
/third_party/ltp/testcases/kernel/device-drivers/usb/tusb/ |
D | tusb.h | 22 #define DEVICE_NAME "/dev/tusb" macro
|
/third_party/ltp/testcases/kernel/device-drivers/base/tbase/ |
D | tbase.c | 870 printk("tbase: *** Register device %s **\n", DEVICE_NAME); in tbase_init_module() 872 rc = register_chrdev(Major, DEVICE_NAME, &tbase_fops); in tbase_init_module() 902 rc = unregister_chrdev(Major, DEVICE_NAME); in tbase_exit_module()
|
/third_party/ltp/testcases/kernel/device-drivers/agp/kernel_space/ |
D | tagp.h | 33 #define DEVICE_NAME "/dev/tagp" macro
|
/third_party/mesa3d/.gitlab-ci/common/ |
D | generate-env.sh | 35 DEVICE_NAME \
|