/Linux-v5.4/arch/powerpc/lib/ |
D | code-patching.c | 401 #define check(x) \ macro 412 check(instr_is_branch_iform(0x48000000)); in test_branch_iform() 414 check(instr_is_branch_iform(0x4bffffff)); in test_branch_iform() 416 check(!instr_is_branch_iform(0xcbffffff)); in test_branch_iform() 418 check(!instr_is_branch_iform(0x7bffffff)); in test_branch_iform() 421 check(instr_is_branch_iform(0x48000001)); in test_branch_iform() 423 check(instr_is_branch_iform(0x4bfffffd)); in test_branch_iform() 425 check(instr_is_branch_iform(0x4bff00fd)); in test_branch_iform() 427 check(!instr_is_branch_iform(0x7bfffffd)); in test_branch_iform() 431 check(instr_is_branch_to_addr(&instr, 0x100)); in test_branch_iform() [all …]
|
D | feature-fixups.c | 475 #define check(x) \ macro 500 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching() 504 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching() 508 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_expected, size) == 0); in test_basic_patching() 512 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching() 514 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_expected, size) == 0); in test_basic_patching() 533 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching() 537 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching() 541 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_expected, size) == 0); in test_alternative_patching() 545 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching() [all …]
|
/Linux-v5.4/drivers/firmware/efi/ |
D | cper-x86.c | 47 #define CHECK_VALID_BITS(check) (((check) & GENMASK_ULL(15, 0))) argument 48 #define CHECK_TRANS_TYPE(check) (((check) & GENMASK_ULL(17, 16)) >> 16) argument 49 #define CHECK_OPERATION(check) (((check) & GENMASK_ULL(21, 18)) >> 18) argument 50 #define CHECK_LEVEL(check) (((check) & GENMASK_ULL(24, 22)) >> 22) argument 57 #define CHECK_BUS_PART_TYPE(check) (((check) & GENMASK_ULL(31, 30)) >> 30) argument 59 #define CHECK_BUS_ADDR_SPACE(check) (((check) & GENMASK_ULL(34, 33)) >> 33) argument 68 #define CHECK_MS_ERR_TYPE(check) (((check) & GENMASK_ULL(18, 16)) >> 16) argument 152 static inline void print_bool(char *str, const char *pfx, u64 check, u64 bit) in print_bool() argument 154 printk("%s%s: %s\n", pfx, str, (check & bit) ? "true" : "false"); in print_bool() 157 static void print_err_info_ms(const char *pfx, u16 validation_bits, u64 check) in print_err_info_ms() argument [all …]
|
/Linux-v5.4/tools/testing/selftests/powerpc/switch_endian/ |
D | check.S | 14 cmpd r9,r3 # check r3 16 addi r9,r15,4 # check r4 19 lis r9,0x00FF # check CR 26 addi r9,r15,32 # check LR 30 addi r9,r15,5 # check r5 33 addi r9,r15,6 # check r6 36 addi r9,r15,7 # check r7 39 addi r9,r15,8 # check r8 42 addi r9,r15,13 # check r13 45 addi r9,r15,14 # check r14 [all …]
|
D | Makefile | 6 EXTRA_CLEAN = $(OUTPUT)/*.o $(OUTPUT)/check-reversed.S 12 $(OUTPUT)/switch_endian_test: $(OUTPUT)/check-reversed.S 14 $(OUTPUT)/check-reversed.o: $(OUTPUT)/check.o 17 $(OUTPUT)/check-reversed.S: $(OUTPUT)/check-reversed.o
|
/Linux-v5.4/tools/perf/ |
D | check-headers.sh | 89 check () { function 106 check $i -B 110 check arch/x86/lib/memcpy_64.S '-I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>"' 111 check arch/x86/lib/memset_64.S '-I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>"' 112 check include/uapi/asm-generic/mman.h '-I "^#include <\(uapi/\)*asm-generic/mman-common\(-tools\)*.… 113 check include/uapi/linux/mman.h '-I "^#include <\(uapi/\)*asm/mman.h>"' 114 check include/linux/ctype.h '-I "isdigit("' 115 check lib/ctype.c '-I "^EXPORT_SYMBOL" -I "^#include <linux/export.h>" -B' 116 check arch/x86/include/asm/inat.h '-I "^#include [\"<]\(asm/\)*inat_types.h[\">]"' 117 check arch/x86/include/asm/insn.h '-I "^#include [\"<]\(asm/\)*inat.h[\">]"' [all …]
|
/Linux-v5.4/include/net/ |
D | dsfield.h | 31 __u32 check = ntohs((__force __be16)iph->check); in ipv4_change_dsfield() local 35 check += iph->tos; in ipv4_change_dsfield() 36 if ((check+1) >> 16) check = (check+1) & 0xffff; in ipv4_change_dsfield() 37 check -= dsfield; in ipv4_change_dsfield() 38 check += check >> 16; /* adjust carry */ in ipv4_change_dsfield() 39 iph->check = (__force __sum16)htons(check); in ipv4_change_dsfield()
|
/Linux-v5.4/net/ipv4/ |
D | udp_offload.c | 44 partial = csum_sub(csum_unfold(uh->check), partial); in __skb_udp_tunnel_segment() 131 uh->check = ~csum_fold(csum_add(partial, in __skb_udp_tunnel_segment() 135 uh->check = gso_make_checksum(skb, ~uh->check); in __skb_udp_tunnel_segment() 136 if (uh->check == 0) in __skb_udp_tunnel_segment() 137 uh->check = CSUM_MANGLED_0; in __skb_udp_tunnel_segment() 141 skb->csum_offset = offsetof(struct udphdr, check); in __skb_udp_tunnel_segment() 196 __sum16 check; in __udp_gso_segment() local 234 check = csum16_add(csum16_sub(uh->check, uh->len), newlen); in __udp_gso_segment() 247 uh->check = check; in __udp_gso_segment() 250 gso_reset_checksum(seg, ~check); in __udp_gso_segment() [all …]
|
D | tcp_offload.c | 46 th->check = 0; in tcp4_gso_segment() 121 newcheck = ~csum_fold((__force __wsum)((__force u32)th->check + in tcp_gso_segment() 126 th->check = newcheck; in tcp_gso_segment() 129 gso_reset_checksum(skb, ~th->check); in tcp_gso_segment() 131 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment() 170 th->check = ~csum_fold((__force __wsum)((__force u32)th->check + in tcp_gso_segment() 173 gso_reset_checksum(skb, ~th->check); in tcp_gso_segment() 175 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment() 293 skb->csum_offset = offsetof(struct tcphdr, check); in tcp_gro_complete() 324 th->check = ~tcp_v4_check(skb->len - thoff, iph->saddr, in tcp4_gro_complete()
|
/Linux-v5.4/net/netfilter/ipvs/ |
D | ip_vs_proto_udp.c | 100 uhdr->check = in udp_fast_csum_update() 103 ~csum_unfold(uhdr->check)))); in udp_fast_csum_update() 106 uhdr->check = in udp_fast_csum_update() 109 ~csum_unfold(uhdr->check)))); in udp_fast_csum_update() 110 if (!uhdr->check) in udp_fast_csum_update() 111 uhdr->check = CSUM_MANGLED_0; in udp_fast_csum_update() 122 uhdr->check = in udp_partial_csum_update() 125 csum_unfold(uhdr->check)))); in udp_partial_csum_update() 128 uhdr->check = in udp_partial_csum_update() 131 csum_unfold(uhdr->check)))); in udp_partial_csum_update() [all …]
|
/Linux-v5.4/arch/x86/pci/ |
D | pcbios.c | 291 union bios32 *check; in pci_find_bios() local 301 for (check = (union bios32 *) __va(0xe0000); in pci_find_bios() 302 check <= (union bios32 *) __va(0xffff0); in pci_find_bios() 303 ++check) { in pci_find_bios() 305 if (probe_kernel_address(&check->fields.signature, sig)) in pci_find_bios() 308 if (check->fields.signature != BIOS32_SIGNATURE) in pci_find_bios() 310 length = check->fields.length * 16; in pci_find_bios() 315 sum += check->chars[i]; in pci_find_bios() 318 if (check->fields.revision != 0) { in pci_find_bios() 320 check->fields.revision, check); in pci_find_bios() [all …]
|
/Linux-v5.4/tools/objtool/ |
D | sync-check.sh | 28 check () { function 43 check $i 46 check arch/x86/include/asm/inat.h '-I "^#include [\"<]\(asm/\)*inat_types.h[\">]"' 47 check arch/x86/include/asm/insn.h '-I "^#include [\"<]\(asm/\)*inat.h[\">]"' 48 check arch/x86/lib/inat.c '-I "^#include [\"<]\(../include/\)*asm/insn.h[\">]"' 49 check arch/x86/lib/insn.c '-I "^#include [\"<]\(../include/\)*asm/in\(at\|sn\).h[\">]"'
|
/Linux-v5.4/drivers/pnp/pnpbios/ |
D | core.c | 427 union pnp_bios_install_struct *check; in pnpbios_probe_system() local 438 for (check = (union pnp_bios_install_struct *)__va(0xf0000); in pnpbios_probe_system() 439 check < (union pnp_bios_install_struct *)__va(0xffff0); in pnpbios_probe_system() 440 check = (void *)check + 16) { in pnpbios_probe_system() 441 if (check->fields.signature != PNP_SIGNATURE) in pnpbios_probe_system() 445 check); in pnpbios_probe_system() 446 length = check->fields.length; in pnpbios_probe_system() 453 sum += check->chars[i]; in pnpbios_probe_system() 459 if (check->fields.version < 0x10) { in pnpbios_probe_system() 462 check->fields.version >> 4, in pnpbios_probe_system() [all …]
|
/Linux-v5.4/drivers/net/wireless/broadcom/b43/ |
D | tables_nphy.c | 3276 #undef check in assert_ntab_array_sizes() 3277 #define check(table, size) \ in assert_ntab_array_sizes() macro 3280 check(adjustpower0, C0_ADJPLT); in assert_ntab_array_sizes() 3281 check(adjustpower1, C1_ADJPLT); in assert_ntab_array_sizes() 3282 check(bdi, BDI); in assert_ntab_array_sizes() 3283 check(channelest, CHANEST); in assert_ntab_array_sizes() 3284 check(estimatepowerlt0, C0_ESTPLT); in assert_ntab_array_sizes() 3285 check(estimatepowerlt1, C1_ESTPLT); in assert_ntab_array_sizes() 3286 check(framelookup, FRAMELT); in assert_ntab_array_sizes() 3287 check(framestruct, FRAMESTRUCT); in assert_ntab_array_sizes() [all …]
|
/Linux-v5.4/tools/perf/tests/ |
D | mem.c | 10 static int check(union perf_mem_data_src data_src, in check() function 36 ret |= check(src, "N/AL4 hit"); in test__mem() 40 ret |= check(src, "N/ARemote L4 hit"); in test__mem() 46 ret |= check(src, "N/APMEM miss"); in test__mem() 50 ret |= check(src, "N/ARemote PMEM miss"); in test__mem() 55 ret |= check(src , "FwdRemote RAM miss"); in test__mem()
|
D | parse-events.c | 1438 int (*check)(struct evlist *evlist); member 1444 .check = test__checkevent_tracepoint, 1449 .check = test__checkevent_tracepoint_multi, 1454 .check = test__checkevent_raw, 1459 .check = test__checkevent_numeric, 1464 .check = test__checkevent_symbolic_name, 1469 .check = test__checkevent_symbolic_name_config, 1474 .check = test__checkevent_symbolic_alias, 1479 .check = test__checkevent_genhw, 1484 .check = test__checkevent_breakpoint, [all …]
|
/Linux-v5.4/drivers/md/bcache/ |
D | debug.c | 110 struct bio *check; in bch_data_verify() local 114 check = bio_kmalloc(GFP_NOIO, bio_segments(bio)); in bch_data_verify() 115 if (!check) in bch_data_verify() 117 check->bi_disk = bio->bi_disk; in bch_data_verify() 118 check->bi_opf = REQ_OP_READ; in bch_data_verify() 119 check->bi_iter.bi_sector = bio->bi_iter.bi_sector; in bch_data_verify() 120 check->bi_iter.bi_size = bio->bi_iter.bi_size; in bch_data_verify() 122 bch_bio_map(check, NULL); in bch_data_verify() 123 if (bch_bio_alloc_pages(check, GFP_NOIO)) in bch_data_verify() 126 submit_bio_wait(check); in bch_data_verify() [all …]
|
/Linux-v5.4/scripts/dtc/ |
D | checks.c | 27 struct check; 29 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node); 31 struct check { struct 39 struct check **prereq; argument 43 static struct check *nm_##_prereqs[] = { __VA_ARGS__ }; \ 44 static struct check nm_ = { \ 61 static inline void PRINTF(5, 6) check_msg(struct check *c, struct dt_info *dti, in check_msg() 134 static void check_nodes_props(struct check *c, struct dt_info *dti, struct node *node) in check_nodes_props() 146 static bool run_check(struct check *c, struct dt_info *dti) in run_check() 160 struct check *prq = c->prereq[i]; in run_check() [all …]
|
/Linux-v5.4/Documentation/x86/x86_64/ |
D | machinecheck.rst | 4 Configurable sysfs parameters for the x86-64 machine check code 8 by the CPU. Uncorrected errors typically cause a machine check 9 (often with panic), corrected ones cause a machine check log entry. 17 When you see the "Machine check errors logged" message in the system 18 log then mcelog should run to collect and decode machine check entries 40 How often to poll for corrected machine check errors, in seconds 47 check errors (but some corrected errors might be still reported 51 Tolerance level. When a machine check exception occurs for a non 52 corrected machine check the kernel can take different actions. 53 Since machine check exceptions can happen any time it is sometimes [all …]
|
/Linux-v5.4/net/ipv6/ |
D | ip6_checksum.c | 91 err = (__force int)skb_checksum_init_zero_check(skb, proto, uh->check, in udp6_csum_init() 122 uh->check = 0; in udp6_set_csum() 124 uh->check = ~udp_v6_check(len, saddr, daddr, 0); in udp6_set_csum() 126 uh->check = 0; in udp6_set_csum() 127 uh->check = udp_v6_check(len, saddr, daddr, lco_csum(skb)); in udp6_set_csum() 128 if (uh->check == 0) in udp6_set_csum() 129 uh->check = CSUM_MANGLED_0; in udp6_set_csum() 133 skb->csum_offset = offsetof(struct udphdr, check); in udp6_set_csum() 134 uh->check = ~udp_v6_check(len, saddr, daddr, 0); in udp6_set_csum()
|
D | udp_offload.c | 58 uh->check = 0; in udp6_ufo_fragment() 60 uh->check = udp_v6_check(skb->len, &ipv6h->saddr, in udp6_ufo_fragment() 62 if (uh->check == 0) in udp6_ufo_fragment() 63 uh->check = CSUM_MANGLED_0; in udp6_ufo_fragment() 126 if (skb_gro_checksum_validate_zero_check(skb, IPPROTO_UDP, uh->check, in udp6_gro_receive() 129 else if (uh->check) in udp6_gro_receive() 130 skb_gro_checksum_try_convert(skb, IPPROTO_UDP, uh->check, in udp6_gro_receive() 147 if (uh->check) in udp6_gro_complete() 148 uh->check = ~udp_v6_check(skb->len - nhoff, &ipv6h->saddr, in udp6_gro_complete()
|
/Linux-v5.4/security/apparmor/ |
D | match.c | 370 #define match_char(state, def, base, next, check, C) \ argument 374 if ((check)[pos] != (state)) { \ 406 u16 *check = CHECK_TABLE(dfa); in aa_dfa_match_len() local 417 match_char(state, def, base, next, check, in aa_dfa_match_len() 422 match_char(state, def, base, next, check, (u8) *str++); in aa_dfa_match_len() 446 u16 *check = CHECK_TABLE(dfa); in aa_dfa_match() local 458 match_char(state, def, base, next, check, in aa_dfa_match() 463 match_char(state, def, base, next, check, (u8) *str++); in aa_dfa_match() 485 u16 *check = CHECK_TABLE(dfa); in aa_dfa_next() local 491 match_char(state, def, base, next, check, equiv[(u8) c]); in aa_dfa_next() [all …]
|
/Linux-v5.4/arch/ia64/scripts/ |
D | toolchain-flags | 17 $CC -nostdlib -static -Wl,-T$dir/check-segrel.lds $dir/check-segrel.S -o $out 31 $CC -c $dir/check-text-align.S -o $out 39 if ! $CC -c $dir/check-model.c -o $out 2>&1 | grep __model__ | grep -q attrib 47 $CC -c $dir/check-serialize.S -o $out 2>/dev/null
|
/Linux-v5.4/Documentation/ |
D | Makefile | 9 $(shell $(srctree)/scripts/documentation-file-ref-check --warn) 80 @$(srctree)/scripts/sphinx-pre-install --version-check 87 @$(srctree)/scripts/sphinx-pre-install --version-check 99 @$(srctree)/scripts/sphinx-pre-install --version-check 105 @$(srctree)/scripts/sphinx-pre-install --version-check 109 @$(srctree)/scripts/sphinx-pre-install --version-check 118 $(Q)cd $(srctree);scripts/documentation-file-ref-check
|
/Linux-v5.4/samples/bpf/ |
D | xdp_fwd_kern.c | 37 u32 check = (__force u32)iph->check; in ip_decrease_ttl() local 39 check += (__force u32)htons(0x0100); in ip_decrease_ttl() 40 iph->check = (__force __sum16)(check + (check >= 0xFFFF)); in ip_decrease_ttl()
|