Home
last modified time | relevance | path

Searched refs:csum (Results 1 – 25 of 29) 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()
98 __u32 csum = (__force __u32)sum; in csum_tcpudp_nofold() local
100 csum += (__force __u32)saddr; in csum_tcpudp_nofold()
101 if (csum < (__force __u32)saddr) in csum_tcpudp_nofold()
102 csum++; in csum_tcpudp_nofold()
104 csum += (__force __u32)daddr; in csum_tcpudp_nofold()
105 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_64.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()
136 if (os_info_old->csum != os_info_csum(os_info_old)) in os_info_old_init()
/arch/ia64/include/asm/
Dchecksum.h65 static inline __sum16 csum_fold(__wsum csum) in csum_fold() argument
67 u32 sum = (__force u32)csum; in csum_fold()
77 __wsum csum);
/arch/sparc/include/asm/
Dchecksum_64.h168 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() argument
173 : "=r" (csum) in csum_add()
174 : "r" (addend), "0" (csum)); in csum_add()
176 return csum; in csum_add()
Dchecksum_32.h242 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() argument
247 : "=r" (csum) in csum_add()
248 : "r" (addend), "0" (csum)); in csum_add()
250 return csum; in csum_add()
/arch/cris/arch-v10/drivers/
Daxisflashmap.c316 unsigned long csum = 0; in init_axis_flash() local
325 csum += *p++; in init_axis_flash()
326 csum += *p++; in init_axis_flash()
327 csum += *p++; in init_axis_flash()
328 csum += *p++; in init_axis_flash()
330 ptable_ok = (csum == ptable_head->checksum); in init_axis_flash()
/arch/x86/lib/
DMakefile43 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.c116 __sum16 csum; in kexec_bn2cl() local
132 csum = ip_compute_csum(pg, bhdrp->b_size); in kexec_bn2cl()
133 if (csum != 0) { in kexec_bn2cl()
135 __func__, csum, bhdrp->b_size); in kexec_bn2cl()
/arch/alpha/include/asm/
Dchecksum.h62 static inline __sum16 csum_fold(__wsum csum) in csum_fold() argument
64 u32 sum = (__force u32)csum; in csum_fold()
/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/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/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/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/cris/arch-v32/drivers/
Daxisflashmap.c458 unsigned long csum = 0; in init_axis_flash() local
467 csum += *p++; in init_axis_flash()
468 csum += *p++; in init_axis_flash()
469 csum += *p++; in init_axis_flash()
470 csum += *p++; in init_axis_flash()
472 ptable_ok = (csum == ptable_head->checksum); in init_axis_flash()
/arch/alpha/lib/
Dcsum_ipv6_magic.S23 zapnot $20,15,$20 # .. e1 : zero extend incoming csum
83 addq $0,$1,$0 # .. e1 : merge the carries back into the csum
Dev6-csum_ipv6_magic.S69 zapnot $20,15,$20 # U : zero extend incoming csum
119 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
/arch/x86/um/
DMakefile30 subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../lib/thunk_64.o \
/arch/mips/ar7/
Dprom.c77 u16 csum; member

12