Home
last modified time | relevance | path

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

12345678910>>...14

/linux-2.4.37.9/net/ipv4/
Dip_nat_dumb.c53 u16 check; in ip_do_nat() local
60 iph->check = 0; in ip_do_nat()
61 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); in ip_do_nat()
70 cksum = (u16*)&((struct tcphdr*)(((char*)iph) + (iph->ihl<<2)))->check; in ip_do_nat()
73 check = *cksum; in ip_do_nat()
75 check = ~check; in ip_do_nat()
76 check = csum_tcpudp_magic(iph->saddr, iph->daddr, 0, 0, check); in ip_do_nat()
77 check = csum_tcpudp_magic(~osaddr, ~odaddr, 0, 0, ~check); in ip_do_nat()
79 check = ~check; in ip_do_nat()
80 *cksum = check; in ip_do_nat()
[all …]
/linux-2.4.37.9/include/net/
Ddsfield.h30 __u32 check = ntohs(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 = htons(check); in ipv4_change_dsfield()
Dinet_ecn.h49 u32 check = iph->check; in IP_ECN_set_ce() local
50 check += __constant_htons(0xFFFE); in IP_ECN_set_ce()
51 iph->check = check + (check>=0xFFFF); in IP_ECN_set_ce()
Dip.h177 u32 check = iph->check; in ip_decrease_ttl() local
178 check += __constant_htons(0x0100); in ip_decrease_ttl()
179 iph->check = check + (check>=0xFFFF); in ip_decrease_ttl()
/linux-2.4.37.9/arch/mips/vr41xx/common/
Dint-handler.S69 andi t1, t0, 0x7800 # check for Int1-4
72 andi t1, t0, CAUSEF_IP3 # check for Int1
76 andi t1, t0, CAUSEF_IP4 # check for Int2
80 andi t1, t0, CAUSEF_IP5 # check for Int3
84 andi t1, t0, CAUSEF_IP6 # check for Int4
89 andi t1, t0, CAUSEF_IP2 # check for Int0
93 andi t1, t0, CAUSEF_IP0 # check for IP0
97 andi t1, t0, CAUSEF_IP1 # check for IP1
/linux-2.4.37.9/net/ipv4/netfilter/
Dip_fw_compat_redir.c102 tcph->check = cheat_check(~redir->core.orig_dstip, in do_tcp_redir()
106 tcph->check)); in do_tcp_redir()
107 iph->check = cheat_check(~redir->core.orig_dstip, in do_tcp_redir()
108 redir->core.new_dstip, iph->check); in do_tcp_redir()
142 tcph->check = cheat_check(~redir->core.new_dstip, in do_tcp_unredir()
146 tcph->check)); in do_tcp_unredir()
147 iph->check = cheat_check(~redir->core.new_dstip, in do_tcp_unredir()
149 iph->check); in do_tcp_unredir()
190 if (udph->check) /* 0 is a special case meaning no checksum */ in do_redirect()
191 udph->check = cheat_check(~iph->daddr, newdst, in do_redirect()
[all …]
Dipt_TCPMSS.c115 tcph->check = cheat_check(htons(oldmss)^0xFFFF, in ipt_tcpmss_target()
117 tcph->check); in ipt_tcpmss_target()
157 tcph->check = cheat_check(htons(tcplen) ^ 0xFFFF, in ipt_tcpmss_target()
158 htons(tcplen + TCPOLEN_MSS), tcph->check); in ipt_tcpmss_target()
166 tcph->check = cheat_check(~0, *((u_int32_t *)opt), tcph->check); in ipt_tcpmss_target()
170 tcph->check = cheat_check(oldval ^ 0xFFFF, in ipt_tcpmss_target()
171 ((u_int16_t *)tcph)[6], tcph->check); in ipt_tcpmss_target()
174 iph->check = cheat_check(iph->tot_len ^ 0xFFFF, in ipt_tcpmss_target()
175 newtotlen, iph->check); in ipt_tcpmss_target()
Dipt_REJECT.c156 tcph->check = 0; in send_reset()
157 tcph->check = tcp_v4_check(tcph, sizeof(struct tcphdr), in send_reset()
170 nskb->nh.iph->check = 0; in send_reset()
171 nskb->nh.iph->check = ip_fast_csum((unsigned char *)nskb->nh.iph, in send_reset()
226 if (udph->check in send_unreach()
294 iph->check=0; in send_unreach()
295 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); in send_unreach()
369 static int check(const char *tablename, in check() function
410 = { { NULL, NULL }, "REJECT", reject, check, NULL, THIS_MODULE };
Dip_nat_helper.c200 tcph->check = 0; in ip_nat_mangle_tcp_packet()
201 tcph->check = tcp_v4_check(tcph, newtcplen, iph->saddr, iph->daddr, in ip_nat_mangle_tcp_packet()
304 if (udph->check != 0) { in ip_nat_mangle_udp_packet()
305 udph->check = 0; in ip_nat_mangle_udp_packet()
306 udph->check = csum_tcpudp_magic(iph->saddr, iph->daddr, in ip_nat_mangle_udp_packet()
352 tcph->check = in sack_adjust()
356 tcph->check)); in sack_adjust()
441 tcph->check = ip_nat_cheat_check(~tcph->seq, newseq, in ip_nat_seq_adjust()
444 tcph->check)); in ip_nat_seq_adjust()
Dip_nat_proto_tcp.c99 if(((void *)&hdr->check + sizeof(hdr->check) - (void *)iph) <= len) { in tcp_manip_pkt()
100 hdr->check = ip_nat_cheat_check(~oldip, manip->ip, in tcp_manip_pkt()
103 hdr->check)); in tcp_manip_pkt()
Dipt_ECN.c47 iph->check = csum_fold(csum_partial((char *)diffs, in set_ect_ip()
49 iph->check^0xFFFF)); in set_ect_ip()
95 tcph->check = csum_fold(csum_partial((char *)diffs, in set_ect_tcp()
97 tcph->check^0xFFFF)); in set_ect_tcp()
/linux-2.4.37.9/lib/zlib_inflate/
Dinflate.c164 z->state->sub.check.need = (uLong)NEXTBYTE << 24;
168 z->state->sub.check.need += (uLong)NEXTBYTE << 16;
172 z->state->sub.check.need += (uLong)NEXTBYTE << 8;
176 z->state->sub.check.need += (uLong)NEXTBYTE;
177 z->adler = z->state->sub.check.need;
200 zlib_inflate_blocks_reset(z->state->blocks, z, &z->state->sub.check.was);
209 z->state->sub.check.need = (uLong)NEXTBYTE << 24;
213 z->state->sub.check.need += (uLong)NEXTBYTE << 16;
217 z->state->sub.check.need += (uLong)NEXTBYTE << 8;
221 z->state->sub.check.need += (uLong)NEXTBYTE;
[all …]
Dinfutil.c47 z->adler = s->check = (*s->checkfn)(s->check, q, n);
73 z->adler = s->check = (*s->checkfn)(s->check, q, n);
/linux-2.4.37.9/arch/mips/mips-boards/generic/
DmipsIRQ.S88 andi a0, s0, CAUSEF_IP2 # delay slot, check hw0 interrupt
101 andi a0, s0, CAUSEF_IP3 # delay slot, check hw1 interrupt
103 beq a0, zero, 1f # delay slot, check hw3 interrupt
125 andi a0, s0, CAUSEF_IP5 # delay slot, check hw3 interrupt
133 beq a0, zero, 1f # check hw3 (coreHI) interrupt
/linux-2.4.37.9/arch/m68k/fpsp040/
Dget_op.S504 tstl ETEMP_HI(%a6) |check ms mantissa
506 tstl ETEMP_LO(%a6) |check ls mantissa
517 tstw %d0 |check for zero.
519 tstl ETEMP_HI(%a6) |check words 3 and 2
521 tstl ETEMP_LO(%a6) |check words 1 and 0
556 tstl ETEMP_HI(%a6) |check ms mantissa
558 tstl ETEMP_LO(%a6) |check ls mantissa
562 tstl ETEMP(%a6) |check sign
576 tstl ETEMP(%a6) |check for sign
584 tstw %d0 |check for zero.
[all …]
Dx_operr.S160 cmpib #0x60,%d0 |check for nan
163 bnes chkwerr |if not equal, check for incorrect operr
164 bsr check_upper |check if exp and ms mant are special
166 bnes chkwerr |if d0 is true, check for incorrect operr
187 cmpib #0x60,%d0 |check for nan
190 bnes chkberr |if not equal, check for incorrect operr
191 bsr check_upper |check if exp and ms mant are special
193 bnes chkberr |if d0 is true, check for incorrect operr
233 tstw FPTEMP_EX(%a6) |check sign
289 cmpil #0xffffffff,FPTEMP_HI(%a6) |check if first byte is all 1's
[all …]
Dsint.S145 cmpw #0x403e,LOCAL_EX(%a0) |check if (unbiased) exp > 63
147 cmpw #0x3ffd,LOCAL_EX(%a0) |check if (unbiased) exp < 0
150 | Input is less than zero. Restore sign, and check for directed
154 btstb #1,L_SCR1+3(%a6) |check for rn and rz
156 tstb LOCAL_SGN(%a0) |check for sign
161 cmpib #3,L_SCR1+3(%a6) |check for rp
172 cmpib #2,L_SCR1+3(%a6) |check for rm
183 tstb LOCAL_SGN(%a0) |check for sign
/linux-2.4.37.9/arch/sh64/kernel/
Dpcibios.c33 u32 new, check; in pcibios_update_resource() local
49 pci_read_config_dword(dev, reg, &check); in pcibios_update_resource()
50 …if ((new ^ check) & ((new & PCI_BASE_ADDRESS_SPACE_IO) ? PCI_BASE_ADDRESS_IO_MASK : PCI_BASE_ADDRE… in pcibios_update_resource()
53 new, check); in pcibios_update_resource()
/linux-2.4.37.9/arch/sh/kernel/
Dpcibios.c33 u32 new, check; in pcibios_update_resource() local
49 pci_read_config_dword(dev, reg, &check); in pcibios_update_resource()
50 …if ((new ^ check) & ((new & PCI_BASE_ADDRESS_SPACE_IO) ? PCI_BASE_ADDRESS_IO_MASK : PCI_BASE_ADDRE… in pcibios_update_resource()
53 new, check); in pcibios_update_resource()
Dio_shmse.c16 struct iop *(*check)(struct iop *p, unsigned long port); member
27 badio(check, port); in simple_check()
52 .check = simple_check,
60 if(laniop.check(&laniop, port)) in port2iop()
63 badio(check, port); /* XXX: dummy fallback routine? */ in port2iop()
/linux-2.4.37.9/arch/arm/kernel/
Dentry-common.S87 ldr ip, [tsk, #TSK_PTRACE] @ check for syscall tracing
109 and \temp, \instr, #0x0f000000 @ check for SWI
146 ldr ip, [tsk, #TSK_PTRACE] @ check for syscall tracing
148 eor scno, scno, #OS_NUMBER << 20 @ check OS number
154 cmp scno, #NR_syscalls @ check upper syscall limit
175 cmp scno, #NR_syscalls @ check upper syscall limit
206 cmp scno, #NR_syscalls @ check range
/linux-2.4.37.9/Documentation/i2c/
Dfunctionality7 the client needs some way to check whether an adapter has the needed
14 For the most up-to-date list of functionality constants, please check
61 /* Many other things of course; check <linux/i2c.h>! */
78 Before a client tries to attach to an adapter, or even do tests to check
80 check whether the needed functionality is present. There are two functions
97 /* As the very first action, we check whether the adapter has the
116 to use the /dev interface. You will still have to check whether the
/linux-2.4.37.9/arch/mips/ddb5xxx/ddb5074/
Dint-handler.S70 andi a0, s0, CAUSEF_IP2 # delay slot, check local level zero
72 andi a0, s0, CAUSEF_IP3 # delay slot, check local level one
83 andi a0, s0, CAUSEF_IP6 # delay slot, check bus error
/linux-2.4.37.9/drivers/sound/
Dhex2hex.c23 int n, check; in loadhex() local
56 if (fscanf(inf, "%02x", &check) != 1) in loadhex()
60 if (check != sum) in loadhex()
/linux-2.4.37.9/arch/s390/boot/
Dipldump.S22 .long 0x00000000,0x00000000 # program check old psw
23 .long 0x00000000,0x00000000 # machine check old psw
30 .long 0x000a0000,0x00000068 # program check new psw
31 .long 0x000a0000,0x00000070 # machine check new psw
41 mvc 104(8),.Lpcmem0 # setup program check handler

12345678910>>...14