Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 25 of 54) sorted by relevance

123

/arch/x86/lib/
Dcsum-partial_64.c35 static unsigned do_csum(const unsigned char *buff, unsigned len) in do_csum() argument
42 odd = 1 & (unsigned long) buff; in do_csum()
44 result = *buff << 8; in do_csum()
46 buff++; in do_csum()
50 if (2 & (unsigned long) buff) { in do_csum()
51 result += *(unsigned short *)buff; in do_csum()
54 buff += 2; in do_csum()
60 if (4 & (unsigned long) buff) { in do_csum()
61 result += *(unsigned int *) buff; in do_csum()
64 buff += 4; in do_csum()
[all …]
/arch/tile/lib/
Dchecksum.c19 __wsum do_csum(const unsigned char *buff, int len) in do_csum() argument
26 odd = 1 & (unsigned long) buff; in do_csum()
28 result = (*buff << 8); in do_csum()
30 buff++; in do_csum()
34 if (2 & (unsigned long) buff) { in do_csum()
35 result += *(const unsigned short *)buff; in do_csum()
38 buff += 2; in do_csum()
43 if (4 & (unsigned long) buff) { in do_csum()
44 unsigned int w = *(const unsigned int *)buff; in do_csum()
48 buff += 4; in do_csum()
[all …]
/arch/frv/kernel/
Dsysctl.c54 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/metag/lib/
Dchecksum.c49 static unsigned int do_csum(const unsigned char *buff, int len) in do_csum() argument
56 odd = 1 & (unsigned long) buff; in do_csum()
59 result += (*buff << 8); in do_csum()
61 result = *buff; in do_csum()
64 buff++; in do_csum()
67 if (2 & (unsigned long) buff) { in do_csum()
68 result += *(unsigned short *) buff; in do_csum()
70 buff += 2; in do_csum()
73 const unsigned char *end = buff + ((unsigned)len & ~3); in do_csum()
76 unsigned int w = *(unsigned int *) buff; in do_csum()
[all …]
/arch/parisc/lib/
Dchecksum.c41 static inline unsigned int do_csum(const unsigned char * buff, int len) in do_csum() argument
48 odd = 1 & (unsigned long) buff; in do_csum()
50 result = be16_to_cpu(*buff); in do_csum()
52 buff++; in do_csum()
56 if (2 & (unsigned long) buff) { in do_csum()
57 result += *(unsigned short *) buff; in do_csum()
60 buff += 2; in do_csum()
66 r1 = *(unsigned int *)(buff + 0); in do_csum()
67 r2 = *(unsigned int *)(buff + 4); in do_csum()
68 r3 = *(unsigned int *)(buff + 8); in do_csum()
[all …]
/arch/ia64/lib/
Dcsum_partial_copy.c35 unsigned long do_csum_c(const unsigned char * buff, int len, unsigned int psum) in do_csum_c() argument
42 odd = 1 & (unsigned long) buff; in do_csum_c()
44 result = *buff << 8; in do_csum_c()
46 buff++; in do_csum_c()
50 if (2 & (unsigned long) buff) { in do_csum_c()
51 result += *(unsigned short *) buff; in do_csum_c()
54 buff += 2; in do_csum_c()
58 if (4 & (unsigned long) buff) { in do_csum_c()
59 result += *(unsigned int *) buff; in do_csum_c()
62 buff += 4; in do_csum_c()
[all …]
Dchecksum.c80 __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial() argument
82 u64 result = do_csum(buff, len); in csum_partial()
97 __sum16 ip_compute_csum (const void *buff, int len) in ip_compute_csum() argument
99 return (__force __sum16)~do_csum(buff,len); in ip_compute_csum()
/arch/alpha/lib/
Dchecksum.c79 static inline unsigned long do_csum(const unsigned char * buff, int len) in do_csum() argument
86 odd = 1 & (unsigned long) buff; in do_csum()
88 result = *buff << 8; in do_csum()
90 buff++; in do_csum()
94 if (2 & (unsigned long) buff) { in do_csum()
95 result += *(unsigned short *) buff; in do_csum()
98 buff += 2; in do_csum()
102 if (4 & (unsigned long) buff) { in do_csum()
103 result += *(unsigned int *) buff; in do_csum()
106 buff += 4; in do_csum()
[all …]
/arch/frv/lib/
Dchecksum.c46 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/powerpc/kernel/
Doptprobes.c206 kprobe_opcode_t *buff, branch_op_callback, branch_emulate_step; in arch_prepare_optimized_kprobe() local
219 buff = get_ppc_optinsn_slot(); in arch_prepare_optimized_kprobe()
220 if (!buff) in arch_prepare_optimized_kprobe()
232 b_offset = (unsigned long)buff - (unsigned long)p->addr; in arch_prepare_optimized_kprobe()
237 b_offset = (unsigned long)(buff + TMPL_RET_IDX) - in arch_prepare_optimized_kprobe()
245 pr_devel("Copying template to %p, size %lu\n", buff, size); in arch_prepare_optimized_kprobe()
247 rc = patch_instruction(buff + i, *(optprobe_template_entry + i)); in arch_prepare_optimized_kprobe()
256 patch_imm64_load_insns((unsigned long)op, buff + TMPL_OP_IDX); in arch_prepare_optimized_kprobe()
268 branch_op_callback = create_branch((unsigned int *)buff + TMPL_CALL_HDLR_IDX, in arch_prepare_optimized_kprobe()
272 branch_emulate_step = create_branch((unsigned int *)buff + TMPL_EMULATE_IDX, in arch_prepare_optimized_kprobe()
[all …]
/arch/powerpc/include/asm/
Dchecksum.h173 __wsum __csum_partial(const void *buff, int len, __wsum sum);
175 static inline __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial() argument
179 sum = csum_add(sum, (__force __wsum)*(const u16 *)buff); in csum_partial()
181 sum = csum_add(sum, (__force __wsum)*(const u32 *)buff); in csum_partial()
184 *(const u16 *)(buff + 4)); in csum_partial()
187 *(const u32 *)(buff + 4)); in csum_partial()
190 *(const u16 *)(buff + 8)); in csum_partial()
193 *(const u32 *)(buff + 8)); in csum_partial()
196 *(const u16 *)(buff + 12)); in csum_partial()
199 *(const u32 *)(buff + 12)); in csum_partial()
[all …]
Dnvram.h49 extern int nvram_write_error_log(char * buff, int length,
51 extern int nvram_read_error_log(char * buff, int length,
91 extern int nvram_read_partition(struct nvram_os_partition *part, char *buff,
97 char *buff, int length,
/arch/c6x/lib/
Dcsum_64plus.S228 ;do_csum(unsigned char *buff, unsigned int len)
235 ; odd = 1 & (unsigned long) buff;
238 ; result += (*buff << 8);
240 ; result = *buff;
243 ; buff++;
247 ; if (2 & (unsigned long) buff) {
248 ; result += *(unsigned short *) buff;
251 ; buff += 2;
257 ; unsigned int w = *(unsigned int *) buff;
259 ; buff += 4;
[all …]
/arch/arm/plat-samsung/
Dpm-debug.c41 char buff[256]; in s3c_pm_dbg() local
44 vsnprintf(buff, sizeof(buff), fmt, va); in s3c_pm_dbg()
47 printascii(buff); in s3c_pm_dbg()
/arch/mn10300/lib/
Dchecksum.c36 __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial() argument
40 result = do_csum(buff, len); in csum_partial()
48 __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument
50 return ~from32to16(do_csum(buff, len)); in ip_compute_csum()
/arch/cris/include/asm/
Dchecksum.h21 __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/
Dchecksum.c42 __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/
Dchecksum.h30 csum_partial(const void *buff, int len, __wsum sum) in csum_partial() argument
32 register unsigned long reg2 asm("2") = (unsigned long) buff; in csum_partial()
132 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument
134 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
/arch/mn10300/include/asm/
Dchecksum.h14 extern __wsum csum_partial(const void *buff, int len, __wsum sum);
21 extern __wsum csum_partial(const void *buff, int len, __wsum sum);
22 extern __sum16 ip_compute_csum(const void *buff, int len);
/arch/m68k/include/asm/
Dchecksum.h23 __wsum csum_partial(const void *buff, int len, __wsum sum);
113 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument
115 return csum_fold (csum_partial(buff, len, 0)); in ip_compute_csum()
/arch/m32r/include/asm/
Dchecksum.h34 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum);
158 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument
160 return csum_fold (csum_partial(buff, len, 0)); in ip_compute_csum()
/arch/arm/include/asm/
Dchecksum.h27 __wsum csum_partial(const void *buff, int len, __wsum sum);
137 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument
139 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
/arch/score/include/asm/
Dchecksum.h20 unsigned int csum_partial(const void *buff, int len, __wsum sum);
176 static inline unsigned short ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument
178 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
/arch/powerpc/oprofile/cell/
Dspu_task_sync.c71 spu_buff[spu].buff[spu_buff[spu].head] = value; in spu_buff_add()
101 if (spu_buff[spu].buff == NULL) in sync_spu_buff()
116 oprofile_put_buff(spu_buff[spu].buff, in sync_spu_buff()
479 spu_buff[spu].buff = kzalloc((max_spu_buff in oprofile_spu_buff_create()
483 if (!spu_buff[spu].buff) { in oprofile_spu_buff_create()
491 kfree(spu_buff[spu].buff); in oprofile_spu_buff_create()
492 spu_buff[spu].buff = 0; in oprofile_spu_buff_create()
655 kfree(spu_buff[k].buff); in spu_sync_stop()
656 spu_buff[k].buff = 0; in spu_sync_stop()
/arch/x86/um/asm/
Dchecksum_32.h8 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() argument
10 return csum_fold (csum_partial(buff, len, 0)); in ip_compute_csum()

123