Lines Matching refs:bufp
1215 char *bufp, *countptr;
1230 bufp = buf;
1231 bufp, 0, DHD_IOCTL_MAXLEN);
1232 strcpy(bufp, "sprom");
1233 bufp += strlen("sprom") + 1;
1244 memcpy(bufp, &offset, sizeof(int));
1245 bufp += sizeof(int);
1246 memcpy(bufp, &bytes, sizeof(int));
1247 bufp += sizeof(int);
1249 if (!ISALIGNED((uintptr)bufp, sizeof(uint16))) {
1279 memcpy(bufp, &offset, sizeof(int));
1280 bufp += sizeof(int);
1281 memcpy(bufp, &bytes, sizeof(int));
1282 bufp += sizeof(int);
1284 if (!ISALIGNED((uintptr)bufp, sizeof(uint16))) {
1295 if (fread((uint16*)bufp, sizeof(uint16), words, fp) != words) {
1305 hndcrc8((uint8*)bufp, bytes, CRC8_INIT_VALUE) != CRC8_GOOD_VALUE) {
1307 ((uint8*)bufp)[bytes-1],
1308 ~hndcrc8((uint8*)bufp, bytes - 1, CRC8_INIT_VALUE) & 0xff);
1312 ltoh16_buf(bufp, bytes);
1320 memcpy(bufp, &offset, sizeof(int));
1321 bufp += sizeof(int);
1322 countptr = bufp;
1323 bufp += sizeof(int);
1325 if (!ISALIGNED((uintptr)bufp, sizeof(uint16))) {
1330 for (words = 0, wordptr = (uint16*)bufp; *++argv; words++) {
1453 char *bufp;
1464 if ((ret = dhd_var_getbuf(dhd, "vars", NULL, 0, (void**)&bufp)))
1466 while (*bufp) {
1467 printf("%s\n", bufp);
1468 bufp += strlen(bufp) + 1;
1481 bufp = buf;
1482 strcpy(bufp, "vars");
1483 bufp += strlen("vars") + 1;
1485 if ((ret = read_vars(vname, bufp,
1492 bufp += nvram_len;
1493 *bufp++ = 0;
1495 ret = dhd_set(dhd, DHD_SET_VAR, buf, bufp - buf);
1554 char *bufp;
1585 bufp = buf;
1586 memset(bufp, 0, DHD_IOCTL_MAXLEN);
1587 strcpy(bufp, "membytes");
1588 bufp += strlen("membytes") + 1;
1589 memcpy(bufp, &start, sizeof(int));
1590 bufp += sizeof(int);
1591 memcpy(bufp, &len, sizeof(int));
1592 bufp += sizeof(int);
1593 memcpy(bufp, memblock, len);
1595 ret = dhd_set(dhd, DHD_SET_VAR, &buf[0], (bufp - buf + len));
1717 char *bufp;
1900 bufp = buf;
1901 strcpy(bufp, "vars");
1902 bufp += strlen("vars") + 1;
1904 if ((ret = read_vars(vname, bufp,
1911 bufp += nvram_len;
1912 *bufp++ = 0;
1914 ret = dhd_set(dhd, DHD_SET_VAR, buf, (bufp - buf));