/arch/x86/lib/ |
D | csum-partial_64.c | 34 static unsigned do_csum(const unsigned char *buff, unsigned len) in do_csum() argument 41 odd = 1 & (unsigned long) buff; in do_csum() 43 result = *buff << 8; in do_csum() 45 buff++; in do_csum() 49 if (2 & (unsigned long) buff) { in do_csum() 50 result += *(unsigned short *)buff; in do_csum() 53 buff += 2; in do_csum() 59 if (4 & (unsigned long) buff) { in do_csum() 60 result += *(unsigned int *) buff; in do_csum() 63 buff += 4; in do_csum() [all …]
|
/arch/cris/arch-v10/lib/ |
D | old_checksum.c | 52 const u16 *buff = p; in csum_partial() local 60 if((int)buff & 0x3) in csum_partial() 61 printk("unaligned buff %p\n", buff); in csum_partial() 65 while (buff < marker) { in csum_partial() 66 sum += *buff++; in csum_partial() 67 sum += *buff++; in csum_partial() 68 sum += *buff++; in csum_partial() 69 sum += *buff++; in csum_partial() 70 sum += *buff++; in csum_partial() 71 sum += *buff++; in csum_partial() [all …]
|
/arch/frv/kernel/ |
D | sysctl.c | 54 char buff[8]; in procctl_frv_cachemode() local 61 if (len <= 1 || len > sizeof(buff) - 1) in procctl_frv_cachemode() 64 if (copy_from_user(buff, buffer, len) != 0) in procctl_frv_cachemode() 67 if (buff[len - 1] == '\n') in procctl_frv_cachemode() 68 buff[len - 1] = '\0'; in procctl_frv_cachemode() 70 buff[len] = '\0'; in procctl_frv_cachemode() 72 if (strcmp(buff, frv_cache_wback) == 0) { in procctl_frv_cachemode() 78 if (strcmp(buff, frv_cache_wthru) == 0) { in procctl_frv_cachemode() 96 memcpy(buff, frv_cache_wthru, sizeof(frv_cache_wthru) - 1); in procctl_frv_cachemode() 97 buff[sizeof(frv_cache_wthru) - 1] = '\n'; in procctl_frv_cachemode() [all …]
|
/arch/parisc/lib/ |
D | checksum.c | 43 static inline unsigned int do_csum(const unsigned char * buff, int len) in do_csum() argument 50 odd = 1 & (unsigned long) buff; in do_csum() 52 result = be16_to_cpu(*buff); in do_csum() 54 buff++; in do_csum() 58 if (2 & (unsigned long) buff) { in do_csum() 59 result += *(unsigned short *) buff; in do_csum() 62 buff += 2; in do_csum() 68 r1 = *(unsigned int *)(buff + 0); in do_csum() 69 r2 = *(unsigned int *)(buff + 4); in do_csum() 70 r3 = *(unsigned int *)(buff + 8); in do_csum() [all …]
|
/arch/ia64/lib/ |
D | csum_partial_copy.c | 34 unsigned long do_csum_c(const unsigned char * buff, int len, unsigned int psum) in do_csum_c() argument 41 odd = 1 & (unsigned long) buff; in do_csum_c() 43 result = *buff << 8; in do_csum_c() 45 buff++; in do_csum_c() 49 if (2 & (unsigned long) buff) { in do_csum_c() 50 result += *(unsigned short *) buff; in do_csum_c() 53 buff += 2; in do_csum_c() 57 if (4 & (unsigned long) buff) { in do_csum_c() 58 result += *(unsigned int *) buff; in do_csum_c() 61 buff += 4; in do_csum_c() [all …]
|
D | checksum.c | 79 __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial() argument 81 u64 result = do_csum(buff, len); in csum_partial() 96 __sum16 ip_compute_csum (const void *buff, int len) in ip_compute_csum() argument 98 return (__force __sum16)~do_csum(buff,len); in ip_compute_csum()
|
/arch/alpha/lib/ |
D | checksum.c | 81 static inline unsigned long do_csum(const unsigned char * buff, int len) in do_csum() argument 88 odd = 1 & (unsigned long) buff; in do_csum() 90 result = *buff << 8; in do_csum() 92 buff++; in do_csum() 96 if (2 & (unsigned long) buff) { in do_csum() 97 result += *(unsigned short *) buff; in do_csum() 100 buff += 2; in do_csum() 104 if (4 & (unsigned long) buff) { in do_csum() 105 result += *(unsigned int *) buff; in do_csum() 108 buff += 4; in do_csum() [all …]
|
/arch/m68knommu/lib/ |
D | checksum.c | 46 static unsigned long do_csum(const unsigned char * buff, int len) in do_csum() argument 53 odd = 1 & (unsigned long) buff; in do_csum() 55 result = *buff; in do_csum() 57 buff++; in do_csum() 61 if (2 & (unsigned long) buff) { in do_csum() 62 result += *(unsigned short *) buff; in do_csum() 65 buff += 2; in do_csum() 71 unsigned long w = *(unsigned long *) buff; in do_csum() 73 buff += 4; in do_csum() 82 result += *(unsigned short *) buff; in do_csum() [all …]
|
/arch/h8300/lib/ |
D | checksum.c | 46 static unsigned long do_csum(const unsigned char * buff, int len) in do_csum() argument 53 odd = 1 & (unsigned long) buff; in do_csum() 55 result = *buff; in do_csum() 57 buff++; in do_csum() 61 if (2 & (unsigned long) buff) { in do_csum() 62 result += *(unsigned short *) buff; in do_csum() 65 buff += 2; in do_csum() 71 unsigned long w = *(unsigned long *) buff; in do_csum() 73 buff += 4; in do_csum() 82 result += *(unsigned short *) buff; in do_csum() [all …]
|
/arch/frv/lib/ |
D | checksum.c | 46 static unsigned long do_csum(const unsigned char * buff, int len) in do_csum() argument 53 odd = 1 & (unsigned long) buff; in do_csum() 55 result = *buff; in do_csum() 57 buff++; in do_csum() 61 if (2 & (unsigned long) buff) { in do_csum() 62 result += *(unsigned short *) buff; in do_csum() 65 buff += 2; in do_csum() 71 unsigned long w = *(unsigned long *) buff; in do_csum() 73 buff += 4; in do_csum() 82 result += *(unsigned short *) buff; in do_csum() [all …]
|
/arch/blackfin/lib/ |
D | checksum.c | 37 static unsigned short do_csum(const unsigned char *buff, int len)__attribute__((l1_text)); 40 static unsigned short do_csum(const unsigned char *buff, int len) in do_csum() argument 45 if (1 & (unsigned long)buff) { in do_csum() 46 sum = *buff << 8; in do_csum() 47 buff++; in do_csum() 53 sum += *(unsigned short *)buff; in do_csum() 54 buff += 2; in do_csum() 59 sum += *buff; in do_csum() 94 __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial() argument 103 sum += do_csum(buff, len); in csum_partial() [all …]
|
/arch/sh/lib64/ |
D | c-checksum.c | 55 static unsigned long do_csum(const unsigned char *buff, int len) in do_csum() argument 60 pr_debug("do_csum buff %p, len %d (0x%x)\n", buff, len, len); in do_csum() 65 printk("%02X ", buff[i]); in do_csum() 72 odd = 1 & (unsigned long) buff; in do_csum() 74 result = *buff << 8; in do_csum() 76 buff++; in do_csum() 80 if (2 & (unsigned long) buff) { in do_csum() 81 result += *(unsigned short *) buff; in do_csum() 84 buff += 2; in do_csum() 90 unsigned long w = *(unsigned long *) buff; in do_csum() [all …]
|
/arch/mn10300/lib/ |
D | checksum.c | 35 __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial() argument 39 result = do_csum(buff, len); in csum_partial() 47 __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument 49 return ~from32to16(do_csum(buff, len)); in ip_compute_csum()
|
/arch/cris/include/asm/ |
D | checksum.h | 20 __wsum csum_partial(const void *buff, int len, __wsum sum); 78 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument 80 return csum_fold (csum_partial(buff, len, 0)); in ip_compute_csum()
|
/arch/m68k/lib/ |
D | checksum.c | 42 __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial() argument 121 : "=d" (sum), "=d" (len), "=a" (buff), in csum_partial() 123 : "0" (sum), "1" (len), "2" (buff) in csum_partial()
|
/arch/s390/include/asm/ |
D | checksum.h | 31 csum_partial(const void *buff, int len, __wsum sum) in csum_partial() argument 33 register unsigned long reg2 asm("2") = (unsigned long) buff; in csum_partial() 159 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument 161 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
|
/arch/sh/include/asm/ |
D | checksum_64.h | 26 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum); 73 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument 75 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
|
D | checksum_32.h | 26 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum); 156 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument 158 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
|
/arch/avr32/include/asm/ |
D | checksum.h | 23 __wsum csum_partial(const void *buff, int len, __wsum sum); 147 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument 149 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
|
/arch/powerpc/include/asm/ |
D | checksum.h | 40 extern __wsum csum_partial(const void *buff, int len, __wsum sum); 86 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument 88 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
|
/arch/m68k/include/asm/ |
D | checksum_mm.h | 18 __wsum csum_partial(const void *buff, int len, __wsum sum); 112 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument 114 return csum_fold (csum_partial(buff, len, 0)); in ip_compute_csum()
|
/arch/arm/include/asm/ |
D | checksum.h | 26 __wsum csum_partial(const void *buff, int len, __wsum sum); 122 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument 124 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
|
/arch/sparc/include/asm/ |
D | checksum_64.h | 32 extern __wsum csum_partial(const void * buff, int len, __wsum sum); 162 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument 164 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
|
/arch/powerpc/oprofile/cell/ |
D | spu_task_sync.c | 69 spu_buff[spu].buff[spu_buff[spu].head] = value; in spu_buff_add() 99 if (spu_buff[spu].buff == NULL) in sync_spu_buff() 114 oprofile_put_buff(spu_buff[spu].buff, in sync_spu_buff() 484 spu_buff[spu].buff = kzalloc((max_spu_buff in oprofile_spu_buff_create() 488 if (!spu_buff[spu].buff) { in oprofile_spu_buff_create() 496 kfree(spu_buff[spu].buff); in oprofile_spu_buff_create() 497 spu_buff[spu].buff = 0; in oprofile_spu_buff_create() 660 kfree(spu_buff[k].buff); in spu_sync_stop() 661 spu_buff[k].buff = 0; in spu_sync_stop()
|
/arch/um/sys-i386/shared/sysdep/ |
D | checksum.h | 23 __wsum csum_partial(const void *buff, int len, __wsum sum); 147 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument 149 return csum_fold (csum_partial(buff, len, 0)); in ip_compute_csum()
|