Lines Matching refs:bufp

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