Lines Matching refs:bufp
32 char *buf, *bufp; in do_syno_populate() local
62 for (i = 0, bufp = buf + n * 7; i < ETH_ALEN; i++) { in do_syno_populate()
63 sum += bufp[i]; in do_syno_populate()
64 csum += bufp[i]; in do_syno_populate()
65 ethaddr[i] = bufp[i]; in do_syno_populate()
69 if (csum != bufp[i]) { /* seventh byte is checksum value */ in do_syno_populate()
89 snp = bufp = buf + 32 + strlen(SYNO_SN_TAG); in do_syno_populate()
90 for (n = 0; bufp[n] && bufp[n] != ','; n++) in do_syno_populate()
91 csum += bufp[n]; in do_syno_populate()
92 bufp[n] = '\0'; in do_syno_populate()
95 bufp = strstr(bufp + n + 1, SYNO_CHKSUM_TAG); in do_syno_populate()
96 if (!bufp) { in do_syno_populate()
101 csump = bufp += strlen(SYNO_CHKSUM_TAG); in do_syno_populate()
102 for (n = 0; bufp[n] && bufp[n] != ','; n++) in do_syno_populate()
104 bufp[n] = '\0'; in do_syno_populate()
116 for (n = 0, bufp = buf + 32; n < 10; n++) in do_syno_populate()
117 csum += bufp[n]; in do_syno_populate()
119 if (csum != bufp[n]) { in do_syno_populate()
124 bufp[n] = '\0'; in do_syno_populate()