test 30 arch/arm/mach-ixp4xx/include/mach/ixp46x_ts.h u32 test; /* 0x10 Time Sync Test Register */ test 799 arch/m68k/include/asm/atarihw.h u_char test; test 82 arch/m68k/include/asm/bvme6000hw.h pad_F[3], test; test 142 arch/m68k/math-emu/fp_decode.h btst #15,%d2 | test for data/addr register test 188 arch/m68k/math-emu/fp_decode.h | get the extension word and test for brief or full extension type test 196 arch/m68k/math-emu/fp_decode.h | test if %pc is the base register for the indirect addr mode test 202 arch/m68k/math-emu/fp_decode.h | test if %pc is the base register for one of the extended modes test 81 arch/mips/lantiq/falcon/sysctrl.c unsigned int test, unsigned int reg) test 86 arch/mips/lantiq/falcon/sysctrl.c & clk->bits) != test)); test 89 arch/mips/lantiq/falcon/sysctrl.c clk->module, clk->bits, test, test 259 arch/parisc/kernel/pdc_chassis.c unsigned long test; test 262 arch/parisc/kernel/pdc_chassis.c ret = pdc_chassis_warn(&test); test 294 arch/parisc/kernel/perf.c uint32_t test; test 314 arch/parisc/kernel/perf.c test = (image_type & 0xffff); test 329 arch/parisc/kernel/perf.c (test >= MAX_CUDA_IMAGES)) || test 331 arch/parisc/kernel/perf.c (test >= MAX_ONYX_IMAGES))) test 336 arch/parisc/kernel/perf.c return perf_config(cuda_images[test]); test 338 arch/parisc/kernel/perf.c return perf_config(onyx_images[test]); test 891 arch/powerpc/lib/test_emulate_step.c struct compute_test *test; test 897 arch/powerpc/lib/test_emulate_step.c test = &compute_tests[i]; test 899 arch/powerpc/lib/test_emulate_step.c for (j = 0; j < MAX_SUBTESTS && test->subtests[j].descr; j++) { test 900 arch/powerpc/lib/test_emulate_step.c instr = test->subtests[j].instr; test 901 arch/powerpc/lib/test_emulate_step.c flags = test->subtests[j].flags; test 902 arch/powerpc/lib/test_emulate_step.c regs = &test->subtests[j].regs; test 951 arch/powerpc/lib/test_emulate_step.c show_result_with_descr(test->mnemonic, test 952 arch/powerpc/lib/test_emulate_step.c test->subtests[j].descr, test 29 arch/x86/events/probe.c if (msr[bit].test && !msr[bit].test(bit, data)) test 9 arch/x86/events/probe.h bool (*test)(int idx, void *data); test 398 arch/x86/kernel/cpu/cyrix.c unsigned int test; test 404 arch/x86/kernel/cpu/cyrix.c : "=a" (test) test 409 arch/x86/kernel/cpu/cyrix.c return (unsigned char) (test >> 8) == 0x02; test 143 arch/x86/kernel/fpu/init.c #define TYPE_ALIGN(TYPE) offsetof(struct { char x; TYPE test; }, test) test 998 arch/x86/kvm/emulate.c FASTOP2(test); test 81 arch/x86/um/os-Linux/task_size.c unsigned long test, original; test 124 arch/x86/um/os-Linux/task_size.c test = bottom + (top - bottom) / 2; test 125 arch/x86/um/os-Linux/task_size.c if (page_ok(test)) test 126 arch/x86/um/os-Linux/task_size.c bottom = test; test 128 arch/x86/um/os-Linux/task_size.c top = test; test 256 crypto/algapi.c struct crypto_larval *test; test 267 crypto/algapi.c test = (struct crypto_larval *)q; test 278 crypto/algapi.c alg = test->adult; test 342 crypto/algapi.c complete_all(&test->completion); test 197 crypto/api.c u32 test = 0; test 200 crypto/api.c test |= CRYPTO_ALG_TESTED; test 203 crypto/api.c alg = __crypto_alg_lookup(name, type | test, mask | test); test 204 crypto/api.c if (!alg && test) { test 201 crypto/async_tx/raid6test.c err += test(4, &tests); test 203 crypto/async_tx/raid6test.c err += test(5, &tests); test 208 crypto/async_tx/raid6test.c err += test(11, &tests); test 209 crypto/async_tx/raid6test.c err += test(12, &tests); test 217 crypto/async_tx/raid6test.c err += test(24, &tests); test 219 crypto/async_tx/raid6test.c err += test(NDISKS, &tests); test 127 crypto/testmgr.c int (*test)(const struct alg_test_desc *desc, const char *driver, test 3380 crypto/testmgr.c static int drbg_cavs_test(const struct drbg_testvec *test, int pr, test 3387 crypto/testmgr.c unsigned char *buf = kzalloc(test->expectedlen, GFP_KERNEL); test 3401 crypto/testmgr.c drbg_string_fill(&testentropy, test->entropy, test->entropylen); test 3402 crypto/testmgr.c drbg_string_fill(&pers, test->pers, test->perslen); test 3409 crypto/testmgr.c drbg_string_fill(&addtl, test->addtla, test->addtllen); test 3411 crypto/testmgr.c drbg_string_fill(&testentropy, test->entpra, test->entprlen); test 3413 crypto/testmgr.c buf, test->expectedlen, &addtl, &test_data); test 3416 crypto/testmgr.c buf, test->expectedlen, &addtl); test 3424 crypto/testmgr.c drbg_string_fill(&addtl, test->addtlb, test->addtllen); test 3426 crypto/testmgr.c drbg_string_fill(&testentropy, test->entprb, test->entprlen); test 3428 crypto/testmgr.c buf, test->expectedlen, &addtl, &test_data); test 3431 crypto/testmgr.c buf, test->expectedlen, &addtl); test 3439 crypto/testmgr.c ret = memcmp(test->expected, buf, test->expectedlen); test 3884 crypto/testmgr.c .test = alg_test_skcipher, test 3891 crypto/testmgr.c .test = alg_test_skcipher, test 3897 crypto/testmgr.c .test = alg_test_aead, test 3903 crypto/testmgr.c .test = alg_test_cprng, test 3909 crypto/testmgr.c .test = alg_test_aead, test 3915 crypto/testmgr.c .test = alg_test_aead, test 3922 crypto/testmgr.c .test = alg_test_aead, test 3928 crypto/testmgr.c .test = alg_test_aead, test 3935 crypto/testmgr.c .test = alg_test_null, test 3939 crypto/testmgr.c .test = alg_test_aead, test 3945 crypto/testmgr.c .test = alg_test_null, test 3949 crypto/testmgr.c .test = alg_test_aead, test 3955 crypto/testmgr.c .test = alg_test_aead, test 3962 crypto/testmgr.c .test = alg_test_aead, test 3969 crypto/testmgr.c .test = alg_test_aead, test 3975 crypto/testmgr.c .test = alg_test_aead, test 3982 crypto/testmgr.c .test = alg_test_null, test 3986 crypto/testmgr.c .test = alg_test_null, test 3990 crypto/testmgr.c .test = alg_test_aead, test 3996 crypto/testmgr.c .test = alg_test_aead, test 4003 crypto/testmgr.c .test = alg_test_null, test 4007 crypto/testmgr.c .test = alg_test_null, test 4012 crypto/testmgr.c .test = alg_test_aead, test 4018 crypto/testmgr.c .test = alg_test_aead, test 4024 crypto/testmgr.c .test = alg_test_aead, test 4031 crypto/testmgr.c .test = alg_test_null, test 4035 crypto/testmgr.c .test = alg_test_null, test 4039 crypto/testmgr.c .test = alg_test_skcipher, test 4046 crypto/testmgr.c .test = alg_test_skcipher, test 4052 crypto/testmgr.c .test = alg_test_skcipher, test 4058 crypto/testmgr.c .test = alg_test_skcipher, test 4064 crypto/testmgr.c .test = alg_test_skcipher, test 4070 crypto/testmgr.c .test = alg_test_skcipher, test 4076 crypto/testmgr.c .test = alg_test_skcipher, test 4082 crypto/testmgr.c .test = alg_test_skcipher, test 4092 crypto/testmgr.c .test = alg_test_null, test 4099 crypto/testmgr.c .test = alg_test_null, test 4102 crypto/testmgr.c .test = alg_test_skcipher, test 4108 crypto/testmgr.c .test = alg_test_skcipher, test 4114 crypto/testmgr.c .test = alg_test_skcipher, test 4121 crypto/testmgr.c .test = alg_test_hash, test 4128 crypto/testmgr.c .test = alg_test_aead, test 4135 crypto/testmgr.c .test = alg_test_skcipher, test 4142 crypto/testmgr.c .test = alg_test_skcipher, test 4149 crypto/testmgr.c .test = alg_test_hash, test 4156 crypto/testmgr.c .test = alg_test_hash, test 4162 crypto/testmgr.c .test = alg_test_null, test 4165 crypto/testmgr.c .test = alg_test_hash, test 4172 crypto/testmgr.c .test = alg_test_crc32c, test 4179 crypto/testmgr.c .test = alg_test_hash, test 4186 crypto/testmgr.c .test = alg_test_skcipher, test 4193 crypto/testmgr.c .test = alg_test_skcipher, test 4199 crypto/testmgr.c .test = alg_test_skcipher, test 4205 crypto/testmgr.c .test = alg_test_skcipher, test 4211 crypto/testmgr.c .test = alg_test_skcipher, test 4217 crypto/testmgr.c .test = alg_test_skcipher, test 4223 crypto/testmgr.c .test = alg_test_skcipher, test 4233 crypto/testmgr.c .test = alg_test_null, test 4241 crypto/testmgr.c .test = alg_test_null, test 4244 crypto/testmgr.c .test = alg_test_skcipher, test 4250 crypto/testmgr.c .test = alg_test_skcipher, test 4256 crypto/testmgr.c .test = alg_test_skcipher, test 4262 crypto/testmgr.c .test = alg_test_skcipher, test 4272 crypto/testmgr.c .test = alg_test_null, test 4276 crypto/testmgr.c .test = alg_test_comp, test 4286 crypto/testmgr.c .test = alg_test_kpp, test 4293 crypto/testmgr.c .test = alg_test_null, test 4296 crypto/testmgr.c .test = alg_test_drbg, test 4303 crypto/testmgr.c .test = alg_test_drbg, test 4310 crypto/testmgr.c .test = alg_test_drbg, test 4322 crypto/testmgr.c .test = alg_test_null, test 4325 crypto/testmgr.c .test = alg_test_drbg, test 4334 crypto/testmgr.c .test = alg_test_null, test 4337 crypto/testmgr.c .test = alg_test_null, test 4342 crypto/testmgr.c .test = alg_test_null, test 4345 crypto/testmgr.c .test = alg_test_drbg, test 4354 crypto/testmgr.c .test = alg_test_null, test 4358 crypto/testmgr.c .test = alg_test_null, test 4361 crypto/testmgr.c .test = alg_test_drbg, test 4370 crypto/testmgr.c .test = alg_test_null, test 4374 crypto/testmgr.c .test = alg_test_null, test 4378 crypto/testmgr.c .test = alg_test_null, test 4381 crypto/testmgr.c .test = alg_test_drbg, test 4390 crypto/testmgr.c .test = alg_test_null, test 4393 crypto/testmgr.c .test = alg_test_null, test 4398 crypto/testmgr.c .test = alg_test_null, test 4401 crypto/testmgr.c .test = alg_test_drbg, test 4410 crypto/testmgr.c .test = alg_test_null, test 4414 crypto/testmgr.c .test = alg_test_null, test 4417 crypto/testmgr.c .test = alg_test_skcipher, test 4424 crypto/testmgr.c .test = alg_test_skcipher, test 4431 crypto/testmgr.c .test = alg_test_skcipher, test 4437 crypto/testmgr.c .test = alg_test_skcipher, test 4443 crypto/testmgr.c .test = alg_test_skcipher, test 4449 crypto/testmgr.c .test = alg_test_skcipher, test 4455 crypto/testmgr.c .test = alg_test_skcipher, test 4461 crypto/testmgr.c .test = alg_test_null, test 4465 crypto/testmgr.c .test = alg_test_skcipher, test 4471 crypto/testmgr.c .test = alg_test_skcipher, test 4478 crypto/testmgr.c .test = alg_test_skcipher, test 4487 crypto/testmgr.c .test = alg_test_skcipher, test 4496 crypto/testmgr.c .test = alg_test_null, test 4500 crypto/testmgr.c .test = alg_test_skcipher, test 4506 crypto/testmgr.c .test = alg_test_skcipher, test 4512 crypto/testmgr.c .test = alg_test_skcipher, test 4518 crypto/testmgr.c .test = alg_test_skcipher, test 4524 crypto/testmgr.c .test = alg_test_skcipher, test 4530 crypto/testmgr.c .test = alg_test_skcipher, test 4536 crypto/testmgr.c .test = alg_test_skcipher, test 4542 crypto/testmgr.c .test = alg_test_skcipher, test 4548 crypto/testmgr.c .test = alg_test_kpp, test 4555 crypto/testmgr.c .test = alg_test_akcipher, test 4561 crypto/testmgr.c .test = alg_test_aead, test 4568 crypto/testmgr.c .test = alg_test_skcipher, test 4576 crypto/testmgr.c .test = alg_test_aead, test 4583 crypto/testmgr.c .test = alg_test_hash, test 4590 crypto/testmgr.c .test = alg_test_hash, test 4596 crypto/testmgr.c .test = alg_test_hash, test 4602 crypto/testmgr.c .test = alg_test_hash, test 4608 crypto/testmgr.c .test = alg_test_hash, test 4615 crypto/testmgr.c .test = alg_test_hash, test 4622 crypto/testmgr.c .test = alg_test_hash, test 4629 crypto/testmgr.c .test = alg_test_hash, test 4636 crypto/testmgr.c .test = alg_test_hash, test 4643 crypto/testmgr.c .test = alg_test_hash, test 4650 crypto/testmgr.c .test = alg_test_hash, test 4657 crypto/testmgr.c .test = alg_test_hash, test 4664 crypto/testmgr.c .test = alg_test_hash, test 4671 crypto/testmgr.c .test = alg_test_hash, test 4677 crypto/testmgr.c .test = alg_test_hash, test 4684 crypto/testmgr.c .test = alg_test_null, test 4687 crypto/testmgr.c .test = alg_test_skcipher, test 4695 crypto/testmgr.c .test = alg_test_skcipher, test 4702 crypto/testmgr.c .test = alg_test_skcipher, test 4709 crypto/testmgr.c .test = alg_test_skcipher, test 4716 crypto/testmgr.c .test = alg_test_skcipher, test 4723 crypto/testmgr.c .test = alg_test_skcipher, test 4729 crypto/testmgr.c .test = alg_test_comp, test 4739 crypto/testmgr.c .test = alg_test_comp, test 4749 crypto/testmgr.c .test = alg_test_comp, test 4759 crypto/testmgr.c .test = alg_test_comp, test 4769 crypto/testmgr.c .test = alg_test_hash, test 4775 crypto/testmgr.c .test = alg_test_hash, test 4781 crypto/testmgr.c .test = alg_test_hash, test 4787 crypto/testmgr.c .test = alg_test_hash, test 4793 crypto/testmgr.c .test = alg_test_skcipher, test 4803 crypto/testmgr.c .test = alg_test_null, test 4807 crypto/testmgr.c .test = alg_test_skcipher, test 4813 crypto/testmgr.c .test = alg_test_null, test 4817 crypto/testmgr.c .test = alg_test_akcipher, test 4824 crypto/testmgr.c .test = alg_test_null, test 4828 crypto/testmgr.c .test = alg_test_null, test 4832 crypto/testmgr.c .test = alg_test_hash, test 4838 crypto/testmgr.c .test = alg_test_skcipher, test 4846 crypto/testmgr.c .test = alg_test_aead, test 4854 crypto/testmgr.c .test = alg_test_aead, test 4862 crypto/testmgr.c .test = alg_test_aead, test 4868 crypto/testmgr.c .test = alg_test_aead, test 4874 crypto/testmgr.c .test = alg_test_aead, test 4880 crypto/testmgr.c .test = alg_test_hash, test 4886 crypto/testmgr.c .test = alg_test_hash, test 4892 crypto/testmgr.c .test = alg_test_hash, test 4898 crypto/testmgr.c .test = alg_test_hash, test 4904 crypto/testmgr.c .test = alg_test_akcipher, test 4911 crypto/testmgr.c .test = alg_test_skcipher, test 4917 crypto/testmgr.c .test = alg_test_hash, test 4924 crypto/testmgr.c .test = alg_test_hash, test 4931 crypto/testmgr.c .test = alg_test_hash, test 4938 crypto/testmgr.c .test = alg_test_hash, test 4945 crypto/testmgr.c .test = alg_test_hash, test 4952 crypto/testmgr.c .test = alg_test_hash, test 4959 crypto/testmgr.c .test = alg_test_hash, test 4966 crypto/testmgr.c .test = alg_test_hash, test 4973 crypto/testmgr.c .test = alg_test_hash, test 4980 crypto/testmgr.c .test = alg_test_hash, test 4986 crypto/testmgr.c .test = alg_test_hash, test 4992 crypto/testmgr.c .test = alg_test_hash, test 4998 crypto/testmgr.c .test = alg_test_hash, test 5004 crypto/testmgr.c .test = alg_test_hash, test 5010 crypto/testmgr.c .test = alg_test_hash, test 5016 crypto/testmgr.c .test = alg_test_hash, test 5022 crypto/testmgr.c .test = alg_test_hash, test 5028 crypto/testmgr.c .test = alg_test_hash, test 5034 crypto/testmgr.c .test = alg_test_hash, test 5040 crypto/testmgr.c .test = alg_test_hash, test 5046 crypto/testmgr.c .test = alg_test_skcipher, test 5052 crypto/testmgr.c .test = alg_test_skcipher, test 5059 crypto/testmgr.c .test = alg_test_skcipher, test 5067 crypto/testmgr.c .test = alg_test_skcipher, test 5074 crypto/testmgr.c .test = alg_test_skcipher, test 5083 crypto/testmgr.c .test = alg_test_null, test 5088 crypto/testmgr.c .test = alg_test_skcipher, test 5095 crypto/testmgr.c .test = alg_test_skcipher, test 5101 crypto/testmgr.c .test = alg_test_null, test 5105 crypto/testmgr.c .test = alg_test_null, test 5109 crypto/testmgr.c .test = alg_test_hash, test 5116 crypto/testmgr.c .test = alg_test_comp, test 5126 crypto/testmgr.c .test = alg_test_comp, test 5248 crypto/testmgr.c rc |= alg_test_descs[i].test(alg_test_descs + i, driver, test 5251 crypto/testmgr.c rc |= alg_test_descs[j].test(alg_test_descs + j, driver, test 691 drivers/ata/libata-transport.c #define SETUP_TEMPLATE(attrb, field, perm, test) \ test 695 drivers/ata/libata-transport.c if (test) \ test 159 drivers/block/floppy.c #define debug_dcl(test, fmt, args...) \ test 160 drivers/block/floppy.c do { if ((test) & FD_DEBUG) DPRINT(fmt, ##args); } while (0) test 162 drivers/block/floppy.c #define debug_dcl(test, fmt, args...) \ test 57 drivers/firmware/edd.c int (*test) (struct edd_device * edev); test 70 drivers/firmware/edd.c .test = _test, \ test 697 drivers/firmware/edd.c if (!attr->test || test 698 drivers/firmware/edd.c (attr->test && attr->test(edev))) test 203 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c MODULE_PARM_DESC(test, "Run tests"); test 204 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c module_param_named(test, amdgpu_testing, int, 0444); test 194 drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c uint32_t test = 0; test 399 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h fInt test; test 435 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h test = fGetSquare(x_old); /*1.75*1.75 is reverting back to 1 when shifted down */ test 436 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h y = fSubtract(test, C); /*y = f(x) = x^2 - C; */ test 228 drivers/gpu/drm/bridge/tc358767.c module_param_named(test, tc_test_pattern, bool, 0644); test 235 drivers/gpu/drm/radeon/radeon_drv.c MODULE_PARM_DESC(test, "Run tests"); test 236 drivers/gpu/drm/radeon/radeon_drv.c module_param_named(test, radeon_testing, int, 0444); test 10 drivers/gpu/drm/selftests/drm_cmdline_selftests.h #define cmdline_test(test) selftest(test, test) test 6 drivers/gpu/drm/selftests/test-drm_modeset_common.h #define FAIL(test, msg, ...) \ test 8 drivers/gpu/drm/selftests/test-drm_modeset_common.h if (test) { \ test 154 drivers/i2c/busses/i2c-iop3xx.c typedef int (* compare_func)(unsigned test, unsigned mask); test 191 drivers/i2c/busses/i2c-iop3xx.c all_bits_clear(unsigned test, unsigned mask) test 193 drivers/i2c/busses/i2c-iop3xx.c return (test & mask) == 0; test 197 drivers/i2c/busses/i2c-iop3xx.c any_bits_set(unsigned test, unsigned mask) test 199 drivers/i2c/busses/i2c-iop3xx.c return (test & mask) != 0; test 280 drivers/input/touchscreen/cyttsp4_core.c p = krealloc(si->si_ptrs.test, si->si_ofs.test_size, GFP_KERNEL); test 286 drivers/input/touchscreen/cyttsp4_core.c si->si_ptrs.test = p; test 289 drivers/input/touchscreen/cyttsp4_core.c si->si_ptrs.test); test 297 drivers/input/touchscreen/cyttsp4_core.c (u8 *)si->si_ptrs.test, si->si_ofs.test_size, test 299 drivers/input/touchscreen/cyttsp4_core.c if (si->si_ptrs.test->post_codel & test 303 drivers/input/touchscreen/cyttsp4_core.c si->si_ptrs.test->post_codel); test 305 drivers/input/touchscreen/cyttsp4_core.c if (!(si->si_ptrs.test->post_codel & test 309 drivers/input/touchscreen/cyttsp4_core.c si->si_ptrs.test->post_codel); test 311 drivers/input/touchscreen/cyttsp4_core.c if (!(si->si_ptrs.test->post_codel & test 315 drivers/input/touchscreen/cyttsp4_core.c si->si_ptrs.test->post_codel); test 318 drivers/input/touchscreen/cyttsp4_core.c __func__, si->si_ptrs.test->post_codel & 0x08 ? test 320 drivers/input/touchscreen/cyttsp4_core.c si->si_ptrs.test->post_codel); test 1723 drivers/input/touchscreen/cyttsp4_core.c kfree(si->si_ptrs.test); test 196 drivers/input/touchscreen/cyttsp4_core.h struct cyttsp4_test *test; test 696 drivers/input/touchscreen/goodix.c u8 test; test 700 drivers/input/touchscreen/goodix.c &test, 1); test 276 drivers/leds/leds-blinkm.c static DEVICE_ATTR(test, S_IRUGO | S_IWUSR, show_test, store_test); test 36 drivers/macintosh/macio-adb.c struct preg test; test 121 drivers/media/i2c/msp3400-driver.c struct i2c_msg test[2] = { test 138 drivers/media/i2c/msp3400-driver.c i2c_transfer(client->adapter, test, 2) != 2) { test 164 drivers/media/radio/radio-cadet.c unsigned freq = 0, test, fifo = 0; test 177 drivers/media/radio/radio-cadet.c test = 12500; test 180 drivers/media/radio/radio-cadet.c freq += test; test 181 drivers/media/radio/radio-cadet.c test = test << 1; test 192 drivers/media/radio/radio-cadet.c unsigned test; test 198 drivers/media/radio/radio-cadet.c test = 0; test 199 drivers/media/radio/radio-cadet.c test = (fifo >> 23) & 0x02; /* Align data for SDO */ test 200 drivers/media/radio/radio-cadet.c test |= 0x1c; /* SDM=1, SWE=1, SEN=1, SCK=0 */ test 202 drivers/media/radio/radio-cadet.c outb(test, dev->io + 1); /* Initialize for write */ test 204 drivers/media/radio/radio-cadet.c test |= 0x01; /* Toggle SCK High */ test 205 drivers/media/radio/radio-cadet.c outb(test, dev->io + 1); test 206 drivers/media/radio/radio-cadet.c test &= 0xfe; /* Toggle SCK Low */ test 207 drivers/media/radio/radio-cadet.c outb(test, dev->io + 1); test 209 drivers/media/radio/radio-cadet.c test = 0x1c | ((fifo >> 23) & 0x02); test 210 drivers/media/radio/radio-cadet.c outb(test, dev->io + 1); test 217 drivers/media/radio/radio-cadet.c int i, j, test; test 228 drivers/media/radio/radio-cadet.c test = 102400; test 233 drivers/media/radio/radio-cadet.c if (freq >= test) { test 235 drivers/media/radio/radio-cadet.c freq -= test; test 237 drivers/media/radio/radio-cadet.c test = test >> 1; test 115 drivers/misc/pci_endpoint_test.c static inline u32 pci_endpoint_test_readl(struct pci_endpoint_test *test, test 118 drivers/misc/pci_endpoint_test.c return readl(test->base + offset); test 121 drivers/misc/pci_endpoint_test.c static inline void pci_endpoint_test_writel(struct pci_endpoint_test *test, test 124 drivers/misc/pci_endpoint_test.c writel(value, test->base + offset); test 127 drivers/misc/pci_endpoint_test.c static inline u32 pci_endpoint_test_bar_readl(struct pci_endpoint_test *test, test 130 drivers/misc/pci_endpoint_test.c return readl(test->bar[bar] + offset); test 133 drivers/misc/pci_endpoint_test.c static inline void pci_endpoint_test_bar_writel(struct pci_endpoint_test *test, test 136 drivers/misc/pci_endpoint_test.c writel(value, test->bar[bar] + offset); test 141 drivers/misc/pci_endpoint_test.c struct pci_endpoint_test *test = dev_id; test 144 drivers/misc/pci_endpoint_test.c reg = pci_endpoint_test_readl(test, PCI_ENDPOINT_TEST_STATUS); test 146 drivers/misc/pci_endpoint_test.c test->last_irq = irq; test 147 drivers/misc/pci_endpoint_test.c complete(&test->irq_raised); test 150 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_STATUS, test 156 drivers/misc/pci_endpoint_test.c static void pci_endpoint_test_free_irq_vectors(struct pci_endpoint_test *test) test 158 drivers/misc/pci_endpoint_test.c struct pci_dev *pdev = test->pdev; test 161 drivers/misc/pci_endpoint_test.c test->irq_type = IRQ_TYPE_UNDEFINED; test 164 drivers/misc/pci_endpoint_test.c static bool pci_endpoint_test_alloc_irq_vectors(struct pci_endpoint_test *test, test 168 drivers/misc/pci_endpoint_test.c struct pci_dev *pdev = test->pdev; test 197 drivers/misc/pci_endpoint_test.c test->irq_type = type; test 198 drivers/misc/pci_endpoint_test.c test->num_irqs = irq; test 203 drivers/misc/pci_endpoint_test.c static void pci_endpoint_test_release_irq(struct pci_endpoint_test *test) test 206 drivers/misc/pci_endpoint_test.c struct pci_dev *pdev = test->pdev; test 209 drivers/misc/pci_endpoint_test.c for (i = 0; i < test->num_irqs; i++) test 210 drivers/misc/pci_endpoint_test.c devm_free_irq(dev, pci_irq_vector(pdev, i), test); test 212 drivers/misc/pci_endpoint_test.c test->num_irqs = 0; test 215 drivers/misc/pci_endpoint_test.c static bool pci_endpoint_test_request_irq(struct pci_endpoint_test *test) test 219 drivers/misc/pci_endpoint_test.c struct pci_dev *pdev = test->pdev; test 222 drivers/misc/pci_endpoint_test.c for (i = 0; i < test->num_irqs; i++) { test 225 drivers/misc/pci_endpoint_test.c IRQF_SHARED, DRV_MODULE_NAME, test); test 253 drivers/misc/pci_endpoint_test.c static bool pci_endpoint_test_bar(struct pci_endpoint_test *test, test 259 drivers/misc/pci_endpoint_test.c struct pci_dev *pdev = test->pdev; test 261 drivers/misc/pci_endpoint_test.c if (!test->bar[barno]) test 266 drivers/misc/pci_endpoint_test.c if (barno == test->test_reg_bar) test 270 drivers/misc/pci_endpoint_test.c pci_endpoint_test_bar_writel(test, barno, j, 0xA0A0A0A0); test 273 drivers/misc/pci_endpoint_test.c val = pci_endpoint_test_bar_readl(test, barno, j); test 281 drivers/misc/pci_endpoint_test.c static bool pci_endpoint_test_legacy_irq(struct pci_endpoint_test *test) test 285 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_IRQ_TYPE, test 287 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_IRQ_NUMBER, 0); test 288 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_COMMAND, test 290 drivers/misc/pci_endpoint_test.c val = wait_for_completion_timeout(&test->irq_raised, test 298 drivers/misc/pci_endpoint_test.c static bool pci_endpoint_test_msi_irq(struct pci_endpoint_test *test, test 302 drivers/misc/pci_endpoint_test.c struct pci_dev *pdev = test->pdev; test 304 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_IRQ_TYPE, test 307 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_IRQ_NUMBER, msi_num); test 308 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_COMMAND, test 311 drivers/misc/pci_endpoint_test.c val = wait_for_completion_timeout(&test->irq_raised, test 316 drivers/misc/pci_endpoint_test.c if (pci_irq_vector(pdev, msi_num - 1) == test->last_irq) test 322 drivers/misc/pci_endpoint_test.c static bool pci_endpoint_test_copy(struct pci_endpoint_test *test, size_t size) test 329 drivers/misc/pci_endpoint_test.c struct pci_dev *pdev = test->pdev; test 336 drivers/misc/pci_endpoint_test.c size_t alignment = test->alignment; test 337 drivers/misc/pci_endpoint_test.c int irq_type = test->irq_type; test 366 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_LOWER_SRC_ADDR, test 369 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_UPPER_SRC_ADDR, test 392 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_LOWER_DST_ADDR, test 394 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_UPPER_DST_ADDR, test 397 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_SIZE, test 400 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_IRQ_TYPE, irq_type); test 401 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_IRQ_NUMBER, 1); test 402 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_COMMAND, test 405 drivers/misc/pci_endpoint_test.c wait_for_completion(&test->irq_raised); test 422 drivers/misc/pci_endpoint_test.c static bool pci_endpoint_test_write(struct pci_endpoint_test *test, size_t size) test 428 drivers/misc/pci_endpoint_test.c struct pci_dev *pdev = test->pdev; test 433 drivers/misc/pci_endpoint_test.c size_t alignment = test->alignment; test 434 drivers/misc/pci_endpoint_test.c int irq_type = test->irq_type; test 465 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_CHECKSUM, test 468 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_LOWER_SRC_ADDR, test 470 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_UPPER_SRC_ADDR, test 473 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_SIZE, size); test 475 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_IRQ_TYPE, irq_type); test 476 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_IRQ_NUMBER, 1); test 477 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_COMMAND, test 480 drivers/misc/pci_endpoint_test.c wait_for_completion(&test->irq_raised); test 482 drivers/misc/pci_endpoint_test.c reg = pci_endpoint_test_readl(test, PCI_ENDPOINT_TEST_STATUS); test 492 drivers/misc/pci_endpoint_test.c static bool pci_endpoint_test_read(struct pci_endpoint_test *test, size_t size) test 497 drivers/misc/pci_endpoint_test.c struct pci_dev *pdev = test->pdev; test 502 drivers/misc/pci_endpoint_test.c size_t alignment = test->alignment; test 503 drivers/misc/pci_endpoint_test.c int irq_type = test->irq_type; test 531 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_LOWER_DST_ADDR, test 533 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_UPPER_DST_ADDR, test 536 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_SIZE, size); test 538 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_IRQ_TYPE, irq_type); test 539 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_IRQ_NUMBER, 1); test 540 drivers/misc/pci_endpoint_test.c pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_COMMAND, test 543 drivers/misc/pci_endpoint_test.c wait_for_completion(&test->irq_raised); test 546 drivers/misc/pci_endpoint_test.c if (crc32 == pci_endpoint_test_readl(test, PCI_ENDPOINT_TEST_CHECKSUM)) test 554 drivers/misc/pci_endpoint_test.c static bool pci_endpoint_test_set_irq(struct pci_endpoint_test *test, test 557 drivers/misc/pci_endpoint_test.c struct pci_dev *pdev = test->pdev; test 565 drivers/misc/pci_endpoint_test.c if (test->irq_type == req_irq_type) test 568 drivers/misc/pci_endpoint_test.c pci_endpoint_test_release_irq(test); test 569 drivers/misc/pci_endpoint_test.c pci_endpoint_test_free_irq_vectors(test); test 571 drivers/misc/pci_endpoint_test.c if (!pci_endpoint_test_alloc_irq_vectors(test, req_irq_type)) test 574 drivers/misc/pci_endpoint_test.c if (!pci_endpoint_test_request_irq(test)) test 580 drivers/misc/pci_endpoint_test.c pci_endpoint_test_free_irq_vectors(test); test 589 drivers/misc/pci_endpoint_test.c struct pci_endpoint_test *test = to_endpoint_test(file->private_data); test 590 drivers/misc/pci_endpoint_test.c struct pci_dev *pdev = test->pdev; test 592 drivers/misc/pci_endpoint_test.c mutex_lock(&test->mutex); test 600 drivers/misc/pci_endpoint_test.c ret = pci_endpoint_test_bar(test, bar); test 603 drivers/misc/pci_endpoint_test.c ret = pci_endpoint_test_legacy_irq(test); test 607 drivers/misc/pci_endpoint_test.c ret = pci_endpoint_test_msi_irq(test, arg, cmd == PCITEST_MSIX); test 610 drivers/misc/pci_endpoint_test.c ret = pci_endpoint_test_write(test, arg); test 613 drivers/misc/pci_endpoint_test.c ret = pci_endpoint_test_read(test, arg); test 616 drivers/misc/pci_endpoint_test.c ret = pci_endpoint_test_copy(test, arg); test 619 drivers/misc/pci_endpoint_test.c ret = pci_endpoint_test_set_irq(test, arg); test 627 drivers/misc/pci_endpoint_test.c mutex_unlock(&test->mutex); test 645 drivers/misc/pci_endpoint_test.c struct pci_endpoint_test *test; test 653 drivers/misc/pci_endpoint_test.c test = devm_kzalloc(dev, sizeof(*test), GFP_KERNEL); test 654 drivers/misc/pci_endpoint_test.c if (!test) test 657 drivers/misc/pci_endpoint_test.c test->test_reg_bar = 0; test 658 drivers/misc/pci_endpoint_test.c test->alignment = 0; test 659 drivers/misc/pci_endpoint_test.c test->pdev = pdev; test 660 drivers/misc/pci_endpoint_test.c test->irq_type = IRQ_TYPE_UNDEFINED; test 668 drivers/misc/pci_endpoint_test.c test->test_reg_bar = test_reg_bar; test 669 drivers/misc/pci_endpoint_test.c test->alignment = data->alignment; test 673 drivers/misc/pci_endpoint_test.c init_completion(&test->irq_raised); test 674 drivers/misc/pci_endpoint_test.c mutex_init(&test->mutex); test 690 drivers/misc/pci_endpoint_test.c if (!pci_endpoint_test_alloc_irq_vectors(test, irq_type)) test 693 drivers/misc/pci_endpoint_test.c if (!pci_endpoint_test_request_irq(test)) test 703 drivers/misc/pci_endpoint_test.c test->bar[bar] = base; test 707 drivers/misc/pci_endpoint_test.c test->base = test->bar[test_reg_bar]; test 708 drivers/misc/pci_endpoint_test.c if (!test->base) { test 715 drivers/misc/pci_endpoint_test.c pci_set_drvdata(pdev, test); test 725 drivers/misc/pci_endpoint_test.c misc_device = &test->miscdev; test 750 drivers/misc/pci_endpoint_test.c if (test->bar[bar]) test 751 drivers/misc/pci_endpoint_test.c pci_iounmap(pdev, test->bar[bar]); test 753 drivers/misc/pci_endpoint_test.c pci_endpoint_test_release_irq(test); test 756 drivers/misc/pci_endpoint_test.c pci_endpoint_test_free_irq_vectors(test); test 769 drivers/misc/pci_endpoint_test.c struct pci_endpoint_test *test = pci_get_drvdata(pdev); test 770 drivers/misc/pci_endpoint_test.c struct miscdevice *misc_device = &test->miscdev; test 777 drivers/misc/pci_endpoint_test.c misc_deregister(&test->miscdev); test 781 drivers/misc/pci_endpoint_test.c if (test->bar[bar]) test 782 drivers/misc/pci_endpoint_test.c pci_iounmap(pdev, test->bar[bar]); test 785 drivers/misc/pci_endpoint_test.c pci_endpoint_test_release_irq(test); test 786 drivers/misc/pci_endpoint_test.c pci_endpoint_test_free_irq_vectors(test); test 177 drivers/mmc/core/mmc_test.c static int mmc_test_set_blksize(struct mmc_test_card *test, unsigned size) test 179 drivers/mmc/core/mmc_test.c return mmc_set_blocklen(test->card, size); test 188 drivers/mmc/core/mmc_test.c static void mmc_test_prepare_sbc(struct mmc_test_card *test, test 191 drivers/mmc/core/mmc_test.c struct mmc_card *card = test->card; test 208 drivers/mmc/core/mmc_test.c static void mmc_test_prepare_mrq(struct mmc_test_card *test, test 224 drivers/mmc/core/mmc_test.c if (!mmc_card_blockaddr(test->card)) test 243 drivers/mmc/core/mmc_test.c mmc_test_prepare_sbc(test, mrq, blocks); test 245 drivers/mmc/core/mmc_test.c mmc_set_data_timeout(mrq->data, test->card); test 257 drivers/mmc/core/mmc_test.c static int mmc_test_wait_busy(struct mmc_test_card *test) test 267 drivers/mmc/core/mmc_test.c cmd.arg = test->card->rca << 16; test 270 drivers/mmc/core/mmc_test.c ret = mmc_wait_for_cmd(test->card->host, &cmd, 0); test 276 drivers/mmc/core/mmc_test.c if (test->card->host->caps & MMC_CAP_WAIT_WHILE_BUSY) test 278 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); test 288 drivers/mmc/core/mmc_test.c static int mmc_test_buffer_transfer(struct mmc_test_card *test, test 304 drivers/mmc/core/mmc_test.c mmc_test_prepare_mrq(test, &mrq, &sg, 1, addr, 1, blksz, write); test 306 drivers/mmc/core/mmc_test.c mmc_wait_for_req(test->card->host, &mrq); test 313 drivers/mmc/core/mmc_test.c return mmc_test_wait_busy(test); test 532 drivers/mmc/core/mmc_test.c static void mmc_test_save_transfer_result(struct mmc_test_card *test, test 538 drivers/mmc/core/mmc_test.c if (!test->gr) test 551 drivers/mmc/core/mmc_test.c list_add_tail(&tr->link, &test->gr->tr_lst); test 557 drivers/mmc/core/mmc_test.c static void mmc_test_print_rate(struct mmc_test_card *test, uint64_t bytes, test 570 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), sectors, sectors >> 1, test 575 drivers/mmc/core/mmc_test.c mmc_test_save_transfer_result(test, 1, sectors, ts, rate, iops); test 581 drivers/mmc/core/mmc_test.c static void mmc_test_print_avg_rate(struct mmc_test_card *test, uint64_t bytes, test 597 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), count, sectors, count, test 601 drivers/mmc/core/mmc_test.c test->area.sg_len); test 603 drivers/mmc/core/mmc_test.c mmc_test_save_transfer_result(test, count, sectors, ts, rate, iops); test 625 drivers/mmc/core/mmc_test.c static int __mmc_test_prepare(struct mmc_test_card *test, int write) test 629 drivers/mmc/core/mmc_test.c ret = mmc_test_set_blksize(test, 512); test 634 drivers/mmc/core/mmc_test.c memset(test->buffer, 0xDF, 512); test 637 drivers/mmc/core/mmc_test.c test->buffer[i] = i; test 641 drivers/mmc/core/mmc_test.c ret = mmc_test_buffer_transfer(test, test->buffer, i, 512, 1); test 649 drivers/mmc/core/mmc_test.c static int mmc_test_prepare_write(struct mmc_test_card *test) test 651 drivers/mmc/core/mmc_test.c return __mmc_test_prepare(test, 1); test 654 drivers/mmc/core/mmc_test.c static int mmc_test_prepare_read(struct mmc_test_card *test) test 656 drivers/mmc/core/mmc_test.c return __mmc_test_prepare(test, 0); test 659 drivers/mmc/core/mmc_test.c static int mmc_test_cleanup(struct mmc_test_card *test) test 663 drivers/mmc/core/mmc_test.c ret = mmc_test_set_blksize(test, 512); test 667 drivers/mmc/core/mmc_test.c memset(test->buffer, 0, 512); test 670 drivers/mmc/core/mmc_test.c ret = mmc_test_buffer_transfer(test, test->buffer, i, 512, 1); test 685 drivers/mmc/core/mmc_test.c static void mmc_test_prepare_broken_mrq(struct mmc_test_card *test, test 697 drivers/mmc/core/mmc_test.c mrq->cmd->arg = test->card->rca << 16; test 704 drivers/mmc/core/mmc_test.c static int mmc_test_check_result(struct mmc_test_card *test, test 735 drivers/mmc/core/mmc_test.c static int mmc_test_check_broken_result(struct mmc_test_card *test, test 803 drivers/mmc/core/mmc_test.c static int mmc_test_start_areq(struct mmc_test_card *test, test 807 drivers/mmc/core/mmc_test.c struct mmc_host *host = test->card->host; test 818 drivers/mmc/core/mmc_test.c err = mmc_test_wait_busy(test); test 820 drivers/mmc/core/mmc_test.c err = mmc_test_check_result(test, prev_mrq); test 838 drivers/mmc/core/mmc_test.c static int mmc_test_nonblock_transfer(struct mmc_test_card *test, test 860 drivers/mmc/core/mmc_test.c mmc_test_prepare_mrq(test, mrq, sg, sg_len, dev_addr, blocks, test 862 drivers/mmc/core/mmc_test.c ret = mmc_test_start_areq(test, mrq, prev_mrq); test 873 drivers/mmc/core/mmc_test.c ret = mmc_test_start_areq(test, NULL, prev_mrq); test 883 drivers/mmc/core/mmc_test.c static int mmc_test_simple_transfer(struct mmc_test_card *test, test 896 drivers/mmc/core/mmc_test.c mmc_test_prepare_mrq(test, &mrq, sg, sg_len, dev_addr, test 899 drivers/mmc/core/mmc_test.c mmc_wait_for_req(test->card->host, &mrq); test 901 drivers/mmc/core/mmc_test.c mmc_test_wait_busy(test); test 903 drivers/mmc/core/mmc_test.c return mmc_test_check_result(test, &mrq); test 909 drivers/mmc/core/mmc_test.c static int mmc_test_broken_transfer(struct mmc_test_card *test, test 923 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer, blocks * blksz); test 925 drivers/mmc/core/mmc_test.c mmc_test_prepare_mrq(test, &mrq, &sg, 1, 0, blocks, blksz, write); test 926 drivers/mmc/core/mmc_test.c mmc_test_prepare_broken_mrq(test, &mrq, write); test 928 drivers/mmc/core/mmc_test.c mmc_wait_for_req(test->card->host, &mrq); test 930 drivers/mmc/core/mmc_test.c mmc_test_wait_busy(test); test 932 drivers/mmc/core/mmc_test.c return mmc_test_check_broken_result(test, &mrq); test 940 drivers/mmc/core/mmc_test.c static int mmc_test_transfer(struct mmc_test_card *test, test 949 drivers/mmc/core/mmc_test.c test->scratch[i] = i; test 951 drivers/mmc/core/mmc_test.c memset(test->scratch, 0, BUFFER_SIZE); test 954 drivers/mmc/core/mmc_test.c sg_copy_from_buffer(sg, sg_len, test->scratch, BUFFER_SIZE); test 957 drivers/mmc/core/mmc_test.c ret = mmc_test_set_blksize(test, blksz); test 961 drivers/mmc/core/mmc_test.c ret = mmc_test_simple_transfer(test, sg, sg_len, dev_addr, test 969 drivers/mmc/core/mmc_test.c ret = mmc_test_set_blksize(test, 512); test 980 drivers/mmc/core/mmc_test.c memset(test->buffer, 0, sectors * 512); test 983 drivers/mmc/core/mmc_test.c ret = mmc_test_buffer_transfer(test, test 984 drivers/mmc/core/mmc_test.c test->buffer + i * 512, test 991 drivers/mmc/core/mmc_test.c if (test->buffer[i] != (u8)i) test 996 drivers/mmc/core/mmc_test.c if (test->buffer[i] != 0xDF) test 1001 drivers/mmc/core/mmc_test.c sg_copy_to_buffer(sg, sg_len, test->scratch, BUFFER_SIZE); test 1004 drivers/mmc/core/mmc_test.c if (test->scratch[i] != (u8)i) test 1024 drivers/mmc/core/mmc_test.c static int mmc_test_basic_write(struct mmc_test_card *test) test 1029 drivers/mmc/core/mmc_test.c ret = mmc_test_set_blksize(test, 512); test 1033 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer, 512); test 1035 drivers/mmc/core/mmc_test.c return mmc_test_simple_transfer(test, &sg, 1, 0, 1, 512, 1); test 1038 drivers/mmc/core/mmc_test.c static int mmc_test_basic_read(struct mmc_test_card *test) test 1043 drivers/mmc/core/mmc_test.c ret = mmc_test_set_blksize(test, 512); test 1047 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer, 512); test 1049 drivers/mmc/core/mmc_test.c return mmc_test_simple_transfer(test, &sg, 1, 0, 1, 512, 0); test 1052 drivers/mmc/core/mmc_test.c static int mmc_test_verify_write(struct mmc_test_card *test) test 1056 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer, 512); test 1058 drivers/mmc/core/mmc_test.c return mmc_test_transfer(test, &sg, 1, 0, 1, 512, 1); test 1061 drivers/mmc/core/mmc_test.c static int mmc_test_verify_read(struct mmc_test_card *test) test 1065 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer, 512); test 1067 drivers/mmc/core/mmc_test.c return mmc_test_transfer(test, &sg, 1, 0, 1, 512, 0); test 1070 drivers/mmc/core/mmc_test.c static int mmc_test_multi_write(struct mmc_test_card *test) test 1075 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) test 1079 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_req_size); test 1080 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_seg_size); test 1081 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_blk_count * 512); test 1086 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer, size); test 1088 drivers/mmc/core/mmc_test.c return mmc_test_transfer(test, &sg, 1, 0, size / 512, 512, 1); test 1091 drivers/mmc/core/mmc_test.c static int mmc_test_multi_read(struct mmc_test_card *test) test 1096 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) test 1100 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_req_size); test 1101 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_seg_size); test 1102 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_blk_count * 512); test 1107 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer, size); test 1109 drivers/mmc/core/mmc_test.c return mmc_test_transfer(test, &sg, 1, 0, size / 512, 512, 0); test 1112 drivers/mmc/core/mmc_test.c static int mmc_test_pow2_write(struct mmc_test_card *test) test 1117 drivers/mmc/core/mmc_test.c if (!test->card->csd.write_partial) test 1121 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer, i); test 1122 drivers/mmc/core/mmc_test.c ret = mmc_test_transfer(test, &sg, 1, 0, 1, i, 1); test 1130 drivers/mmc/core/mmc_test.c static int mmc_test_pow2_read(struct mmc_test_card *test) test 1135 drivers/mmc/core/mmc_test.c if (!test->card->csd.read_partial) test 1139 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer, i); test 1140 drivers/mmc/core/mmc_test.c ret = mmc_test_transfer(test, &sg, 1, 0, 1, i, 0); test 1148 drivers/mmc/core/mmc_test.c static int mmc_test_weird_write(struct mmc_test_card *test) test 1153 drivers/mmc/core/mmc_test.c if (!test->card->csd.write_partial) test 1157 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer, i); test 1158 drivers/mmc/core/mmc_test.c ret = mmc_test_transfer(test, &sg, 1, 0, 1, i, 1); test 1166 drivers/mmc/core/mmc_test.c static int mmc_test_weird_read(struct mmc_test_card *test) test 1171 drivers/mmc/core/mmc_test.c if (!test->card->csd.read_partial) test 1175 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer, i); test 1176 drivers/mmc/core/mmc_test.c ret = mmc_test_transfer(test, &sg, 1, 0, 1, i, 0); test 1184 drivers/mmc/core/mmc_test.c static int mmc_test_align_write(struct mmc_test_card *test) test 1190 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer + i, 512); test 1191 drivers/mmc/core/mmc_test.c ret = mmc_test_transfer(test, &sg, 1, 0, 1, 512, 1); test 1199 drivers/mmc/core/mmc_test.c static int mmc_test_align_read(struct mmc_test_card *test) test 1205 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer + i, 512); test 1206 drivers/mmc/core/mmc_test.c ret = mmc_test_transfer(test, &sg, 1, 0, 1, 512, 0); test 1214 drivers/mmc/core/mmc_test.c static int mmc_test_align_multi_write(struct mmc_test_card *test) test 1220 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) test 1224 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_req_size); test 1225 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_seg_size); test 1226 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_blk_count * 512); test 1232 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer + i, size); test 1233 drivers/mmc/core/mmc_test.c ret = mmc_test_transfer(test, &sg, 1, 0, size / 512, 512, 1); test 1241 drivers/mmc/core/mmc_test.c static int mmc_test_align_multi_read(struct mmc_test_card *test) test 1247 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) test 1251 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_req_size); test 1252 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_seg_size); test 1253 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_blk_count * 512); test 1259 drivers/mmc/core/mmc_test.c sg_init_one(&sg, test->buffer + i, size); test 1260 drivers/mmc/core/mmc_test.c ret = mmc_test_transfer(test, &sg, 1, 0, size / 512, 512, 0); test 1268 drivers/mmc/core/mmc_test.c static int mmc_test_xfersize_write(struct mmc_test_card *test) test 1272 drivers/mmc/core/mmc_test.c ret = mmc_test_set_blksize(test, 512); test 1276 drivers/mmc/core/mmc_test.c return mmc_test_broken_transfer(test, 1, 512, 1); test 1279 drivers/mmc/core/mmc_test.c static int mmc_test_xfersize_read(struct mmc_test_card *test) test 1283 drivers/mmc/core/mmc_test.c ret = mmc_test_set_blksize(test, 512); test 1287 drivers/mmc/core/mmc_test.c return mmc_test_broken_transfer(test, 1, 512, 0); test 1290 drivers/mmc/core/mmc_test.c static int mmc_test_multi_xfersize_write(struct mmc_test_card *test) test 1294 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) test 1297 drivers/mmc/core/mmc_test.c ret = mmc_test_set_blksize(test, 512); test 1301 drivers/mmc/core/mmc_test.c return mmc_test_broken_transfer(test, 2, 512, 1); test 1304 drivers/mmc/core/mmc_test.c static int mmc_test_multi_xfersize_read(struct mmc_test_card *test) test 1308 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) test 1311 drivers/mmc/core/mmc_test.c ret = mmc_test_set_blksize(test, 512); test 1315 drivers/mmc/core/mmc_test.c return mmc_test_broken_transfer(test, 2, 512, 0); test 1320 drivers/mmc/core/mmc_test.c static int mmc_test_write_high(struct mmc_test_card *test) test 1325 drivers/mmc/core/mmc_test.c sg_set_page(&sg, test->highmem, 512, 0); test 1327 drivers/mmc/core/mmc_test.c return mmc_test_transfer(test, &sg, 1, 0, 1, 512, 1); test 1330 drivers/mmc/core/mmc_test.c static int mmc_test_read_high(struct mmc_test_card *test) test 1335 drivers/mmc/core/mmc_test.c sg_set_page(&sg, test->highmem, 512, 0); test 1337 drivers/mmc/core/mmc_test.c return mmc_test_transfer(test, &sg, 1, 0, 1, 512, 0); test 1340 drivers/mmc/core/mmc_test.c static int mmc_test_multi_write_high(struct mmc_test_card *test) test 1345 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) test 1349 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_req_size); test 1350 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_seg_size); test 1351 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_blk_count * 512); test 1357 drivers/mmc/core/mmc_test.c sg_set_page(&sg, test->highmem, size, 0); test 1359 drivers/mmc/core/mmc_test.c return mmc_test_transfer(test, &sg, 1, 0, size / 512, 512, 1); test 1362 drivers/mmc/core/mmc_test.c static int mmc_test_multi_read_high(struct mmc_test_card *test) test 1367 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) test 1371 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_req_size); test 1372 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_seg_size); test 1373 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_blk_count * 512); test 1379 drivers/mmc/core/mmc_test.c sg_set_page(&sg, test->highmem, size, 0); test 1381 drivers/mmc/core/mmc_test.c return mmc_test_transfer(test, &sg, 1, 0, size / 512, 512, 0); test 1386 drivers/mmc/core/mmc_test.c static int mmc_test_no_highmem(struct mmc_test_card *test) test 1389 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); test 1398 drivers/mmc/core/mmc_test.c static int mmc_test_area_map(struct mmc_test_card *test, unsigned long sz, test 1401 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1416 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); test 1423 drivers/mmc/core/mmc_test.c static int mmc_test_area_transfer(struct mmc_test_card *test, test 1426 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1428 drivers/mmc/core/mmc_test.c return mmc_test_simple_transfer(test, t->sg, t->sg_len, dev_addr, test 1435 drivers/mmc/core/mmc_test.c static int mmc_test_area_io_seq(struct mmc_test_card *test, unsigned long sz, test 1443 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1450 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1461 drivers/mmc/core/mmc_test.c ret = mmc_test_area_map(test, sz, max_scatter, min_sg_len); test 1468 drivers/mmc/core/mmc_test.c ret = mmc_test_nonblock_transfer(test, t->sg, t->sg_len, test 1472 drivers/mmc/core/mmc_test.c ret = mmc_test_area_transfer(test, dev_addr, write); test 1483 drivers/mmc/core/mmc_test.c mmc_test_print_avg_rate(test, sz, count, &ts1, &ts2); test 1488 drivers/mmc/core/mmc_test.c static int mmc_test_area_io(struct mmc_test_card *test, unsigned long sz, test 1492 drivers/mmc/core/mmc_test.c return mmc_test_area_io_seq(test, sz, dev_addr, write, max_scatter, test 1499 drivers/mmc/core/mmc_test.c static int mmc_test_area_fill(struct mmc_test_card *test) test 1501 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1503 drivers/mmc/core/mmc_test.c return mmc_test_area_io(test, t->max_tfr, t->dev_addr, 1, 0, 0); test 1509 drivers/mmc/core/mmc_test.c static int mmc_test_area_erase(struct mmc_test_card *test) test 1511 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1513 drivers/mmc/core/mmc_test.c if (!mmc_can_erase(test->card)) test 1516 drivers/mmc/core/mmc_test.c return mmc_erase(test->card, t->dev_addr, t->max_sz >> 9, test 1523 drivers/mmc/core/mmc_test.c static int mmc_test_area_cleanup(struct mmc_test_card *test) test 1525 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1540 drivers/mmc/core/mmc_test.c static int mmc_test_area_init(struct mmc_test_card *test, int erase, int fill) test 1542 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1546 drivers/mmc/core/mmc_test.c ret = mmc_test_set_blksize(test, 512); test 1551 drivers/mmc/core/mmc_test.c sz = (unsigned long)test->card->pref_erase << 9; test 1558 drivers/mmc/core/mmc_test.c t->max_segs = test->card->host->max_segs; test 1559 drivers/mmc/core/mmc_test.c t->max_seg_sz = test->card->host->max_seg_size; test 1563 drivers/mmc/core/mmc_test.c if (t->max_tfr >> 9 > test->card->host->max_blk_count) test 1564 drivers/mmc/core/mmc_test.c t->max_tfr = test->card->host->max_blk_count << 9; test 1565 drivers/mmc/core/mmc_test.c if (t->max_tfr > test->card->host->max_req_size) test 1566 drivers/mmc/core/mmc_test.c t->max_tfr = test->card->host->max_req_size; test 1587 drivers/mmc/core/mmc_test.c t->dev_addr = mmc_test_capacity(test->card) / 2; test 1591 drivers/mmc/core/mmc_test.c ret = mmc_test_area_erase(test); test 1597 drivers/mmc/core/mmc_test.c ret = mmc_test_area_fill(test); test 1605 drivers/mmc/core/mmc_test.c mmc_test_area_cleanup(test); test 1612 drivers/mmc/core/mmc_test.c static int mmc_test_area_prepare(struct mmc_test_card *test) test 1614 drivers/mmc/core/mmc_test.c return mmc_test_area_init(test, 0, 0); test 1620 drivers/mmc/core/mmc_test.c static int mmc_test_area_prepare_erase(struct mmc_test_card *test) test 1622 drivers/mmc/core/mmc_test.c return mmc_test_area_init(test, 1, 0); test 1628 drivers/mmc/core/mmc_test.c static int mmc_test_area_prepare_fill(struct mmc_test_card *test) test 1630 drivers/mmc/core/mmc_test.c return mmc_test_area_init(test, 1, 1); test 1641 drivers/mmc/core/mmc_test.c static int mmc_test_best_performance(struct mmc_test_card *test, int write, test 1644 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1646 drivers/mmc/core/mmc_test.c return mmc_test_area_io(test, t->max_tfr, t->dev_addr, write, test 1653 drivers/mmc/core/mmc_test.c static int mmc_test_best_read_performance(struct mmc_test_card *test) test 1655 drivers/mmc/core/mmc_test.c return mmc_test_best_performance(test, 0, 0); test 1661 drivers/mmc/core/mmc_test.c static int mmc_test_best_write_performance(struct mmc_test_card *test) test 1663 drivers/mmc/core/mmc_test.c return mmc_test_best_performance(test, 1, 0); test 1669 drivers/mmc/core/mmc_test.c static int mmc_test_best_read_perf_max_scatter(struct mmc_test_card *test) test 1671 drivers/mmc/core/mmc_test.c return mmc_test_best_performance(test, 0, 1); test 1677 drivers/mmc/core/mmc_test.c static int mmc_test_best_write_perf_max_scatter(struct mmc_test_card *test) test 1679 drivers/mmc/core/mmc_test.c return mmc_test_best_performance(test, 1, 1); test 1685 drivers/mmc/core/mmc_test.c static int mmc_test_profile_read_perf(struct mmc_test_card *test) test 1687 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1694 drivers/mmc/core/mmc_test.c ret = mmc_test_area_io(test, sz, dev_addr, 0, 0, 1); test 1700 drivers/mmc/core/mmc_test.c return mmc_test_area_io(test, sz, dev_addr, 0, 0, 1); test 1706 drivers/mmc/core/mmc_test.c static int mmc_test_profile_write_perf(struct mmc_test_card *test) test 1708 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1713 drivers/mmc/core/mmc_test.c ret = mmc_test_area_erase(test); test 1718 drivers/mmc/core/mmc_test.c ret = mmc_test_area_io(test, sz, dev_addr, 1, 0, 1); test 1722 drivers/mmc/core/mmc_test.c ret = mmc_test_area_erase(test); test 1727 drivers/mmc/core/mmc_test.c return mmc_test_area_io(test, sz, dev_addr, 1, 0, 1); test 1733 drivers/mmc/core/mmc_test.c static int mmc_test_profile_trim_perf(struct mmc_test_card *test) test 1735 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1741 drivers/mmc/core/mmc_test.c if (!mmc_can_trim(test->card)) test 1744 drivers/mmc/core/mmc_test.c if (!mmc_can_erase(test->card)) test 1750 drivers/mmc/core/mmc_test.c ret = mmc_erase(test->card, dev_addr, sz >> 9, MMC_TRIM_ARG); test 1754 drivers/mmc/core/mmc_test.c mmc_test_print_rate(test, sz, &ts1, &ts2); test 1758 drivers/mmc/core/mmc_test.c ret = mmc_erase(test->card, dev_addr, sz >> 9, MMC_TRIM_ARG); test 1762 drivers/mmc/core/mmc_test.c mmc_test_print_rate(test, sz, &ts1, &ts2); test 1766 drivers/mmc/core/mmc_test.c static int mmc_test_seq_read_perf(struct mmc_test_card *test, unsigned long sz) test 1768 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1777 drivers/mmc/core/mmc_test.c ret = mmc_test_area_io(test, sz, dev_addr, 0, 0, 0); test 1783 drivers/mmc/core/mmc_test.c mmc_test_print_avg_rate(test, sz, cnt, &ts1, &ts2); test 1790 drivers/mmc/core/mmc_test.c static int mmc_test_profile_seq_read_perf(struct mmc_test_card *test) test 1792 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1797 drivers/mmc/core/mmc_test.c ret = mmc_test_seq_read_perf(test, sz); test 1802 drivers/mmc/core/mmc_test.c return mmc_test_seq_read_perf(test, sz); test 1805 drivers/mmc/core/mmc_test.c static int mmc_test_seq_write_perf(struct mmc_test_card *test, unsigned long sz) test 1807 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1812 drivers/mmc/core/mmc_test.c ret = mmc_test_area_erase(test); test 1819 drivers/mmc/core/mmc_test.c ret = mmc_test_area_io(test, sz, dev_addr, 1, 0, 0); test 1825 drivers/mmc/core/mmc_test.c mmc_test_print_avg_rate(test, sz, cnt, &ts1, &ts2); test 1832 drivers/mmc/core/mmc_test.c static int mmc_test_profile_seq_write_perf(struct mmc_test_card *test) test 1834 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1839 drivers/mmc/core/mmc_test.c ret = mmc_test_seq_write_perf(test, sz); test 1844 drivers/mmc/core/mmc_test.c return mmc_test_seq_write_perf(test, sz); test 1850 drivers/mmc/core/mmc_test.c static int mmc_test_profile_seq_trim_perf(struct mmc_test_card *test) test 1852 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1858 drivers/mmc/core/mmc_test.c if (!mmc_can_trim(test->card)) test 1861 drivers/mmc/core/mmc_test.c if (!mmc_can_erase(test->card)) test 1865 drivers/mmc/core/mmc_test.c ret = mmc_test_area_erase(test); test 1868 drivers/mmc/core/mmc_test.c ret = mmc_test_area_fill(test); test 1875 drivers/mmc/core/mmc_test.c ret = mmc_erase(test->card, dev_addr, sz >> 9, test 1882 drivers/mmc/core/mmc_test.c mmc_test_print_avg_rate(test, sz, cnt, &ts1, &ts2); test 1898 drivers/mmc/core/mmc_test.c static int mmc_test_rnd_perf(struct mmc_test_card *test, int write, int print, test 1908 drivers/mmc/core/mmc_test.c rnd_addr = mmc_test_capacity(test->card) / 4; test 1909 drivers/mmc/core/mmc_test.c range1 = rnd_addr / test->card->pref_erase; test 1922 drivers/mmc/core/mmc_test.c dev_addr = rnd_addr + test->card->pref_erase * ea + test 1924 drivers/mmc/core/mmc_test.c ret = mmc_test_area_io(test, sz, dev_addr, write, 0, 0); test 1929 drivers/mmc/core/mmc_test.c mmc_test_print_avg_rate(test, sz, cnt, &ts1, &ts2); test 1933 drivers/mmc/core/mmc_test.c static int mmc_test_random_perf(struct mmc_test_card *test, int write) test 1935 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 1948 drivers/mmc/core/mmc_test.c ret = mmc_test_rnd_perf(test, write, 0, sz); test 1953 drivers/mmc/core/mmc_test.c ret = mmc_test_rnd_perf(test, write, 1, sz); test 1960 drivers/mmc/core/mmc_test.c ret = mmc_test_rnd_perf(test, write, 0, sz); test 1965 drivers/mmc/core/mmc_test.c return mmc_test_rnd_perf(test, write, 1, sz); test 1971 drivers/mmc/core/mmc_test.c static int mmc_test_random_read_perf(struct mmc_test_card *test) test 1973 drivers/mmc/core/mmc_test.c return mmc_test_random_perf(test, 0); test 1979 drivers/mmc/core/mmc_test.c static int mmc_test_random_write_perf(struct mmc_test_card *test) test 1981 drivers/mmc/core/mmc_test.c return mmc_test_random_perf(test, 1); test 1984 drivers/mmc/core/mmc_test.c static int mmc_test_seq_perf(struct mmc_test_card *test, int write, test 1987 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 2010 drivers/mmc/core/mmc_test.c dev_addr = mmc_test_capacity(test->card) / 4; test 2018 drivers/mmc/core/mmc_test.c ret = mmc_test_area_io(test, sz, dev_addr, write, test 2026 drivers/mmc/core/mmc_test.c mmc_test_print_avg_rate(test, sz, cnt, &ts1, &ts2); test 2031 drivers/mmc/core/mmc_test.c static int mmc_test_large_seq_perf(struct mmc_test_card *test, int write) test 2036 drivers/mmc/core/mmc_test.c ret = mmc_test_seq_perf(test, write, 10 * 1024 * 1024, 1); test 2041 drivers/mmc/core/mmc_test.c ret = mmc_test_seq_perf(test, write, 100 * 1024 * 1024, 1); test 2046 drivers/mmc/core/mmc_test.c ret = mmc_test_seq_perf(test, write, 1000 * 1024 * 1024, 1); test 2057 drivers/mmc/core/mmc_test.c static int mmc_test_large_seq_read_perf(struct mmc_test_card *test) test 2059 drivers/mmc/core/mmc_test.c return mmc_test_large_seq_perf(test, 0); test 2065 drivers/mmc/core/mmc_test.c static int mmc_test_large_seq_write_perf(struct mmc_test_card *test) test 2067 drivers/mmc/core/mmc_test.c return mmc_test_large_seq_perf(test, 1); test 2070 drivers/mmc/core/mmc_test.c static int mmc_test_rw_multiple(struct mmc_test_card *test, test 2076 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 2080 drivers/mmc/core/mmc_test.c if (size > mmc_test_capacity(test->card) / 2 * 512) test 2081 drivers/mmc/core/mmc_test.c size = mmc_test_capacity(test->card) / 2 * 512; test 2084 drivers/mmc/core/mmc_test.c dev_addr = mmc_test_capacity(test->card) / 4; test 2096 drivers/mmc/core/mmc_test.c if (mmc_can_erase(test->card) && test 2098 drivers/mmc/core/mmc_test.c ret = mmc_erase(test->card, dev_addr, test 2101 drivers/mmc/core/mmc_test.c ret = mmc_erase(test->card, dev_addr, test 2108 drivers/mmc/core/mmc_test.c ret = mmc_test_area_io_seq(test, reqsize, dev_addr, test 2120 drivers/mmc/core/mmc_test.c static int mmc_test_rw_multiple_size(struct mmc_test_card *test, test 2125 drivers/mmc/core/mmc_test.c void *pre_req = test->card->host->ops->pre_req; test 2126 drivers/mmc/core/mmc_test.c void *post_req = test->card->host->ops->post_req; test 2135 drivers/mmc/core/mmc_test.c ret = mmc_test_rw_multiple(test, rw, rw->bs[i], rw->size, 0); test 2142 drivers/mmc/core/mmc_test.c static int mmc_test_rw_multiple_sg_len(struct mmc_test_card *test, test 2149 drivers/mmc/core/mmc_test.c ret = mmc_test_rw_multiple(test, rw, 512 * 1024, rw->size, test 2160 drivers/mmc/core/mmc_test.c static int mmc_test_profile_mult_write_blocking_perf(struct mmc_test_card *test) test 2173 drivers/mmc/core/mmc_test.c return mmc_test_rw_multiple_size(test, &test_data); test 2179 drivers/mmc/core/mmc_test.c static int mmc_test_profile_mult_write_nonblock_perf(struct mmc_test_card *test) test 2192 drivers/mmc/core/mmc_test.c return mmc_test_rw_multiple_size(test, &test_data); test 2198 drivers/mmc/core/mmc_test.c static int mmc_test_profile_mult_read_blocking_perf(struct mmc_test_card *test) test 2211 drivers/mmc/core/mmc_test.c return mmc_test_rw_multiple_size(test, &test_data); test 2217 drivers/mmc/core/mmc_test.c static int mmc_test_profile_mult_read_nonblock_perf(struct mmc_test_card *test) test 2230 drivers/mmc/core/mmc_test.c return mmc_test_rw_multiple_size(test, &test_data); test 2236 drivers/mmc/core/mmc_test.c static int mmc_test_profile_sglen_wr_blocking_perf(struct mmc_test_card *test) test 2249 drivers/mmc/core/mmc_test.c return mmc_test_rw_multiple_sg_len(test, &test_data); test 2255 drivers/mmc/core/mmc_test.c static int mmc_test_profile_sglen_wr_nonblock_perf(struct mmc_test_card *test) test 2268 drivers/mmc/core/mmc_test.c return mmc_test_rw_multiple_sg_len(test, &test_data); test 2274 drivers/mmc/core/mmc_test.c static int mmc_test_profile_sglen_r_blocking_perf(struct mmc_test_card *test) test 2287 drivers/mmc/core/mmc_test.c return mmc_test_rw_multiple_sg_len(test, &test_data); test 2293 drivers/mmc/core/mmc_test.c static int mmc_test_profile_sglen_r_nonblock_perf(struct mmc_test_card *test) test 2306 drivers/mmc/core/mmc_test.c return mmc_test_rw_multiple_sg_len(test, &test_data); test 2312 drivers/mmc/core/mmc_test.c static int mmc_test_reset(struct mmc_test_card *test) test 2314 drivers/mmc/core/mmc_test.c struct mmc_card *card = test->card; test 2334 drivers/mmc/core/mmc_test.c static int mmc_test_send_status(struct mmc_test_card *test, test 2340 drivers/mmc/core/mmc_test.c if (!mmc_host_is_spi(test->card->host)) test 2341 drivers/mmc/core/mmc_test.c cmd->arg = test->card->rca << 16; test 2344 drivers/mmc/core/mmc_test.c return mmc_wait_for_cmd(test->card->host, cmd, 0); test 2347 drivers/mmc/core/mmc_test.c static int mmc_test_ongoing_transfer(struct mmc_test_card *test, test 2352 drivers/mmc/core/mmc_test.c struct mmc_host *host = test->card->host; test 2353 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 2369 drivers/mmc/core/mmc_test.c mmc_test_prepare_mrq(test, mrq, t->sg, t->sg_len, dev_addr, t->blocks, test 2381 drivers/mmc/core/mmc_test.c ret = mmc_test_start_areq(test, mrq, NULL); test 2393 drivers/mmc/core/mmc_test.c cmd_ret = mmc_test_send_status(test, &rq->status); test 2417 drivers/mmc/core/mmc_test.c ret = mmc_test_start_areq(test, NULL, mrq); test 2419 drivers/mmc/core/mmc_test.c mmc_wait_for_req_done(test->card->host, mrq); test 2438 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), status, cmd_ret); test 2441 drivers/mmc/core/mmc_test.c ret = mmc_test_check_result(test, mrq); test 2445 drivers/mmc/core/mmc_test.c ret = mmc_test_wait_busy(test); test 2451 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), count, t->blocks); test 2461 drivers/mmc/core/mmc_test.c static int __mmc_test_cmds_during_tfr(struct mmc_test_card *test, test 2465 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 2468 drivers/mmc/core/mmc_test.c if (!(test->card->host->caps & MMC_CAP_CMD_DURING_TFR)) test 2471 drivers/mmc/core/mmc_test.c ret = mmc_test_area_map(test, sz, 0, 0); test 2475 drivers/mmc/core/mmc_test.c ret = mmc_test_ongoing_transfer(test, t->dev_addr, use_sbc, 0, write, test 2480 drivers/mmc/core/mmc_test.c return mmc_test_ongoing_transfer(test, t->dev_addr, use_sbc, 1, write, test 2484 drivers/mmc/core/mmc_test.c static int mmc_test_cmds_during_tfr(struct mmc_test_card *test, int use_sbc, test 2487 drivers/mmc/core/mmc_test.c struct mmc_test_area *t = &test->area; test 2492 drivers/mmc/core/mmc_test.c ret = __mmc_test_cmds_during_tfr(test, sz, use_sbc, write, test 2503 drivers/mmc/core/mmc_test.c static int mmc_test_cmds_during_read(struct mmc_test_card *test) test 2505 drivers/mmc/core/mmc_test.c return mmc_test_cmds_during_tfr(test, 0, 0, 0); test 2511 drivers/mmc/core/mmc_test.c static int mmc_test_cmds_during_write(struct mmc_test_card *test) test 2513 drivers/mmc/core/mmc_test.c return mmc_test_cmds_during_tfr(test, 0, 1, 0); test 2519 drivers/mmc/core/mmc_test.c static int mmc_test_cmds_during_read_cmd23(struct mmc_test_card *test) test 2521 drivers/mmc/core/mmc_test.c return mmc_test_cmds_during_tfr(test, 1, 0, 0); test 2527 drivers/mmc/core/mmc_test.c static int mmc_test_cmds_during_write_cmd23(struct mmc_test_card *test) test 2529 drivers/mmc/core/mmc_test.c return mmc_test_cmds_during_tfr(test, 1, 1, 0); test 2535 drivers/mmc/core/mmc_test.c static int mmc_test_cmds_during_read_cmd23_nonblock(struct mmc_test_card *test) test 2537 drivers/mmc/core/mmc_test.c return mmc_test_cmds_during_tfr(test, 1, 0, 1); test 2543 drivers/mmc/core/mmc_test.c static int mmc_test_cmds_during_write_cmd23_nonblock(struct mmc_test_card *test) test 2545 drivers/mmc/core/mmc_test.c return mmc_test_cmds_during_tfr(test, 1, 1, 1); test 2923 drivers/mmc/core/mmc_test.c static void mmc_test_run(struct mmc_test_card *test, int testcase) test 2928 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), mmc_card_id(test->card)); test 2930 drivers/mmc/core/mmc_test.c mmc_claim_host(test->card->host); test 2939 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), i + 1, test 2943 drivers/mmc/core/mmc_test.c ret = mmc_test_cases[i].prepare(test); test 2946 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), test 2957 drivers/mmc/core/mmc_test.c gr->card = test->card; test 2967 drivers/mmc/core/mmc_test.c test->gr = gr; test 2970 drivers/mmc/core/mmc_test.c ret = mmc_test_cases[i].run(test); test 2974 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); test 2978 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); test 2982 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); test 2986 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); test 2990 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), ret); test 2998 drivers/mmc/core/mmc_test.c ret = mmc_test_cases[i].cleanup(test); test 3001 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), test 3007 drivers/mmc/core/mmc_test.c mmc_release_host(test->card->host); test 3010 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); test 3077 drivers/mmc/core/mmc_test.c struct mmc_test_card *test; test 3085 drivers/mmc/core/mmc_test.c test = kzalloc(sizeof(*test), GFP_KERNEL); test 3086 drivers/mmc/core/mmc_test.c if (!test) test 3095 drivers/mmc/core/mmc_test.c test->card = card; test 3097 drivers/mmc/core/mmc_test.c test->buffer = kzalloc(BUFFER_SIZE, GFP_KERNEL); test 3099 drivers/mmc/core/mmc_test.c test->highmem = alloc_pages(GFP_KERNEL | __GFP_HIGHMEM, BUFFER_ORDER); test 3103 drivers/mmc/core/mmc_test.c if (test->buffer && test->highmem) { test 3105 drivers/mmc/core/mmc_test.c if (test->buffer) { test 3108 drivers/mmc/core/mmc_test.c mmc_test_run(test, testcase); test 3113 drivers/mmc/core/mmc_test.c __free_pages(test->highmem, BUFFER_ORDER); test 3115 drivers/mmc/core/mmc_test.c kfree(test->buffer); test 3116 drivers/mmc/core/mmc_test.c kfree(test); test 878 drivers/mtd/mtdswap.c unsigned int test, i, j, patt, mtd_pages; test 894 drivers/mtd/mtdswap.c for (test = 0; test < 2; test++) { test 897 drivers/mtd/mtdswap.c patt = mtdswap_test_patt(test + i); test 913 drivers/mtd/mtdswap.c patt = mtdswap_test_patt(test + i); test 821 drivers/net/can/kvaser_pciefd.c u32 mode, test, btrn; test 847 drivers/net/can/kvaser_pciefd.c test, test & KVASER_PCIEFD_KCAN_MODE_RM, test 1087 drivers/net/can/m_can/m_can.c u32 cccr, test; test 1133 drivers/net/can/m_can/m_can.c test = m_can_read(cdev, M_CAN_TEST); test 1134 drivers/net/can/m_can/m_can.c test &= ~TEST_LBCK; test 1161 drivers/net/can/m_can/m_can.c test |= TEST_LBCK; test 1170 drivers/net/can/m_can/m_can.c m_can_write(cdev, M_CAN_TEST, test); test 955 drivers/net/ethernet/amd/pcnet32.c struct ethtool_test *test, u64 * data) test 960 drivers/net/ethernet/amd/pcnet32.c if (test->flags == ETH_TEST_FL_OFFLINE) { test 965 drivers/net/ethernet/amd/pcnet32.c test->flags |= ETH_TEST_FL_FAILED; test 3448 drivers/net/ethernet/dec/tulip/de4x5.c int test; test 3456 drivers/net/ethernet/dec/tulip/de4x5.c test = (reg ^ (pol ? ~0 : 0)) & mask; test 3458 drivers/net/ethernet/dec/tulip/de4x5.c if (test && --lp->timeout) { test 891 drivers/net/ethernet/emulex/benet/be_ethtool.c static void be_self_test(struct net_device *netdev, struct ethtool_test *test, test 900 drivers/net/ethernet/emulex/benet/be_ethtool.c test->flags |= ETH_TEST_FL_FAILED; test 909 drivers/net/ethernet/emulex/benet/be_ethtool.c if (test->flags & ETH_TEST_FL_OFFLINE) { test 911 drivers/net/ethernet/emulex/benet/be_ethtool.c test->flags |= ETH_TEST_FL_FAILED; test 914 drivers/net/ethernet/emulex/benet/be_ethtool.c test->flags |= ETH_TEST_FL_FAILED; test 916 drivers/net/ethernet/emulex/benet/be_ethtool.c if (test->flags & ETH_TEST_FL_EXTERNAL_LB) { test 919 drivers/net/ethernet/emulex/benet/be_ethtool.c test->flags |= ETH_TEST_FL_FAILED; test 920 drivers/net/ethernet/emulex/benet/be_ethtool.c test->flags |= ETH_TEST_FL_EXTERNAL_LB_DONE; test 926 drivers/net/ethernet/emulex/benet/be_ethtool.c test->flags |= ETH_TEST_FL_FAILED; test 931 drivers/net/ethernet/emulex/benet/be_ethtool.c test->flags |= ETH_TEST_FL_FAILED; test 940 drivers/net/ethernet/emulex/benet/be_ethtool.c test->flags |= ETH_TEST_FL_FAILED; test 2363 drivers/net/ethernet/freescale/ucc_geth.c u16 test; test 2671 drivers/net/ethernet/freescale/ucc_geth.c test = in_be16(&ugeth->p_tx_glbl_pram->temoder); test 2596 drivers/net/ethernet/intel/e100.c struct ethtool_test *test, u64 *data) test 2605 drivers/net/ethernet/intel/e100.c if (test->flags & ETH_TEST_FL_OFFLINE) { test 2623 drivers/net/ethernet/intel/e100.c test->flags |= data[i] ? ETH_TEST_FL_FAILED : 0; test 657 drivers/net/ethernet/intel/e1000/e1000_ethtool.c static const u32 test[] = { test 664 drivers/net/ethernet/intel/e1000/e1000_ethtool.c for (i = 0; i < ARRAY_SIZE(test); i++) { test 665 drivers/net/ethernet/intel/e1000/e1000_ethtool.c writel(write & test[i], address); test 667 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (read != (write & test[i] & mask)) { test 670 drivers/net/ethernet/intel/e1000/e1000_ethtool.c reg, read, (write & test[i] & mask)); test 772 drivers/net/ethernet/intel/e1000e/ethtool.c static const u32 test[] = { test 775 drivers/net/ethernet/intel/e1000e/ethtool.c for (pat = 0; pat < ARRAY_SIZE(test); pat++) { test 777 drivers/net/ethernet/intel/e1000e/ethtool.c (test[pat] & write)); test 779 drivers/net/ethernet/intel/e1000e/ethtool.c if (val != (test[pat] & write & mask)) { test 782 drivers/net/ethernet/intel/e1000e/ethtool.c (test[pat] & write & mask)); test 1259 drivers/net/ethernet/intel/igb/igb_ethtool.c struct igb_reg_test *test; test 1266 drivers/net/ethernet/intel/igb/igb_ethtool.c test = reg_test_i350; test 1271 drivers/net/ethernet/intel/igb/igb_ethtool.c test = reg_test_i210; test 1275 drivers/net/ethernet/intel/igb/igb_ethtool.c test = reg_test_82580; test 1279 drivers/net/ethernet/intel/igb/igb_ethtool.c test = reg_test_82576; test 1283 drivers/net/ethernet/intel/igb/igb_ethtool.c test = reg_test_82575; test 1310 drivers/net/ethernet/intel/igb/igb_ethtool.c while (test->reg) { test 1311 drivers/net/ethernet/intel/igb/igb_ethtool.c for (i = 0; i < test->array_len; i++) { test 1312 drivers/net/ethernet/intel/igb/igb_ethtool.c switch (test->test_type) { test 1314 drivers/net/ethernet/intel/igb/igb_ethtool.c REG_PATTERN_TEST(test->reg + test 1315 drivers/net/ethernet/intel/igb/igb_ethtool.c (i * test->reg_offset), test 1316 drivers/net/ethernet/intel/igb/igb_ethtool.c test->mask, test 1317 drivers/net/ethernet/intel/igb/igb_ethtool.c test->write); test 1320 drivers/net/ethernet/intel/igb/igb_ethtool.c REG_SET_AND_CHECK(test->reg + test 1321 drivers/net/ethernet/intel/igb/igb_ethtool.c (i * test->reg_offset), test 1322 drivers/net/ethernet/intel/igb/igb_ethtool.c test->mask, test 1323 drivers/net/ethernet/intel/igb/igb_ethtool.c test->write); test 1326 drivers/net/ethernet/intel/igb/igb_ethtool.c writel(test->write, test 1327 drivers/net/ethernet/intel/igb/igb_ethtool.c (adapter->hw.hw_addr + test->reg) test 1328 drivers/net/ethernet/intel/igb/igb_ethtool.c + (i * test->reg_offset)); test 1331 drivers/net/ethernet/intel/igb/igb_ethtool.c REG_PATTERN_TEST(test->reg + (i * 4), test 1332 drivers/net/ethernet/intel/igb/igb_ethtool.c test->mask, test 1333 drivers/net/ethernet/intel/igb/igb_ethtool.c test->write); test 1336 drivers/net/ethernet/intel/igb/igb_ethtool.c REG_PATTERN_TEST(test->reg + (i * 8), test 1337 drivers/net/ethernet/intel/igb/igb_ethtool.c test->mask, test 1338 drivers/net/ethernet/intel/igb/igb_ethtool.c test->write); test 1341 drivers/net/ethernet/intel/igb/igb_ethtool.c REG_PATTERN_TEST((test->reg + 4) + (i * 8), test 1342 drivers/net/ethernet/intel/igb/igb_ethtool.c test->mask, test 1343 drivers/net/ethernet/intel/igb/igb_ethtool.c test->write); test 1347 drivers/net/ethernet/intel/igb/igb_ethtool.c test++; test 1467 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c const struct ixgbe_reg_test *test; test 1479 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test = reg_test_82598; test 1487 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test = reg_test_82599; test 1517 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c while (test->reg) { test 1518 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c for (i = 0; i < test->array_len; i++) { test 1521 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c switch (test->test_type) { test 1524 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->reg + (i * 0x40), test 1525 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->mask, test 1526 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->write); test 1530 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->reg + (i * 0x40), test 1531 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->mask, test 1532 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->write); test 1536 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->reg + (i * 0x40), test 1537 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->write); test 1541 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->reg + (i * 4), test 1542 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->mask, test 1543 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->write); test 1547 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->reg + (i * 8), test 1548 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->mask, test 1549 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->write); test 1553 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c (test->reg + 4) + (i * 8), test 1554 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->mask, test 1555 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test->write); test 1561 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c test++; test 661 drivers/net/ethernet/intel/ixgbevf/ethtool.c const struct ixgbevf_reg_test *test; test 670 drivers/net/ethernet/intel/ixgbevf/ethtool.c test = reg_test_vf; test 675 drivers/net/ethernet/intel/ixgbevf/ethtool.c while (test->reg) { test 676 drivers/net/ethernet/intel/ixgbevf/ethtool.c for (i = 0; i < test->array_len; i++) { test 679 drivers/net/ethernet/intel/ixgbevf/ethtool.c switch (test->test_type) { test 682 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->reg + (i * 0x40), test 683 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->mask, test 684 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->write); test 688 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->reg + (i * 0x40), test 689 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->mask, test 690 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->write); test 694 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->reg + (i * 0x40), test 695 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->write); test 699 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->reg + (i * 4), test 700 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->mask, test 701 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->write); test 705 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->reg + (i * 8), test 706 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->mask, test 707 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->write); test 711 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->reg + 4 + (i * 8), test 712 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->mask, test 713 drivers/net/ethernet/intel/ixgbevf/ethtool.c test->write); test 719 drivers/net/ethernet/intel/ixgbevf/ethtool.c test++; test 848 drivers/net/ethernet/myricom/myri10ge/myri10ge.c char *test = " "; test 876 drivers/net/ethernet/myricom/myri10ge/myri10ge.c test = "read"; test 885 drivers/net/ethernet/myricom/myri10ge/myri10ge.c test = "write"; test 895 drivers/net/ethernet/myricom/myri10ge/myri10ge.c test = "read/write"; test 907 drivers/net/ethernet/myricom/myri10ge/myri10ge.c test, status); test 54 drivers/net/ethernet/neterion/vxge/vxge-config.h #define vxge_assert(test) BUG_ON(!(test)) test 56 drivers/net/ethernet/neterion/vxge/vxge-config.h #define vxge_assert(test) test 5223 drivers/net/ethernet/nvidia/forcedeth.c static void nv_self_test(struct net_device *dev, struct ethtool_test *test, u64 *buffer) test 5233 drivers/net/ethernet/nvidia/forcedeth.c test->flags |= ETH_TEST_FL_FAILED; test 5237 drivers/net/ethernet/nvidia/forcedeth.c if (test->flags & ETH_TEST_FL_OFFLINE) { test 5260 drivers/net/ethernet/nvidia/forcedeth.c test->flags |= ETH_TEST_FL_FAILED; test 5266 drivers/net/ethernet/nvidia/forcedeth.c test->flags |= ETH_TEST_FL_FAILED; test 5275 drivers/net/ethernet/nvidia/forcedeth.c test->flags |= ETH_TEST_FL_FAILED; test 1393 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c static int qlcnic_83xx_diag_alloc_res(struct net_device *netdev, int test, test 1411 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c adapter->ahw->diag_test = test; test 2134 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c int qlcnic_diag_alloc_res(struct net_device *netdev, int test) test 2150 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c adapter->ahw->diag_test = test; test 665 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c u32 addr, data, test; test 687 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c test = qlcnic_ind_rd(adapter, QLCNIC_MS_CTRL); test 688 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c if (!(test & TA_CTL_BUSY)) test 228 drivers/net/ethernet/sfc/ethtool.c int *test, const char *unit_format, int unit_id, test 235 drivers/net/ethernet/sfc/ethtool.c data[test_index] = *test; test 517 drivers/net/ethernet/sfc/ethtool.c struct ethtool_test *test, u64 *data) test 534 drivers/net/ethernet/sfc/ethtool.c (test->flags & ETH_TEST_FL_OFFLINE) ? "off" : "on"); test 547 drivers/net/ethernet/sfc/ethtool.c rc = efx_selftest(efx, efx_tests, test->flags); test 554 drivers/net/ethernet/sfc/ethtool.c (test->flags & ETH_TEST_FL_OFFLINE) ? "off" : "on"); test 561 drivers/net/ethernet/sfc/ethtool.c test->flags |= ETH_TEST_FL_FAILED; test 210 drivers/net/ethernet/sfc/falcon/ethtool.c int *test, const char *unit_format, int unit_id, test 217 drivers/net/ethernet/sfc/falcon/ethtool.c data[test_index] = *test; test 495 drivers/net/ethernet/sfc/falcon/ethtool.c struct ethtool_test *test, u64 *data) test 512 drivers/net/ethernet/sfc/falcon/ethtool.c (test->flags & ETH_TEST_FL_OFFLINE) ? "off" : "on"); test 525 drivers/net/ethernet/sfc/falcon/ethtool.c rc = ef4_selftest(efx, ef4_tests, test->flags); test 532 drivers/net/ethernet/sfc/falcon/ethtool.c (test->flags & ETH_TEST_FL_OFFLINE) ? "off" : "on"); test 539 drivers/net/ethernet/sfc/falcon/ethtool.c test->flags |= ETH_TEST_FL_FAILED; test 205 drivers/net/ethernet/sfc/falcon/txc43128_phy.c static int txc_bist_one(struct ef4_nic *efx, int mmd, int test) test 218 drivers/net/ethernet/sfc/falcon/txc43128_phy.c bctl = (test << TXC_BIST_CTRL_TYPE_LBN); test 367 drivers/net/ieee802154/ca8210.c struct ca8210_test test; test 627 drivers/net/ieee802154/ca8210.c struct ca8210_test *test = &priv->test; test 641 drivers/net/ieee802154/ca8210.c kfifo_in(&test->up_fifo, &fifo_buffer, 4); test 642 drivers/net/ieee802154/ca8210.c wake_up_interruptible(&priv->test.readq); test 2574 drivers/net/ieee802154/ca8210.c if (kfifo_is_empty(&priv->test.up_fifo)) test 2579 drivers/net/ieee802154/ca8210.c priv->test.readq, test 2580 drivers/net/ieee802154/ca8210.c !kfifo_is_empty(&priv->test.up_fifo) test 2584 drivers/net/ieee802154/ca8210.c if (kfifo_out(&priv->test.up_fifo, &fifo_buffer, 4) != 4) { test 2657 drivers/net/ieee802154/ca8210.c poll_wait(filp, &priv->test.readq, ptable); test 2658 drivers/net/ieee802154/ca8210.c if (!kfifo_is_empty(&priv->test.up_fifo)) test 2661 drivers/net/ieee802154/ca8210.c priv->test.readq, test 2662 drivers/net/ieee802154/ca8210.c !kfifo_is_empty(&priv->test.up_fifo))) { test 3004 drivers/net/ieee802154/ca8210.c struct ca8210_test *test = &priv->test; test 3015 drivers/net/ieee802154/ca8210.c test->ca8210_dfs_spi_int = debugfs_create_file( test 3024 drivers/net/ieee802154/ca8210.c init_waitqueue_head(&test->readq); test 3026 drivers/net/ieee802154/ca8210.c &test->up_fifo, test 3038 drivers/net/ieee802154/ca8210.c struct ca8210_test *test = &priv->test; test 3040 drivers/net/ieee802154/ca8210.c debugfs_remove(test->ca8210_dfs_spi_int); test 3041 drivers/net/ieee802154/ca8210.c kfifo_free(&test->up_fifo); test 1204 drivers/net/wireless/ath/ath9k/ar9003_calib.c int offset[8] = {0}, total = 0, test; test 1262 drivers/net/wireless/ath/ath9k/ar9003_calib.c test = total + offset[i]; test 1267 drivers/net/wireless/ath/ath9k/ar9003_calib.c test); test 1271 drivers/net/wireless/ath/ath9k/ar9003_calib.c test); test 5447 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c u8 powerLimit, bool test) test 5531 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c if (test) test 666 drivers/net/wireless/ath/ath9k/eeprom.h u8 powerLimit, bool test); test 581 drivers/net/wireless/ath/ath9k/eeprom_4k.c u8 powerLimit, bool test) test 611 drivers/net/wireless/ath/ath9k/eeprom_4k.c if (test) test 709 drivers/net/wireless/ath/ath9k/eeprom_9287.c u8 powerLimit, bool test) test 741 drivers/net/wireless/ath/ath9k/eeprom_9287.c if (test) test 1146 drivers/net/wireless/ath/ath9k/eeprom_def.c u8 powerLimit, bool test) test 1179 drivers/net/wireless/ath/ath9k/eeprom_def.c if (test) test 2955 drivers/net/wireless/ath/ath9k/hw.c bool test) test 2965 drivers/net/wireless/ath/ath9k/hw.c if (!test) test 2973 drivers/net/wireless/ath/ath9k/hw.c get_antenna_gain(ah, chan), new_pwr, test); test 2976 drivers/net/wireless/ath/ath9k/hw.c void ath9k_hw_set_txpowerlimit(struct ath_hw *ah, u32 limit, bool test) test 2983 drivers/net/wireless/ath/ath9k/hw.c if (test) test 2986 drivers/net/wireless/ath/ath9k/hw.c ath9k_hw_apply_txpower(ah, chan, test); test 2988 drivers/net/wireless/ath/ath9k/hw.c if (test) test 1056 drivers/net/wireless/ath/ath9k/hw.h void ath9k_hw_set_txpowerlimit(struct ath_hw *ah, u32 limit, bool test); test 1099 drivers/net/wireless/ath/ath9k/hw.h bool test); test 1531 drivers/net/wireless/broadcom/b43/phy_n.c bool test) test 1540 drivers/net/wireless/broadcom/b43/phy_n.c if (test) { test 106 drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h #define brcmf_dbg_hex_dump(test, data, len, fmt, ...) \ test 109 drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h if (test) \ test 3016 drivers/net/wireless/intel/iwlegacy/3945-mac.c #define CHK(test, flag) do { \ test 3017 drivers/net/wireless/intel/iwlegacy/3945-mac.c if (*total_flags & (test)) \ test 6146 drivers/net/wireless/intel/iwlegacy/4965-mac.c #define CHK(test, flag) do { \ test 6147 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (*total_flags & (test)) \ test 1043 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c #define CHK(test, flag) do { \ test 1044 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c if (*total_flags & (test)) \ test 552 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int (*d3_suspend)(struct iwl_trans *trans, bool test, bool reset); test 554 drivers/net/wireless/intel/iwlwifi/iwl-trans.h bool test, bool reset); test 893 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline int iwl_trans_d3_suspend(struct iwl_trans *trans, bool test, test 900 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->d3_suspend(trans, test, reset); test 905 drivers/net/wireless/intel/iwlwifi/iwl-trans.h bool test, bool reset) test 911 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->d3_resume(trans, status, test, reset); test 956 drivers/net/wireless/intel/iwlwifi/mvm/d3.c bool test) test 986 drivers/net/wireless/intel/iwlwifi/mvm/d3.c WARN_ON(!test); test 1075 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ret = iwl_trans_d3_suspend(mvm->trans, test, !unified_image); test 1919 drivers/net/wireless/intel/iwlwifi/mvm/d3.c static int __iwl_mvm_resume(struct iwl_mvm *mvm, bool test) test 1948 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ret = iwl_trans_d3_resume(mvm->trans, &d3_status, test, !unified_image); test 2008 drivers/net/wireless/intel/iwlwifi/mvm/d3.c if (!test) test 1123 drivers/net/wireless/intel/iwlwifi/pcie/internal.h bool test, bool reset); test 1482 drivers/net/wireless/intel/iwlwifi/pcie/trans.c bool test, bool reset) test 1490 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (test) test 1514 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_trans_pcie_d3_suspend(struct iwl_trans *trans, bool test, test 1545 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_d3_complete_suspend(trans, test, reset); test 1552 drivers/net/wireless/intel/iwlwifi/pcie/trans.c bool test, bool reset) test 1558 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (test) { test 29 drivers/net/wireless/ti/wl12xx/cmd.c ext_radio_parms->test.id = TEST_CMD_INI_FILE_RF_EXTENDED_PARAM; test 70 drivers/net/wireless/ti/wl12xx/cmd.c gen_parms->test.id = TEST_CMD_INI_FILE_GENERAL_PARAM; test 137 drivers/net/wireless/ti/wl12xx/cmd.c gen_parms->test.id = TEST_CMD_INI_FILE_GENERAL_PARAM; test 198 drivers/net/wireless/ti/wl12xx/cmd.c radio_parms->test.id = TEST_CMD_INI_FILE_RADIO_PARAM; test 242 drivers/net/wireless/ti/wl12xx/cmd.c radio_parms->test.id = TEST_CMD_INI_FILE_RADIO_PARAM; test 20 drivers/net/wireless/ti/wl12xx/cmd.h struct wl1271_cmd_test_header test; test 35 drivers/net/wireless/ti/wl12xx/cmd.h struct wl1271_cmd_test_header test; test 50 drivers/net/wireless/ti/wl12xx/cmd.h struct wl1271_cmd_test_header test; test 66 drivers/net/wireless/ti/wl12xx/cmd.h struct wl1271_cmd_test_header test; test 85 drivers/net/wireless/ti/wl12xx/cmd.h struct wl1271_cmd_test_header test; test 698 drivers/net/wireless/ti/wlcore/cmd.h struct wl1271_cmd_test_header test; test 105 drivers/net/wireless/ti/wlcore/testmode.c if (params->test.id == TEST_CMD_P2G_CAL && test 2321 drivers/parport/parport_pc.c int test; test 2326 drivers/parport/parport_pc.c test = inb(inta_addr[i]); test 2327 drivers/parport/parport_pc.c if (test != 0xff) test 208 drivers/pci/hotplug/pci_hotplug_core.c u32 test; test 212 drivers/pci/hotplug/pci_hotplug_core.c test = (u32)(ltest & 0xffffffff); test 213 drivers/pci/hotplug/pci_hotplug_core.c dbg("test = %d\n", test); test 220 drivers/pci/hotplug/pci_hotplug_core.c retval = slot->ops->hardware_test(slot, test); test 1002 drivers/pcmcia/ds.c #define pcmcia_device_attr(field, test, format) \ test 1006 drivers/pcmcia/ds.c return p_dev->test ? sprintf(buf, format, p_dev->field) : -ENODEV; \ test 2082 drivers/pinctrl/tegra/pinctrl-tegra30.c FUNCTION(test), test 47 drivers/ptp/ptp_pch.c u32 test; test 3461 drivers/scsi/gdth.c evt.event.event_data.size=sizeof(evt.event.event_data.eu.test); test 160 drivers/scsi/gdth_ioctl.h } __attribute__((packed)) test; test 1691 drivers/scsi/isci/host.c u8 test = oem->controller.ssc_sata_tx_spread_level; test 1693 drivers/scsi/isci/host.c switch (test) { test 1704 drivers/scsi/isci/host.c test = oem->controller.ssc_sas_tx_spread_level; test 1706 drivers/scsi/isci/host.c switch (test) { test 1715 drivers/scsi/isci/host.c switch (test) { test 36 drivers/scsi/mac53c94.h unsigned char test; test 1684 drivers/scsi/scsi_transport_sas.c #define SETUP_TEMPLATE(attrb, field, perm, test) \ test 1688 drivers/scsi/scsi_transport_sas.c if (test) \ test 1691 drivers/scsi/scsi_transport_sas.c #define SETUP_TEMPLATE_RW(attrb, field, perm, test, ro_test, ro_perm) \ test 1699 drivers/scsi/scsi_transport_sas.c if (test) \ test 529 drivers/spi/spi-loopback-test.c struct spi_test *test) test 535 drivers/spi/spi-loopback-test.c for (i = 0; i < test->transfer_count; i++) { test 536 drivers/spi/spi-loopback-test.c struct spi_transfer *xfer = test->transfers + i; test 547 drivers/spi/spi-loopback-test.c if (test->elapsed_time < estimated_time) { test 550 drivers/spi/spi-loopback-test.c test->elapsed_time, estimated_time); test 664 drivers/spi/spi-loopback-test.c struct spi_test *test) test 666 drivers/spi/spi-loopback-test.c struct spi_transfer *xfers = test->transfers; test 680 drivers/spi/spi-loopback-test.c for (i = 0; i < test->transfer_count; i++) { test 692 drivers/spi/spi-loopback-test.c switch (test->fill_option) { test 694 drivers/spi/spi-loopback-test.c *tx_buf = test->fill_pattern; test 697 drivers/spi/spi-loopback-test.c *tx_buf = GET_VALUE_BYTE(test->fill_pattern, test 701 drivers/spi/spi-loopback-test.c *tx_buf = GET_VALUE_BYTE(test->fill_pattern, test 705 drivers/spi/spi-loopback-test.c *tx_buf = GET_VALUE_BYTE(test->fill_pattern, test 738 drivers/spi/spi-loopback-test.c test->fill_option); test 748 drivers/spi/spi-loopback-test.c struct spi_test *test, test 751 drivers/spi/spi-loopback-test.c struct spi_message *msg = &test->msg; test 762 drivers/spi/spi-loopback-test.c for (i = 0; i < test->transfer_count; i++) { test 763 drivers/spi/spi-loopback-test.c x = &test->transfers[i]; test 782 drivers/spi/spi-loopback-test.c ret = spi_test_fill_pattern(spi, test); test 787 drivers/spi/spi-loopback-test.c if (test->execute_msg) test 788 drivers/spi/spi-loopback-test.c ret = test->execute_msg(spi, test, tx, rx); test 790 drivers/spi/spi-loopback-test.c ret = spi_test_execute_msg(spi, test, tx, rx); test 793 drivers/spi/spi-loopback-test.c if (ret == test->expected_return) test 798 drivers/spi/spi-loopback-test.c ret, test->expected_return); test 817 drivers/spi/spi-loopback-test.c struct spi_test test; test 821 drivers/spi/spi-loopback-test.c memcpy(&test, testtemplate, sizeof(test)); test 826 drivers/spi/spi-loopback-test.c if (!(test.iterate_transfer_mask & (BIT(test.transfer_count) - 1))) test 827 drivers/spi/spi-loopback-test.c test.iterate_transfer_mask = 1; test 831 drivers/spi/spi-loopback-test.c for (i = 0; i < test.transfer_count; i++) { test 832 drivers/spi/spi-loopback-test.c if (test.transfers[i].tx_buf) test 834 drivers/spi/spi-loopback-test.c if (test.transfers[i].rx_buf) test 844 drivers/spi/spi-loopback-test.c test.description); test 850 drivers/spi/spi-loopback-test.c test.description); test 856 drivers/spi/spi-loopback-test.c dev_info(&spi->dev, "Running test %s\n", test.description); test 864 drivers/spi/spi-loopback-test.c for (i = 0; i < test.transfer_count; i++) { test 866 drivers/spi/spi-loopback-test.c if (!(test.iterate_transfer_mask & BIT(i))) test 868 drivers/spi/spi-loopback-test.c test.transfers[i].len = len; test 869 drivers/spi/spi-loopback-test.c if (test.transfers[i].tx_buf) test 870 drivers/spi/spi-loopback-test.c test.transfers[i].tx_buf += tx_off; test 871 drivers/spi/spi-loopback-test.c if (test.transfers[i].tx_buf) test 872 drivers/spi/spi-loopback-test.c test.transfers[i].rx_buf += rx_off; test 876 drivers/spi/spi-loopback-test.c return _spi_test_run_iter(spi, &test, tx, rx); test 889 drivers/spi/spi-loopback-test.c int spi_test_execute_msg(struct spi_device *spi, struct spi_test *test, test 892 drivers/spi/spi-loopback-test.c struct spi_message *msg = &test->msg; test 907 drivers/spi/spi-loopback-test.c test->elapsed_time = ktime_to_ns(ktime_sub(ktime_get(), start)); test 936 drivers/spi/spi-loopback-test.c ret = spi_test_check_elapsed_time(spi, test); test 962 drivers/spi/spi-loopback-test.c int spi_test_run_test(struct spi_device *spi, const struct spi_test *test, test 971 drivers/spi/spi-loopback-test.c if (test->transfer_count >= SPI_TEST_MAX_TRANSFERS) { test 974 drivers/spi/spi-loopback-test.c test->description, test->transfer_count); test 988 drivers/spi/spi-loopback-test.c var < (test->iterate_##var ? \ test 991 drivers/spi/spi-loopback-test.c test->iterate_##var) : \ test 996 drivers/spi/spi-loopback-test.c (len = test->iterate_len[idx_len]) != -1; idx_len++) { test 1000 drivers/spi/spi-loopback-test.c ret = spi_test_run_iter(spi, test, test 1028 drivers/spi/spi-loopback-test.c struct spi_test *test; test 1051 drivers/spi/spi-loopback-test.c for (test = tests, count = 0; test->description[0]; test 1052 drivers/spi/spi-loopback-test.c test++, count++) { test 1057 drivers/spi/spi-loopback-test.c if (test->run_test) test 1058 drivers/spi/spi-loopback-test.c ret = test->run_test(spi, test, tx, rx); test 1060 drivers/spi/spi-loopback-test.c ret = spi_test_run_test(spi, test, tx, rx); test 77 drivers/spi/spi-test.h int (*run_test)(struct spi_device *spi, struct spi_test *test, test 79 drivers/spi/spi-test.h int (*execute_msg)(struct spi_device *spi, struct spi_test *test, test 108 drivers/spi/spi-test.h const struct spi_test *test, test 113 drivers/spi/spi-test.h struct spi_test *test, test 233 drivers/staging/kpc2000/kpc2000_spi.c char test = 0; test 241 drivers/staging/kpc2000/kpc2000_spi.c test = kp_spi_read_reg(cs, KP_SPI_REG_RXDATA); test 242 drivers/staging/kpc2000/kpc2000_spi.c *rx++ = test; test 290 drivers/staging/rtl8188eu/include/odm.h u8 test; test 277 drivers/staging/rtl8723bs/hal/odm.h u8 test; test 129 drivers/staging/speakup/speakup_audptr.c unsigned char test = 0; test 133 drivers/staging/speakup/speakup_audptr.c synth_id[test] = synth->io_ops->synth_in(); test 134 drivers/staging/speakup/speakup_audptr.c if (synth_id[test] == 'A') { test 137 drivers/staging/speakup/speakup_audptr.c synth_id[++test] = synth->io_ops->synth_in(); test 138 drivers/staging/speakup/speakup_audptr.c } while (synth_id[test] != '\n' && test < 32); test 139 drivers/staging/speakup/speakup_audptr.c synth_id[++test] = 0x00; test 4215 drivers/usb/dwc2/gadget.c static bool on_list(struct dwc2_hsotg_ep *ep, struct dwc2_hsotg_req *test) test 4220 drivers/usb/dwc2/gadget.c if (req == test) test 890 drivers/usb/gadget/udc/gr_udc.c u8 test; test 916 drivers/usb/gadget/udc/gr_udc.c test = index >> 8; test 917 drivers/usb/gadget/udc/gr_udc.c if (test >= TEST_J && test <= TEST_PACKET) { test 918 drivers/usb/gadget/udc/gr_udc.c dev->test_mode = test; test 2205 drivers/usb/misc/sisusbvga/sisusb.c int ret = 0, test = 0; test 2215 drivers/usb/misc/sisusbvga/sisusb.c test++; test 2222 drivers/usb/misc/sisusbvga/sisusb.c test++; test 2229 drivers/usb/misc/sisusbvga/sisusb.c test++; test 2233 drivers/usb/misc/sisusbvga/sisusb.c if ((sisusb->devinit == 0) || (test != 3)) { test 110 drivers/usb/misc/usbtest.c static struct usb_device *testdev_to_usbdev(struct usbtest_dev *test) test 112 drivers/usb/misc/usbtest.c return interface_to_usbdev(test->intf); test 118 drivers/usb/musb/musb_debugfs.c unsigned test; test 121 drivers/usb/musb/musb_debugfs.c test = musb_readb(musb->mregs, MUSB_TESTMODE); test 125 drivers/usb/musb/musb_debugfs.c if (test == (MUSB_TEST_FORCE_HOST | MUSB_TEST_FORCE_FS)) test 128 drivers/usb/musb/musb_debugfs.c else if (test == (MUSB_TEST_FORCE_HOST | MUSB_TEST_FORCE_HS)) test 131 drivers/usb/musb/musb_debugfs.c else if (test == MUSB_TEST_FORCE_HOST) test 134 drivers/usb/musb/musb_debugfs.c else if (test == MUSB_TEST_FIFO_ACCESS) test 137 drivers/usb/musb/musb_debugfs.c else if (test == MUSB_TEST_FORCE_FS) test 140 drivers/usb/musb/musb_debugfs.c else if (test == MUSB_TEST_FORCE_HS) test 143 drivers/usb/musb/musb_debugfs.c else if (test == MUSB_TEST_PACKET) test 146 drivers/usb/musb/musb_debugfs.c else if (test == MUSB_TEST_K) test 149 drivers/usb/musb/musb_debugfs.c else if (test == MUSB_TEST_J) test 152 drivers/usb/musb/musb_debugfs.c else if (test == MUSB_TEST_SE0_NAK) test 168 drivers/usb/musb/musb_debugfs.c u8 test; test 177 drivers/usb/musb/musb_debugfs.c test = musb_readb(musb->mregs, MUSB_TESTMODE); test 178 drivers/usb/musb/musb_debugfs.c if (test) { test 185 drivers/usb/musb/musb_debugfs.c test = MUSB_TEST_FORCE_HOST | MUSB_TEST_FORCE_FS; test 188 drivers/usb/musb/musb_debugfs.c test = MUSB_TEST_FORCE_HOST | MUSB_TEST_FORCE_HS; test 191 drivers/usb/musb/musb_debugfs.c test = MUSB_TEST_FORCE_HOST; test 194 drivers/usb/musb/musb_debugfs.c test = MUSB_TEST_FIFO_ACCESS; test 197 drivers/usb/musb/musb_debugfs.c test = MUSB_TEST_FORCE_FS; test 200 drivers/usb/musb/musb_debugfs.c test = MUSB_TEST_FORCE_HS; test 203 drivers/usb/musb/musb_debugfs.c test = MUSB_TEST_PACKET; test 208 drivers/usb/musb/musb_debugfs.c test = MUSB_TEST_K; test 211 drivers/usb/musb/musb_debugfs.c test = MUSB_TEST_J; test 214 drivers/usb/musb/musb_debugfs.c test = MUSB_TEST_SE0_NAK; test 216 drivers/usb/musb/musb_debugfs.c musb_writeb(musb->mregs, MUSB_TESTMODE, test); test 192 drivers/usb/serial/whiteheat.h __u8 test; /* see WHITEHEAT_TEST_* above*/ test 291 drivers/usb/serial/whiteheat.h __u8 test; /* indicates which test this is a response for, test 173 drivers/vhost/test.c static long vhost_test_run(struct vhost_test *n, int test) test 179 drivers/vhost/test.c if (test < 0 || test > 1) test 198 drivers/vhost/test.c priv = test ? n : NULL; test 272 drivers/vhost/test.c int test; test 277 drivers/vhost/test.c if (copy_from_user(&test, argp, sizeof test)) test 279 drivers/vhost/test.c return vhost_test_run(n, test); test 443 drivers/video/fbdev/mmp/hw/mmp_ctrl.h #define CFG_GRA_TSTMODE(test) ((test)<<13) test 464 drivers/video/fbdev/mmp/hw/mmp_ctrl.h #define CFG_DMA_TSTMODE(test) ((test)<<5) test 46 drivers/video/fbdev/omap2/omapfb/omapfb-main.c module_param_named(test, omapfb_test_pattern, bool, 0644); test 234 drivers/video/fbdev/pxa168fb.h #define CFG_GRA_TSTMODE(test) ((test) << 13) test 251 drivers/video/fbdev/pxa168fb.h #define CFG_DMA_TSTMODE(test) ((test) << 5) test 2373 drivers/video/fbdev/sis/sis_main.c static int SISDoSense(struct sis_video_info *ivideo, u16 type, u16 test) test 2380 drivers/video/fbdev/sis/sis_main.c mytest = test; test 2549 drivers/video/fbdev/sis/sis_main.c unsigned char test[3]; test 2584 drivers/video/fbdev/sis/sis_main.c if(!(temp1 & 0x08)) test[i] = 0x02; test 2585 drivers/video/fbdev/sis/sis_main.c else if(!(temp1 & 0x02)) test[i] = 0x01; test 2586 drivers/video/fbdev/sis/sis_main.c else test[i] = 0; test 2590 drivers/video/fbdev/sis/sis_main.c if(test[0] == test[1]) temp1 = test[0]; test 2591 drivers/video/fbdev/sis/sis_main.c else if(test[0] == test[2]) temp1 = test[0]; test 2592 drivers/video/fbdev/sis/sis_main.c else if(test[1] == test[2]) temp1 = test[1]; test 2596 drivers/video/fbdev/sis/sis_main.c temp1 = test[2]; test 418 drivers/visorbus/controlvmchannel.h u32 test; test 496 fs/9p/vfs_inode.c int (*test)(struct inode *, void *); test 499 fs/9p/vfs_inode.c test = v9fs_test_new_inode; test 501 fs/9p/vfs_inode.c test = v9fs_test_inode; test 504 fs/9p/vfs_inode.c inode = iget5_locked(sb, i_ino, test, v9fs_set_inode, st); test 107 fs/9p/vfs_inode_dotl.c int (*test)(struct inode *, void *); test 110 fs/9p/vfs_inode_dotl.c test = v9fs_test_new_inode_dotl; test 112 fs/9p/vfs_inode_dotl.c test = v9fs_test_inode_dotl; test 115 fs/9p/vfs_inode_dotl.c inode = iget5_locked(sb, i_ino, test, v9fs_set_inode_dotl, st); test 183 fs/autofs/dev-ioctl.c int test(const struct path *path, void *data), test 195 fs/autofs/dev-ioctl.c if (test(&path, data)) { test 2009 fs/btrfs/ioctl.c struct btrfs_key test; test 2012 fs/btrfs/ioctl.c test.objectid = sk->min_objectid; test 2013 fs/btrfs/ioctl.c test.type = sk->min_type; test 2014 fs/btrfs/ioctl.c test.offset = sk->min_offset; test 2016 fs/btrfs/ioctl.c ret = btrfs_comp_cpu_keys(key, &test); test 2020 fs/btrfs/ioctl.c test.objectid = sk->max_objectid; test 2021 fs/btrfs/ioctl.c test.type = sk->max_type; test 2022 fs/btrfs/ioctl.c test.offset = sk->max_offset; test 2024 fs/btrfs/ioctl.c ret = btrfs_comp_cpu_keys(key, &test); test 2041 fs/btrfs/ioctl.c struct btrfs_key test; test 2125 fs/btrfs/ioctl.c test.objectid = sk->max_objectid; test 2126 fs/btrfs/ioctl.c test.type = sk->max_type; test 2127 fs/btrfs/ioctl.c test.offset = sk->max_offset; test 2128 fs/btrfs/ioctl.c if (btrfs_comp_cpu_keys(key, &test) >= 0) test 72 fs/btrfs/ordered-data.c struct rb_node *test; test 92 fs/btrfs/ordered-data.c test = rb_next(prev); test 93 fs/btrfs/ordered-data.c if (!test) test 95 fs/btrfs/ordered-data.c prev_entry = rb_entry(test, struct btrfs_ordered_extent, test 100 fs/btrfs/ordered-data.c prev = test; test 106 fs/btrfs/ordered-data.c test = rb_prev(prev); test 107 fs/btrfs/ordered-data.c if (!test) test 109 fs/btrfs/ordered-data.c prev_entry = rb_entry(test, struct btrfs_ordered_extent, test 111 fs/btrfs/ordered-data.c prev = test; test 812 fs/btrfs/ordered-data.c struct btrfs_ordered_extent *test; test 874 fs/btrfs/ordered-data.c test = rb_entry(prev, struct btrfs_ordered_extent, test 876 fs/btrfs/ordered-data.c BUG_ON(offset_in_entry(test, offset)); test 881 fs/btrfs/ordered-data.c test = rb_entry(node, struct btrfs_ordered_extent, rb_node); test 884 fs/btrfs/ordered-data.c if (test_bit(BTRFS_ORDERED_UPDATED_ISIZE, &test->flags)) test 887 fs/btrfs/ordered-data.c if (entry_end(test) <= disk_i_size) test 889 fs/btrfs/ordered-data.c if (test->file_offset >= i_size) test 896 fs/btrfs/ordered-data.c if (test->outstanding_isize < offset) test 897 fs/btrfs/ordered-data.c test->outstanding_isize = offset; test 899 fs/btrfs/ordered-data.c ordered->outstanding_isize > test->outstanding_isize) test 900 fs/btrfs/ordered-data.c test->outstanding_isize = ordered->outstanding_isize; test 179 fs/ext4/namei.c #define assert(test) J_ASSERT(test) test 815 fs/inode.c int (*test)(struct inode *, void *), test 824 fs/inode.c if (!test(inode, data)) test 1072 fs/inode.c int (*test)(struct inode *, void *), test 1081 fs/inode.c old = find_inode(inode->i_sb, head, test, data); test 1141 fs/inode.c int (*test)(struct inode *, void *), test 1144 fs/inode.c struct inode *inode = ilookup5(sb, hashval, test, data); test 1151 fs/inode.c inode = inode_insert5(new, hashval, test, set, data); test 1331 fs/inode.c int (*test)(struct inode *, void *), void *data) test 1337 fs/inode.c inode = find_inode(sb, head, test, data); test 1362 fs/inode.c int (*test)(struct inode *, void *), void *data) test 1366 fs/inode.c inode = ilookup5_nowait(sb, hashval, test, data); test 1506 fs/inode.c int (*test)(struct inode *, void *), void *data) test 1511 fs/inode.c old = inode_insert5(inode, hashval, test, NULL, data); test 525 fs/lockd/svc4proc.c PROC(test, testargs, testres, args, res, Ck+St+2+No+Rg), test 569 fs/lockd/svcproc.c PROC(test, testargs, testres, args, res, Ck+St+2+No+Rg), test 512 fs/super.c int (*test)(struct super_block *, struct fs_context *), test 522 fs/super.c if (test) { test 524 fs/super.c if (test(old, fc)) test 577 fs/super.c int (*test)(struct super_block *,void *), test 596 fs/super.c if (test) { test 598 fs/super.c if (!test(old, data)) test 1167 fs/super.c int (*test)(struct super_block *, struct fs_context *); test 1174 fs/super.c test = test_single_super; test 1177 fs/super.c test = test_keyed_super; test 1180 fs/super.c test = NULL; test 1186 fs/super.c sb = sget_fc(fc, test, set_anon_super_fc); test 275 fs/sysv/super.c int (*test)(struct sysv_sb_info *, struct buffer_head *); test 380 fs/sysv/super.c size = flavours[i].test(SYSV_SB(sb), bh); test 182 fs/unicode/utf8-selftest.c test((utf8len(data, nfdi_test_data[i].str) == nlen)); test 183 fs/unicode/utf8-selftest.c test((utf8nlen(data, nfdi_test_data[i].str, len) == nlen)); test 195 fs/unicode/utf8-selftest.c test((j == nlen)); test 218 fs/unicode/utf8-selftest.c test((utf8len(data, nfdicf_test_data[i].str) == nlen)); test 219 fs/unicode/utf8-selftest.c test((utf8nlen(data, nfdicf_test_data[i].str, len) == nlen)); test 231 fs/unicode/utf8-selftest.c test((j == nlen)); test 272 fs/unicode/utf8-selftest.c test(utf8version_is_supported(7, 0, 0)); test 275 fs/unicode/utf8-selftest.c test(utf8version_is_supported(9, 0, 0)); test 278 fs/unicode/utf8-selftest.c test(utf8version_is_supported(latest_maj, latest_min, latest_rev)); test 281 fs/unicode/utf8-selftest.c test(!utf8version_is_supported(13, 0, 0)); test 282 fs/unicode/utf8-selftest.c test(!utf8version_is_supported(0, 0, 0)); test 283 fs/unicode/utf8-selftest.c test(!utf8version_is_supported(-1, -1, -1)); test 261 include/linux/bitops.h #define bit_clear_unless(ptr, clear, test) \ test 263 include/linux/bitops.h const typeof(*(ptr)) clear__ = (clear), test__ = (test);\ test 2285 include/linux/fs.h int (*test)(struct super_block *, struct fs_context *), test 2288 include/linux/fs.h int (*test)(struct super_block *,void *), test 3035 include/linux/fs.h unsigned long hashval, int (*test)(struct inode *, void *), test 3038 include/linux/fs.h int (*test)(struct inode *, void *), void *data); test 3042 include/linux/fs.h int (*test)(struct inode *, void *), test 3045 include/linux/fs.h extern struct inode * iget5_locked(struct super_block *, unsigned long, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *); test 3052 include/linux/fs.h extern int insert_inode_locked4(struct inode *, unsigned long, int (*test)(struct inode *, void *), void *); test 57 include/linux/module.h int (*test)(struct module *); test 457 include/uapi/linux/bpf.h } test; test 698 include/video/omapfb_dss.h int (*run_test)(struct omap_dss_device *display, int test); test 2096 kernel/bpf/syscall.c #define BPF_PROG_TEST_RUN_LAST_FIELD test.ctx_out test 2109 kernel/bpf/syscall.c if ((attr->test.ctx_size_in && !attr->test.ctx_in) || test 2110 kernel/bpf/syscall.c (!attr->test.ctx_size_in && attr->test.ctx_in)) test 2113 kernel/bpf/syscall.c if ((attr->test.ctx_size_out && !attr->test.ctx_out) || test 2114 kernel/bpf/syscall.c (!attr->test.ctx_size_out && attr->test.ctx_out)) test 2117 kernel/bpf/syscall.c prog = bpf_prog_get(attr->test.prog_fd); test 796 kernel/module.c .test = modinfo_##field##_exists, \ test 1771 kernel/module.c if (!attr->test || attr->test(mod)) { test 1097 kernel/time/timekeeping.c static bool cycle_between(u64 before, u64 test, u64 after) test 1099 kernel/time/timekeeping.c if (test > before && test < after) test 1101 kernel/time/timekeeping.c if (test < before && before > after) test 1659 kernel/trace/trace.h struct event_trigger_data *test, test 1671 kernel/trace/trace.h extern bool is_named_trigger(struct event_trigger_data *test); test 3 kernel/trace/trace_events_filter_test.h #define TRACE_SYSTEM test test 1795 kernel/trace/trace_events_hist.c struct event_trigger_data *test; test 1804 kernel/trace/trace_events_hist.c list_for_each_entry(test, &file->triggers, list) { test 1805 kernel/trace/trace_events_hist.c if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { test 1806 kernel/trace/trace_events_hist.c test_data = test->private_data; test 1851 kernel/trace/trace_events_hist.c struct event_trigger_data *test; test 1856 kernel/trace/trace_events_hist.c list_for_each_entry(test, &file->triggers, list) { test 1857 kernel/trace/trace_events_hist.c if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { test 1858 kernel/trace/trace_events_hist.c test_data = test->private_data; test 3185 kernel/trace/trace_events_hist.c struct event_trigger_data *test; test 3189 kernel/trace/trace_events_hist.c list_for_each_entry(test, &file->triggers, list) { test 3190 kernel/trace/trace_events_hist.c if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { test 3191 kernel/trace/trace_events_hist.c if (test->private_data == hist_data) test 3192 kernel/trace/trace_events_hist.c return test->filter_str; test 3237 kernel/trace/trace_events_hist.c struct event_trigger_data *test; test 3244 kernel/trace/trace_events_hist.c list_for_each_entry(test, &file->triggers, list) { test 3245 kernel/trace/trace_events_hist.c if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { test 3246 kernel/trace/trace_events_hist.c hist_data = test->private_data; test 5975 kernel/trace/trace_events_hist.c struct event_trigger_data *test, *named_data = NULL; test 5996 kernel/trace/trace_events_hist.c list_for_each_entry(test, &file->triggers, list) { test 5997 kernel/trace/trace_events_hist.c if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { test 5998 kernel/trace/trace_events_hist.c if (!hist_trigger_match(data, test, named_data, false)) test 6001 kernel/trace/trace_events_hist.c test->paused = true; test 6003 kernel/trace/trace_events_hist.c test->paused = false; test 6005 kernel/trace/trace_events_hist.c hist_clear(test); test 6077 kernel/trace/trace_events_hist.c struct event_trigger_data *test, *named_data = NULL; test 6085 kernel/trace/trace_events_hist.c list_for_each_entry(test, &file->triggers, list) { test 6086 kernel/trace/trace_events_hist.c if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { test 6087 kernel/trace/trace_events_hist.c if (hist_trigger_match(data, test, named_data, false)) { test 6101 kernel/trace/trace_events_hist.c struct event_trigger_data *test, *named_data = NULL; test 6108 kernel/trace/trace_events_hist.c list_for_each_entry(test, &file->triggers, list) { test 6109 kernel/trace/trace_events_hist.c if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { test 6110 kernel/trace/trace_events_hist.c if (!hist_trigger_match(data, test, named_data, false)) test 6112 kernel/trace/trace_events_hist.c hist_data = test->private_data; test 6127 kernel/trace/trace_events_hist.c struct event_trigger_data *test, *named_data = NULL; test 6135 kernel/trace/trace_events_hist.c list_for_each_entry(test, &file->triggers, list) { test 6136 kernel/trace/trace_events_hist.c if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { test 6137 kernel/trace/trace_events_hist.c if (!hist_trigger_match(data, test, named_data, false)) test 6140 kernel/trace/trace_events_hist.c list_del_rcu(&test->list); test 6147 kernel/trace/trace_events_hist.c if (unregistered && test->ops->free) test 6148 kernel/trace/trace_events_hist.c test->ops->free(test->ops, test); test 6159 kernel/trace/trace_events_hist.c struct event_trigger_data *test; test 6163 kernel/trace/trace_events_hist.c list_for_each_entry(test, &file->triggers, list) { test 6164 kernel/trace/trace_events_hist.c if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { test 6165 kernel/trace/trace_events_hist.c hist_data = test->private_data; test 6176 kernel/trace/trace_events_hist.c struct event_trigger_data *test, *n; test 6186 kernel/trace/trace_events_hist.c list_for_each_entry_safe(test, n, &file->triggers, list) { test 6187 kernel/trace/trace_events_hist.c if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { test 6188 kernel/trace/trace_events_hist.c hist_data = test->private_data; test 6189 kernel/trace/trace_events_hist.c list_del_rcu(&test->list); test 6200 kernel/trace/trace_events_hist.c if (test->ops->free) test 6201 kernel/trace/trace_events_hist.c test->ops->free(test->ops, test); test 6404 kernel/trace/trace_events_hist.c struct event_trigger_data *test; test 6406 kernel/trace/trace_events_hist.c list_for_each_entry_rcu(test, &enable_data->file->triggers, list, test 6408 kernel/trace/trace_events_hist.c if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { test 6410 kernel/trace/trace_events_hist.c test->paused = false; test 6412 kernel/trace/trace_events_hist.c test->paused = true; test 6478 kernel/trace/trace_events_hist.c struct event_trigger_data *test, *n; test 6480 kernel/trace/trace_events_hist.c list_for_each_entry_safe(test, n, &file->triggers, list) { test 6481 kernel/trace/trace_events_hist.c if (test->cmd_ops->trigger_type == ETT_HIST_ENABLE) { test 6482 kernel/trace/trace_events_hist.c list_del_rcu(&test->list); test 6485 kernel/trace/trace_events_hist.c if (test->ops->free) test 6486 kernel/trace/trace_events_hist.c test->ops->free(test->ops, test); test 539 kernel/trace/trace_events_trigger.c struct event_trigger_data *test; test 544 kernel/trace/trace_events_trigger.c list_for_each_entry(test, &file->triggers, list) { test 545 kernel/trace/trace_events_trigger.c if (test->cmd_ops->trigger_type == data->cmd_ops->trigger_type) { test 583 kernel/trace/trace_events_trigger.c struct event_trigger_data *test, test 592 kernel/trace/trace_events_trigger.c if (data->cmd_ops->trigger_type == test->cmd_ops->trigger_type) { test 818 kernel/trace/trace_events_trigger.c bool is_named_trigger(struct event_trigger_data *test) test 823 kernel/trace/trace_events_trigger.c if (test == data) test 862 kernel/trace/trace_events_trigger.c struct event_trigger_data *test; test 864 kernel/trace/trace_events_trigger.c list_for_each_entry(test, &named_triggers, named_list) { test 865 kernel/trace/trace_events_trigger.c if (strcmp(test->name, data->name) == 0) { test 867 kernel/trace/trace_events_trigger.c test->paused_tmp = test->paused; test 868 kernel/trace/trace_events_trigger.c test->paused = true; test 870 kernel/trace/trace_events_trigger.c test->paused = test->paused_tmp; test 1500 kernel/trace/trace_events_trigger.c struct event_trigger_data *test; test 1505 kernel/trace/trace_events_trigger.c list_for_each_entry(test, &file->triggers, list) { test 1506 kernel/trace/trace_events_trigger.c test_enable_data = test->private_data; test 1508 kernel/trace/trace_events_trigger.c (test->cmd_ops->trigger_type == test 1537 kernel/trace/trace_events_trigger.c struct event_trigger_data *test, test 1540 kernel/trace/trace_events_trigger.c struct enable_trigger_data *test_enable_data = test->private_data; test 1551 kernel/trace/trace_events_trigger.c test->cmd_ops->trigger_type) && test 36 lib/atomic64_test.c #define FAMILY_TEST(test, bit, op, args...) \ test 38 lib/atomic64_test.c test(bit, op, ##args); \ test 39 lib/atomic64_test.c test(bit, op##_acquire, ##args); \ test 40 lib/atomic64_test.c test(bit, op##_release, ##args); \ test 41 lib/atomic64_test.c test(bit, op##_relaxed, ##args); \ test 558 lib/crc32test.c } const test[] __initconst = test 678 lib/crc32test.c bytes += 2*test[i].length; test 680 lib/crc32test.c crc ^= __crc32c_le(test[i].crc, test_buf + test 681 lib/crc32test.c test[i].start, test[i].length); test 690 lib/crc32test.c if (test[i].crc32c_le != __crc32c_le(test[i].crc, test_buf + test 691 lib/crc32test.c test[i].start, test[i].length)) test 719 lib/crc32test.c crc_full = __crc32c_le(test[i].crc, test_buf + test[i].start, test 720 lib/crc32test.c test[i].length); test 721 lib/crc32test.c for (j = 0; j <= test[i].length; ++j) { test 723 lib/crc32test.c u32 len1 = j, len2 = test[i].length - j; test 725 lib/crc32test.c crc1 = __crc32c_le(test[i].crc, test_buf + test 726 lib/crc32test.c test[i].start, len1); test 727 lib/crc32test.c crc2 = __crc32c_le(0, test_buf + test[i].start + test 731 lib/crc32test.c crc_full == test[i].crc32c_le)) test 760 lib/crc32test.c bytes += 2*test[i].length; test 762 lib/crc32test.c crc ^= crc32_le(test[i].crc, test_buf + test 763 lib/crc32test.c test[i].start, test[i].length); test 765 lib/crc32test.c crc ^= crc32_be(test[i].crc, test_buf + test 766 lib/crc32test.c test[i].start, test[i].length); test 775 lib/crc32test.c if (test[i].crc_le != crc32_le(test[i].crc, test_buf + test 776 lib/crc32test.c test[i].start, test[i].length)) test 779 lib/crc32test.c if (test[i].crc_be != crc32_be(test[i].crc, test_buf + test 780 lib/crc32test.c test[i].start, test[i].length)) test 809 lib/crc32test.c crc_full = crc32_le(test[i].crc, test_buf + test[i].start, test 810 lib/crc32test.c test[i].length); test 811 lib/crc32test.c for (j = 0; j <= test[i].length; ++j) { test 813 lib/crc32test.c u32 len1 = j, len2 = test[i].length - j; test 815 lib/crc32test.c crc1 = crc32_le(test[i].crc, test_buf + test 816 lib/crc32test.c test[i].start, len1); test 817 lib/crc32test.c crc2 = crc32_le(0, test_buf + test[i].start + test 821 lib/crc32test.c crc_full == test[i].crc_le)) test 148 lib/globtest.c successes += test(pat, p, expected); test 5 lib/test-kstrtox.c #define for_each_test(i, test) \ test 6 lib/test-kstrtox.c for (i = 0; i < ARRAY_SIZE(test); i++) test 13 lib/test-kstrtox.c #define DEFINE_TEST_FAIL(test) \ test 14 lib/test-kstrtox.c const struct test_fail test[] __initconst test 23 lib/test-kstrtox.c #define DEFINE_TEST_OK(type, test) \ test 24 lib/test-kstrtox.c const type test[] __initconst test 26 lib/test-kstrtox.c #define TEST_FAIL(fn, type, fmt, test) \ test 30 lib/test-kstrtox.c for_each_test(i, test) { \ test 31 lib/test-kstrtox.c const struct test_fail *t = &test[i]; \ test 45 lib/test-kstrtox.c #define TEST_OK(fn, type, fmt, test) \ test 49 lib/test-kstrtox.c for_each_test(i, test) { \ test 50 lib/test-kstrtox.c const typeof(test[0]) *t = &test[i]; \ test 78 lib/test_bpf.c } test[MAX_SUBTESTS]; test 6500 lib/test_bpf.c static void *generate_test_data(struct bpf_test *test, int sub) test 6505 lib/test_bpf.c if (test->aux & FLAG_NO_DATA) test 6512 lib/test_bpf.c skb = populate_skb(test->data, test->test[sub].data_size); test 6516 lib/test_bpf.c if (test->aux & FLAG_SKB_FRAG) { test 6532 lib/test_bpf.c memcpy(ptr, test->frag_data, MAX_DATA); test 6546 lib/test_bpf.c static void release_test_data(const struct bpf_test *test, void *data) test 6548 lib/test_bpf.c if (test->aux & FLAG_NO_DATA) test 6678 lib/test_bpf.c static int run_one(const struct bpf_prog *fp, struct bpf_test *test) test 6687 lib/test_bpf.c if (test->test[i].data_size == 0 && test 6688 lib/test_bpf.c test->test[i].result == 0) test 6691 lib/test_bpf.c data = generate_test_data(test, i); test 6692 lib/test_bpf.c if (!data && !(test->aux & FLAG_NO_DATA)) { test 6698 lib/test_bpf.c release_test_data(test, data); test 6700 lib/test_bpf.c if (ret == test->test[i].result) { test 6704 lib/test_bpf.c test->test[i].result); test 68 lib/test_hexdump.c int groupsize, char *test, test 97 lib/test_hexdump.c p = test; test 114 lib/test_hexdump.c } while (p < test + rs * 2 + rs / gs + 1); test 128 lib/test_hexdump.c char test[TEST_HEXDUMP_BUF_SIZE]; test 137 lib/test_hexdump.c memset(test, FILL_CHAR, sizeof(test)); test 138 lib/test_hexdump.c test_hexdump_prepare_test(len, rowsize, groupsize, test, sizeof(test), test 141 lib/test_hexdump.c if (memcmp(test, real, TEST_HEXDUMP_BUF_SIZE)) { test 144 lib/test_hexdump.c pr_err("Expect: '%s'\n", test); test 164 lib/test_hexdump.c char test[TEST_HEXDUMP_BUF_SIZE]; test 190 lib/test_hexdump.c test_hexdump_prepare_test(len, rs, gs, test, sizeof(test), ascii); test 191 lib/test_hexdump.c test[f - 1] = '\0'; test 193 lib/test_hexdump.c memset(test + f, FILL_CHAR, sizeof(test) - f); test 195 lib/test_hexdump.c a = r == e && !memcmp(test, buf, TEST_HEXDUMP_BUF_SIZE); test 203 lib/test_hexdump.c pr_err("Expect: %d '%s'\n", e, test); test 141 lib/test_printf.c test("", &nul); test 142 lib/test_printf.c test("100%", "100%%"); test 143 lib/test_printf.c test("xxx%yyy", "xxx%cyyy", '%'); test 150 lib/test_printf.c test("0x1234abcd ", "%#-12x", 0x1234abcd); test 151 lib/test_printf.c test(" 0x1234abcd", "%#12x", 0x1234abcd); test 152 lib/test_printf.c test("0|001| 12|+123| 1234|-123|-1234", "%d|%03d|%3d|%+d|% d|%+d|% d", 0, 1, 12, 123, 1234, -123, -1234); test 153 lib/test_printf.c test("0|1|1|128|255", "%hhu|%hhu|%hhu|%hhu|%hhu", 0, 1, 257, 128, -1); test 154 lib/test_printf.c test("0|1|1|-128|-1", "%hhd|%hhd|%hhd|%hhd|%hhd", 0, 1, 257, 128, -1); test 155 lib/test_printf.c test("2015122420151225", "%ho%ho%#ho", 1037, 5282, -11627); test 164 lib/test_printf.c test("00|0|0|0|0", "%.2d|%.1d|%.0d|%.*d|%1.0d", 0, 0, 0, 0, 0, 0); test 174 lib/test_printf.c test("0xfffffff0|0xf0|0xf0", "%#02x|%#02x|%#02x", val, val & 0xff, (u8)val); test 182 lib/test_printf.c test("", "%s%.0s", "", "123"); test 183 lib/test_printf.c test("ABCD|abc|123", "%s|%.3s|%.*s", "ABCD", "abcdef", 3, "123456"); test 184 lib/test_printf.c test("1 | 2|3 | 4|5 ", "%-3s|%3s|%-*s|%*s|%*s", "1", "2", 3, "3", 3, "4", -3, "5"); test 185 lib/test_printf.c test("1234 ", "%-10.4s", "123456"); test 186 lib/test_printf.c test(" 1234", "%10.4s", "123456"); test 200 lib/test_printf.c test(" ", "%4.*s", -5, "123456"); test 201 lib/test_printf.c test("123456", "%.s", "123456"); test 202 lib/test_printf.c test("a||", "%.s|%.0s|%.*s", "a", "b", 0, "c"); test 203 lib/test_printf.c test("a | | ", "%-3.s|%-3.0s|%-3.*s", "a", "b", 0, "c"); test 330 lib/test_printf.c test(buf, fmt, p); test 339 lib/test_printf.c test(ZEROS "00000000", "%p", NULL); test 340 lib/test_printf.c test(ZEROS "00000000", "%px", NULL); test 341 lib/test_printf.c test("(null)", "%pE", NULL); test 350 lib/test_printf.c test(ONES "fffffff5", "%p", ERR_PTR(-11)); test 351 lib/test_printf.c test(ONES "fffffff5", "%px", ERR_PTR(-11)); test 352 lib/test_printf.c test("(efault)", "%pE", ERR_PTR(-11)); test 361 lib/test_printf.c test(ZEROS "000000ab", "%px", PTR_INVALID); test 362 lib/test_printf.c test("(efault)", "%pE", PTR_INVALID); test 396 lib/test_printf.c test("c0 ff ee|c0:ff:ee|c0-ff-ee|c0ffee", test 398 lib/test_printf.c test("c0 ff ee|c0:ff:ee|c0-ff-ee|c0ffee", test 407 lib/test_printf.c test("2d:48:d6:fc:7a:05", "%pM", addr); test 408 lib/test_printf.c test("05:7a:fc:d6:48:2d", "%pMR", addr); test 409 lib/test_printf.c test("2d-48-d6-fc-7a-05", "%pMF", addr); test 410 lib/test_printf.c test("2d48d6fc7a05", "%pm", addr); test 411 lib/test_printf.c test("057afcd6482d", "%pmR", addr); test 423 lib/test_printf.c test("127.000.000.001|127.0.0.1", "%pi4|%pI4", &sa.sin_addr, &sa.sin_addr); test 424 lib/test_printf.c test("127.000.000.001|127.0.0.1", "%piS|%pIS", &sa, &sa); test 426 lib/test_printf.c test("001.002.003.004:12345|1.2.3.4:12345", "%piSp|%pISp", &sa, &sa); test 447 lib/test_printf.c test("00010203-0405-0607-0809-0a0b0c0d0e0f", "%pUb", uuid); test 448 lib/test_printf.c test("00010203-0405-0607-0809-0A0B0C0D0E0F", "%pUB", uuid); test 449 lib/test_printf.c test("03020100-0504-0706-0809-0a0b0c0d0e0f", "%pUl", uuid); test 450 lib/test_printf.c test("03020100-0504-0706-0809-0A0B0C0D0E0F", "%pUL", uuid); test 471 lib/test_printf.c test("foo", "%pd", &test_dentry[0]); test 472 lib/test_printf.c test("foo", "%pd2", &test_dentry[0]); test 474 lib/test_printf.c test("(null)", "%pd", NULL); test 475 lib/test_printf.c test("(efault)", "%pd", PTR_INVALID); test 476 lib/test_printf.c test("(null)", "%pD", NULL); test 477 lib/test_printf.c test("(efault)", "%pD", PTR_INVALID); test 479 lib/test_printf.c test("romeo", "%pd", &test_dentry[3]); test 480 lib/test_printf.c test("alfa/romeo", "%pd2", &test_dentry[3]); test 481 lib/test_printf.c test("bravo/alfa/romeo", "%pd3", &test_dentry[3]); test 482 lib/test_printf.c test("/bravo/alfa/romeo", "%pd4", &test_dentry[3]); test 483 lib/test_printf.c test("/bravo/alfa", "%pd4", &test_dentry[2]); test 485 lib/test_printf.c test("bravo/alfa |bravo/alfa ", "%-12pd2|%*pd2", &test_dentry[2], -12, &test_dentry[2]); test 486 lib/test_printf.c test(" bravo/alfa| bravo/alfa", "%12pd2|%*pd2", &test_dentry[2], 12, &test_dentry[2]); test 507 lib/test_printf.c test("(%ptR?)", "%pt", &tm); test 508 lib/test_printf.c test("2018-11-26T05:35:43", "%ptR", &tm); test 509 lib/test_printf.c test("0118-10-26T05:35:43", "%ptRr", &tm); test 510 lib/test_printf.c test("05:35:43|2018-11-26", "%ptRt|%ptRd", &tm, &tm); test 511 lib/test_printf.c test("05:35:43|0118-10-26", "%ptRtr|%ptRdr", &tm, &tm); test 512 lib/test_printf.c test("05:35:43|2018-11-26", "%ptRttr|%ptRdtr", &tm, &tm); test 513 lib/test_printf.c test("05:35:43 tr|2018-11-26 tr", "%ptRt tr|%ptRd tr", &tm, &tm); test 531 lib/test_printf.c test("1-20,60000-60014", "%*pbl", nbits, bits); test 543 lib/test_printf.c test("00000|00000", "%20pb|%*pb", bits, 20, bits); test 544 lib/test_printf.c test("|", "%20pbl|%*pbl", bits, 20, bits); test 548 lib/test_printf.c test("a28ac|a28ac", "%20pb|%*pb", bits, 20, bits); test 549 lib/test_printf.c test("2-3,5,7,11,13,17,19|2-3,5,7,11,13,17,19", "%20pbl|%*pbl", bits, 20, bits); test 552 lib/test_printf.c test("fffff|fffff", "%20pb|%*pb", bits, 20, bits); test 553 lib/test_printf.c test("0-19|0-19", "%20pbl|%*pbl", bits, 20, bits); test 571 lib/test_printf.c test("", "%pGp", &flags); test 575 lib/test_printf.c test("", "%pGp", &flags); test 579 lib/test_printf.c test("uptodate|dirty|lru|active|swapbacked", "%pGp", &flags); test 584 lib/test_printf.c test("read|exec|mayread|maywrite|mayexec|denywrite", "%pGv", &flags); test 587 lib/test_printf.c test("GFP_TRANSHUGE", "%pGg", &gfp); test 590 lib/test_printf.c test("GFP_ATOMIC|GFP_DMA", "%pGg", &gfp); test 593 lib/test_printf.c test("__GFP_ATOMIC", "%pGg", &gfp); test 602 lib/test_printf.c test(cmp_buffer, "%pGg", &gfp); test 607 lib/test_printf.c test(cmp_buffer, "%pGg", &gfp); test 184 lib/test_string.c int test, subtest; test 186 lib/test_string.c test = 1; test 191 lib/test_string.c test = 2; test 196 lib/test_string.c test = 3; test 201 lib/test_string.c test = 4; test 206 lib/test_string.c test = 5; test 214 lib/test_string.c pr_crit("String selftest failure %d.%08x\n", test, subtest); test 52 lib/test_user_copy.c if (test(size < 2 * PAGE_SIZE, "buffer too small")) test 87 lib/test_user_copy.c ret |= test(copy_to_user(umem, kmem, size), test 96 lib/test_user_copy.c ret |= test(retval != expected, test 113 lib/test_user_copy.c ret = test(umem_src == NULL, "kmalloc failed"); test 118 lib/test_user_copy.c ret = test(expected == NULL, "kmalloc failed"); test 124 lib/test_user_copy.c ret |= test(copy_to_user(umem, umem_src, size), test 134 lib/test_user_copy.c ret |= test(copy_struct_from_user(kmem, ksize, umem, usize), test 136 lib/test_user_copy.c ret |= test(memcmp(kmem, expected, ksize), test 147 lib/test_user_copy.c ret |= test(copy_struct_from_user(kmem, ksize, umem, usize), test 149 lib/test_user_copy.c ret |= test(memcmp(kmem, expected, ksize), test 157 lib/test_user_copy.c ret |= test(copy_struct_from_user(kmem, ksize, umem, usize) != -E2BIG, test 165 lib/test_user_copy.c ret |= test(clear_user(umem + ksize, usize - ksize), test 169 lib/test_user_copy.c ret |= test(copy_struct_from_user(kmem, ksize, umem, usize), test 171 lib/test_user_copy.c ret |= test(memcmp(kmem, expected, ksize), test 214 lib/test_user_copy.c ret |= test(copy_to_user(usermem, kmem, PAGE_SIZE), test 217 lib/test_user_copy.c ret |= test(copy_from_user(kmem, usermem, PAGE_SIZE), test 219 lib/test_user_copy.c ret |= test(memcmp(kmem, kmem + PAGE_SIZE, PAGE_SIZE), test 225 lib/test_user_copy.c ret |= test(put_user(val_##size, (size __user *)usermem), \ test 228 lib/test_user_copy.c ret |= test(get_user(val_##size, (size __user *)usermem), \ test 230 lib/test_user_copy.c ret |= test(val_##size != check, \ test 261 lib/test_user_copy.c ret |= test(!copy_from_user(kmem, (char __user *)(kmem + PAGE_SIZE), test 266 lib/test_user_copy.c ret |= test(memcmp(kmem + PAGE_SIZE, kmem, PAGE_SIZE), test 276 lib/test_user_copy.c ret |= test(!copy_from_user(bad_usermem, (char __user *)kmem, test 280 lib/test_user_copy.c ret |= test(!copy_to_user((char __user *)kmem, kmem + PAGE_SIZE, test 283 lib/test_user_copy.c ret |= test(!copy_to_user((char __user *)kmem, bad_usermem, test 290 lib/test_user_copy.c ret |= test(!get_user(val_##size, (size __user *)kmem), \ test 292 lib/test_user_copy.c ret |= test(val_##size != (size)0, \ test 298 lib/test_user_copy.c ret |= test(!put_user(val_##size, (size __user *)kmem), \ test 80 net/bpf/test_run.c void __user *data_out = u64_to_user_ptr(kattr->test.data_out); test 87 net/bpf/test_run.c if (kattr->test.data_size_out && test 88 net/bpf/test_run.c copy_size > kattr->test.data_size_out) { test 89 net/bpf/test_run.c copy_size = kattr->test.data_size_out; test 95 net/bpf/test_run.c if (copy_to_user(&uattr->test.data_size_out, &size, sizeof(size))) test 97 net/bpf/test_run.c if (copy_to_user(&uattr->test.retval, &retval, sizeof(retval))) test 99 net/bpf/test_run.c if (copy_to_user(&uattr->test.duration, &duration, sizeof(duration))) test 111 net/bpf/test_run.c void __user *data_in = u64_to_user_ptr(kattr->test.data_in); test 130 net/bpf/test_run.c void __user *data_in = u64_to_user_ptr(kattr->test.ctx_in); test 131 net/bpf/test_run.c void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out); test 132 net/bpf/test_run.c u32 size = kattr->test.ctx_size_in; test 163 net/bpf/test_run.c void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out); test 170 net/bpf/test_run.c if (copy_size > kattr->test.ctx_size_out) { test 171 net/bpf/test_run.c copy_size = kattr->test.ctx_size_out; test 177 net/bpf/test_run.c if (copy_to_user(&uattr->test.ctx_size_out, &size, sizeof(size))) test 245 net/bpf/test_run.c u32 size = kattr->test.data_size_in; test 246 net/bpf/test_run.c u32 repeat = kattr->test.repeat; test 345 net/bpf/test_run.c u32 size = kattr->test.data_size_in; test 346 net/bpf/test_run.c u32 repeat = kattr->test.repeat; test 353 net/bpf/test_run.c if (kattr->test.ctx_in || kattr->test.ctx_out) test 400 net/bpf/test_run.c u32 size = kattr->test.data_size_in; test 402 net/bpf/test_run.c u32 repeat = kattr->test.repeat; test 1750 net/core/ethtool.c struct ethtool_test test; test 1763 net/core/ethtool.c if (copy_from_user(&test, useraddr, sizeof(test))) test 1766 net/core/ethtool.c test.len = test_len; test 1771 net/core/ethtool.c ops->self_test(dev, &test, data); test 1774 net/core/ethtool.c if (copy_to_user(useraddr, &test, sizeof(test))) test 1776 net/core/ethtool.c useraddr += sizeof(test); test 1777 net/core/ethtool.c if (copy_to_user(useraddr, data, test.len * sizeof(u64))) test 76 net/rds/connection.c #define rds_conn_info_set(var, test, suffix) do { \ test 77 net/rds/connection.c if (test) \ test 807 net/sunrpc/auth_gss/svcauth_gss.c struct auth_domain *test; test 821 net/sunrpc/auth_gss/svcauth_gss.c test = auth_domain_lookup(name, &new->h); test 822 net/sunrpc/auth_gss/svcauth_gss.c if (test != &new->h) { /* Duplicate registration */ test 823 net/sunrpc/auth_gss/svcauth_gss.c auth_domain_put(test); test 116 samples/bpf/map_perf_test_user.c static void do_test_lru(enum test_type test, int cpu) test 125 samples/bpf/map_perf_test_user.c if (test == INNER_LRU_HASH_PREALLOC) { test 164 samples/bpf/map_perf_test_user.c if (test == LRU_HASH_PREALLOC) { test 167 samples/bpf/map_perf_test_user.c } else if (test == NOCOMMON_LRU_HASH_PREALLOC) { test 170 samples/bpf/map_perf_test_user.c } else if (test == INNER_LRU_HASH_PREALLOC) { test 173 samples/bpf/map_perf_test_user.c } else if (test == LRU_HASH_LOOKUP) { test 107 samples/bpf/syscall_tp_user.c return test(filename, num_progs); test 40 samples/kfifo/bytestream-example.c static struct kfifo test; test 42 samples/kfifo/bytestream-example.c static DECLARE_KFIFO(test, unsigned char, FIFO_SIZE); test 61 samples/kfifo/bytestream-example.c kfifo_in(&test, "hello", 5); test 65 samples/kfifo/bytestream-example.c kfifo_put(&test, i); test 68 samples/kfifo/bytestream-example.c printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test)); test 71 samples/kfifo/bytestream-example.c i = kfifo_out(&test, buf, 5); test 75 samples/kfifo/bytestream-example.c ret = kfifo_out(&test, buf, 2); test 78 samples/kfifo/bytestream-example.c ret = kfifo_in(&test, buf, ret); test 83 samples/kfifo/bytestream-example.c kfifo_skip(&test); test 86 samples/kfifo/bytestream-example.c for (i = 20; kfifo_put(&test, i); i++) test 89 samples/kfifo/bytestream-example.c printk(KERN_INFO "queue len: %u\n", kfifo_len(&test)); test 92 samples/kfifo/bytestream-example.c if (kfifo_peek(&test, &i)) test 97 samples/kfifo/bytestream-example.c while (kfifo_get(&test, &i)) { test 122 samples/kfifo/bytestream-example.c ret = kfifo_from_user(&test, buf, count, &copied); test 138 samples/kfifo/bytestream-example.c ret = kfifo_to_user(&test, buf, count, &copied); test 157 samples/kfifo/bytestream-example.c ret = kfifo_alloc(&test, FIFO_SIZE, GFP_KERNEL); test 163 samples/kfifo/bytestream-example.c INIT_KFIFO(test); test 167 samples/kfifo/bytestream-example.c kfifo_free(&test); test 174 samples/kfifo/bytestream-example.c kfifo_free(&test); test 185 samples/kfifo/bytestream-example.c kfifo_free(&test); test 40 samples/kfifo/inttype-example.c static DECLARE_KFIFO_PTR(test, int); test 42 samples/kfifo/inttype-example.c static DEFINE_KFIFO(test, int, FIFO_SIZE); test 62 samples/kfifo/inttype-example.c kfifo_put(&test, i); test 65 samples/kfifo/inttype-example.c printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test)); test 68 samples/kfifo/inttype-example.c ret = kfifo_out(&test, buf, 2); test 71 samples/kfifo/inttype-example.c ret = kfifo_in(&test, buf, ret); test 76 samples/kfifo/inttype-example.c kfifo_skip(&test); test 79 samples/kfifo/inttype-example.c for (i = 20; kfifo_put(&test, i); i++) test 82 samples/kfifo/inttype-example.c printk(KERN_INFO "queue len: %u\n", kfifo_len(&test)); test 85 samples/kfifo/inttype-example.c if (kfifo_peek(&test, &i)) test 90 samples/kfifo/inttype-example.c while (kfifo_get(&test, &i)) { test 115 samples/kfifo/inttype-example.c ret = kfifo_from_user(&test, buf, count, &copied); test 131 samples/kfifo/inttype-example.c ret = kfifo_to_user(&test, buf, count, &copied); test 150 samples/kfifo/inttype-example.c ret = kfifo_alloc(&test, FIFO_SIZE, GFP_KERNEL); test 158 samples/kfifo/inttype-example.c kfifo_free(&test); test 165 samples/kfifo/inttype-example.c kfifo_free(&test); test 176 samples/kfifo/inttype-example.c kfifo_free(&test); test 48 samples/kfifo/record-example.c struct kfifo_rec_ptr_1 test; test 53 samples/kfifo/record-example.c static mytest test; test 78 samples/kfifo/record-example.c kfifo_in(&test, &hello, sizeof(hello)); test 81 samples/kfifo/record-example.c printk(KERN_INFO "fifo peek len: %u\n", kfifo_peek_len(&test)); test 86 samples/kfifo/record-example.c kfifo_in(&test, buf, i + 1); test 91 samples/kfifo/record-example.c kfifo_skip(&test); test 93 samples/kfifo/record-example.c printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test)); test 96 samples/kfifo/record-example.c ret = kfifo_out_peek(&test, buf, sizeof(buf)); test 102 samples/kfifo/record-example.c while (!kfifo_is_empty(&test)) { test 103 samples/kfifo/record-example.c ret = kfifo_out(&test, buf, sizeof(buf)); test 129 samples/kfifo/record-example.c ret = kfifo_from_user(&test, buf, count, &copied); test 145 samples/kfifo/record-example.c ret = kfifo_to_user(&test, buf, count, &copied); test 164 samples/kfifo/record-example.c ret = kfifo_alloc(&test, FIFO_SIZE, GFP_KERNEL); test 170 samples/kfifo/record-example.c INIT_KFIFO(test); test 174 samples/kfifo/record-example.c kfifo_free(&test); test 181 samples/kfifo/record-example.c kfifo_free(&test); test 192 samples/kfifo/record-example.c kfifo_free(&test); test 1676 sound/sparc/cs4231.c u32 test, csr; test 1685 sound/sparc/cs4231.c test = APC_CDMA_READY; test 1687 sound/sparc/cs4231.c test = APC_PDMA_READY; test 1688 sound/sparc/cs4231.c if (!(csr & test)) test 1691 sound/sparc/cs4231.c test = APC_XINT_CNVA; test 1693 sound/sparc/cs4231.c test = APC_XINT_PNVA; test 1694 sound/sparc/cs4231.c if (!(csr & test)) test 1707 sound/sparc/cs4231.c u32 csr, test; test 1712 sound/sparc/cs4231.c test = APC_GENL_INT | APC_PLAY_INT | APC_XINT_ENA | test 1716 sound/sparc/cs4231.c test = APC_GENL_INT | APC_CAPT_INT | APC_XINT_ENA | test 1718 sound/sparc/cs4231.c csr |= test; test 1247 sound/usb/mixer.c int saved, test, check; test 1251 sound/usb/mixer.c test = saved; test 1252 sound/usb/mixer.c if (test < cval->max) test 1253 sound/usb/mixer.c test += cval->res; test 1255 sound/usb/mixer.c test -= cval->res; test 1256 sound/usb/mixer.c if (test < cval->min || test > cval->max || test 1257 sound/usb/mixer.c snd_usb_set_cur_mix_value(cval, minchn, 0, test) || test 1262 sound/usb/mixer.c if (test == check) test 660 tools/iio/iio_utils.c int test; test 698 tools/iio/iio_utils.c if (fscanf(sysfsfp, "%d", &test) != 1) { test 711 tools/iio/iio_utils.c if (test != val) { test 457 tools/include/uapi/linux/bpf.h } test; test 527 tools/lib/bpf/bpf.c attr.test.prog_fd = prog_fd; test 528 tools/lib/bpf/bpf.c attr.test.data_in = ptr_to_u64(data); test 529 tools/lib/bpf/bpf.c attr.test.data_out = ptr_to_u64(data_out); test 530 tools/lib/bpf/bpf.c attr.test.data_size_in = size; test 531 tools/lib/bpf/bpf.c attr.test.repeat = repeat; test 535 tools/lib/bpf/bpf.c *size_out = attr.test.data_size_out; test 537 tools/lib/bpf/bpf.c *retval = attr.test.retval; test 539 tools/lib/bpf/bpf.c *duration = attr.test.duration; test 552 tools/lib/bpf/bpf.c attr.test.prog_fd = test_attr->prog_fd; test 553 tools/lib/bpf/bpf.c attr.test.data_in = ptr_to_u64(test_attr->data_in); test 554 tools/lib/bpf/bpf.c attr.test.data_out = ptr_to_u64(test_attr->data_out); test 555 tools/lib/bpf/bpf.c attr.test.data_size_in = test_attr->data_size_in; test 556 tools/lib/bpf/bpf.c attr.test.data_size_out = test_attr->data_size_out; test 557 tools/lib/bpf/bpf.c attr.test.ctx_in = ptr_to_u64(test_attr->ctx_in); test 558 tools/lib/bpf/bpf.c attr.test.ctx_out = ptr_to_u64(test_attr->ctx_out); test 559 tools/lib/bpf/bpf.c attr.test.ctx_size_in = test_attr->ctx_size_in; test 560 tools/lib/bpf/bpf.c attr.test.ctx_size_out = test_attr->ctx_size_out; test 561 tools/lib/bpf/bpf.c attr.test.repeat = test_attr->repeat; test 564 tools/lib/bpf/bpf.c test_attr->data_size_out = attr.test.data_size_out; test 565 tools/lib/bpf/bpf.c test_attr->ctx_size_out = attr.test.ctx_size_out; test 566 tools/lib/bpf/bpf.c test_attr->retval = attr.test.retval; test 567 tools/lib/bpf/bpf.c test_attr->duration = attr.test.duration; test 1340 tools/lib/traceevent/parse-filter.c char *test; test 1341 tools/lib/traceevent/parse-filter.c test = tep_filter_make_string(filter, event->event->id); test 1342 tools/lib/traceevent/parse-filter.c if (test) { test 1343 tools/lib/traceevent/parse-filter.c printf(" '%s: %s'\n", event->event->name, test); test 1344 tools/lib/traceevent/parse-filter.c free(test); test 39 tools/pci/pcitest.c static int run_test(struct pci_test *test) test 44 tools/pci/pcitest.c fd = open(test->device, O_RDWR); test 50 tools/pci/pcitest.c if (test->barnum >= 0 && test->barnum <= 5) { test 51 tools/pci/pcitest.c ret = ioctl(fd, PCITEST_BAR, test->barnum); test 52 tools/pci/pcitest.c fprintf(stdout, "BAR%d:\t\t", test->barnum); test 59 tools/pci/pcitest.c if (test->set_irqtype) { test 60 tools/pci/pcitest.c ret = ioctl(fd, PCITEST_SET_IRQTYPE, test->irqtype); test 61 tools/pci/pcitest.c fprintf(stdout, "SET IRQ TYPE TO %s:\t\t", irq[test->irqtype]); test 68 tools/pci/pcitest.c if (test->get_irqtype) { test 77 tools/pci/pcitest.c if (test->legacyirq) { test 86 tools/pci/pcitest.c if (test->msinum > 0 && test->msinum <= 32) { test 87 tools/pci/pcitest.c ret = ioctl(fd, PCITEST_MSI, test->msinum); test 88 tools/pci/pcitest.c fprintf(stdout, "MSI%d:\t\t", test->msinum); test 95 tools/pci/pcitest.c if (test->msixnum > 0 && test->msixnum <= 2048) { test 96 tools/pci/pcitest.c ret = ioctl(fd, PCITEST_MSIX, test->msixnum); test 97 tools/pci/pcitest.c fprintf(stdout, "MSI-X%d:\t\t", test->msixnum); test 104 tools/pci/pcitest.c if (test->write) { test 105 tools/pci/pcitest.c ret = ioctl(fd, PCITEST_WRITE, test->size); test 106 tools/pci/pcitest.c fprintf(stdout, "WRITE (%7ld bytes):\t\t", test->size); test 113 tools/pci/pcitest.c if (test->read) { test 114 tools/pci/pcitest.c ret = ioctl(fd, PCITEST_READ, test->size); test 115 tools/pci/pcitest.c fprintf(stdout, "READ (%7ld bytes):\t\t", test->size); test 122 tools/pci/pcitest.c if (test->copy) { test 123 tools/pci/pcitest.c ret = ioctl(fd, PCITEST_COPY, test->size); test 124 tools/pci/pcitest.c fprintf(stdout, "COPY (%7ld bytes):\t\t", test->size); test 139 tools/pci/pcitest.c struct pci_test *test; test 141 tools/pci/pcitest.c test = calloc(1, sizeof(*test)); test 142 tools/pci/pcitest.c if (!test) { test 148 tools/pci/pcitest.c test->barnum = -1; test 151 tools/pci/pcitest.c test->size = 0x19000; test 154 tools/pci/pcitest.c test->device = "/dev/pci-endpoint-test.0"; test 159 tools/pci/pcitest.c test->device = optarg; test 162 tools/pci/pcitest.c test->barnum = atoi(optarg); test 163 tools/pci/pcitest.c if (test->barnum < 0 || test->barnum > 5) test 167 tools/pci/pcitest.c test->legacyirq = true; test 170 tools/pci/pcitest.c test->msinum = atoi(optarg); test 171 tools/pci/pcitest.c if (test->msinum < 1 || test->msinum > 32) test 175 tools/pci/pcitest.c test->msixnum = atoi(optarg); test 176 tools/pci/pcitest.c if (test->msixnum < 1 || test->msixnum > 2048) test 180 tools/pci/pcitest.c test->irqtype = atoi(optarg); test 181 tools/pci/pcitest.c if (test->irqtype < 0 || test->irqtype > 2) test 183 tools/pci/pcitest.c test->set_irqtype = true; test 186 tools/pci/pcitest.c test->get_irqtype = true; test 189 tools/pci/pcitest.c test->read = true; test 192 tools/pci/pcitest.c test->write = true; test 195 tools/pci/pcitest.c test->copy = true; test 198 tools/pci/pcitest.c test->size = strtoul(optarg, NULL, 0); test 222 tools/pci/pcitest.c return run_test(test); test 10 tools/perf/arch/arm/include/arch-tests.h extern struct test arch_tests[]; test 6 tools/perf/arch/arm/tests/arch-tests.c struct test arch_tests[] = { test 12 tools/perf/arch/arm/tests/vectors-page.c int test__vectors_page(struct test *test __maybe_unused, test 10 tools/perf/arch/arm64/include/arch-tests.h extern struct test arch_tests[]; test 6 tools/perf/arch/arm64/tests/arch-tests.c struct test arch_tests[] = { test 12 tools/perf/arch/powerpc/include/arch-tests.h extern struct test arch_tests[]; test 6 tools/perf/arch/powerpc/tests/arch-tests.c struct test arch_tests[] = { test 6 tools/perf/arch/x86/include/arch-tests.h struct test; test 9 tools/perf/arch/x86/include/arch-tests.h int test__rdpmc(struct test *test __maybe_unused, int subtest); test 10 tools/perf/arch/x86/include/arch-tests.h int test__perf_time_to_tsc(struct test *test __maybe_unused, int subtest); test 11 tools/perf/arch/x86/include/arch-tests.h int test__insn_x86(struct test *test __maybe_unused, int subtest); test 12 tools/perf/arch/x86/include/arch-tests.h int test__intel_pt_pkt_decoder(struct test *test, int subtest); test 13 tools/perf/arch/x86/include/arch-tests.h int test__bp_modify(struct test *test, int subtest); test 22 tools/perf/arch/x86/include/arch-tests.h extern struct test arch_tests[]; test 6 tools/perf/arch/x86/tests/arch-tests.c struct test arch_tests[] = { test 207 tools/perf/arch/x86/tests/bp-modify.c int test__bp_modify(struct test *test __maybe_unused, test 176 tools/perf/arch/x86/tests/insn-x86.c int test__insn_x86(struct test *test __maybe_unused, int subtest __maybe_unused) test 40 tools/perf/arch/x86/tests/intel-cqm.c int test__intel_cqm_count_nmi_context(struct test *test __maybe_unused, int subtest __maybe_unused) test 292 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c int test__intel_pt_pkt_decoder(struct test *test __maybe_unused, int subtest __maybe_unused) test 47 tools/perf/arch/x86/tests/perf-time-to-tsc.c int test__perf_time_to_tsc(struct test *test __maybe_unused, int subtest __maybe_unused) test 160 tools/perf/arch/x86/tests/rdpmc.c int test__rdpmc(struct test *test __maybe_unused, int subtest __maybe_unused) test 180 tools/perf/tests/attr.c int test__attr(struct test *test __maybe_unused, int subtest __maybe_unused) test 84 tools/perf/tests/backward-ring-buffer.c int test__backward_ring_buffer(struct test *test __maybe_unused, int subtest __maybe_unused) test 43 tools/perf/tests/bitmap.c int test__bitmap_print(struct test *test __maybe_unused, int subtest __maybe_unused) test 180 tools/perf/tests/bp_account.c int test__bp_accounting(struct test *test __maybe_unused, int subtest __maybe_unused) test 161 tools/perf/tests/bp_signal.c int test__bp_signal(struct test *test __maybe_unused, int subtest __maybe_unused) test 62 tools/perf/tests/bp_signal_overflow.c int test__bp_signal_overflow(struct test *test __maybe_unused, int subtest __maybe_unused) test 331 tools/perf/tests/bpf.c int test__bpf(struct test *test __maybe_unused, int i) test 361 tools/perf/tests/bpf.c int test__bpf(struct test *test __maybe_unused, int i __maybe_unused) test 32 tools/perf/tests/builtin-test.c struct test __weak arch_tests[] = { test 38 tools/perf/tests/builtin-test.c static struct test generic_tests[] = { test 308 tools/perf/tests/builtin-test.c static struct test *tests[] = { test 313 tools/perf/tests/builtin-test.c static bool perf_test__matches(struct test *test, int curr, int argc, const char *argv[]) test 330 tools/perf/tests/builtin-test.c if (strcasestr(test->desc, argv[i])) test 337 tools/perf/tests/builtin-test.c static int run_test(struct test *test, int subtest) test 369 tools/perf/tests/builtin-test.c err = test->func(test, subtest); test 393 tools/perf/tests/builtin-test.c static int test_and_print(struct test *t, bool force_skip, int subtest) test 509 tools/perf/tests/builtin-test.c static int shell_test__run(struct test *test, int subdir __maybe_unused) test 513 tools/perf/tests/builtin-test.c struct shell_test *st = test->priv; test 543 tools/perf/tests/builtin-test.c struct test test = { test 549 tools/perf/tests/builtin-test.c if (!perf_test__matches(&test, curr, argc, argv)) test 553 tools/perf/tests/builtin-test.c pr_info("%2d: %-*s:", i, width, test.desc); test 554 tools/perf/tests/builtin-test.c test_and_print(&test, false, -1); test 563 tools/perf/tests/builtin-test.c struct test *t; test 653 tools/perf/tests/builtin-test.c struct test t = { test 670 tools/perf/tests/builtin-test.c struct test *t; test 35 tools/perf/tests/clang.c int test__clang(struct test *test __maybe_unused, int i __maybe_unused) test 40 tools/perf/tests/clang.c int test__clang(struct test *test __maybe_unused, int i) test 729 tools/perf/tests/code-reading.c int test__code_reading(struct test *test __maybe_unused, int subtest __maybe_unused) test 78 tools/perf/tests/cpumap.c int test__cpu_map_synthesize(struct test *test __maybe_unused, int subtest __maybe_unused) test 112 tools/perf/tests/cpumap.c int test__cpu_map_print(struct test *test __maybe_unused, int subtest __maybe_unused) test 116 tools/perf/tests/dso-data.c int test__dso_data(struct test *test __maybe_unused, int subtest __maybe_unused) test 251 tools/perf/tests/dso-data.c int test__dso_data_cache(struct test *test __maybe_unused, int subtest __maybe_unused) test 311 tools/perf/tests/dso-data.c int test__dso_data_reopen(struct test *test __maybe_unused, int subtest __maybe_unused) test 176 tools/perf/tests/dwarf-unwind.c int test__dwarf_unwind(struct test *test __maybe_unused, int subtest __maybe_unused) test 219 tools/perf/tests/event-times.c int test__event_times(struct test *test __maybe_unused, int subtest __maybe_unused) test 86 tools/perf/tests/event_update.c int test__event_update(struct test *test __maybe_unused, int subtest __maybe_unused) test 101 tools/perf/tests/evsel-roundtrip-name.c int test__perf_evsel__roundtrip_name_test(struct test *test __maybe_unused, int subtest __maybe_unused) test 36 tools/perf/tests/evsel-tp-sched.c int test__perf_evsel__tp_sched_test(struct test *test __maybe_unused, int subtest __maybe_unused) test 19 tools/perf/tests/expr.c int test__expr(struct test *t __maybe_unused, int subtest __maybe_unused) test 32 tools/perf/tests/expr.c ret = test(&ctx, "1+1", 2); test 33 tools/perf/tests/expr.c ret |= test(&ctx, "FOO+BAR", 3); test 34 tools/perf/tests/expr.c ret |= test(&ctx, "(BAR/2)%2", 1); test 35 tools/perf/tests/expr.c ret |= test(&ctx, "1 - -4", 5); test 36 tools/perf/tests/expr.c ret |= test(&ctx, "(FOO-1)*2 + (BAR/2)%2 - -4", 5); test 37 tools/perf/tests/expr.c ret |= test(&ctx, "1-1 | 1", 1); test 38 tools/perf/tests/expr.c ret |= test(&ctx, "1-1 & 1", 0); test 39 tools/perf/tests/expr.c ret |= test(&ctx, "min(1,2) + 1", 2); test 40 tools/perf/tests/expr.c ret |= test(&ctx, "max(1,2) + 1", 3); test 41 tools/perf/tests/expr.c ret |= test(&ctx, "1+1 if 3*4 else 0", 2); test 30 tools/perf/tests/fdarray.c int test__fdarray__filter(struct test *test __maybe_unused, int subtest __maybe_unused) test 108 tools/perf/tests/fdarray.c int test__fdarray__add(struct test *test __maybe_unused, int subtest __maybe_unused) test 692 tools/perf/tests/hists_cumulate.c int test__hists_cumulate(struct test *test __maybe_unused, int subtest __maybe_unused) test 104 tools/perf/tests/hists_filter.c int test__hists_filter(struct test *test __maybe_unused, int subtest __maybe_unused) test 267 tools/perf/tests/hists_link.c int test__hists_link(struct test *test __maybe_unused, int subtest __maybe_unused) test 578 tools/perf/tests/hists_output.c int test__hists_output(struct test *test __maybe_unused, int subtest __maybe_unused) test 8 tools/perf/tests/is_printable_array.c int test__is_printable_array(struct test *test __maybe_unused, int subtest __maybe_unused) test 63 tools/perf/tests/keep-tracking.c int test__keep_tracking(struct test *test __maybe_unused, int subtest __maybe_unused) test 45 tools/perf/tests/kmod-path.c TEST_ASSERT_VAL("failed", !test(path, an, k, c, n)) test 50 tools/perf/tests/kmod-path.c int test__kmod_path__parse(struct test *t __maybe_unused, int subtest __maybe_unused) test 136 tools/perf/tests/llvm.c int test__llvm(struct test *test __maybe_unused, int subtest) test 37 tools/perf/tests/map_groups.c int test__map_groups__merge_in(struct test *t __maybe_unused, int subtest __maybe_unused) test 26 tools/perf/tests/mem.c int test__mem(struct test *text __maybe_unused, int subtest __maybe_unused) test 46 tools/perf/tests/mem2node.c int test__mem2node(struct test *t __maybe_unused, int subtest __maybe_unused) test 31 tools/perf/tests/mmap-basic.c int test__basic_mmap(struct test *test __maybe_unused, int subtest __maybe_unused) test 227 tools/perf/tests/mmap-thread-lookup.c int test__mmap_thread_lookup(struct test *test __maybe_unused, int subtest __maybe_unused) test 23 tools/perf/tests/openat-syscall-all-cpus.c int test__openat_syscall_event_on_all_cpus(struct test *test __maybe_unused, int subtest __maybe_unused) test 24 tools/perf/tests/openat-syscall-tp-fields.c int test__syscall_openat_tp_fields(struct test *test __maybe_unused, int subtest __maybe_unused) test 16 tools/perf/tests/openat-syscall.c int test__openat_syscall_event(struct test *test __maybe_unused, int subtest __maybe_unused) test 1917 tools/perf/tests/parse-events.c int test__parse_events(struct test *test __maybe_unused, int subtest __maybe_unused) test 70 tools/perf/tests/parse-no-sample-id-all.c int test__parse_no_sample_id_all(struct test *test __maybe_unused, int subtest __maybe_unused) test 29 tools/perf/tests/perf-hooks.c int test__perf_hooks(struct test *test __maybe_unused, int subtest __maybe_unused) test 43 tools/perf/tests/perf-record.c int test__PERF_RECORD(struct test *test __maybe_unused, int subtest __maybe_unused) test 140 tools/perf/tests/pmu.c int test__pmu(struct test *test __maybe_unused, int subtest __maybe_unused) test 12 tools/perf/tests/python-use.c int test__python_use(struct test *test __maybe_unused, int subtest __maybe_unused) test 307 tools/perf/tests/sample-parsing.c int test__sample_parsing(struct test *test __maybe_unused, int subtest __maybe_unused) test 79 tools/perf/tests/sdt.c int test__sdt_event(struct test *test __maybe_unused, int subtests __maybe_unused) test 117 tools/perf/tests/sdt.c int test__sdt_event(struct test *test __maybe_unused, int subtests __maybe_unused) test 50 tools/perf/tests/stat.c int test__synthesize_stat_config(struct test *test __maybe_unused, int subtest __maybe_unused) test 80 tools/perf/tests/stat.c int test__synthesize_stat(struct test *test __maybe_unused, int subtest __maybe_unused) test 106 tools/perf/tests/stat.c int test__synthesize_stat_round(struct test *test __maybe_unused, int subtest __maybe_unused) test 139 tools/perf/tests/sw-clock.c int test__sw_clock_freq(struct test *test __maybe_unused, int subtest __maybe_unused) test 322 tools/perf/tests/switch-tracking.c int test__switch_tracking(struct test *test __maybe_unused, int subtest __maybe_unused) test 41 tools/perf/tests/task-exit.c int test__task_exit(struct test *test __maybe_unused, int subtest __maybe_unused) test 32 tools/perf/tests/tests.h int (*func)(struct test *test, int subtest); test 43 tools/perf/tests/tests.h int test__vmlinux_matches_kallsyms(struct test *test, int subtest); test 44 tools/perf/tests/tests.h int test__openat_syscall_event(struct test *test, int subtest); test 45 tools/perf/tests/tests.h int test__openat_syscall_event_on_all_cpus(struct test *test, int subtest); test 46 tools/perf/tests/tests.h int test__basic_mmap(struct test *test, int subtest); test 47 tools/perf/tests/tests.h int test__PERF_RECORD(struct test *test, int subtest); test 48 tools/perf/tests/tests.h int test__perf_evsel__roundtrip_name_test(struct test *test, int subtest); test 49 tools/perf/tests/tests.h int test__perf_evsel__tp_sched_test(struct test *test, int subtest); test 50 tools/perf/tests/tests.h int test__syscall_openat_tp_fields(struct test *test, int subtest); test 51 tools/perf/tests/tests.h int test__pmu(struct test *test, int subtest); test 52 tools/perf/tests/tests.h int test__attr(struct test *test, int subtest); test 53 tools/perf/tests/tests.h int test__dso_data(struct test *test, int subtest); test 54 tools/perf/tests/tests.h int test__dso_data_cache(struct test *test, int subtest); test 55 tools/perf/tests/tests.h int test__dso_data_reopen(struct test *test, int subtest); test 56 tools/perf/tests/tests.h int test__parse_events(struct test *test, int subtest); test 57 tools/perf/tests/tests.h int test__hists_link(struct test *test, int subtest); test 58 tools/perf/tests/tests.h int test__python_use(struct test *test, int subtest); test 59 tools/perf/tests/tests.h int test__bp_signal(struct test *test, int subtest); test 60 tools/perf/tests/tests.h int test__bp_signal_overflow(struct test *test, int subtest); test 61 tools/perf/tests/tests.h int test__bp_accounting(struct test *test, int subtest); test 62 tools/perf/tests/tests.h int test__wp(struct test *test, int subtest); test 65 tools/perf/tests/tests.h int test__task_exit(struct test *test, int subtest); test 66 tools/perf/tests/tests.h int test__mem(struct test *test, int subtest); test 67 tools/perf/tests/tests.h int test__sw_clock_freq(struct test *test, int subtest); test 68 tools/perf/tests/tests.h int test__code_reading(struct test *test, int subtest); test 69 tools/perf/tests/tests.h int test__sample_parsing(struct test *test, int subtest); test 70 tools/perf/tests/tests.h int test__keep_tracking(struct test *test, int subtest); test 71 tools/perf/tests/tests.h int test__parse_no_sample_id_all(struct test *test, int subtest); test 72 tools/perf/tests/tests.h int test__dwarf_unwind(struct test *test, int subtest); test 73 tools/perf/tests/tests.h int test__expr(struct test *test, int subtest); test 74 tools/perf/tests/tests.h int test__hists_filter(struct test *test, int subtest); test 75 tools/perf/tests/tests.h int test__mmap_thread_lookup(struct test *test, int subtest); test 76 tools/perf/tests/tests.h int test__thread_mg_share(struct test *test, int subtest); test 77 tools/perf/tests/tests.h int test__hists_output(struct test *test, int subtest); test 78 tools/perf/tests/tests.h int test__hists_cumulate(struct test *test, int subtest); test 79 tools/perf/tests/tests.h int test__switch_tracking(struct test *test, int subtest); test 80 tools/perf/tests/tests.h int test__fdarray__filter(struct test *test, int subtest); test 81 tools/perf/tests/tests.h int test__fdarray__add(struct test *test, int subtest); test 82 tools/perf/tests/tests.h int test__kmod_path__parse(struct test *test, int subtest); test 83 tools/perf/tests/tests.h int test__thread_map(struct test *test, int subtest); test 84 tools/perf/tests/tests.h int test__llvm(struct test *test, int subtest); test 87 tools/perf/tests/tests.h int test__bpf(struct test *test, int subtest); test 90 tools/perf/tests/tests.h int test__session_topology(struct test *test, int subtest); test 91 tools/perf/tests/tests.h int test__thread_map_synthesize(struct test *test, int subtest); test 92 tools/perf/tests/tests.h int test__thread_map_remove(struct test *test, int subtest); test 93 tools/perf/tests/tests.h int test__cpu_map_synthesize(struct test *test, int subtest); test 94 tools/perf/tests/tests.h int test__synthesize_stat_config(struct test *test, int subtest); test 95 tools/perf/tests/tests.h int test__synthesize_stat(struct test *test, int subtest); test 96 tools/perf/tests/tests.h int test__synthesize_stat_round(struct test *test, int subtest); test 97 tools/perf/tests/tests.h int test__event_update(struct test *test, int subtest); test 98 tools/perf/tests/tests.h int test__event_times(struct test *test, int subtest); test 99 tools/perf/tests/tests.h int test__backward_ring_buffer(struct test *test, int subtest); test 100 tools/perf/tests/tests.h int test__cpu_map_print(struct test *test, int subtest); test 101 tools/perf/tests/tests.h int test__sdt_event(struct test *test, int subtest); test 102 tools/perf/tests/tests.h int test__is_printable_array(struct test *test, int subtest); test 103 tools/perf/tests/tests.h int test__bitmap_print(struct test *test, int subtest); test 104 tools/perf/tests/tests.h int test__perf_hooks(struct test *test, int subtest); test 105 tools/perf/tests/tests.h int test__clang(struct test *test, int subtest); test 108 tools/perf/tests/tests.h int test__unit_number__scnprint(struct test *test, int subtest); test 109 tools/perf/tests/tests.h int test__mem2node(struct test *t, int subtest); test 110 tools/perf/tests/tests.h int test__map_groups__merge_in(struct test *t, int subtest); test 111 tools/perf/tests/tests.h int test__time_utils(struct test *t, int subtest); test 126 tools/perf/tests/tests.h int test__vectors_page(struct test *test, int subtest); test 22 tools/perf/tests/thread-map.c int test__thread_map(struct test *test __maybe_unused, int subtest __maybe_unused) test 89 tools/perf/tests/thread-map.c int test__thread_map_synthesize(struct test *test __maybe_unused, int subtest __maybe_unused) test 108 tools/perf/tests/thread-map.c int test__thread_map_remove(struct test *test __maybe_unused, int subtest __maybe_unused) test 7 tools/perf/tests/thread-mg-share.c int test__thread_mg_share(struct test *test __maybe_unused, int subtest __maybe_unused) test 134 tools/perf/tests/time-utils-test.c int test__time_utils(struct test *t __maybe_unused, int subtest __maybe_unused) test 118 tools/perf/tests/topology.c int test__session_topology(struct test *test __maybe_unused, int subtest __maybe_unused) test 10 tools/perf/tests/unit_number__scnprintf.c int test__unit_number__scnprint(struct test *t __maybe_unused, int subtest __maybe_unused) test 15 tools/perf/tests/unit_number__scnprintf.c } test[] = { test 25 tools/perf/tests/unit_number__scnprintf.c while (test[i].str) { test 28 tools/perf/tests/unit_number__scnprintf.c unit_number__scnprintf(buf, sizeof(buf), test[i].n); test 31 tools/perf/tests/unit_number__scnprintf.c test[i].n, test[i].str, buf); test 33 tools/perf/tests/unit_number__scnprintf.c if (strcmp(test[i].str, buf)) test 17 tools/perf/tests/vmlinux-kallsyms.c int test__vmlinux_matches_kallsyms(struct test *test __maybe_unused, int subtest __maybe_unused) test 222 tools/perf/tests/wp.c int test__wp(struct test *test __maybe_unused, int i) test 3 tools/perf/util/perf-hooks-list.h PERF_HOOK(test) test 375 tools/perf/util/trace-event-read.c char test[] = { 23, 8, 68 }; test 393 tools/perf/util/trace-event-read.c if (memcmp(buf, test, 3) != 0) { test 30 tools/testing/scatterlist/main.c } *test, tests[] = { test 55 tools/testing/scatterlist/main.c for (i = 0, test = tests; test->expected_segments; test++, i++) { test 60 tools/testing/scatterlist/main.c set_pages(pages, test->pfn, test->num_pages); test 62 tools/testing/scatterlist/main.c ret = __sg_alloc_table_from_pages(&st, pages, test->num_pages, test 63 tools/testing/scatterlist/main.c 0, test->size, test->max_seg, test 65 tools/testing/scatterlist/main.c assert(ret == test->alloc_ret); test 67 tools/testing/scatterlist/main.c if (test->alloc_ret) test 70 tools/testing/scatterlist/main.c assert(st.nents == test->expected_segments); test 71 tools/testing/scatterlist/main.c assert(st.orig_nents == test->expected_segments); test 35 tools/testing/selftests/bpf/get_cgroup_id_user.c static int bpf_find_map(const char *test, struct bpf_object *obj, test 100 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c const struct scale_test_def *test = &tests[i]; test 102 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c if (!test__start_subtest(test->file)) test 105 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c err = check_load(test->file, test->attach_type); test 106 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c CHECK_FAIL(err && !test->fails); test 103 tools/testing/selftests/bpf/prog_tests/flow_dissector.c struct test tests[] = { test 877 tools/testing/selftests/bpf/prog_tests/sockopt.c static int run_test(int cgroup_fd, struct sockopt_test *test) test 883 tools/testing/selftests/bpf/prog_tests/sockopt.c prog_fd = load_prog(test->insns, test->expected_attach_type); test 885 tools/testing/selftests/bpf/prog_tests/sockopt.c if (test->error == DENY_LOAD) test 892 tools/testing/selftests/bpf/prog_tests/sockopt.c err = bpf_prog_attach(prog_fd, cgroup_fd, test->attach_type, 0); test 894 tools/testing/selftests/bpf/prog_tests/sockopt.c if (test->error == DENY_ATTACH) test 909 tools/testing/selftests/bpf/prog_tests/sockopt.c if (test->set_optlen) { test 910 tools/testing/selftests/bpf/prog_tests/sockopt.c err = setsockopt(sock_fd, test->set_level, test->set_optname, test 911 tools/testing/selftests/bpf/prog_tests/sockopt.c test->set_optval, test->set_optlen); test 913 tools/testing/selftests/bpf/prog_tests/sockopt.c if (errno == EPERM && test->error == EPERM_SETSOCKOPT) test 915 tools/testing/selftests/bpf/prog_tests/sockopt.c if (errno == EFAULT && test->error == EFAULT_SETSOCKOPT) test 924 tools/testing/selftests/bpf/prog_tests/sockopt.c if (test->get_optlen) { test 925 tools/testing/selftests/bpf/prog_tests/sockopt.c optval = malloc(test->get_optlen); test 926 tools/testing/selftests/bpf/prog_tests/sockopt.c socklen_t optlen = test->get_optlen; test 927 tools/testing/selftests/bpf/prog_tests/sockopt.c socklen_t expected_get_optlen = test->get_optlen_ret ?: test 928 tools/testing/selftests/bpf/prog_tests/sockopt.c test->get_optlen; test 930 tools/testing/selftests/bpf/prog_tests/sockopt.c err = getsockopt(sock_fd, test->get_level, test->get_optname, test 933 tools/testing/selftests/bpf/prog_tests/sockopt.c if (errno == EPERM && test->error == EPERM_GETSOCKOPT) test 935 tools/testing/selftests/bpf/prog_tests/sockopt.c if (errno == EFAULT && test->error == EFAULT_GETSOCKOPT) test 950 tools/testing/selftests/bpf/prog_tests/sockopt.c if (memcmp(optval, test->get_optval, optlen) != 0) { test 958 tools/testing/selftests/bpf/prog_tests/sockopt.c ret = test->error != OK; test 965 tools/testing/selftests/bpf/prog_tests/sockopt.c bpf_prog_detach2(prog_fd, cgroup_fd, test->attach_type); test 610 tools/testing/selftests/bpf/test_align.c static int do_test_single(struct bpf_align_test *test) test 612 tools/testing/selftests/bpf/test_align.c struct bpf_insn *prog = test->insns; test 613 tools/testing/selftests/bpf/test_align.c int prog_type = test->prog_type; test 625 tools/testing/selftests/bpf/test_align.c if (fd_prog < 0 && test->result != REJECT) { test 629 tools/testing/selftests/bpf/test_align.c } else if (fd_prog >= 0 && test->result == REJECT) { test 640 tools/testing/selftests/bpf/test_align.c struct bpf_reg_match m = test->matches[i]; test 679 tools/testing/selftests/bpf/test_align.c struct bpf_align_test *test = &tests[i]; test 683 tools/testing/selftests/bpf/test_align.c i, test->descr); test 684 tools/testing/selftests/bpf/test_align.c fail = do_test_single(test); test 3627 tools/testing/selftests/bpf/test_btf.c struct btf_raw_test *test = &raw_tests[test_num - 1]; test 3635 tools/testing/selftests/bpf/test_btf.c fprintf(stderr, "BTF raw test[%u] (%s): ", test_num, test->descr); test 3637 tools/testing/selftests/bpf/test_btf.c test->raw_types, test 3638 tools/testing/selftests/bpf/test_btf.c test->str_sec, test 3639 tools/testing/selftests/bpf/test_btf.c test->str_sec_size, test 3647 tools/testing/selftests/bpf/test_btf.c hdr->hdr_len = (int)hdr->hdr_len + test->hdr_len_delta; test 3648 tools/testing/selftests/bpf/test_btf.c hdr->type_off = (int)hdr->type_off + test->type_off_delta; test 3649 tools/testing/selftests/bpf/test_btf.c hdr->str_off = (int)hdr->str_off + test->str_off_delta; test 3650 tools/testing/selftests/bpf/test_btf.c hdr->str_len = (int)hdr->str_len + test->str_len_delta; test 3658 tools/testing/selftests/bpf/test_btf.c err = ((btf_fd == -1) != test->btf_load_err); test 3660 tools/testing/selftests/bpf/test_btf.c btf_fd, test->btf_load_err) || test 3661 tools/testing/selftests/bpf/test_btf.c CHECK(test->err_str && !strstr(btf_log_buf, test->err_str), test 3662 tools/testing/selftests/bpf/test_btf.c "expected err_str:%s", test->err_str)) { test 3670 tools/testing/selftests/bpf/test_btf.c create_attr.name = test->map_name; test 3671 tools/testing/selftests/bpf/test_btf.c create_attr.map_type = test->map_type; test 3672 tools/testing/selftests/bpf/test_btf.c create_attr.key_size = test->key_size; test 3673 tools/testing/selftests/bpf/test_btf.c create_attr.value_size = test->value_size; test 3674 tools/testing/selftests/bpf/test_btf.c create_attr.max_entries = test->max_entries; test 3676 tools/testing/selftests/bpf/test_btf.c create_attr.btf_key_type_id = test->key_type_id; test 3677 tools/testing/selftests/bpf/test_btf.c create_attr.btf_value_type_id = test->value_type_id; test 3681 tools/testing/selftests/bpf/test_btf.c err = ((map_fd == -1) != test->map_create_err); test 3683 tools/testing/selftests/bpf/test_btf.c map_fd, test->map_create_err); test 3782 tools/testing/selftests/bpf/test_btf.c const struct btf_get_info_test *test = &get_info_tests[test_num - 1]; test 3794 tools/testing/selftests/bpf/test_btf.c test->raw_types, test 3795 tools/testing/selftests/bpf/test_btf.c test->str_sec, test 3796 tools/testing/selftests/bpf/test_btf.c test->str_sec_size, test 3867 tools/testing/selftests/bpf/test_btf.c const struct btf_get_info_test *test = &get_info_tests[test_num - 1]; test 3878 tools/testing/selftests/bpf/test_btf.c test->raw_types, test 3879 tools/testing/selftests/bpf/test_btf.c test->str_sec, test 3880 tools/testing/selftests/bpf/test_btf.c test->str_sec_size, test 4002 tools/testing/selftests/bpf/test_btf.c const struct btf_get_info_test *test = &get_info_tests[test_num - 1]; test 4010 tools/testing/selftests/bpf/test_btf.c test_num, test->descr); test 4012 tools/testing/selftests/bpf/test_btf.c if (test->special_test) test 4013 tools/testing/selftests/bpf/test_btf.c return test->special_test(test_num); test 4016 tools/testing/selftests/bpf/test_btf.c test->raw_types, test 4017 tools/testing/selftests/bpf/test_btf.c test->str_sec, test 4018 tools/testing/selftests/bpf/test_btf.c test->str_sec_size, test 4040 tools/testing/selftests/bpf/test_btf.c user_btf_size = (int)raw_btf_size + test->btf_size_delta; test 4114 tools/testing/selftests/bpf/test_btf.c const struct btf_file_test *test = &file_tests[test_num - 1]; test 4131 tools/testing/selftests/bpf/test_btf.c test->file); test 4133 tools/testing/selftests/bpf/test_btf.c btf = btf__parse_elf(test->file, &btf_ext); test 4147 tools/testing/selftests/bpf/test_btf.c obj = bpf_object__open(test->file); test 4174 tools/testing/selftests/bpf/test_btf.c != test->btf_kv_notfound; test 4177 tools/testing/selftests/bpf/test_btf.c test->btf_kv_notfound)) test 4757 tools/testing/selftests/bpf/test_btf.c const struct btf_raw_test *test = &pprint_test_template[test_num]; test 4758 tools/testing/selftests/bpf/test_btf.c enum pprint_mapv_kind_t mapv_kind = test->mapv_kind; test 4774 tools/testing/selftests/bpf/test_btf.c fprintf(stderr, "%s(#%d)......", test->descr, test_num); test 4775 tools/testing/selftests/bpf/test_btf.c raw_btf = btf_raw_create(&hdr_tmpl, test->raw_types, test 4776 tools/testing/selftests/bpf/test_btf.c test->str_sec, test->str_sec_size, test 4793 tools/testing/selftests/bpf/test_btf.c create_attr.name = test->map_name; test 4794 tools/testing/selftests/bpf/test_btf.c create_attr.map_type = test->map_type; test 4795 tools/testing/selftests/bpf/test_btf.c create_attr.key_size = test->key_size; test 4796 tools/testing/selftests/bpf/test_btf.c create_attr.value_size = test->value_size; test 4797 tools/testing/selftests/bpf/test_btf.c create_attr.max_entries = test->max_entries; test 4799 tools/testing/selftests/bpf/test_btf.c create_attr.btf_key_type_id = test->key_type_id; test 4800 tools/testing/selftests/bpf/test_btf.c create_attr.btf_value_type_id = test->value_type_id; test 4809 tools/testing/selftests/bpf/test_btf.c "/sys/fs/bpf", test->map_name); test 4812 tools/testing/selftests/bpf/test_btf.c "/sys/fs/bpf", test->map_name)) { test 4821 tools/testing/selftests/bpf/test_btf.c percpu_map = test->percpu_map; test 4830 tools/testing/selftests/bpf/test_btf.c for (key = 0; key < test->max_entries; key++) { test 4852 tools/testing/selftests/bpf/test_btf.c ordered_map = test->ordered_map; test 4853 tools/testing/selftests/bpf/test_btf.c lossless_map = test->lossless_map; test 4914 tools/testing/selftests/bpf/test_btf.c } while (++nr_read_elems < test->max_entries && nread > 0); test 4917 tools/testing/selftests/bpf/test_btf.c CHECK(nr_read_elems < test->max_entries, test 4919 tools/testing/selftests/bpf/test_btf.c nr_read_elems, test->max_entries)) { test 5844 tools/testing/selftests/bpf/test_btf.c static int test_get_finfo(const struct prog_info_raw_test *test, test 5861 tools/testing/selftests/bpf/test_btf.c nr_func_info = test->func_info_cnt - test->dead_func_cnt; test 5907 tools/testing/selftests/bpf/test_btf.c if (test->dead_func_mask & (1 << i)) test 5909 tools/testing/selftests/bpf/test_btf.c if (CHECK(finfo->type_id != test->func_info[i][1], test 5911 tools/testing/selftests/bpf/test_btf.c finfo->type_id, test->func_info[i][1])) { test 5925 tools/testing/selftests/bpf/test_btf.c static int test_get_linfo(const struct prog_info_raw_test *test, test 5943 tools/testing/selftests/bpf/test_btf.c if (test->nr_jited_ksyms) test 5944 tools/testing/selftests/bpf/test_btf.c nr_jited_ksyms = test->nr_jited_ksyms; test 5946 tools/testing/selftests/bpf/test_btf.c nr_jited_ksyms = test->func_info_cnt - test->dead_func_cnt; test 6049 tools/testing/selftests/bpf/test_btf.c while (test->dead_code_mask & (1 << dead_insns)) test 6057 tools/testing/selftests/bpf/test_btf.c while (test->dead_code_mask & (1 << (i + dead_insns))) test 6061 tools/testing/selftests/bpf/test_btf.c ((i + dead_insns) * test->line_info_rec_size); test 6145 tools/testing/selftests/bpf/test_btf.c const struct prog_info_raw_test *test = &info_raw_tests[test_num - 1]; test 6152 tools/testing/selftests/bpf/test_btf.c fprintf(stderr, "BTF prog info raw test[%u] (%s): ", test_num, test->descr); test 6153 tools/testing/selftests/bpf/test_btf.c raw_btf = btf_raw_create(&hdr_tmpl, test->raw_types, test 6154 tools/testing/selftests/bpf/test_btf.c test->str_sec, test->str_sec_size, test 6175 tools/testing/selftests/bpf/test_btf.c linfo_str_off = ret_next_str - test->str_sec; test 6176 tools/testing/selftests/bpf/test_btf.c patched_linfo = patch_name_tbd(test->line_info, test 6177 tools/testing/selftests/bpf/test_btf.c test->str_sec, linfo_str_off, test 6178 tools/testing/selftests/bpf/test_btf.c test->str_sec_size, &linfo_size); test 6185 tools/testing/selftests/bpf/test_btf.c attr.prog_type = test->prog_type; test 6186 tools/testing/selftests/bpf/test_btf.c attr.insns = ptr_to_u64(test->insns); test 6187 tools/testing/selftests/bpf/test_btf.c attr.insn_cnt = probe_prog_length(test->insns); test 6190 tools/testing/selftests/bpf/test_btf.c attr.func_info_rec_size = test->func_info_rec_size; test 6191 tools/testing/selftests/bpf/test_btf.c attr.func_info_cnt = test->func_info_cnt; test 6192 tools/testing/selftests/bpf/test_btf.c attr.func_info = ptr_to_u64(test->func_info); test 6197 tools/testing/selftests/bpf/test_btf.c attr.line_info_rec_size = test->line_info_rec_size; test 6203 tools/testing/selftests/bpf/test_btf.c err = ((prog_fd == -1) != test->expected_prog_load_failure); test 6205 tools/testing/selftests/bpf/test_btf.c prog_fd, test->expected_prog_load_failure, errno) || test 6206 tools/testing/selftests/bpf/test_btf.c CHECK(test->err_str && !strstr(btf_log_buf, test->err_str), test 6207 tools/testing/selftests/bpf/test_btf.c "expected err_str:%s", test->err_str)) { test 6215 tools/testing/selftests/bpf/test_btf.c err = test_get_finfo(test, prog_fd); test 6219 tools/testing/selftests/bpf/test_btf.c err = test_get_linfo(test, patched_linfo, test 6220 tools/testing/selftests/bpf/test_btf.c attr.line_info_cnt - test->dead_code_cnt, test 6721 tools/testing/selftests/bpf/test_btf.c const struct btf_dedup_test *test = &dedup_tests[test_num - 1]; test 6734 tools/testing/selftests/bpf/test_btf.c fprintf(stderr, "BTF dedup test[%u] (%s):", test_num, test->descr); test 6736 tools/testing/selftests/bpf/test_btf.c raw_btf = btf_raw_create(&hdr_tmpl, test->input.raw_types, test 6737 tools/testing/selftests/bpf/test_btf.c test->input.str_sec, test->input.str_sec_size, test 6749 tools/testing/selftests/bpf/test_btf.c raw_btf = btf_raw_create(&hdr_tmpl, test->expect.raw_types, test 6750 tools/testing/selftests/bpf/test_btf.c test->expect.str_sec, test 6751 tools/testing/selftests/bpf/test_btf.c test->expect.str_sec_size, test 6763 tools/testing/selftests/bpf/test_btf.c err = btf__dedup(test_btf, NULL, &test->opts); test 21 tools/testing/selftests/bpf/test_netcnt.c static int bpf_find_map(const char *test, struct bpf_object *obj, test 28 tools/testing/selftests/bpf/test_netcnt.c printf("%s:FAIL:map '%s' not found\n", test, name); test 41 tools/testing/selftests/bpf/test_progs.c static void dump_test_log(const struct prog_test_def *test, bool failed) test 48 tools/testing/selftests/bpf/test_progs.c if (env.verbose || test->force_log || failed) { test 62 tools/testing/selftests/bpf/test_progs.c if (env.test->skip_cnt) { test 64 tools/testing/selftests/bpf/test_progs.c env.test->skip_cnt = 0; test 70 tools/testing/selftests/bpf/test_progs.c struct prog_test_def *test = env.test; test 71 tools/testing/selftests/bpf/test_progs.c int sub_error_cnt = test->error_cnt - test->old_error_cnt; test 79 tools/testing/selftests/bpf/test_progs.c dump_test_log(test, sub_error_cnt); test 82 tools/testing/selftests/bpf/test_progs.c test->test_num, test->subtest_num, test 83 tools/testing/selftests/bpf/test_progs.c test->subtest_name, sub_error_cnt ? "FAIL" : "OK"); test 85 tools/testing/selftests/bpf/test_progs.c free(test->subtest_name); test 86 tools/testing/selftests/bpf/test_progs.c test->subtest_name = NULL; test 91 tools/testing/selftests/bpf/test_progs.c struct prog_test_def *test = env.test; test 93 tools/testing/selftests/bpf/test_progs.c if (test->subtest_name) test 96 tools/testing/selftests/bpf/test_progs.c test->subtest_num++; test 101 tools/testing/selftests/bpf/test_progs.c test->subtest_num); test 105 tools/testing/selftests/bpf/test_progs.c if (!should_run(&env.subtest_selector, test->subtest_num, name)) test 108 tools/testing/selftests/bpf/test_progs.c test->subtest_name = strdup(name); test 109 tools/testing/selftests/bpf/test_progs.c if (!test->subtest_name) { test 112 tools/testing/selftests/bpf/test_progs.c test->subtest_num); test 115 tools/testing/selftests/bpf/test_progs.c env.test->old_error_cnt = env.test->error_cnt; test 121 tools/testing/selftests/bpf/test_progs.c env.test->force_log = true; test 126 tools/testing/selftests/bpf/test_progs.c env.test->skip_cnt++; test 131 tools/testing/selftests/bpf/test_progs.c env.test->error_cnt++; test 138 tools/testing/selftests/bpf/test_progs.c if (!env.test->need_cgroup_cleanup) { test 142 tools/testing/selftests/bpf/test_progs.c env.test->test_num, env.test->test_name); test 146 tools/testing/selftests/bpf/test_progs.c env.test->need_cgroup_cleanup = true; test 153 tools/testing/selftests/bpf/test_progs.c env.test->test_num, env.test->test_name, path, errno); test 160 tools/testing/selftests/bpf/test_progs.c env.test->test_num, env.test->test_name, path, errno); test 184 tools/testing/selftests/bpf/test_progs.c int bpf_find_map(const char *test, struct bpf_object *obj, const char *name) test 190 tools/testing/selftests/bpf/test_progs.c printf("%s:FAIL:map '%s' not found\n", test, name); test 549 tools/testing/selftests/bpf/test_progs.c struct prog_test_def *test = &prog_test_defs[i]; test 551 tools/testing/selftests/bpf/test_progs.c env.test = test; test 552 tools/testing/selftests/bpf/test_progs.c test->test_num = i + 1; test 555 tools/testing/selftests/bpf/test_progs.c test->test_num, test->test_name)) test 558 tools/testing/selftests/bpf/test_progs.c test->run_test(); test 560 tools/testing/selftests/bpf/test_progs.c if (test->subtest_name) test 563 tools/testing/selftests/bpf/test_progs.c test->tested = true; test 564 tools/testing/selftests/bpf/test_progs.c if (test->error_cnt) test 570 tools/testing/selftests/bpf/test_progs.c dump_test_log(test, test->error_cnt); test 573 tools/testing/selftests/bpf/test_progs.c test->test_num, test->test_name, test 574 tools/testing/selftests/bpf/test_progs.c test->error_cnt ? "FAIL" : "OK"); test 576 tools/testing/selftests/bpf/test_progs.c if (test->need_cgroup_cleanup) test 57 tools/testing/selftests/bpf/test_progs.h struct prog_test_def *test; test 131 tools/testing/selftests/bpf/test_progs.h int bpf_find_map(const char *test, struct bpf_object *obj, const char *name); test 149 tools/testing/selftests/bpf/test_section_names.c static int test_prog_type_by_name(const struct sec_name_test *test) test 155 tools/testing/selftests/bpf/test_section_names.c rc = libbpf_prog_type_by_name(test->sec_name, &prog_type, test 158 tools/testing/selftests/bpf/test_section_names.c if (rc != test->expected_load.rc) { test 159 tools/testing/selftests/bpf/test_section_names.c warnx("prog: unexpected rc=%d for %s", rc, test->sec_name); test 166 tools/testing/selftests/bpf/test_section_names.c if (prog_type != test->expected_load.prog_type) { test 168 tools/testing/selftests/bpf/test_section_names.c test->sec_name); test 172 tools/testing/selftests/bpf/test_section_names.c if (expected_attach_type != test->expected_load.expected_attach_type) { test 174 tools/testing/selftests/bpf/test_section_names.c expected_attach_type, test->sec_name); test 181 tools/testing/selftests/bpf/test_section_names.c static int test_attach_type_by_name(const struct sec_name_test *test) test 186 tools/testing/selftests/bpf/test_section_names.c rc = libbpf_attach_type_by_name(test->sec_name, &attach_type); test 188 tools/testing/selftests/bpf/test_section_names.c if (rc != test->expected_attach.rc) { test 189 tools/testing/selftests/bpf/test_section_names.c warnx("attach: unexpected rc=%d for %s", rc, test->sec_name); test 196 tools/testing/selftests/bpf/test_section_names.c if (attach_type != test->expected_attach.attach_type) { test 198 tools/testing/selftests/bpf/test_section_names.c test->sec_name); test 205 tools/testing/selftests/bpf/test_section_names.c static int run_test_case(const struct sec_name_test *test) test 207 tools/testing/selftests/bpf/test_section_names.c if (test_prog_type_by_name(test)) test 209 tools/testing/selftests/bpf/test_section_names.c if (test_attach_type_by_name(test)) test 399 tools/testing/selftests/bpf/test_sock.c static int run_test_case(int cgfd, const struct sock_test *test) test 404 tools/testing/selftests/bpf/test_sock.c printf("Test case: %s .. ", test->descr); test 405 tools/testing/selftests/bpf/test_sock.c progfd = load_sock_prog(test->insns, test->expected_attach_type); test 407 tools/testing/selftests/bpf/test_sock.c if (test->result == LOAD_REJECT) test 413 tools/testing/selftests/bpf/test_sock.c if (attach_sock_prog(cgfd, progfd, test->attach_type) == -1) { test 414 tools/testing/selftests/bpf/test_sock.c if (test->result == ATTACH_REJECT) test 420 tools/testing/selftests/bpf/test_sock.c if (bind_sock(test->domain, test->type, test->ip, test->port) == -1) { test 424 tools/testing/selftests/bpf/test_sock.c if (test->result == BIND_REJECT && errno == EPERM) test 431 tools/testing/selftests/bpf/test_sock.c if (test->result != SUCCESS) test 440 tools/testing/selftests/bpf/test_sock.c bpf_prog_detach(cgfd, test->attach_type); test 55 tools/testing/selftests/bpf/test_sock_addr.c typedef int (*load_fn)(const struct sock_addr_test *test); test 86 tools/testing/selftests/bpf/test_sock_addr.c static int bind4_prog_load(const struct sock_addr_test *test); test 87 tools/testing/selftests/bpf/test_sock_addr.c static int bind6_prog_load(const struct sock_addr_test *test); test 88 tools/testing/selftests/bpf/test_sock_addr.c static int connect4_prog_load(const struct sock_addr_test *test); test 89 tools/testing/selftests/bpf/test_sock_addr.c static int connect6_prog_load(const struct sock_addr_test *test); test 90 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg_allow_prog_load(const struct sock_addr_test *test); test 91 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg_deny_prog_load(const struct sock_addr_test *test); test 92 tools/testing/selftests/bpf/test_sock_addr.c static int recvmsg_allow_prog_load(const struct sock_addr_test *test); test 93 tools/testing/selftests/bpf/test_sock_addr.c static int recvmsg_deny_prog_load(const struct sock_addr_test *test); test 94 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg4_rw_asm_prog_load(const struct sock_addr_test *test); test 95 tools/testing/selftests/bpf/test_sock_addr.c static int recvmsg4_rw_asm_prog_load(const struct sock_addr_test *test); test 96 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg4_rw_c_prog_load(const struct sock_addr_test *test); test 97 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg6_rw_asm_prog_load(const struct sock_addr_test *test); test 98 tools/testing/selftests/bpf/test_sock_addr.c static int recvmsg6_rw_asm_prog_load(const struct sock_addr_test *test); test 99 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg6_rw_c_prog_load(const struct sock_addr_test *test); test 100 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg6_rw_v4mapped_prog_load(const struct sock_addr_test *test); test 101 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg6_rw_wildcard_prog_load(const struct sock_addr_test *test); test 641 tools/testing/selftests/bpf/test_sock_addr.c static int load_insns(const struct sock_addr_test *test, test 649 tools/testing/selftests/bpf/test_sock_addr.c load_attr.expected_attach_type = test->expected_attach_type; test 655 tools/testing/selftests/bpf/test_sock_addr.c if (ret < 0 && test->expected_result != LOAD_REJECT) { test 674 tools/testing/selftests/bpf/test_sock_addr.c static int bind4_prog_load(const struct sock_addr_test *test) test 760 tools/testing/selftests/bpf/test_sock_addr.c return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); test 763 tools/testing/selftests/bpf/test_sock_addr.c static int bind6_prog_load(const struct sock_addr_test *test) test 826 tools/testing/selftests/bpf/test_sock_addr.c return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); test 829 tools/testing/selftests/bpf/test_sock_addr.c static int load_path(const struct sock_addr_test *test, const char *path) test 838 tools/testing/selftests/bpf/test_sock_addr.c attr.expected_attach_type = test->expected_attach_type; test 842 tools/testing/selftests/bpf/test_sock_addr.c if (test->expected_result != LOAD_REJECT) test 850 tools/testing/selftests/bpf/test_sock_addr.c static int connect4_prog_load(const struct sock_addr_test *test) test 852 tools/testing/selftests/bpf/test_sock_addr.c return load_path(test, CONNECT4_PROG_PATH); test 855 tools/testing/selftests/bpf/test_sock_addr.c static int connect6_prog_load(const struct sock_addr_test *test) test 857 tools/testing/selftests/bpf/test_sock_addr.c return load_path(test, CONNECT6_PROG_PATH); test 860 tools/testing/selftests/bpf/test_sock_addr.c static int xmsg_ret_only_prog_load(const struct sock_addr_test *test, test 868 tools/testing/selftests/bpf/test_sock_addr.c return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); test 871 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg_allow_prog_load(const struct sock_addr_test *test) test 873 tools/testing/selftests/bpf/test_sock_addr.c return xmsg_ret_only_prog_load(test, /*rc*/ 1); test 876 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg_deny_prog_load(const struct sock_addr_test *test) test 878 tools/testing/selftests/bpf/test_sock_addr.c return xmsg_ret_only_prog_load(test, /*rc*/ 0); test 881 tools/testing/selftests/bpf/test_sock_addr.c static int recvmsg_allow_prog_load(const struct sock_addr_test *test) test 883 tools/testing/selftests/bpf/test_sock_addr.c return xmsg_ret_only_prog_load(test, /*rc*/ 1); test 886 tools/testing/selftests/bpf/test_sock_addr.c static int recvmsg_deny_prog_load(const struct sock_addr_test *test) test 888 tools/testing/selftests/bpf/test_sock_addr.c return xmsg_ret_only_prog_load(test, /*rc*/ 0); test 891 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg4_rw_asm_prog_load(const struct sock_addr_test *test) test 940 tools/testing/selftests/bpf/test_sock_addr.c return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); test 943 tools/testing/selftests/bpf/test_sock_addr.c static int recvmsg4_rw_asm_prog_load(const struct sock_addr_test *test) test 981 tools/testing/selftests/bpf/test_sock_addr.c return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); test 984 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg4_rw_c_prog_load(const struct sock_addr_test *test) test 986 tools/testing/selftests/bpf/test_sock_addr.c return load_path(test, SENDMSG4_PROG_PATH); test 989 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg6_rw_dst_asm_prog_load(const struct sock_addr_test *test, test 1039 tools/testing/selftests/bpf/test_sock_addr.c return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); test 1042 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg6_rw_asm_prog_load(const struct sock_addr_test *test) test 1044 tools/testing/selftests/bpf/test_sock_addr.c return sendmsg6_rw_dst_asm_prog_load(test, SERV6_REWRITE_IP); test 1047 tools/testing/selftests/bpf/test_sock_addr.c static int recvmsg6_rw_asm_prog_load(const struct sock_addr_test *test) test 1077 tools/testing/selftests/bpf/test_sock_addr.c return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); test 1080 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg6_rw_v4mapped_prog_load(const struct sock_addr_test *test) test 1082 tools/testing/selftests/bpf/test_sock_addr.c return sendmsg6_rw_dst_asm_prog_load(test, SERV6_V4MAPPED_IP); test 1085 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg6_rw_wildcard_prog_load(const struct sock_addr_test *test) test 1087 tools/testing/selftests/bpf/test_sock_addr.c return sendmsg6_rw_dst_asm_prog_load(test, WILDCARD6_IP); test 1090 tools/testing/selftests/bpf/test_sock_addr.c static int sendmsg6_rw_c_prog_load(const struct sock_addr_test *test) test 1092 tools/testing/selftests/bpf/test_sock_addr.c return load_path(test, SENDMSG6_PROG_PATH); test 1350 tools/testing/selftests/bpf/test_sock_addr.c static int init_addrs(const struct sock_addr_test *test, test 1357 tools/testing/selftests/bpf/test_sock_addr.c if (mk_sockaddr(test->domain, test->expected_ip, test->expected_port, test 1361 tools/testing/selftests/bpf/test_sock_addr.c if (mk_sockaddr(test->domain, test->requested_ip, test->requested_port, test 1365 tools/testing/selftests/bpf/test_sock_addr.c if (test->expected_src_ip && test 1366 tools/testing/selftests/bpf/test_sock_addr.c mk_sockaddr(test->domain, test->expected_src_ip, 0, test 1375 tools/testing/selftests/bpf/test_sock_addr.c static int run_bind_test_case(const struct sock_addr_test *test) test 1384 tools/testing/selftests/bpf/test_sock_addr.c if (init_addrs(test, &requested_addr, &expected_addr, NULL)) test 1387 tools/testing/selftests/bpf/test_sock_addr.c servfd = start_server(test->type, &requested_addr, addr_len); test 1395 tools/testing/selftests/bpf/test_sock_addr.c clientfd = connect_to_server(test->type, &expected_addr, addr_len); test 1408 tools/testing/selftests/bpf/test_sock_addr.c static int run_connect_test_case(const struct sock_addr_test *test) test 1418 tools/testing/selftests/bpf/test_sock_addr.c if (init_addrs(test, &requested_addr, &expected_addr, test 1423 tools/testing/selftests/bpf/test_sock_addr.c servfd = start_server(test->type, &expected_addr, addr_len); test 1427 tools/testing/selftests/bpf/test_sock_addr.c clientfd = connect_to_server(test->type, &requested_addr, addr_len); test 1438 tools/testing/selftests/bpf/test_sock_addr.c if (test->type == SOCK_STREAM) { test 1461 tools/testing/selftests/bpf/test_sock_addr.c static int run_xmsg_test_case(const struct sock_addr_test *test, int max_cmsg) test 1473 tools/testing/selftests/bpf/test_sock_addr.c if (test->type != SOCK_DGRAM) test 1476 tools/testing/selftests/bpf/test_sock_addr.c if (init_addrs(test, &sendmsg_addr, &server_addr, &expected_addr)) test 1480 tools/testing/selftests/bpf/test_sock_addr.c servfd = start_server(test->type, &server_addr, addr_len); test 1488 tools/testing/selftests/bpf/test_sock_addr.c clientfd = sendmsg_to_server(test->type, &sendmsg_addr, test 1524 tools/testing/selftests/bpf/test_sock_addr.c static int run_test_case(int cgfd, const struct sock_addr_test *test) test 1529 tools/testing/selftests/bpf/test_sock_addr.c printf("Test case: %s .. ", test->descr); test 1531 tools/testing/selftests/bpf/test_sock_addr.c progfd = test->loadfn(test); test 1532 tools/testing/selftests/bpf/test_sock_addr.c if (test->expected_result == LOAD_REJECT && progfd < 0) test 1534 tools/testing/selftests/bpf/test_sock_addr.c else if (test->expected_result == LOAD_REJECT || progfd < 0) test 1537 tools/testing/selftests/bpf/test_sock_addr.c err = bpf_prog_attach(progfd, cgfd, test->attach_type, test 1539 tools/testing/selftests/bpf/test_sock_addr.c if (test->expected_result == ATTACH_REJECT && err) { test 1542 tools/testing/selftests/bpf/test_sock_addr.c } else if (test->expected_result == ATTACH_REJECT || err) { test 1544 tools/testing/selftests/bpf/test_sock_addr.c } else if (test->expected_result == ATTACH_OKAY) { test 1549 tools/testing/selftests/bpf/test_sock_addr.c switch (test->attach_type) { test 1552 tools/testing/selftests/bpf/test_sock_addr.c err = run_bind_test_case(test); test 1556 tools/testing/selftests/bpf/test_sock_addr.c err = run_connect_test_case(test); test 1560 tools/testing/selftests/bpf/test_sock_addr.c err = run_xmsg_test_case(test, 1); test 1564 tools/testing/selftests/bpf/test_sock_addr.c err = run_xmsg_test_case(test, 0); test 1570 tools/testing/selftests/bpf/test_sock_addr.c if (test->expected_result == SYSCALL_EPERM && err == EPERM) { test 1575 tools/testing/selftests/bpf/test_sock_addr.c if (test->expected_result == SYSCALL_ENOTSUPP && err == ENOTSUPP) { test 1580 tools/testing/selftests/bpf/test_sock_addr.c if (err || test->expected_result != SUCCESS) test 1589 tools/testing/selftests/bpf/test_sock_addr.c bpf_prog_detach(cgfd, test->attach_type); test 482 tools/testing/selftests/bpf/test_sock_fields.c test(); test 793 tools/testing/selftests/bpf/test_sockmap.c static int run_options(struct sockmap_options *options, int cg_fd, int test) test 798 tools/testing/selftests/bpf/test_sockmap.c if (test == BASE || test == BASE_SENDPAGE) test 1022 tools/testing/selftests/bpf/test_sockmap.c int skb_fd = (test == SENDMSG || test == SENDPAGE) ? test 1049 tools/testing/selftests/bpf/test_sockmap.c if (test == PING_PONG) test 1051 tools/testing/selftests/bpf/test_sockmap.c else if (test == SENDMSG) { test 1055 tools/testing/selftests/bpf/test_sockmap.c } else if (test == SENDPAGE) { test 1059 tools/testing/selftests/bpf/test_sockmap.c } else if (test == BASE) { test 1063 tools/testing/selftests/bpf/test_sockmap.c } else if (test == BASE_SENDPAGE) { test 1095 tools/testing/selftests/bpf/test_sockmap.c static char *test_to_str(int test) test 1097 tools/testing/selftests/bpf/test_sockmap.c switch (test) { test 1154 tools/testing/selftests/bpf/test_sockmap.c static int __test_exec(int cgrp, int test, struct sockmap_options *opt) test 1159 tools/testing/selftests/bpf/test_sockmap.c if (test == SENDPAGE) test 1174 tools/testing/selftests/bpf/test_sockmap.c test_to_str(test), options); test 1176 tools/testing/selftests/bpf/test_sockmap.c err = run_options(opt, cgrp, test); test 1740 tools/testing/selftests/bpf/test_sockmap.c int test = PING_PONG; test 1798 tools/testing/selftests/bpf/test_sockmap.c test = PING_PONG; test 1800 tools/testing/selftests/bpf/test_sockmap.c test = SENDMSG; test 1802 tools/testing/selftests/bpf/test_sockmap.c test = BASE; test 1804 tools/testing/selftests/bpf/test_sockmap.c test = BASE_SENDPAGE; test 1806 tools/testing/selftests/bpf/test_sockmap.c test = SENDPAGE; test 1845 tools/testing/selftests/bpf/test_sockmap.c err = run_options(&options, cg_fd, test); test 1411 tools/testing/selftests/bpf/test_sysctl.c static int load_sysctl_prog_insns(struct sysctl_test *test, test 1414 tools/testing/selftests/bpf/test_sysctl.c struct bpf_insn *prog = test->insns; test 1424 tools/testing/selftests/bpf/test_sysctl.c if (test->fixup_value_insn) { test 1441 tools/testing/selftests/bpf/test_sysctl.c if (fixup_sysctl_value(buf, len, prog, test->fixup_value_insn)) test 1446 tools/testing/selftests/bpf/test_sysctl.c if (ret < 0 && test->result != LOAD_REJECT) { test 1454 tools/testing/selftests/bpf/test_sysctl.c static int load_sysctl_prog_file(struct sysctl_test *test) test 1461 tools/testing/selftests/bpf/test_sysctl.c attr.file = test->prog_file; test 1465 tools/testing/selftests/bpf/test_sysctl.c if (test->result != LOAD_REJECT) test 1467 tools/testing/selftests/bpf/test_sysctl.c test->prog_file); test 1474 tools/testing/selftests/bpf/test_sysctl.c static int load_sysctl_prog(struct sysctl_test *test, const char *sysctl_path) test 1476 tools/testing/selftests/bpf/test_sysctl.c return test->prog_file test 1477 tools/testing/selftests/bpf/test_sysctl.c ? load_sysctl_prog_file(test) test 1478 tools/testing/selftests/bpf/test_sysctl.c : load_sysctl_prog_insns(test, sysctl_path); test 1482 tools/testing/selftests/bpf/test_sysctl.c const struct sysctl_test *test) test 1487 tools/testing/selftests/bpf/test_sysctl.c fd = open(sysctl_path, test->open_flags | O_CLOEXEC); test 1491 tools/testing/selftests/bpf/test_sysctl.c if (test->seek && lseek(fd, test->seek, SEEK_SET) == -1) { test 1492 tools/testing/selftests/bpf/test_sysctl.c log_err("lseek(%d) failed", test->seek); test 1496 tools/testing/selftests/bpf/test_sysctl.c if (test->open_flags == O_RDONLY) { test 1501 tools/testing/selftests/bpf/test_sysctl.c if (test->oldval && test 1502 tools/testing/selftests/bpf/test_sysctl.c strncmp(buf, test->oldval, strlen(test->oldval))) { test 1503 tools/testing/selftests/bpf/test_sysctl.c log_err("Read value %s != %s", buf, test->oldval); test 1506 tools/testing/selftests/bpf/test_sysctl.c } else if (test->open_flags == O_WRONLY) { test 1507 tools/testing/selftests/bpf/test_sysctl.c if (!test->newval) { test 1511 tools/testing/selftests/bpf/test_sysctl.c if (write(fd, test->newval, strlen(test->newval)) == -1) test 1526 tools/testing/selftests/bpf/test_sysctl.c static int run_test_case(int cgfd, struct sysctl_test *test) test 1528 tools/testing/selftests/bpf/test_sysctl.c enum bpf_attach_type atype = test->attach_type; test 1533 tools/testing/selftests/bpf/test_sysctl.c printf("Test case: %s .. ", test->descr); test 1536 tools/testing/selftests/bpf/test_sysctl.c test->sysctl); test 1538 tools/testing/selftests/bpf/test_sysctl.c progfd = load_sysctl_prog(test, sysctl_path); test 1540 tools/testing/selftests/bpf/test_sysctl.c if (test->result == LOAD_REJECT) test 1547 tools/testing/selftests/bpf/test_sysctl.c if (test->result == ATTACH_REJECT) test 1554 tools/testing/selftests/bpf/test_sysctl.c if (access_sysctl(sysctl_path, test) == -1) { test 1555 tools/testing/selftests/bpf/test_sysctl.c if (test->result == OP_EPERM && errno == EPERM) test 1561 tools/testing/selftests/bpf/test_sysctl.c if (test->result != SUCCESS) { test 77 tools/testing/selftests/bpf/test_tcpbpf_user.c static int bpf_find_map(const char *test, struct bpf_object *obj, test 84 tools/testing/selftests/bpf/test_tcpbpf_user.c printf("%s:FAIL:map '%s' not found\n", test, name); test 617 tools/testing/selftests/bpf/test_verifier.c static void do_test_fixup(struct bpf_test *test, enum bpf_prog_type prog_type, test 620 tools/testing/selftests/bpf/test_verifier.c int *fixup_map_hash_8b = test->fixup_map_hash_8b; test 621 tools/testing/selftests/bpf/test_verifier.c int *fixup_map_hash_48b = test->fixup_map_hash_48b; test 622 tools/testing/selftests/bpf/test_verifier.c int *fixup_map_hash_16b = test->fixup_map_hash_16b; test 623 tools/testing/selftests/bpf/test_verifier.c int *fixup_map_array_48b = test->fixup_map_array_48b; test 624 tools/testing/selftests/bpf/test_verifier.c int *fixup_map_sockmap = test->fixup_map_sockmap; test 625 tools/testing/selftests/bpf/test_verifier.c int *fixup_map_sockhash = test->fixup_map_sockhash; test 626 tools/testing/selftests/bpf/test_verifier.c int *fixup_map_xskmap = test->fixup_map_xskmap; test 627 tools/testing/selftests/bpf/test_verifier.c int *fixup_map_stacktrace = test->fixup_map_stacktrace; test 628 tools/testing/selftests/bpf/test_verifier.c int *fixup_prog1 = test->fixup_prog1; test 629 tools/testing/selftests/bpf/test_verifier.c int *fixup_prog2 = test->fixup_prog2; test 630 tools/testing/selftests/bpf/test_verifier.c int *fixup_map_in_map = test->fixup_map_in_map; test 631 tools/testing/selftests/bpf/test_verifier.c int *fixup_cgroup_storage = test->fixup_cgroup_storage; test 632 tools/testing/selftests/bpf/test_verifier.c int *fixup_percpu_cgroup_storage = test->fixup_percpu_cgroup_storage; test 633 tools/testing/selftests/bpf/test_verifier.c int *fixup_map_spin_lock = test->fixup_map_spin_lock; test 634 tools/testing/selftests/bpf/test_verifier.c int *fixup_map_array_ro = test->fixup_map_array_ro; test 635 tools/testing/selftests/bpf/test_verifier.c int *fixup_map_array_wo = test->fixup_map_array_wo; test 636 tools/testing/selftests/bpf/test_verifier.c int *fixup_map_array_small = test->fixup_map_array_small; test 637 tools/testing/selftests/bpf/test_verifier.c int *fixup_sk_storage_map = test->fixup_sk_storage_map; test 638 tools/testing/selftests/bpf/test_verifier.c int *fixup_map_event_output = test->fixup_map_event_output; test 640 tools/testing/selftests/bpf/test_verifier.c if (test->fill_helper) { test 641 tools/testing/selftests/bpf/test_verifier.c test->fill_insns = calloc(MAX_TEST_INSNS, sizeof(struct bpf_insn)); test 642 tools/testing/selftests/bpf/test_verifier.c test->fill_helper(test); test 894 tools/testing/selftests/bpf/test_verifier.c static void do_test_single(struct bpf_test *test, bool unpriv, test 898 tools/testing/selftests/bpf/test_verifier.c int prog_len, prog_type = test->prog_type; test 899 tools/testing/selftests/bpf/test_verifier.c struct bpf_insn *prog = test->insns; test 914 tools/testing/selftests/bpf/test_verifier.c do_test_fixup(test, prog_type, prog, map_fds); test 915 tools/testing/selftests/bpf/test_verifier.c if (test->fill_insns) { test 916 tools/testing/selftests/bpf/test_verifier.c prog = test->fill_insns; test 917 tools/testing/selftests/bpf/test_verifier.c prog_len = test->prog_len; test 928 tools/testing/selftests/bpf/test_verifier.c if (test->flags & F_LOAD_WITH_STRICT_ALIGNMENT) test 930 tools/testing/selftests/bpf/test_verifier.c if (test->flags & F_NEEDS_EFFICIENT_UNALIGNED_ACCESS) test 932 tools/testing/selftests/bpf/test_verifier.c if (test->flags & ~3) test 933 tools/testing/selftests/bpf/test_verifier.c pflags |= test->flags; test 935 tools/testing/selftests/bpf/test_verifier.c expected_ret = unpriv && test->result_unpriv != UNDEF ? test 936 tools/testing/selftests/bpf/test_verifier.c test->result_unpriv : test->result; test 937 tools/testing/selftests/bpf/test_verifier.c expected_err = unpriv && test->errstr_unpriv ? test 938 tools/testing/selftests/bpf/test_verifier.c test->errstr_unpriv : test->errstr; test 941 tools/testing/selftests/bpf/test_verifier.c attr.expected_attach_type = test->expected_attach_type; test 965 tools/testing/selftests/bpf/test_verifier.c (test->flags & F_NEEDS_EFFICIENT_UNALIGNED_ACCESS)) test 983 tools/testing/selftests/bpf/test_verifier.c if (test->insn_processed) { test 989 tools/testing/selftests/bpf/test_verifier.c if (test->insn_processed != insn_processed) { test 991 tools/testing/selftests/bpf/test_verifier.c insn_processed, test->insn_processed); test 1005 tools/testing/selftests/bpf/test_verifier.c if (!test->runs) test 1006 tools/testing/selftests/bpf/test_verifier.c test->runs = 1; test 1008 tools/testing/selftests/bpf/test_verifier.c for (i = 0; i < test->runs; i++) { test 1009 tools/testing/selftests/bpf/test_verifier.c if (unpriv && test->retvals[i].retval_unpriv) test 1010 tools/testing/selftests/bpf/test_verifier.c expected_val = test->retvals[i].retval_unpriv; test 1012 tools/testing/selftests/bpf/test_verifier.c expected_val = test->retvals[i].retval; test 1015 tools/testing/selftests/bpf/test_verifier.c test->retvals[i].data, test 1016 tools/testing/selftests/bpf/test_verifier.c sizeof(test->retvals[i].data)); test 1018 tools/testing/selftests/bpf/test_verifier.c printf("(run %d/%d) ", i + 1, test->runs); test 1039 tools/testing/selftests/bpf/test_verifier.c if (test->fill_insns) test 1040 tools/testing/selftests/bpf/test_verifier.c free(test->fill_insns); test 1092 tools/testing/selftests/bpf/test_verifier.c static bool test_as_unpriv(struct bpf_test *test) test 1094 tools/testing/selftests/bpf/test_verifier.c return !test->prog_type || test 1095 tools/testing/selftests/bpf/test_verifier.c test->prog_type == BPF_PROG_TYPE_SOCKET_FILTER || test 1096 tools/testing/selftests/bpf/test_verifier.c test->prog_type == BPF_PROG_TYPE_CGROUP_SKB; test 1104 tools/testing/selftests/bpf/test_verifier.c struct bpf_test *test = &tests[i]; test 1109 tools/testing/selftests/bpf/test_verifier.c if (test_as_unpriv(test) && unpriv_disabled) { test 1110 tools/testing/selftests/bpf/test_verifier.c printf("#%d/u %s SKIP\n", i, test->descr); test 1112 tools/testing/selftests/bpf/test_verifier.c } else if (test_as_unpriv(test)) { test 1115 tools/testing/selftests/bpf/test_verifier.c printf("#%d/u %s ", i, test->descr); test 1116 tools/testing/selftests/bpf/test_verifier.c do_test_single(test, true, &passes, &errors); test 1122 tools/testing/selftests/bpf/test_verifier.c printf("#%d/p %s SKIP\n", i, test->descr); test 1125 tools/testing/selftests/bpf/test_verifier.c printf("#%d/p %s ", i, test->descr); test 1126 tools/testing/selftests/bpf/test_verifier.c do_test_single(test, false, &passes, &errors); test 114 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c test(); test 398 tools/testing/selftests/mqueue/mq_perf_tests.c struct test test2[] = { test 431 tools/testing/selftests/mqueue/mq_perf_tests.c struct test *cur_test; test 238 tools/testing/selftests/net/reuseport_addr_any.c test(rcv_fds, 9, fam_send, proto, rcv_fds[4]); test 244 tools/testing/selftests/net/reuseport_bpf_cpu.c test(rcv_fd, cpus, AF_INET, SOCK_DGRAM); test 247 tools/testing/selftests/net/reuseport_bpf_cpu.c test(rcv_fd, cpus, AF_INET6, SOCK_DGRAM); test 250 tools/testing/selftests/net/reuseport_bpf_cpu.c test(rcv_fd, cpus, AF_INET, SOCK_STREAM); test 253 tools/testing/selftests/net/reuseport_bpf_cpu.c test(rcv_fd, cpus, AF_INET6, SOCK_STREAM); test 243 tools/testing/selftests/net/reuseport_bpf_numa.c test(rcv_fd, nodes, AF_INET, SOCK_DGRAM); test 246 tools/testing/selftests/net/reuseport_bpf_numa.c test(rcv_fd, nodes, AF_INET6, SOCK_DGRAM); test 249 tools/testing/selftests/net/reuseport_bpf_numa.c test(rcv_fd, nodes, AF_INET, SOCK_STREAM); test 252 tools/testing/selftests/net/reuseport_bpf_numa.c test(rcv_fd, nodes, AF_INET6, SOCK_STREAM); test 166 tools/testing/selftests/net/reuseport_dualstack.c test(rcv_fds, 10, SOCK_DGRAM); test 173 tools/testing/selftests/net/reuseport_dualstack.c test(rcv_fds, 10, SOCK_DGRAM); test 183 tools/testing/selftests/net/reuseport_dualstack.c test(rcv_fds, 32, SOCK_DGRAM); test 190 tools/testing/selftests/net/reuseport_dualstack.c test(rcv_fds, 32, SOCK_DGRAM); test 197 tools/testing/selftests/net/reuseport_dualstack.c test(rcv_fds, 10, SOCK_STREAM); test 204 tools/testing/selftests/net/reuseport_dualstack.c test(rcv_fds, 10, SOCK_STREAM); test 505 tools/testing/selftests/net/udpgso.c static void run_one(struct testcase *test, int fdt, int fdr, test 513 tools/testing/selftests/net/udpgso.c test->tlen, test->gso_len, test 514 tools/testing/selftests/net/udpgso.c test->tfail ? "(fail)" : ""); test 516 tools/testing/selftests/net/udpgso.c val = test->gso_len; test 522 tools/testing/selftests/net/udpgso.c sent = send_one(fdt, test->tlen, test->gso_len, addr, alen); test 523 tools/testing/selftests/net/udpgso.c if (sent && test->tfail) test 525 tools/testing/selftests/net/udpgso.c if (!sent && !test->tfail) test 530 tools/testing/selftests/net/udpgso.c if (test->gso_len) test 531 tools/testing/selftests/net/udpgso.c mss = test->gso_len; test 537 tools/testing/selftests/net/udpgso.c for (i = 0; i < test->r_num_mss; i++) { test 544 tools/testing/selftests/net/udpgso.c if (test->r_len_last) { test 546 tools/testing/selftests/net/udpgso.c if (ret != test->r_len_last) test 548 tools/testing/selftests/net/udpgso.c i, ret, test->r_len_last); test 559 tools/testing/selftests/net/udpgso.c struct testcase *tests, *test; test 563 tools/testing/selftests/net/udpgso.c for (test = tests; test->tlen; test++) { test 566 tools/testing/selftests/net/udpgso.c cfg_specific_test_id == test - tests) test 567 tools/testing/selftests/net/udpgso.c run_one(test, fdt, fdr, addr, alen); test 86 tools/testing/selftests/powerpc/mm/large_vm_fork_separation.c return test_harness(test, "large_vm_fork_separation"); test 366 tools/testing/selftests/powerpc/vphn/test-vphn.c static int test_one(struct test *test) test 371 tools/testing/selftests/powerpc/vphn/test-vphn.c vphn_unpack_associativity(test->input, output); test 374 tools/testing/selftests/powerpc/vphn/test-vphn.c if (len != test->expected[0]) { test 375 tools/testing/selftests/powerpc/vphn/test-vphn.c printf("expected %d elements, got %d\n", test->expected[0], test 382 tools/testing/selftests/powerpc/vphn/test-vphn.c if (val != test->expected[i]) { test 384 tools/testing/selftests/powerpc/vphn/test-vphn.c test->expected[i]); test 394 tools/testing/selftests/powerpc/vphn/test-vphn.c static struct test *test; test 396 tools/testing/selftests/powerpc/vphn/test-vphn.c for (test = all_tests; test->descr; test++) { test 399 tools/testing/selftests/powerpc/vphn/test-vphn.c ret = test_one(test); test 400 tools/testing/selftests/powerpc/vphn/test-vphn.c test_finish(test->descr, ret); test 969 tools/testing/selftests/seccomp/seccomp_bpf.c int ret, test; test 998 tools/testing/selftests/seccomp/seccomp_bpf.c test = TRAP_nr; test 999 tools/testing/selftests/seccomp/seccomp_bpf.c EXPECT_EQ(SIGSYS, test); test 685 tools/testing/selftests/sparc64/drivers/adi-test.c int fd, ret, test; test 698 tools/testing/selftests/sparc64/drivers/adi-test.c for (test = 0; test < TEST_COUNT; test++) { test 699 tools/testing/selftests/sparc64/drivers/adi-test.c DEBUG_PRINT_L1("Running test #%d\n", test); test 701 tools/testing/selftests/sparc64/drivers/adi-test.c ret = (*tests[test])(fd); test 704 tools/testing/selftests/sparc64/drivers/adi-test.c test, ret); test 706 tools/testing/selftests/sparc64/drivers/adi-test.c ksft_test_result_pass("Test #%d passed\n", test); test 40 tools/testing/selftests/sync/sync_test.c static int run_test(int (*test)(void), char *name) test 62 tools/testing/selftests/sync/sync_test.c exit(test()); test 231 tools/testing/selftests/vm/va_128TBswitch.c static int run_test(struct testcase *test, int count) test 237 tools/testing/selftests/vm/va_128TBswitch.c struct testcase *t = test + i; test 312 tools/testing/selftests/x86/test_FCOMI.c err |= test(0); test 316 tools/testing/selftests/x86/test_FCOMI.c err |= test(CF|ZF|PF); test 131 tools/testing/selftests/x86/test_FISTTP.c err |= test(); test 122 tools/usb/testusb.c int test; test 304 tools/usb/testusb.c if (dev->test != -1 && dev->test != i) test 371 tools/usb/testusb.c int test = -1 /* all */; test 424 tools/usb/testusb.c test = atoi (optarg); test 425 tools/usb/testusb.c if (test < 0) test 490 tools/usb/testusb.c entry->test = test; test 512 tools/usb/testusb.c dev.test = test; test 160 tools/virtio/virtio_test.c int r, test = 1; test 163 tools/virtio/virtio_test.c r = ioctl(dev->control, VHOST_TEST_RUN, &test); test 203 tools/virtio/virtio_test.c test = 0; test 204 tools/virtio/virtio_test.c r = ioctl(dev->control, VHOST_TEST_RUN, &test); test 3233 virt/kvm/kvm_main.c bool test = cd->flags & KVM_CREATE_DEVICE_TEST; test 3245 virt/kvm/kvm_main.c if (test)