Home | History | Annotate | Download | only in dhdutil

Lines Matching defs:bufp

1216 	char *bufp, *countptr;
1231 bufp = buf;
1232 memset(bufp, 0, DHD_IOCTL_MAXLEN);
1233 strcpy(bufp, "sprom");
1234 bufp += strlen("sprom") + 1;
1245 memcpy(bufp, &offset, sizeof(int));
1246 bufp += sizeof(int);
1247 memcpy(bufp, &bytes, sizeof(int));
1248 bufp += sizeof(int);
1250 if (!ISALIGNED((uintptr)bufp, sizeof(uint16))) {
1280 memcpy(bufp, &offset, sizeof(int));
1281 bufp += sizeof(int);
1282 memcpy(bufp, &bytes, sizeof(int));
1283 bufp += sizeof(int);
1285 if (!ISALIGNED((uintptr)bufp, sizeof(uint16))) {
1296 if (fread((uint16*)bufp, sizeof(uint16), words, fp) != words) {
1306 hndcrc8((uint8*)bufp, bytes, CRC8_INIT_VALUE) != CRC8_GOOD_VALUE) {
1308 ((uint8*)bufp)[bytes-1],
1309 ~hndcrc8((uint8*)bufp, bytes - 1, CRC8_INIT_VALUE) & 0xff);
1313 ltoh16_buf(bufp, bytes);
1321 memcpy(bufp, &offset, sizeof(int));
1322 bufp += sizeof(int);
1323 countptr = bufp;
1324 bufp += sizeof(int);
1326 if (!ISALIGNED((uintptr)bufp, sizeof(uint16))) {
1331 for (words = 0, wordptr = (uint16*)bufp; *++argv; words++) {
1454 char *bufp;
1465 if ((ret = dhd_var_getbuf(dhd, "vars", NULL, 0, (void**)&bufp)))
1467 while (*bufp) {
1468 printf("%s\n", bufp);
1469 bufp += strlen(bufp) + 1;
1482 bufp = buf;
1483 strcpy(bufp, "vars");
1484 bufp += strlen("vars") + 1;
1486 if ((ret = read_vars(vname, bufp,
1493 bufp += nvram_len;
1494 *bufp++ = 0;
1496 ret = dhd_set(dhd, DHD_SET_VAR, buf, bufp - buf);
1555 char *bufp;
1586 bufp = buf;
1587 memset(bufp, 0, DHD_IOCTL_MAXLEN);
1588 strcpy(bufp, "membytes");
1589 bufp += strlen("membytes") + 1;
1590 memcpy(bufp, &start, sizeof(int));
1591 bufp += sizeof(int);
1592 memcpy(bufp, &len, sizeof(int));
1593 bufp += sizeof(int);
1594 memcpy(bufp, memblock, len);
1596 ret = dhd_set(dhd, DHD_SET_VAR, &buf[0], (bufp - buf + len));
1718 char *bufp;
1901 bufp = buf;
1902 strcpy(bufp, "vars");
1903 bufp += strlen("vars") + 1;
1905 if ((ret = read_vars(vname, bufp,
1912 bufp += nvram_len;
1913 *bufp++ = 0;
1915 ret = dhd_set(dhd, DHD_SET_VAR, buf, (bufp - buf));