/linux-master/fs/btrfs/ |
H A D | ordered-data.c | 68 struct rb_node *test; local 88 test = rb_next(prev); 89 if (!test) 91 prev_entry = rb_entry(test, struct btrfs_ordered_extent, 96 prev = test; 102 test = rb_prev(prev); 103 if (!test) 105 prev_entry = rb_entry(test, struct btrfs_ordered_extent, 107 prev = test;
|
H A D | ioctl.c | 1548 struct btrfs_key test; local 1551 test.objectid = sk->min_objectid; 1552 test.type = sk->min_type; 1553 test.offset = sk->min_offset; 1555 ret = btrfs_comp_cpu_keys(key, &test); 1559 test.objectid = sk->max_objectid; 1560 test.type = sk->max_type; 1561 test.offset = sk->max_offset; 1563 ret = btrfs_comp_cpu_keys(key, &test); 1580 struct btrfs_key test; local [all...] |
/linux-master/tools/testing/selftests/mm/ |
H A D | run_vmtests.sh | 37 a test for the patch "Allow compaction of unevictable pages" 49 test memadvise(2) MADV_POPULATE_{READ,WRITE} options 51 test memfd_secret(2) 53 test process_mrelease(2) 61 test soft dirty page bit semantics 63 test pagemap_scan IOCTL 65 test copy-on-write semantics 67 test transparent huge pages 69 test hugetlbfs huge pages 74 test handlin [all...] |
H A D | uffd-unit-tests.c | 14 /* The unit test doesn't need a large or random size, make it 32MB for now */ 70 /* Arguments to be passed over to each uffd unit test */ 124 * return 1 even if some test failed as long as uffd supported, because in 187 uffd_setup_environment(uffd_test_args_t *args, uffd_test_case_t *test, argument 192 uffd_test_case_ops = test->test_case_ops; 203 /* Initialize test arguments */ 206 return uffd_test_ctx_init(test->uffd_feature_required, errmsg); 209 static bool uffd_feature_supported(uffd_test_case_t *test) argument 216 return (features & test->uffd_feature_required) == 217 test 269 struct pin_longterm_test test = { local 1484 uffd_test_case_t *test; local [all...] |
/linux-master/tools/testing/selftests/ |
H A D | kselftest_harness.h | 5 * kselftest_harness.h: simple C unit test helper. 74 /* Utilities exposed to the test definitions */ 136 * TEST() - Defines the test function and creates the registration 139 * @test_name: test name 145 * Defines a test by name. 157 * @test_name: test name 164 * Defines a test by name and the expected term signal. 323 * Defines a variant of the test fixture, provided to FIXTURE_SETUP() and 344 * TEST_F() - Emits test registration and helpers for 345 * fixture-based test case 816 struct __test_metadata *test; member in struct:__test_xfail [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core.c | 2020 .test = mlxsw_core_health_fw_fatal_test,
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_umsch_mm.c | 179 struct umsch_mm_test *test, 182 struct MQD_INFO *mqd = (struct MQD_INFO *)test->mqd_data_cpu_addr; 183 uint64_t ring_gpu_addr = test->ring_data_gpu_addr; 193 memcpy(++mqd, test->mqd_data_cpu_addr, sizeof(struct MQD_INFO)); 195 qinfo->mqd_addr = test->mqd_data_gpu_addr; 196 qinfo->csa_addr = test->ctx_data_gpu_addr + 203 struct umsch_mm_test *test, 209 struct umsch_mm_test *test, 215 queue_input.process_id = test->pasid; 216 queue_input.page_table_base_addr = amdgpu_gmc_pd_addr(test 178 setup_vpe_queue(struct amdgpu_device *adev, struct umsch_mm_test *test, struct umsch_mm_test_queue_info *qinfo) argument 202 setup_vcn_queue(struct amdgpu_device *adev, struct umsch_mm_test *test, struct umsch_mm_test_queue_info *qinfo) argument 208 add_test_queue(struct amdgpu_device *adev, struct umsch_mm_test *test, struct umsch_mm_test_queue_info *qinfo) argument 246 remove_test_queue(struct amdgpu_device *adev, struct umsch_mm_test *test, struct umsch_mm_test_queue_info *qinfo) argument 266 submit_vpe_queue(struct amdgpu_device *adev, struct umsch_mm_test *test) argument 309 submit_vcn_queue(struct amdgpu_device *adev, struct umsch_mm_test *test) argument 314 setup_umsch_mm_test(struct amdgpu_device *adev, struct umsch_mm_test *test) argument 394 cleanup_umsch_mm_test(struct amdgpu_device *adev, struct umsch_mm_test *test) argument 410 setup_test_queues(struct amdgpu_device *adev, struct umsch_mm_test *test, struct umsch_mm_test_queue_info *qinfo) argument 430 submit_test_queues(struct amdgpu_device *adev, struct umsch_mm_test *test, struct umsch_mm_test_queue_info *qinfo) argument 448 cleanup_test_queues(struct amdgpu_device *adev, struct umsch_mm_test *test, struct umsch_mm_test_queue_info *qinfo) argument 463 struct umsch_mm_test test = { .num_queues = ARRAY_SIZE(qinfo) }; local [all...] |
/linux-master/fs/btrfs/tests/ |
H A D | extent-map-tests.c | 583 * [8k, 12k) - test the single front split 584 * [12k, 20k) - test the single back split 585 * [28k, 32k) - test the double split 586 * [32k, 64k) - test whole em dropping 733 * Regression test for btrfs_drop_extent_map_range. Calling with skip_pinned == 886 struct rmap_test_vector *test) 893 map = btrfs_alloc_chunk_map(test->num_stripes, GFP_KERNEL); 901 map->chunk_len = test->data_stripe_size * test->num_data_stripes; 902 map->stripe_size = test 885 test_rmap_block(struct btrfs_fs_info *fs_info, struct rmap_test_vector *test) argument [all...] |
/linux-master/virt/kvm/ |
H A D | kvm_main.c | 4781 bool test = cd->flags & KVM_CREATE_DEVICE_TEST; local 4793 if (test)
|
/linux-master/arch/x86/kvm/vmx/ |
H A D | vmx.h | 463 BUILD_VMX_MSR_BITMAP_HELPERS(bool, test, test)
|
/linux-master/tools/testing/selftests/net/ |
H A D | udpgso.c | 392 static void run_one(struct testcase *test, int fdt, int fdr, argument 400 test->tlen, test->gso_len, 401 test->tfail ? "(fail)" : ""); 403 val = test->gso_len; 409 sent = send_one(fdt, test->tlen, test->gso_len, addr, alen); 410 if (sent && test->tfail) 412 if (!sent && !test->tfail) 417 if (test 446 struct testcase *tests, *test; local [all...] |
/linux-master/lib/ |
H A D | ubsan.c | 18 #include <kunit/test-bug.h>
|
H A D | checksum_kunit.c | 6 #include <kunit/test.h> 453 #define CHECK_EQ(lhs, rhs) KUNIT_ASSERT_EQ(test, (__force u64)lhs, (__force u64)rhs) 469 static void assert_setup_correct(struct kunit *test) argument 482 static void test_csum_fixed_random_inputs(struct kunit *test) argument 488 assert_setup_correct(test); 506 * All ones input test. If there are any missing carry operations, it fails. 508 static void test_csum_all_carry_inputs(struct kunit *test) argument 514 assert_setup_correct(test); 545 * maximum initial sum, this allows us to test that there are no carries 548 static void test_csum_no_carry_inputs(struct kunit *test) argument 578 test_ip_fast_csum(struct kunit *test) argument 595 test_csum_ipv6_magic(struct kunit *test) argument [all...] |
/linux-master/init/ |
H A D | main.c | 115 #include <kunit/test.h> 1025 * to self-test [hard/soft]-irqs on/off lock inversion bugs
|
/linux-master/fs/bcachefs/ |
H A D | sysfs.c | 546 char *test = strsep(&p, " \t\n"); local 556 ret = bch2_btree_perf_test(c, test, nr, threads);
|
H A D | mean_and_variance_test.c | 2 #include <kunit/test.h> 8 static void mean_and_variance_basic_test(struct kunit *test) argument 15 KUNIT_EXPECT_EQ(test, mean_and_variance_get_mean(s), 2); 16 KUNIT_EXPECT_EQ(test, mean_and_variance_get_variance(s), 0); 17 KUNIT_EXPECT_EQ(test, s.n, 2); 22 KUNIT_EXPECT_EQ(test, mean_and_variance_get_mean(s), 3); 23 KUNIT_EXPECT_EQ(test, mean_and_variance_get_variance(s), 1); 24 KUNIT_EXPECT_EQ(test, s.n, 4); 32 static void mean_and_variance_weighted_test(struct kunit *test) argument 37 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mea 63 mean_and_variance_weighted_advanced_test(struct kunit *test) argument 89 do_mean_and_variance_test(struct kunit *test, s64 initial_value, s64 initial_n, s64 n, unsigned weight, s64 *data, s64 *mean, s64 *stddev, s64 *weighted_mean, s64 *weighted_stddev) argument 127 mean_and_variance_test_1(struct kunit *test) argument 140 mean_and_variance_test_2(struct kunit *test) argument 152 mean_and_variance_fast_divpow2(struct kunit *test) argument 170 mean_and_variance_u128_basic_test(struct kunit *test) argument [all...] |
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_migrate.c | 1174 XE_TEST_DECLARE(struct migrate_test_params *test = 1182 if (XE_TEST_ONLY(test && test->force_gpu))
|
/linux-master/kernel/bpf/ |
H A D | syscall.c | 4245 #define BPF_PROG_TEST_RUN_LAST_FIELD test.batch_size 4256 if ((attr->test.ctx_size_in && !attr->test.ctx_in) || 4257 (!attr->test.ctx_size_in && attr->test.ctx_in)) 4260 if ((attr->test.ctx_size_out && !attr->test.ctx_out) || 4261 (!attr->test.ctx_size_out && attr->test.ctx_out)) 4264 prog = bpf_prog_get(attr->test [all...] |
/linux-master/include/linux/ |
H A D | fs.h | 2521 int (*test)(struct super_block *, struct fs_context *), 2524 int (*test)(struct super_block *,void *), 3023 unsigned long hashval, int (*test)(struct inode *, void *), 3026 int (*test)(struct inode *, void *), void *data); 3030 int (*test)(struct inode *, void *), 3033 extern struct inode * iget5_locked(struct super_block *, unsigned long, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *); 3043 extern int insert_inode_locked4(struct inode *, unsigned long, int (*test)(struct inode *, void *), void *);
|
/linux-master/fs/ |
H A D | super.c | 575 * The function marks superblock to be ignored in superblock test, which 700 * @test: Comparison callback 705 * The @test callback is used to find a matching existing superblock. 707 * is specific to the @test callback that is used. They may even be 730 int (*test)(struct super_block *, struct fs_context *), 740 if (test) { 742 if (test(old, fc)) 798 * @test: comparison callback 804 int (*test)(struct super_block *,void *), 823 if (test) { [all...] |
/linux-master/drivers/usb/dwc2/ |
H A D | gadget.c | 1594 * @testmode: requested usb test mode 4308 * @test: The request to test if it is on the endpoint. 4310 static bool on_list(struct dwc2_hsotg_ep *ep, struct dwc2_hsotg_req *test) argument 4315 if (req == test)
|
/linux-master/arch/x86/boot/compressed/ |
H A D | efi_mixed.S | 61 test %edx, %edx
|
/linux-master/tools/testing/selftests/exec/ |
H A D | binfmt_script.py | 33 # test - produce a binfmt_script hashbang line for testing 45 def test(name, size, good=True, leading="", root="./", target="/perl", function 117 test(name="too-big", size=SIZE+80, good=False) 119 test(name="exact", size=SIZE, good=False) 121 test(name="exact-space", size=SIZE, good=False, leading=" ") 123 test(name="whitespace-too-big", size=SIZE+71, good=False, root="", 126 test(name="truncated", size=SIZE+17, good=False, leading=" " * 19) 128 test(name="empty", size=2, good=False, root="", 131 test(name="spaces", size=SIZE-1, good=False, root="", fill=" ", 134 test(nam [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | d3.c | 1224 bool test) 1252 * mac80211 shouldn't get here, but for D3 test 1255 WARN_ON(!test); 1384 ret = iwl_trans_d3_suspend(mvm->trans, test, !unified_image); 2719 bool test; member in struct:iwl_d3_data 3142 static int iwl_mvm_resume_firmware(struct iwl_mvm *mvm, bool test) argument 3153 ret = iwl_trans_d3_resume(mvm->trans, &d3_status, test, !reset); 3196 ret = iwl_mvm_resume_firmware(mvm, d3_data->test); 3216 static int __iwl_mvm_resume(struct iwl_mvm *mvm, bool test) argument 3222 .test 1222 __iwl_mvm_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan, bool test) argument [all...] |
/linux-master/tools/iio/ |
H A D | iio_utils.c | 657 int test; local 695 if (fscanf(sysfsfp, "%d", &test) != 1) { 708 if (test != val) {
|