Lines Matching refs:buf

83                             char *buf, uint buflen, int *perr);
89 static int read_vars(char *fname, char *buf, int buf_maxlen);
100 static char *buf = (char*) &bufstruct_dhd.bufdata;
406 char *buf;
420 buf = malloc(len);
421 if (buf == NULL) {
426 *(buf+i) = 0;
432 strcat(buf+row*80, cmd->name);
433 pad = 18 * (col + 1) - strlen(buf+row*80);
437 strcat(buf+row*80, " ");
446 printf("%s\n", buf+row*80);
449 free(buf);
531 dhd_hexdump(uchar *buf, uint nbytes, uint saddr)
547 p += sprintf(p, "%02x ", buf[i]);
553 ((buf[j] >= 0x20 && buf[j] <= 0x7f) ? buf[j] : '.'));
795 sdmode = *(int32*)buf;
843 dmamode = *(int32*)buf;
1058 memset(buf, 0, DHD_IOCTL_MAXLEN);
1059 strcpy(buf, cmd->name);
1060 ptr = buf + strlen(buf) + 1;
1072 ret = dhd_set(dhd, DHD_SET_VAR, &buf[0], (ptr - buf));
1107 strcpy(buf, "idletime");
1108 endptr = buf + strlen(buf) + 1;
1111 err = dhd_set(dhd, DHD_SET_VAR, &buf[0], (endptr - buf));
1117 idletime = *(int32*)buf;
1152 strcpy(buf, "idleclock");
1153 endptr = buf + strlen(buf) + 1;
1156 err = dhd_set(dhd, DHD_SET_VAR, &buf[0], (endptr - buf));
1162 idleclock = *(int32*)buf;
1202 bufp = buf;
1320 ret = dhd_set(dhd, DHD_SET_VAR, buf,
1324 ret = dhd_get(dhd, DHD_GET_VAR, buf,
1333 printf("0x%04x ", ((uint16*)buf)[i]);
1357 read_vars(char *fname, char *buf, int buf_maxlen)
1409 memcpy(buf + buf_len, s, slen);
1411 buf[buf_len++] = 0;
1453 bufp = buf;
1467 ret = dhd_set(dhd, DHD_SET_VAR, buf, bufp - buf);
1512 bufp = buf;
1522 ret = dhd_set(dhd, DHD_SET_VAR, &buf[0], (bufp - buf + len));
1690 memsize = *(uint32*)buf;
1733 bufp = buf;
1747 ret = dhd_set(dhd, DHD_SET_VAR, buf, (bufp - buf));
1970 memsize = *(uint32*)buf;
2297 strcpy(buf, varname);
2298 p = buf;
2308 len = (p - buf) + sizeof(uint);
2310 return (dhd_set(dhd, DHD_SET_VAR, &buf[0], len));
2333 strcpy(buf, varname);
2334 p = buf;
2339 return (dhd_get(dhd, DHD_GET_VAR, &buf[0], DHD_IOCTL_MAXLEN));
2355 val = *(int32*)buf;
2373 printf("%s\n", buf);
2386 fprintf(stderr, "%s: %s\n", dhdu_av0, buf);
2404 memset(buf, 0, DHD_IOCTL_MAXLEN);
2405 strcpy(buf, iovar);
2411 memcpy(&buf[len], param, param_len);
2413 *bufptr = buf;
2415 return dhd_get(dhd, DHD_GET_VAR, &buf[0], DHD_IOCTL_MAXLEN);
2423 memset(buf, 0, DHD_IOCTL_MAXLEN);
2424 strcpy(buf, iovar);
2430 memcpy(&buf[len], param, param_len);
2434 return dhd_set(dhd, DHD_SET_VAR, &buf[0], len);
2452 dhd_iovar_mkbuf(char *name, char *data, uint datalen, char *buf, uint buflen, int *perr)
2464 strcpy(buf, name);
2468 memcpy(&buf[len], data, datalen);
2541 char buf[HCI_CMD_PREAMBLE_SIZE + HCI_CMD_DATA_SIZE];
2544 amp_hci_cmd_t *cpkt = (amp_hci_cmd_t *)&cbuf.buf[0];
2637 uint8 buf[HCI_ACL_DATA_PREAMBLE_SIZE + 2048];
2641 amp_hci_ACL_data_t *dpkt = (amp_hci_ACL_data_t *)&g_hci_dbuf.buf[0];