Searched refs:buff (Results 1 - 25 of 179) sorted by relevance

12345678

/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/cris/lib/
H A Dold_checksum.c45 unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum) argument
48 * Experiments with ethernet and slip connections show that buff
51 const unsigned char *endMarker = buff + len;
54 while (buff < marker) {
55 sum += *((unsigned short *)buff)++;
56 sum += *((unsigned short *)buff)++;
57 sum += *((unsigned short *)buff)++;
58 sum += *((unsigned short *)buff)++;
59 sum += *((unsigned short *)buff)++;
60 sum += *((unsigned short *)buff)
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/x86_64/lib/
H A Dcsum-partial.c32 static inline unsigned do_csum(const unsigned char * buff, int len) argument
39 odd = 1 & (unsigned long) buff;
41 result = *buff << 8;
43 buff++;
47 if (2 & (unsigned long) buff) {
48 result += *(unsigned short *) buff;
51 buff += 2;
55 if (4 & (unsigned long) buff) {
56 result += *(unsigned int *) buff;
59 buff
105 csum_partial(const unsigned char * buff, int len, unsigned int sum) argument
119 ip_compute_csum(unsigned char * buff, int len) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/char/ftape/zftape/
H A Dzftape-write.h37 extern int _zft_write(const char *buff, int req_len);
H A Dzftape-read.h51 extern int _zft_read(char* buff, int req_len);
/asus-wl-520gu-7.0.1.45/src/router/pppd/pppd/plugins/radius/radiusclient/lib/
H A Dlog.c45 char buff[1024]; local
49 vsnprintf(buff, sizeof(buff), format, ap);
52 syslog(prio, "%s", buff);
/asus-wl-520gu-7.0.1.45/src/router/pppd.mppe/pppd/plugins/radius/radiusclient/lib/
H A Dlog.c45 char buff[1024]; local
49 vsnprintf(buff, sizeof(buff), format, ap);
52 syslog(prio, "%s", buff);
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/char/ftape/lowlevel/
H A Dfdc-isr.c191 static void skip_bad_sector(buffer_struct * buff) argument
197 if (buff->remaining > 0) {
198 ++buff->sector_offset;
199 ++buff->data_offset;
200 --buff->remaining;
201 buff->ptr += FT_SECTOR_SIZE;
202 buff->bad_sector_map >>= 1;
207 ++buff->sector_offset; /* hack for error maps */
213 static void update_error_maps(buffer_struct * buff, unsigned int error_offset) argument
218 if (buff
234 print_progress(buffer_struct *buff, error_cause cause) argument
287 determine_verify_progress(buffer_struct *buff, error_cause cause, __u8 sector) argument
326 determine_progress(buffer_struct *buff, error_cause cause, __u8 sector) argument
440 continue_xfer(buffer_struct *buff, fdc_mode_enum mode, unsigned int skip) argument
556 retry_sector(buffer_struct *buff, int mode, unsigned int skip) argument
571 find_resume_point(buffer_struct *buff) argument
622 determine_fmt_progress(buffer_struct *buff, error_cause cause) argument
676 continue_formatting(buffer_struct *buff) argument
720 handle_fdc_busy(buffer_struct *buff) argument
[all...]
H A Dftape-rw.c115 static int setup_segment(buffer_struct * buff, argument
125 buff->segment_id = segment_id;
126 buff->sector_offset = sector_offset;
127 buff->remaining = sector_count;
128 buff->head = segment_id / ftape_segments_per_head;
129 buff->cyl = (segment_id % ftape_segments_per_head) / ftape_segments_per_cylinder;
130 buff->sect = (segment_id % ftape_segments_per_cylinder) * FT_SECTORS_PER_SEGMENT + 1;
131 buff->deleted = 0;
132 offset_mask = (1 << buff->sector_offset) - 1;
140 buff
192 ftape_setup_new_segment(buffer_struct * buff, int segment_id, int skip) argument
231 ftape_calc_next_cluster(buffer_struct * buff) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/alpha/lib/
H A Dchecksum.c82 static inline unsigned long do_csum(const unsigned char * buff, int len) argument
89 odd = 1 & (unsigned long) buff;
91 result = *buff << 8;
93 buff++;
97 if (2 & (unsigned long) buff) {
98 result += *(unsigned short *) buff;
101 buff += 2;
105 if (4 & (unsigned long) buff) {
106 result += *(unsigned int *) buff;
109 buff
165 csum_partial(const unsigned char * buff, int len, unsigned int sum) argument
180 ip_compute_csum(unsigned char * buff, int len) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/parisc/lib/
H A Dchecksum.c34 static inline unsigned int do_csum(const unsigned char * buff, int len) argument
41 odd = 1 & (unsigned long) buff;
43 result = be16_to_cpu(*buff);
45 buff++;
49 if (2 & (unsigned long) buff) {
50 result += *(unsigned short *) buff;
53 buff += 2;
59 unsigned int w = *(unsigned int *) buff;
61 buff += 4;
70 result += *(unsigned short *) buff;
86 csum_partial(const unsigned char *buff, int len, unsigned int sum) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/ia64/lib/
H A Dcsum_partial_copy.c30 unsigned long do_csum_c(const unsigned char * buff, int len, unsigned int psum) argument
37 odd = 1 & (unsigned long) buff;
39 result = *buff << 8;
41 buff++;
45 if (2 & (unsigned long) buff) {
46 result += *(unsigned short *) buff;
49 buff += 2;
53 if (4 & (unsigned long) buff) {
54 result += *(unsigned int *) buff;
57 buff
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/s390x/lib/
H A Dchecksum.c24 csum_partial (const unsigned char *buff, int len, unsigned int sum) argument
27 * Experiments with ethernet and slip connections show that buff
36 : "d" (buff), "d" (len)
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ax25/
H A Dax25_ip.c59 unsigned char *buff; local
66 buff = skb_push(skb, AX25_HEADER_LEN);
67 *buff++ = 0x00; /* KISS DATA */
70 memcpy(buff, daddr, dev->addr_len); /* Address specified */
72 buff[6] &= ~AX25_CBIT;
73 buff[6] &= ~AX25_EBIT;
74 buff[6] |= AX25_SSSID_SPARE;
75 buff += AX25_ADDR_LEN;
78 memcpy(buff, saddr, dev->addr_len);
80 memcpy(buff, de
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/s390/lib/
H A Dchecksum.c24 csum_partial (const unsigned char *buff, int len, unsigned int sum) argument
28 * Experiments with ethernet and slip connections show that buff
31 rp.subreg.even = (unsigned long) buff;
/asus-wl-520gu-7.0.1.45/src/router/samba/testsuite/libsmbclient/src/getdents/
H A Dgetdents_3.c46 char buff[MAX_BUFF_SIZE]; local
56 bzero(buff,MAX_BUFF_SIZE);
85 sprintf(buff,"%d",i);
86 memcpy(tmp_file_ptr,buff,strlen(buff)+4);
99 bzero(buff,MAX_BUFF_SIZE);
124 sprintf(buff,"%d",i);
125 memcpy(tmp_file_ptr,buff,strlen(buff)+4);
/asus-wl-520gu-7.0.1.45/src/router/samba/testsuite/libsmbclient/src/readdir/
H A Dreaddir_5.c44 char buff[MAX_BUFF_SIZE]; local
54 bzero(buff,MAX_BUFF_SIZE);
83 sprintf(buff,"%d",i);
84 memcpy(tmp_file_ptr,buff,strlen(buff)+4);
96 bzero(buff,MAX_BUFF_SIZE);
126 sprintf(buff,"%d",i);
127 memcpy(tmp_file_ptr,buff,strlen(buff)+4);
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-s390x/
H A Dchecksum.h19 * computes the checksum of a memory block at buff, length len,
28 * it's best to have buff aligned on a 32-bit boundary
31 csum_partial(const unsigned char * buff, int len, unsigned int sum);
37 csum_partial_inline(const unsigned char * buff, int len, unsigned int sum) argument
45 : "d" (buff), "d" (len)
187 ip_compute_csum(unsigned char * buff, int len) argument
189 return csum_fold(csum_partial_inline(buff, len, 0));
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-s390x/
H A Dchecksum.h19 * computes the checksum of a memory block at buff, length len,
28 * it's best to have buff aligned on a 32-bit boundary
31 csum_partial(const unsigned char * buff, int len, unsigned int sum);
37 csum_partial_inline(const unsigned char * buff, int len, unsigned int sum) argument
45 : "d" (buff), "d" (len)
187 ip_compute_csum(unsigned char * buff, int len) argument
189 return csum_fold(csum_partial_inline(buff, len, 0));
/asus-wl-520gu-7.0.1.45/src/router/dnsmasq/
H A Doption.c115 unsigned int read_opts (int argc, char **argv, char *buff, char **resolv_file, argument
144 if (!fgets(buff, MAXDNAME, f))
154 while (strlen(buff) > 0 &&
155 (buff[strlen(buff)-1] == '\n' ||
156 buff[strlen(buff)-1] == ' ' ||
157 buff[strlen(buff)-1] == '\t'))
158 buff[strle
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/m68k/lib/
H A Dchecksum.c42 csum_partial (const unsigned char *buff, int len, unsigned int sum) argument
46 * Experiments with ethernet and slip connections show that buff
52 "subql #2,%1\n\t" /* buff%4==2: treat first word */
121 : "=d" (sum), "=d" (len), "=a" (buff),
123 : "0" (sum), "1" (len), "2" (buff)
148 "subql #2,%1\n\t" /* buff%4==2: treat first word */
333 "subql #2,%1\n\t" /* buff%4==2: treat first word */
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-cris/
H A Dchecksum.h7 * computes the checksum of a memory block at buff, length len,
16 * it's best to have buff aligned on a 32-bit boundary
18 unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum);
106 static inline unsigned short ip_compute_csum(unsigned char * buff, int len) { argument
107 return csum_fold (csum_partial(buff, len, 0));
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-cris/
H A Dchecksum.h7 * computes the checksum of a memory block at buff, length len,
16 * it's best to have buff aligned on a 32-bit boundary
18 unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum);
106 static inline unsigned short ip_compute_csum(unsigned char * buff, int len) { argument
107 return csum_fold (csum_partial(buff, len, 0));
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-ia64/
H A Dchecksum.h32 * Computes the checksum of a memory block at buff, length len,
41 * it's best to have buff aligned on a 32-bit boundary
43 extern unsigned int csum_partial (const unsigned char * buff, int len,
79 extern unsigned short ip_compute_csum (unsigned char *buff, int len);
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-ia64/
H A Dchecksum.h32 * Computes the checksum of a memory block at buff, length len,
41 * it's best to have buff aligned on a 32-bit boundary
43 extern unsigned int csum_partial (const unsigned char * buff, int len,
79 extern unsigned short ip_compute_csum (unsigned char *buff, int len);
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/netrom/
H A Dnr_dev.c142 unsigned char *buff = skb_push(skb, NR_NETWORK_LEN + NR_TRANSPORT_LEN); local
144 memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len);
145 buff[6] &= ~AX25_CBIT;
146 buff[6] &= ~AX25_EBIT;
147 buff[6] |= AX25_SSSID_SPARE;
148 buff += AX25_ADDR_LEN;
151 memcpy(buff, daddr, dev->addr_len);
152 buff[6] &= ~AX25_CBIT;
153 buff[6] |= AX25_EBIT;
154 buff[
[all...]

Completed in 297 milliseconds

12345678