Lines Matching refs:bufp
33 char *buf, *bufp; in do_syno_populate() local
63 for (i = 0, bufp = buf + n * 7; i < ETH_ALEN; i++) { in do_syno_populate()
64 sum += bufp[i]; in do_syno_populate()
65 csum += bufp[i]; in do_syno_populate()
66 ethaddr[i] = bufp[i]; in do_syno_populate()
70 if (csum != bufp[i]) { /* seventh byte is checksum value */ in do_syno_populate()
90 snp = bufp = buf + 32 + strlen(SYNO_SN_TAG); in do_syno_populate()
91 for (n = 0; bufp[n] && bufp[n] != ','; n++) in do_syno_populate()
92 csum += bufp[n]; in do_syno_populate()
93 bufp[n] = '\0'; in do_syno_populate()
96 bufp = strstr(bufp + n + 1, SYNO_CHKSUM_TAG); in do_syno_populate()
97 if (!bufp) { in do_syno_populate()
102 csump = bufp += strlen(SYNO_CHKSUM_TAG); in do_syno_populate()
103 for (n = 0; bufp[n] && bufp[n] != ','; n++) in do_syno_populate()
105 bufp[n] = '\0'; in do_syno_populate()
117 for (n = 0, bufp = buf + 32; n < 10; n++) in do_syno_populate()
118 csum += bufp[n]; in do_syno_populate()
120 if (csum != bufp[n]) { in do_syno_populate()
125 bufp[n] = '\0'; in do_syno_populate()