Home
last modified time | relevance | path

Searched refs:tdev (Results 1 – 7 of 7) sorted by relevance

/third_party/ltp/testcases/kernel/firmware/fw_load_kernel/
Dltp_fw_load.c60 static struct device tdev = { variable
87 err = request_firmware(&fw_entry, name, &tdev); in try_request_fw()
133 err = device_register(&tdev); in test_init()
140 err = device_create_file(&tdev, &dev_attr_result); in test_init()
143 device_unregister(&tdev); in test_init()
146 err = device_create_file(&tdev, &dev_attr_fwnum); in test_init()
149 device_remove_file(&tdev, &dev_attr_result); in test_init()
150 device_unregister(&tdev); in test_init()
158 device_remove_file(&tdev, &dev_attr_result); in test_exit()
159 device_remove_file(&tdev, &dev_attr_fwnum); in test_exit()
[all …]
/third_party/ltp/testcases/kernel/device-drivers/uaccess/
Dltp_uaccess.c47 static struct device tdev = { variable
102 err = device_register(&tdev); in uaccess_init()
109 err = device_create_file(&tdev, &dev_attr_result); in uaccess_init()
115 err = device_create_file(&tdev, &dev_attr_tcase); in uaccess_init()
124 device_remove_file(&tdev, &dev_attr_result); in uaccess_init()
126 device_unregister(&tdev); in uaccess_init()
136 device_remove_file(&tdev, &dev_attr_result); in module_init()
137 device_remove_file(&tdev, &dev_attr_tcase); in module_init()
138 device_unregister(&tdev); in module_init()
/third_party/ltp/testcases/kernel/device-drivers/acpi/
Dltp_acpi_cmds.c538 static struct device tdev = { variable
628 err = device_register(&tdev); in init_module()
635 err = device_create_file(&tdev, &dev_attr_result); in init_module()
641 err = device_create_file(&tdev, &dev_attr_str); in init_module()
647 err = device_create_file(&tdev, &dev_attr_tcase); in init_module()
653 err = device_create_file(&tdev, &dev_attr_path); in init_module()
659 err = device_create_file(&tdev, &dev_attr_acpi_disabled); in init_module()
668 device_remove_file(&tdev, &dev_attr_path); in init_module()
670 device_remove_file(&tdev, &dev_attr_tcase); in init_module()
672 device_remove_file(&tdev, &dev_attr_str); in init_module()
[all …]
/third_party/ltp/testcases/kernel/device-drivers/pci/tpci_kernel/
Dltp_tpci.c636 static struct device tdev = { variable
687 err = device_register(&tdev); in tpci_init_module()
694 err = device_create_file(&tdev, &dev_attr_result); in tpci_init_module()
700 err = device_create_file(&tdev, &dev_attr_tcase); in tpci_init_module()
706 err = device_create_file(&tdev, &dev_attr_bus_slot); in tpci_init_module()
715 device_remove_file(&tdev, &dev_attr_tcase); in tpci_init_module()
717 device_remove_file(&tdev, &dev_attr_result); in tpci_init_module()
719 device_unregister(&tdev); in tpci_init_module()
734 device_remove_file(&tdev, &dev_attr_result); in module_init()
735 device_remove_file(&tdev, &dev_attr_tcase); in module_init()
[all …]
/third_party/ltp/testcases/kernel/device-drivers/block/block_dev_kernel/
Dltp_block_dev.c72 static struct device tdev = { variable
398 err = device_register(&tdev); in test_init_module()
405 err = device_create_file(&tdev, &dev_attr_result); in test_init_module()
411 err = device_create_file(&tdev, &dev_attr_tcase); in test_init_module()
420 device_remove_file(&tdev, &dev_attr_result); in test_init_module()
422 device_unregister(&tdev); in test_init_module()
431 device_remove_file(&tdev, &dev_attr_result); in test_exit_module()
432 device_remove_file(&tdev, &dev_attr_tcase); in test_exit_module()
433 device_unregister(&tdev); in test_exit_module()
/third_party/ltp/lib/
Dtst_test.c887 static struct tst_device tdev; variable
967 tmpfs_size = tdev.size; in limit_tmpfs_mount_size()
987 return tdev.dev; in get_device_name()
996 SAFE_MKFS(tdev.dev, tdev.fs_type, tst_test->dev_fs_opts, in prepare_device()
1001 prepare_and_mount_ro_fs(tdev.dev, tst_test->mntpoint, in prepare_device()
1002 tdev.fs_type); in prepare_device()
1008 buf, sizeof(buf), tdev.fs_type); in prepare_device()
1010 SAFE_MOUNT(get_device_name(tdev.fs_type), tst_test->mntpoint, in prepare_device()
1011 tdev.fs_type, tst_test->mnt_flags, mnt_data); in prepare_device()
1131 tdev.dev = tst_acquire_device_(NULL, tst_test->dev_min_size); in do_setup()
[all …]
/third_party/ltp/testcases/network/iproute/
Dip_tests.sh129 local tdev="$(tst_iface)"
132 ip neigh replace $taddr lladdr 00:00:00:00:00:00 dev $tdev nud reachable
139 echo "$taddr dev $tdev lladdr 00:00:00:00:00:00 REACHABLE" > tst_ip.exp
155 ip neigh del $taddr dev $tdev