/arch/s390/include/asm/ |
D | checksum.h | 81 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 …]
|
D | os_info.h | 21 u32 csum; member 26 u32 csum; member
|
/arch/powerpc/lib/ |
D | checksum_wrappers_64.c | 29 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/ |
D | checksum.h | 105 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/ |
D | os_info.c | 38 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()
|
D | ipl.c | 1531 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/ |
D | checksum.h | 65 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/ |
D | machine_kexec.c | 114 __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/ |
D | Makefile | 42 lib-y += csum-partial_64.o csum-copy_64.o csum-wrappers_64.o
|
/arch/cris/include/asm/ |
D | checksum.h | 37 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/ |
D | axisflashmap.c | 316 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/ |
D | checksum.h | 62 static inline __sum16 csum_fold(__wsum csum) in csum_fold() argument 64 u32 sum = (__force u32)csum; in csum_fold()
|
/arch/parisc/include/asm/ |
D | eisa_eeprom.h | 30 u_int16_t csum; /* checksum, I don't know how to calculate this */ member 40 u_int16_t csum; member
|
D | checksum.h | 76 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/ |
D | axisflashmap.c | 461 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()
|
D | cryptocop.c | 2928 …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/ |
D | csum_ipv6_magic.S | 23 zapnot $20,15,$20 # .. e1 : zero extend incoming csum 83 addq $0,$1,$0 # .. e1 : merge the carries back into the csum
|
D | ev6-csum_ipv6_magic.S | 69 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/ |
D | cryptocop.h | 72 cryptocop_csum_type csum; /* BE, LE, none */ member 116 unsigned char csum[CRYPTOCOP_CSUM_LENGTH]; member
|
/arch/c6x/lib/ |
D | csum_64plus.S | 23 ; 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/ |
D | Makefile | 30 subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../lib/thunk_64.o \
|
/arch/mips/ar7/ |
D | prom.c | 77 u16 csum; member
|
/arch/sparc/lib/ |
D | checksum_32.S | 142 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/ |
D | xmon.c | 142 static void csum(void); 870 csum(); in cmds() 1055 csum(void) in csum() function
|