Home
last modified time | relevance | path

Searched refs:check (Results 1 – 25 of 986) sorted by relevance

12345678910>>...40

/Linux-v4.19/arch/powerpc/lib/
Dcode-patching.c423 #define check(x) \ macro
434 check(instr_is_branch_iform(0x48000000)); in test_branch_iform()
436 check(instr_is_branch_iform(0x4bffffff)); in test_branch_iform()
438 check(!instr_is_branch_iform(0xcbffffff)); in test_branch_iform()
440 check(!instr_is_branch_iform(0x7bffffff)); in test_branch_iform()
443 check(instr_is_branch_iform(0x48000001)); in test_branch_iform()
445 check(instr_is_branch_iform(0x4bfffffd)); in test_branch_iform()
447 check(instr_is_branch_iform(0x4bff00fd)); in test_branch_iform()
449 check(!instr_is_branch_iform(0x7bfffffd)); in test_branch_iform()
453 check(instr_is_branch_to_addr(&instr, 0x100)); in test_branch_iform()
[all …]
Dfeature-fixups.c456 #define check(x) \ macro
481 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
485 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
489 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_expected, size) == 0); in test_basic_patching()
493 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
495 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_expected, size) == 0); in test_basic_patching()
514 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
518 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
522 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_expected, size) == 0); in test_alternative_patching()
526 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
[all …]
/Linux-v4.19/drivers/firmware/efi/
Dcper-x86.c47 #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-v4.19/tools/testing/selftests/powerpc/switch_endian/
Dcheck.S14 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 …]
DMakefile6 EXTRA_CLEAN = $(OUTPUT)/*.o $(OUTPUT)/check-reversed.S
11 $(OUTPUT)/switch_endian_test: $(OUTPUT)/check-reversed.S
13 $(OUTPUT)/check-reversed.o: $(OUTPUT)/check.o
16 $(OUTPUT)/check-reversed.S: $(OUTPUT)/check-reversed.o
/Linux-v4.19/include/net/
Ddsfield.h31 __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-v4.19/net/ipv4/
Dudp_offload.c47 partial = csum_sub(csum_unfold(uh->check), partial); in __skb_udp_tunnel_segment()
134 uh->check = ~csum_fold(csum_add(partial, in __skb_udp_tunnel_segment()
138 uh->check = gso_make_checksum(skb, ~uh->check); in __skb_udp_tunnel_segment()
139 if (uh->check == 0) in __skb_udp_tunnel_segment()
140 uh->check = CSUM_MANGLED_0; in __skb_udp_tunnel_segment()
144 skb->csum_offset = offsetof(struct udphdr, check); in __skb_udp_tunnel_segment()
199 __sum16 check; in __udp_gso_segment() local
232 check = csum16_add(csum16_sub(uh->check, uh->len), newlen); in __udp_gso_segment()
245 uh->check = check; in __udp_gso_segment()
248 gso_reset_checksum(seg, ~check); in __udp_gso_segment()
[all …]
Dtcp_offload.c49 th->check = 0; in tcp4_gso_segment()
124 newcheck = ~csum_fold((__force __wsum)((__force u32)th->check + in tcp_gso_segment()
129 th->check = newcheck; in tcp_gso_segment()
132 gso_reset_checksum(skb, ~th->check); in tcp_gso_segment()
134 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment()
173 th->check = ~csum_fold((__force __wsum)((__force u32)th->check + in tcp_gso_segment()
176 gso_reset_checksum(skb, ~th->check); in tcp_gso_segment()
178 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment()
296 skb->csum_offset = offsetof(struct tcphdr, check); in tcp_gro_complete()
326 th->check = ~tcp_v4_check(skb->len - thoff, iph->saddr, in tcp4_gro_complete()
/Linux-v4.19/net/netfilter/ipvs/
Dip_vs_proto_udp.c101 uhdr->check = in udp_fast_csum_update()
104 ~csum_unfold(uhdr->check)))); in udp_fast_csum_update()
107 uhdr->check = in udp_fast_csum_update()
110 ~csum_unfold(uhdr->check)))); in udp_fast_csum_update()
111 if (!uhdr->check) in udp_fast_csum_update()
112 uhdr->check = CSUM_MANGLED_0; in udp_fast_csum_update()
123 uhdr->check = in udp_partial_csum_update()
126 csum_unfold(uhdr->check)))); in udp_partial_csum_update()
129 uhdr->check = in udp_partial_csum_update()
132 csum_unfold(uhdr->check)))); in udp_partial_csum_update()
[all …]
/Linux-v4.19/arch/x86/pci/
Dpcbios.c291 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-v4.19/drivers/pnp/pnpbios/
Dcore.c440 union pnp_bios_install_struct *check; in pnpbios_probe_system() local
451 for (check = (union pnp_bios_install_struct *)__va(0xf0000); in pnpbios_probe_system()
452 check < (union pnp_bios_install_struct *)__va(0xffff0); in pnpbios_probe_system()
453 check = (void *)check + 16) { in pnpbios_probe_system()
454 if (check->fields.signature != PNP_SIGNATURE) in pnpbios_probe_system()
458 check); in pnpbios_probe_system()
459 length = check->fields.length; in pnpbios_probe_system()
466 sum += check->chars[i]; in pnpbios_probe_system()
472 if (check->fields.version < 0x10) { in pnpbios_probe_system()
475 check->fields.version >> 4, in pnpbios_probe_system()
[all …]
/Linux-v4.19/tools/perf/
Dcheck-headers.sh78 check () { function
95 check $i -B
99 check arch/x86/lib/memcpy_64.S '-I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>"'
100 check arch/x86/lib/memset_64.S '-I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>"'
101 check include/uapi/asm-generic/mman.h '-I "^#include <\(uapi/\)*asm-generic/mman-common.h>"'
102 check include/uapi/linux/mman.h '-I "^#include <\(uapi/\)*asm/mman.h>"'
/Linux-v4.19/scripts/dtc/
Dchecks.c41 struct check;
43 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node);
45 struct check { struct
53 struct check **prereq; argument
57 static struct check *nm_##_prereqs[] = { __VA_ARGS__ }; \
58 static struct check nm_ = { \
75 static inline void PRINTF(5, 6) check_msg(struct check *c, struct dt_info *dti, in check_msg()
115 static void check_nodes_props(struct check *c, struct dt_info *dti, struct node *node) in check_nodes_props()
127 static bool run_check(struct check *c, struct dt_info *dti) in run_check()
141 struct check *prq = c->prereq[i]; in run_check()
[all …]
/Linux-v4.19/drivers/net/wireless/broadcom/b43/
Dtables_nphy.c3289 #undef check in assert_ntab_array_sizes()
3290 #define check(table, size) \ in assert_ntab_array_sizes() macro
3293 check(adjustpower0, C0_ADJPLT); in assert_ntab_array_sizes()
3294 check(adjustpower1, C1_ADJPLT); in assert_ntab_array_sizes()
3295 check(bdi, BDI); in assert_ntab_array_sizes()
3296 check(channelest, CHANEST); in assert_ntab_array_sizes()
3297 check(estimatepowerlt0, C0_ESTPLT); in assert_ntab_array_sizes()
3298 check(estimatepowerlt1, C1_ESTPLT); in assert_ntab_array_sizes()
3299 check(framelookup, FRAMELT); in assert_ntab_array_sizes()
3300 check(framestruct, FRAMESTRUCT); in assert_ntab_array_sizes()
[all …]
/Linux-v4.19/tools/perf/tests/
Dmem.c8 static int check(union perf_mem_data_src data_src, in check() function
34 ret |= check(src, "N/AL4 hit"); in test__mem()
38 ret |= check(src, "N/ARemote L4 hit"); in test__mem()
44 ret |= check(src, "N/APMEM miss"); in test__mem()
48 ret |= check(src, "N/ARemote PMEM miss"); in test__mem()
53 ret |= check(src , "FwdRemote RAM miss"); in test__mem()
Dparse-events.c1392 int (*check)(struct perf_evlist *evlist); member
1398 .check = test__checkevent_tracepoint,
1403 .check = test__checkevent_tracepoint_multi,
1408 .check = test__checkevent_raw,
1413 .check = test__checkevent_numeric,
1418 .check = test__checkevent_symbolic_name,
1423 .check = test__checkevent_symbolic_name_config,
1428 .check = test__checkevent_symbolic_alias,
1433 .check = test__checkevent_genhw,
1438 .check = test__checkevent_breakpoint,
[all …]
/Linux-v4.19/drivers/md/bcache/
Ddebug.c110 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-v4.19/net/ipv6/
Dip6_checksum.c91 return (__force int)skb_checksum_init_zero_check(skb, proto, uh->check, in udp6_csum_init()
106 uh->check = 0; in udp6_set_csum()
108 uh->check = ~udp_v6_check(len, saddr, daddr, 0); in udp6_set_csum()
110 uh->check = 0; in udp6_set_csum()
111 uh->check = udp_v6_check(len, saddr, daddr, lco_csum(skb)); in udp6_set_csum()
112 if (uh->check == 0) in udp6_set_csum()
113 uh->check = CSUM_MANGLED_0; in udp6_set_csum()
117 skb->csum_offset = offsetof(struct udphdr, check); in udp6_set_csum()
118 uh->check = ~udp_v6_check(len, saddr, daddr, 0); in udp6_set_csum()
Dudp_offload.c61 uh->check = 0; in udp6_ufo_fragment()
63 uh->check = udp_v6_check(skb->len, &ipv6h->saddr, in udp6_ufo_fragment()
65 if (uh->check == 0) in udp6_ufo_fragment()
66 uh->check = CSUM_MANGLED_0; in udp6_ufo_fragment()
129 if (skb_gro_checksum_validate_zero_check(skb, IPPROTO_UDP, uh->check, in udp6_gro_receive()
132 else if (uh->check) in udp6_gro_receive()
133 skb_gro_checksum_try_convert(skb, IPPROTO_UDP, uh->check, in udp6_gro_receive()
150 if (uh->check) { in udp6_gro_complete()
152 uh->check = ~udp_v6_check(skb->len - nhoff, &ipv6h->saddr, in udp6_gro_complete()
/Linux-v4.19/Documentation/x86/x86_64/
Dmachinecheck2 Configurable sysfs parameters for the x86-64 machine check code.
5 by the CPU. Uncorrected errors typically cause a machine check
6 (often with panic), corrected ones cause a machine check log entry.
14 When you see the "Machine check errors logged" message in the system
15 log then mcelog should run to collect and decode machine check entries
38 How often to poll for corrected machine check errors, in seconds
45 check errors (but some corrected errors might be still reported
49 Tolerance level. When a machine check exception occurs for a non
50 corrected machine check the kernel can take different actions.
51 Since machine check exceptions can happen any time it is sometimes
[all …]
/Linux-v4.19/security/apparmor/
Dmatch.c374 #define match_char(state, def, base, next, check, C) \ argument
378 if ((check)[pos] != (state)) { \
410 u16 *check = CHECK_TABLE(dfa); in aa_dfa_match_len() local
421 match_char(state, def, base, next, check, in aa_dfa_match_len()
426 match_char(state, def, base, next, check, (u8) *str++); in aa_dfa_match_len()
450 u16 *check = CHECK_TABLE(dfa); in aa_dfa_match() local
462 match_char(state, def, base, next, check, in aa_dfa_match()
467 match_char(state, def, base, next, check, (u8) *str++); in aa_dfa_match()
489 u16 *check = CHECK_TABLE(dfa); in aa_dfa_next() local
495 match_char(state, def, base, next, check, equiv[(u8) c]); in aa_dfa_next()
[all …]
/Linux-v4.19/arch/ia64/scripts/
Dtoolchain-flags17 $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-v4.19/lib/
Dtest_user_copy.c92 #define test_legit(size, check) \ in test_user_copy_init() argument
94 val_##size = check; \ in test_user_copy_init()
100 ret |= test(val_##size != check, \ in test_user_copy_init()
102 if (val_##size != check) { \ in test_user_copy_init()
105 (unsigned long long)check); \ in test_user_copy_init()
152 #define test_illegal(size, check) \ in test_user_copy_init() argument
154 val_##size = (check); \ in test_user_copy_init()
/Linux-v4.19/samples/bpf/
Dxdp_fwd_kern.c36 u32 check = (__force u32)iph->check; in ip_decrease_ttl() local
38 check += (__force u32)htons(0x0100); in ip_decrease_ttl()
39 iph->check = (__force __sum16)(check + (check >= 0xFFFF)); in ip_decrease_ttl()
/Linux-v4.19/drivers/media/pci/ttpci/
Dav7110_ipack.c17 p->check = 0; in av7110_ipack_reset()
289 p->check = p->flag1; in av7110_ipack_instant_repack()
294 p->check == 0xff){ in av7110_ipack_instant_repack()
295 p->check = buf[c]; in av7110_ipack_instant_repack()
305 if ((p->check & 0xc0) == 0x40 && !p->which) { in av7110_ipack_instant_repack()
306 p->check = buf[c]; in av7110_ipack_instant_repack()
315 p->check = buf[c]; in av7110_ipack_instant_repack()
326 p->check = buf[c]; in av7110_ipack_instant_repack()
336 if ((p->check & 0x30) && p->check != 0xff) { in av7110_ipack_instant_repack()
337 p->flag2 = (p->check & 0xf0) << 2; in av7110_ipack_instant_repack()
[all …]

12345678910>>...40