Home
last modified time | relevance | path

Searched refs:csum (Results 1 – 25 of 32) sorted by relevance

12

/arch/s390/include/asm/
Dchecksum.h72 u32 csum = (__force u32) sum; in csum_fold() local
74 csum += (csum >> 16) + (csum << 16); in csum_fold()
75 csum >>= 16; in csum_fold()
76 return (__force __sum16) ~csum; in csum_fold()
97 __u32 csum = (__force __u32)sum; in csum_tcpudp_nofold() local
99 csum += (__force __u32)saddr; in csum_tcpudp_nofold()
100 if (csum < (__force __u32)saddr) in csum_tcpudp_nofold()
101 csum++; in csum_tcpudp_nofold()
103 csum += (__force __u32)daddr; in csum_tcpudp_nofold()
104 if (csum < (__force __u32)daddr) in csum_tcpudp_nofold()
[all …]
Dos_info.h20 u32 csum; member
25 u32 csum; member
/arch/powerpc/lib/
Dchecksum_wrappers.c29 unsigned int csum; in csum_and_copy_from_user() local
36 csum = 0; in csum_and_copy_from_user()
42 csum = (__force unsigned int)sum; in csum_and_copy_from_user()
46 csum = csum_partial_copy_generic((void __force *)src, dst, in csum_and_copy_from_user()
59 csum = csum_partial(dst, len, sum); in csum_and_copy_from_user()
63 return (__force __wsum)csum; in csum_and_copy_from_user()
70 unsigned int csum; in csum_and_copy_to_user() local
77 csum = 0; in csum_and_copy_to_user()
83 csum = -1; /* invalid checksum */ in csum_and_copy_to_user()
87 csum = csum_partial_copy_generic(src, (void __force *)dst, in csum_and_copy_to_user()
[all …]
/arch/mips/include/asm/
Dchecksum.h111 static inline __sum16 csum_fold(__wsum csum) in csum_fold() argument
113 u32 sum = (__force u32)csum;; in csum_fold()
116 csum = (sum < csum); in csum_fold()
118 sum += csum; in csum_fold()
135 unsigned int csum; in ip_fast_csum() local
138 csum = word[0]; in ip_fast_csum()
139 csum += word[1]; in ip_fast_csum()
140 carry = (csum < word[1]); in ip_fast_csum()
141 csum += carry; in ip_fast_csum()
143 csum += word[2]; in ip_fast_csum()
[all …]
/arch/s390/kernel/
Dos_info.c39 os_info.csum = os_info_csum(&os_info); in os_info_crashkernel_add()
49 os_info.entry[nr].csum = csum_partial(ptr, size, 0); in os_info_entry_add()
50 os_info.csum = os_info_csum(&os_info); in os_info_entry_add()
63 os_info.csum = os_info_csum(&os_info); in os_info_init()
78 u32 csum; in os_info_old_alloc() local
96 csum = csum_partial(buf_align, size, 0); in os_info_old_alloc()
97 if (csum != os_info_old->entry[nr].csum) { in os_info_old_alloc()
137 if (os_info_old->csum != os_info_csum(os_info_old)) in os_info_old_init()
/arch/powerpc/include/asm/
Dchecksum.h99 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() argument
102 u64 res = (__force u64)csum; in csum_add()
104 if (__builtin_constant_p(csum) && csum == 0) in csum_add()
107 return csum; in csum_add()
115 : "+r" (csum) : "r" (addend) : "xer"); in csum_add()
116 return csum; in csum_add()
/arch/ia64/include/asm/
Dchecksum.h61 static inline __sum16 csum_fold(__wsum csum) in csum_fold() argument
63 u32 sum = (__force u32)csum; in csum_fold()
73 __u32 len, __u8 proto, __wsum csum);
/arch/sparc/include/asm/
Dchecksum_64.h165 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() argument
170 : "=r" (csum) in csum_add()
171 : "r" (addend), "0" (csum)); in csum_add()
173 return csum; in csum_add()
Dchecksum_32.h239 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() argument
244 : "=r" (csum) in csum_add()
245 : "r" (addend), "0" (csum)); in csum_add()
247 return csum; in csum_add()
/arch/arm64/include/asm/
Dchecksum.h21 static inline __sum16 csum_fold(__wsum csum) in csum_fold() argument
23 u32 sum = (__force u32)csum; in csum_fold()
/arch/cris/arch-v10/drivers/
Daxisflashmap.c307 unsigned long csum = 0; in init_axis_flash() local
316 csum += *p++; in init_axis_flash()
317 csum += *p++; in init_axis_flash()
318 csum += *p++; in init_axis_flash()
319 csum += *p++; in init_axis_flash()
321 ptable_ok = (csum == ptable_head->checksum); in init_axis_flash()
/arch/x86/lib/
DMakefile44 lib-y += csum-partial_64.o csum-copy_64.o csum-wrappers_64.o
/arch/cris/include/asm/
Dchecksum.h37 static inline __sum16 csum_fold(__wsum csum) in csum_fold() argument
39 u32 sum = (__force u32)csum; in csum_fold()
/arch/tile/kernel/
Dmachine_kexec.c113 __sum16 csum; in kexec_bn2cl() local
129 csum = ip_compute_csum(pg, bhdrp->b_size); in kexec_bn2cl()
130 if (csum != 0) { in kexec_bn2cl()
132 __func__, csum, bhdrp->b_size); in kexec_bn2cl()
/arch/alpha/include/asm/
Dchecksum.h59 static inline __sum16 csum_fold(__wsum csum) in csum_fold() argument
61 u32 sum = (__force u32)csum; in csum_fold()
/arch/cris/include/uapi/arch-v32/arch/
Dcryptocop.h72 cryptocop_csum_type csum; /* BE, LE, none */ member
116 unsigned char csum[CRYPTOCOP_CSUM_LENGTH]; member
/arch/metag/include/asm/
Dchecksum.h43 static inline __sum16 csum_fold(__wsum csum) in csum_fold() argument
45 u32 sum = (__force u32)csum; in csum_fold()
/arch/parisc/include/asm/
Deisa_eeprom.h30 u_int16_t csum; /* checksum, I don't know how to calculate this */ member
40 u_int16_t csum; member
Dchecksum.h76 static inline __sum16 csum_fold(__wsum csum) in csum_fold() argument
78 u32 sum = (__force u32)csum; in csum_fold()
/arch/cris/arch-v32/drivers/
Daxisflashmap.c431 unsigned long csum = 0; in init_axis_flash() local
440 csum += *p++; in init_axis_flash()
441 csum += *p++; in init_axis_flash()
442 csum += *p++; in init_axis_flash()
443 csum += *p++; in init_axis_flash()
445 ptable_ok = (csum == ptable_head->checksum); in init_axis_flash()
/arch/x86/include/asm/
Dchecksum_64.h192 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() argument
194 return (__force __wsum)add32_with_carry((__force unsigned)csum, in csum_add()
/arch/alpha/lib/
Dcsum_ipv6_magic.S24 zapnot $20,15,$20 # .. e1 : zero extend incoming csum
84 addq $0,$1,$0 # .. e1 : merge the carries back into the csum
Dev6-csum_ipv6_magic.S70 zapnot $20,15,$20 # U : zero extend incoming csum
120 addq $0,$1,$0 # E : merge the carries back into the csum
/arch/tile/include/arch/
Dmpipe_shm.h56 uint_reg_t csum : 1; member
118 uint_reg_t csum : 1;
/arch/c6x/lib/
Dcsum_64plus.S23 ; return csum in A4
30 MV .D1X B6,A31 ; given csum
31 ZERO .D1 A9 ; csum (a side)
32 || ZERO .D2 B9 ; csum (b side)
60 || ADD .L1X A9,B9,A9 ; add csum from a and b sides
139 ;; Fold the csum

12