Home
last modified time | relevance | path

Searched refs:inj (Results 1 – 13 of 13) sorted by relevance

/linux/block/
H A Derror-injection.c28 struct blk_error_inject *inj; in __blk_error_inject() local
31 list_for_each_entry_rcu(inj, &disk->error_injection_list, entry) { in __blk_error_inject()
32 if (bio_op(bio) != inj->op) in __blk_error_inject()
42 if (bio->bi_iter.bi_sector > inj->end || in __blk_error_inject()
43 bio_end_sector(bio) <= inj->start) in __blk_error_inject()
45 if (inj->chance > 1 && (get_random_u32() % inj->chance) != 0) in __blk_error_inject()
49 disk->part0, blk_status_to_str(inj->status), in __blk_error_inject()
50 blk_op_str(inj->op), bio->bi_iter.bi_sector, in __blk_error_inject()
52 bio->bi_status = inj->status; in __blk_error_inject()
65 struct blk_error_inject *inj; in error_inject_add() local
[all …]
/linux/tools/testing/selftests/net/tcp_ao/
H A Dunsigned-md5.c6 #define fault(type) (inj == FAULT_ ## type)
43 int needs_tcp_md5, fault_t inj) in try_accept() argument
268 fault_t inj, int needs_tcp_md5, union tcp_addr *bind_addr) in try_connect() argument
345 fault_t inj, bool added_ao) in test_continue() argument
373 fault_t inj) in open_add() argument
393 if (!test_continue(tst_name, err, inj, true)) { in open_add()
402 if (!test_continue(tst_name, -errno, inj, false)) { in open_add()
418 int needs_tcp_md5, int needs_vrf, fault_t inj) in try_to_preadd() argument
429 sndid, rcvid, inj); in try_to_preadd()
443 int needs_tcp_md5, fault_t inj) in try_to_add() argument
[all …]
H A Drestore.c14 #define fault(type) (inj == FAULT_ ## type)
17 fault_t inj, test_cnt cnt_expected) in try_server_run() argument
139 fault_t inj, test_cnt cnt_expected) in test_sk_restore() argument
H A Dconnect-deny.c6 #define fault(type) (inj == FAULT_ ## type)
36 fault_t inj) in try_accept() argument
169 test_cnt cnt_expected, fault_t inj) in try_connect() argument
H A Dkey-management.c12 #define fault(type) (inj == FAULT_ ## type)
121 fault_t inj) in try_delete_key() argument
222 uint8_t sndid, uint8_t rcvid, fault_t inj) in try_add_current_rnext_key() argument
/linux/tools/testing/selftests/kvm/x86/
H A Dxen_shinfo_test.c584 struct kvm_xen_hvm_attr inj = { in main()
593 vm_ioctl(vm, KVM_XEN_HVM_SET_ATTR, &inj); in main()
596 inj.u.evtchn.flags = KVM_XEN_EVTCHN_UPDATE; in main()
597 inj.u.evtchn.deliver.port.vcpu = vcpu->id; in main()
598 vm_ioctl(vm, KVM_XEN_HVM_SET_ATTR, &inj); in main()
600 inj.u.evtchn.send_port = 197; in main()
601 inj.u.evtchn.deliver.eventfd.port = 0; in main()
602 inj.u.evtchn.deliver.eventfd.fd = irq_fd[1]; in main()
603 inj.u.evtchn.flags = 0; in main()
604 vm_ioctl(vm, KVM_XEN_HVM_SET_ATTR, &inj); in main()
585 struct kvm_xen_hvm_attr inj = { main() local
[all...]
/linux/drivers/media/cec/core/
H A DMakefile13 cec-objs += cec-pin-error-inj.o
/linux/tools/perf/tests/shell/
H A Dtest_java_symbol.sh14 PERF_INJ_DATA=$(mktemp /tmp/__perf_test.perf.data.inj.XXXXX)
/linux/Documentation/driver-api/media/
H A Dcec-core.rst342 If both callbacks are set, then an ``error-inj`` file will appear in debugfs.
353 This ensures that you can always do ``echo clear >error-inj`` to clear any error
356 Note that the output of ``error-inj`` shall be valid as input to ``error-inj``.
361 $ cat error-inj >einj.txt
362 $ cat einj.txt >error-inj
372 The second callback will parse commands written to the ``error-inj`` file::
/linux/tools/testing/nvdimm/test/
H A Dnfit.c781 struct nd_intel_smart_inject *inj, in nfit_test_cmd_smart_inject() argument
787 if (buf_len != sizeof(*inj)) in nfit_test_cmd_smart_inject()
790 if (inj->flags & ND_INTEL_SMART_INJECT_MTEMP) { in nfit_test_cmd_smart_inject()
791 if (inj->mtemp_enable) in nfit_test_cmd_smart_inject()
792 smart->media_temperature = inj->media_temperature; in nfit_test_cmd_smart_inject()
796 if (inj->flags & ND_INTEL_SMART_INJECT_SPARE) { in nfit_test_cmd_smart_inject()
797 if (inj->spare_enable) in nfit_test_cmd_smart_inject()
798 smart->spares = inj->spares; in nfit_test_cmd_smart_inject()
802 if (inj->flags & ND_INTEL_SMART_INJECT_FATAL) { in nfit_test_cmd_smart_inject()
803 if (inj->fatal_enable) in nfit_test_cmd_smart_inject()
[all …]
/linux/arch/mips/boot/dts/mscc/
H A Docelot.dtsi146 interrupt-names = "ptp_rdy", "xtr", "inj", "fdma";
/linux/Documentation/
H A D.renames.txt372 media/uapi/cec/cec-pin-error-inj userspace-api/media/cec/cec-pin-error-inj
/linux/
H A DMAINTAINERS5990 F: Documentation/ABI/testing/debugfs-cec-error-inj