Home
last modified time | relevance | path

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

12345678910>>...28

/linux-2.6.39/arch/powerpc/lib/ !
Dcode-patching.c164 #define check(x) \ macro
175 check(instr_is_branch_iform(0x48000000)); in test_branch_iform()
177 check(instr_is_branch_iform(0x4bffffff)); in test_branch_iform()
179 check(!instr_is_branch_iform(0xcbffffff)); in test_branch_iform()
181 check(!instr_is_branch_iform(0x7bffffff)); in test_branch_iform()
184 check(instr_is_branch_iform(0x48000001)); in test_branch_iform()
186 check(instr_is_branch_iform(0x4bfffffd)); in test_branch_iform()
188 check(instr_is_branch_iform(0x4bff00fd)); in test_branch_iform()
190 check(!instr_is_branch_iform(0x7bfffffd)); in test_branch_iform()
194 check(instr_is_branch_to_addr(&instr, 0x100)); in test_branch_iform()
[all …]
Dfeature-fixups.c133 #define check(x) \ macro
158 check(memcmp(&ftr_fixup_test1, &ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
162 check(memcmp(&ftr_fixup_test1, &ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
166 check(memcmp(&ftr_fixup_test1, &ftr_fixup_test1_expected, size) == 0); in test_basic_patching()
170 check(memcmp(&ftr_fixup_test1, &ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
172 check(memcmp(&ftr_fixup_test1, &ftr_fixup_test1_expected, size) == 0); in test_basic_patching()
191 check(memcmp(&ftr_fixup_test2, &ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
195 check(memcmp(&ftr_fixup_test2, &ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
199 check(memcmp(&ftr_fixup_test2, &ftr_fixup_test2_expected, size) == 0); in test_alternative_patching()
203 check(memcmp(&ftr_fixup_test2, &ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
[all …]
/linux-2.6.39/include/net/ !
Ddsfield.h30 __u32 check = ntohs((__force __be16)iph->check); in ipv4_change_dsfield() local
34 check += iph->tos; in ipv4_change_dsfield()
35 if ((check+1) >> 16) check = (check+1) & 0xffff; in ipv4_change_dsfield()
36 check -= dsfield; in ipv4_change_dsfield()
37 check += check >> 16; /* adjust carry */ in ipv4_change_dsfield()
38 iph->check = (__force __sum16)htons(check); in ipv4_change_dsfield()
Dinet_ecn.h66 u32 check = (__force u32)iph->check; in IP_ECN_set_ce() local
84 check += (__force u16)htons(0xFFFB) + (__force u16)htons(ecn); in IP_ECN_set_ce()
86 iph->check = (__force __sum16)(check + (check>=0xFFFF)); in IP_ECN_set_ce()
/linux-2.6.39/arch/powerpc/sysdev/ !
Dmsi_bitmap.c142 #define check(x) \ macro
151 check(msi_bitmap_alloc(&bmp, 0, NULL) != 0); in test_basics()
154 check(0 == msi_bitmap_alloc(&bmp, size, NULL)); in test_basics()
157 check(0 == bitmap_find_free_region(bmp.bitmap, size, in test_basics()
162 check(msi_bitmap_reserve_dt_hwirqs(&bmp) > 0); in test_basics()
165 check(0 == bitmap_find_free_region(bmp.bitmap, size, in test_basics()
171 check(msi_bitmap_alloc_hwirqs(&bmp, 1) >= 0); in test_basics()
173 check(msi_bitmap_alloc_hwirqs(&bmp, 1) < 0); in test_basics()
176 check(bitmap_find_free_region(bmp.bitmap, size, 0) < 0); in test_basics()
180 check(msi_bitmap_alloc_hwirqs(&bmp, 1) == size / 2); in test_basics()
[all …]
/linux-2.6.39/drivers/net/wireless/b43/ !
Dtables_nphy.c2787 #undef check in assert_ntab_array_sizes()
2788 #define check(table, size) \ in assert_ntab_array_sizes() macro
2791 check(adjustpower0, C0_ADJPLT); in assert_ntab_array_sizes()
2792 check(adjustpower1, C1_ADJPLT); in assert_ntab_array_sizes()
2793 check(bdi, BDI); in assert_ntab_array_sizes()
2794 check(channelest, CHANEST); in assert_ntab_array_sizes()
2795 check(estimatepowerlt0, C0_ESTPLT); in assert_ntab_array_sizes()
2796 check(estimatepowerlt1, C1_ESTPLT); in assert_ntab_array_sizes()
2797 check(framelookup, FRAMELT); in assert_ntab_array_sizes()
2798 check(framestruct, FRAMESTRUCT); in assert_ntab_array_sizes()
[all …]
/linux-2.6.39/net/netfilter/ipvs/ !
Dip_vs_proto_udp.c92 uhdr->check = in udp_fast_csum_update()
95 ~csum_unfold(uhdr->check)))); in udp_fast_csum_update()
98 uhdr->check = in udp_fast_csum_update()
101 ~csum_unfold(uhdr->check)))); in udp_fast_csum_update()
102 if (!uhdr->check) in udp_fast_csum_update()
103 uhdr->check = CSUM_MANGLED_0; in udp_fast_csum_update()
114 uhdr->check = in udp_partial_csum_update()
117 csum_unfold(uhdr->check)))); in udp_partial_csum_update()
120 uhdr->check = in udp_partial_csum_update()
123 csum_unfold(uhdr->check)))); in udp_partial_csum_update()
[all …]
Dip_vs_proto_tcp.c96 tcph->check = in tcp_fast_csum_update()
99 ~csum_unfold(tcph->check)))); in tcp_fast_csum_update()
102 tcph->check = in tcp_fast_csum_update()
105 ~csum_unfold(tcph->check)))); in tcp_fast_csum_update()
117 tcph->check = in tcp_partial_csum_update()
120 csum_unfold(tcph->check)))); in tcp_partial_csum_update()
123 tcph->check = in tcp_partial_csum_update()
126 csum_unfold(tcph->check)))); in tcp_partial_csum_update()
185 tcph->check = 0; in tcp_snat_handler()
189 tcph->check = csum_ipv6_magic(&cp->vaddr.in6, in tcp_snat_handler()
[all …]
/linux-2.6.39/arch/x86/pci/ !
Dpcbios.c315 union bios32 *check; in pci_find_bios() local
325 for (check = (union bios32 *) __va(0xe0000); in pci_find_bios()
326 check <= (union bios32 *) __va(0xffff0); in pci_find_bios()
327 ++check) { in pci_find_bios()
329 if (probe_kernel_address(&check->fields.signature, sig)) in pci_find_bios()
332 if (check->fields.signature != BIOS32_SIGNATURE) in pci_find_bios()
334 length = check->fields.length * 16; in pci_find_bios()
339 sum += check->chars[i]; in pci_find_bios()
342 if (check->fields.revision != 0) { in pci_find_bios()
344 check->fields.revision, check); in pci_find_bios()
[all …]
/linux-2.6.39/scripts/dtc/ !
Dchecks.c47 struct check;
49 typedef void (*tree_check_fn)(struct check *c, struct node *dt);
50 typedef void (*node_check_fn)(struct check *c, struct node *dt, struct node *node);
51 typedef void (*prop_check_fn)(struct check *c, struct node *dt,
54 struct check { struct
64 struct check **prereq; argument
68 static struct check *nm##_prereqs[] = { __VA_ARGS__ }; \
69 static struct check nm = { \
91 static inline void check_msg(struct check *c, const char *fmt, ...) __attribute__((format (printf, …
93 static inline void check_msg(struct check *c, const char *fmt, ...) in check_msg()
[all …]
/linux-2.6.39/fs/ocfs2/ !
Dblockcheck.c425 struct ocfs2_block_check check; in ocfs2_block_check_validate() local
430 check.bc_crc32e = le32_to_cpu(bc->bc_crc32e); in ocfs2_block_check_validate()
431 check.bc_ecc = le16_to_cpu(bc->bc_ecc); in ocfs2_block_check_validate()
437 if (crc == check.bc_crc32e) in ocfs2_block_check_validate()
443 (unsigned int)check.bc_crc32e, (unsigned int)crc); in ocfs2_block_check_validate()
447 ocfs2_hamming_fix_block(data, blocksize, ecc ^ check.bc_ecc); in ocfs2_block_check_validate()
451 if (crc == check.bc_crc32e) { in ocfs2_block_check_validate()
457 (unsigned int)check.bc_crc32e, (unsigned int)crc); in ocfs2_block_check_validate()
462 bc->bc_crc32e = cpu_to_le32(check.bc_crc32e); in ocfs2_block_check_validate()
463 bc->bc_ecc = cpu_to_le16(check.bc_ecc); in ocfs2_block_check_validate()
[all …]
/linux-2.6.39/drivers/pnp/pnpbios/ !
Dcore.c437 union pnp_bios_install_struct *check; in pnpbios_probe_system() local
448 for (check = (union pnp_bios_install_struct *)__va(0xf0000); in pnpbios_probe_system()
449 check < (union pnp_bios_install_struct *)__va(0xffff0); in pnpbios_probe_system()
450 check = (void *)check + 16) { in pnpbios_probe_system()
451 if (check->fields.signature != PNP_SIGNATURE) in pnpbios_probe_system()
455 check); in pnpbios_probe_system()
456 length = check->fields.length; in pnpbios_probe_system()
463 sum += check->chars[i]; in pnpbios_probe_system()
469 if (check->fields.version < 0x10) { in pnpbios_probe_system()
472 check->fields.version >> 4, in pnpbios_probe_system()
[all …]
/linux-2.6.39/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-2.6.39/net/rds/ !
Dxlist.h27 struct xlist_head *check; in xlist_add() local
32 check = cmpxchg(&head->next, cur, new); in xlist_add()
33 if (check == cur) in xlist_add()
41 struct xlist_head *check; in xlist_del_head() local
50 check = cmpxchg(&head->next, cur, next); in xlist_del_head()
51 if (check == cur) in xlist_del_head()
/linux-2.6.39/net/ipv4/netfilter/ !
Dnf_nat_helper.c157 int datalen, __sum16 *check, int oldlen) in nf_nat_csum() argument
168 skb->csum_offset = (void *)check - data; in nf_nat_csum()
169 *check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, in nf_nat_csum()
172 *check = 0; in nf_nat_csum()
173 *check = csum_tcpudp_magic(iph->saddr, iph->daddr, in nf_nat_csum()
177 if (iph->protocol == IPPROTO_UDP && !*check) in nf_nat_csum()
178 *check = CSUM_MANGLED_0; in nf_nat_csum()
181 inet_proto_csum_replace2(check, skb, in nf_nat_csum()
223 nf_nat_csum(skb, iph, tcph, datalen, &tcph->check, oldlen); in __nf_nat_mangle_tcp_packet()
282 if (!udph->check && skb->ip_summed != CHECKSUM_PARTIAL) in nf_nat_mangle_udp_packet()
[all …]
Dnf_nat_proto_udp.c62 if (hdr->check || skb->ip_summed == CHECKSUM_PARTIAL) { in udp_manip_pkt()
63 inet_proto_csum_replace4(&hdr->check, skb, oldip, newip, 1); in udp_manip_pkt()
64 inet_proto_csum_replace2(&hdr->check, skb, *portptr, newport, in udp_manip_pkt()
66 if (!hdr->check) in udp_manip_pkt()
67 hdr->check = CSUM_MANGLED_0; in udp_manip_pkt()
Dnf_nat_proto_udplite.c63 inet_proto_csum_replace4(&hdr->check, skb, oldip, newip, 1); in udplite_manip_pkt()
64 inet_proto_csum_replace2(&hdr->check, skb, *portptr, newport, 0); in udplite_manip_pkt()
65 if (!hdr->check) in udplite_manip_pkt()
66 hdr->check = CSUM_MANGLED_0; in udplite_manip_pkt()
/linux-2.6.39/arch/ia64/scripts/ !
Dtoolchain-flags16 $CC -nostdlib -static -Wl,-T$dir/check-segrel.lds $dir/check-segrel.S -o $out
30 $CC -c $dir/check-text-align.S -o $out
38 if ! $CC -c $dir/check-model.c -o $out 2>&1 | grep __model__ | grep -q attrib
46 $CC -c $dir/check-serialize.S -o $out 2>/dev/null
/linux-2.6.39/scripts/ !
DMakefile.headersinst28 check-file := $(install)/.check
78 __headerscheck: $(subdirs) $(check-file)
81 targets += $(check-file)
82 $(check-file): scripts/headers_check.pl $(output-files) FORCE
83 $(call if_changed,check)
/linux-2.6.39/drivers/media/dvb/ttpci/ !
Dav7110_ipack.c16 p->check = 0; in av7110_ipack_reset()
288 p->check = p->flag1; in av7110_ipack_instant_repack()
293 p->check == 0xff){ in av7110_ipack_instant_repack()
294 p->check = buf[c]; in av7110_ipack_instant_repack()
304 if ((p->check & 0xc0) == 0x40 && !p->which) { in av7110_ipack_instant_repack()
305 p->check = buf[c]; in av7110_ipack_instant_repack()
314 p->check = buf[c]; in av7110_ipack_instant_repack()
325 p->check = buf[c]; in av7110_ipack_instant_repack()
335 if ((p->check & 0x30) && p->check != 0xff) { in av7110_ipack_instant_repack()
336 p->flag2 = (p->check & 0xf0) << 2; in av7110_ipack_instant_repack()
[all …]
/linux-2.6.39/arch/m68k/fpsp040/ !
Dget_op.S503 tstl ETEMP_HI(%a6) |check ms mantissa
505 tstl ETEMP_LO(%a6) |check ls mantissa
516 tstw %d0 |check for zero.
518 tstl ETEMP_HI(%a6) |check words 3 and 2
520 tstl ETEMP_LO(%a6) |check words 1 and 0
555 tstl ETEMP_HI(%a6) |check ms mantissa
557 tstl ETEMP_LO(%a6) |check ls mantissa
561 tstl ETEMP(%a6) |check sign
575 tstl ETEMP(%a6) |check for sign
583 tstw %d0 |check for zero.
[all …]
Dx_operr.S159 cmpib #0x60,%d0 |check for nan
162 bnes chkwerr |if not equal, check for incorrect operr
163 bsr check_upper |check if exp and ms mant are special
165 bnes chkwerr |if d0 is true, check for incorrect operr
186 cmpib #0x60,%d0 |check for nan
189 bnes chkberr |if not equal, check for incorrect operr
190 bsr check_upper |check if exp and ms mant are special
192 bnes chkberr |if d0 is true, check for incorrect operr
232 tstw FPTEMP_EX(%a6) |check sign
288 cmpil #0xffffffff,FPTEMP_HI(%a6) |check if first byte is all 1's
[all …]
/linux-2.6.39/net/sched/ !
Dact_csum.c198 tcph->check = 0; in tcf_csum_ipv4_tcp()
200 tcph->check = tcp_v4_check(ipl - ihl, in tcf_csum_ipv4_tcp()
217 tcph->check = 0; in tcf_csum_ipv6_tcp()
219 tcph->check = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in tcf_csum_ipv6_tcp()
247 if (udplite || udph->check) { in tcf_csum_ipv4_udp()
249 udph->check = 0; in tcf_csum_ipv4_udp()
265 udph->check = csum_tcpudp_magic(iph->saddr, iph->daddr, in tcf_csum_ipv4_udp()
269 if (!udph->check) in tcf_csum_ipv4_udp()
270 udph->check = CSUM_MANGLED_0; in tcf_csum_ipv4_udp()
298 udph->check = 0; in tcf_csum_ipv6_udp()
[all …]
/linux-2.6.39/arch/mn10300/unit-asb2364/include/unit/ !
Dsmsc911x.h86 int check; in smsc_get_mac() local
102 check = 0; in smsc_get_mac()
105 check++; in smsc_get_mac()
109 if (check == 3) { in smsc_get_mac()
/linux-2.6.39/drivers/pci/ !
Dsetup-res.c32 u32 new, check, mask; in pci_update_resource() local
70 pci_read_config_dword(dev, reg, &check); in pci_update_resource()
72 if ((new ^ check) & mask) { in pci_update_resource()
74 resno, new, check); in pci_update_resource()
81 pci_read_config_dword(dev, reg + 4, &check); in pci_update_resource()
82 if (check != new) { in pci_update_resource()
84 "(high %#08x != %#08x)\n", resno, new, check); in pci_update_resource()

12345678910>>...28