Home
last modified time | relevance | path

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

/arch/s390/include/asm/
Dchecksum.h81 u32 csum = (__force u32) sum; in csum_fold() local
83 csum += (csum >> 16) + (csum << 16); in csum_fold()
84 csum >>= 16; in csum_fold()
85 return (__force __sum16) ~csum; in csum_fold()
107 __u32 csum = (__force __u32)sum; in csum_tcpudp_nofold() local
109 csum += (__force __u32)saddr; in csum_tcpudp_nofold()
110 if (csum < (__force __u32)saddr) in csum_tcpudp_nofold()
111 csum++; in csum_tcpudp_nofold()
113 csum += (__force __u32)daddr; in csum_tcpudp_nofold()
114 if (csum < (__force __u32)daddr) in csum_tcpudp_nofold()
[all …]
Dos_info.h21 u32 csum; member
26 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.h105 unsigned int csum; in ip_fast_csum() local
108 csum = word[0]; in ip_fast_csum()
109 csum += word[1]; in ip_fast_csum()
110 carry = (csum < word[1]); in ip_fast_csum()
111 csum += carry; in ip_fast_csum()
113 csum += word[2]; in ip_fast_csum()
114 carry = (csum < word[2]); in ip_fast_csum()
115 csum += carry; in ip_fast_csum()
117 csum += word[3]; in ip_fast_csum()
118 carry = (csum < word[3]); in ip_fast_csum()
[all …]
/arch/s390/kernel/
Dos_info.c38 os_info.csum = os_info_csum(&os_info); in os_info_crashkernel_add()
48 os_info.entry[nr].csum = csum_partial(ptr, size, 0); in os_info_entry_add()
49 os_info.csum = os_info_csum(&os_info); in os_info_entry_add()
62 os_info.csum = os_info_csum(&os_info); in os_info_init()
77 u32 csum; in os_info_old_alloc() local
95 csum = csum_partial(buf_align, size, 0); in os_info_old_alloc()
96 if (csum != os_info_old->entry[nr].csum) { in os_info_old_alloc()
135 if (os_info_old->csum != os_info_csum(os_info_old)) in os_info_old_init()
Dipl.c1531 u32 csum; in dump_reipl_run() local
1533 csum = csum_partial(reipl_block_actual, reipl_block_actual->hdr.len, 0); in dump_reipl_run()
1534 copy_to_absolute_zero(&S390_lowcore.ipib_checksum, &csum, sizeof(csum)); in dump_reipl_run()
/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/tile/kernel/
Dmachine_kexec.c114 __sum16 csum; in kexec_bn2cl() local
130 csum = ip_compute_csum(pg, bhdrp->b_size); in kexec_bn2cl()
131 if (csum != 0) { in kexec_bn2cl()
133 __func__, csum, bhdrp->b_size); in kexec_bn2cl()
/arch/x86/lib/
DMakefile42 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/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/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/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.c461 unsigned long csum = 0; in init_axis_flash() local
470 csum += *p++; in init_axis_flash()
471 csum += *p++; in init_axis_flash()
472 csum += *p++; in init_axis_flash()
473 csum += *p++; in init_axis_flash()
475 ptable_ok = (csum == ptable_head->checksum); in init_axis_flash()
Dcryptocop.c2928 …err = copy_to_user((unsigned char*)crp_oper + offsetof(struct strcop_crypto_op, csum), csum_result… in cryptocop_ioctl_process()
3000 (int)sop.csum)); in cryptocop_ioctl_create_session()
3067 if (sop.csum != cryptocop_csum_none){ in cryptocop_ioctl_create_session()
3069 switch (sop.csum){ in cryptocop_ioctl_create_session()
3072 ti_csum.csum_mode = sop.csum; in cryptocop_ioctl_create_session()
3075 DEBUG_API(printk("create session, bad checksum algorithm %d\n", sop.csum)); in cryptocop_ioctl_create_session()
/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/cris/include/arch-v32/arch/
Dcryptocop.h72 cryptocop_csum_type csum; /* BE, LE, none */ member
116 unsigned char csum[CRYPTOCOP_CSUM_LENGTH]; member
/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
/arch/sparc/lib/
Dchecksum_32.S142 mov %o2, %o0 ! return computed csum
356 andcc %g1, 0xffffff80, %g0 ! more to csum?
392 andcc %g1, 0xffffff80, %g0 ! more to csum?
/arch/powerpc/xmon/
Dxmon.c142 static void csum(void);
870 csum(); in cmds()
1055 csum(void) in csum() function