• Home
  • Raw
  • Download

Lines Matching refs:cmd

108 static int dhd_do_msglevel(void *dhd, cmd_t *cmd, char **argv, dbg_msg_t *dbg_msg);
355 dhd_cmd_usage(cmd_t *cmd) in dhd_cmd_usage() argument
357 if (strlen(cmd->name) >= 8) in dhd_cmd_usage()
358 fprintf(stderr, "%s\n\t%s\n\n", cmd->name, cmd->help); in dhd_cmd_usage()
360 fprintf(stderr, "%s\t%s\n\n", cmd->name, cmd->help); in dhd_cmd_usage()
367 cmd_t *cmd; in dhd_list() local
376 for (cmd = dhd_cmds, nrows = 0; cmd->name; cmd++) in dhd_list()
393 for (cmd = dhd_cmds; cmd->name; cmd++) { in dhd_list()
394 if (cmd->name[0] == letter || cmd->name[0] == letter - 0x20) { in dhd_list()
395 strcat(buf+row*80, cmd->name); in dhd_list()
420 cmd_t *cmd; in dhd_cmds_usage() local
428 for (cmd = dhd_cmds; cmd->name; cmd++) { in dhd_cmds_usage()
431 if (!strcmp(port_cmd->name, cmd->name)) in dhd_cmds_usage()
434 dhd_cmd_usage(cmd); in dhd_cmds_usage()
530 dhd_pktgen(void *dhd, cmd_t *cmd, char **argv) in dhd_pktgen() argument
538 UNUSED_PARAMETER(cmd); in dhd_pktgen()
681 dhd_sd_msglevel(void *dhd, cmd_t *cmd, char **argv) in dhd_sd_msglevel() argument
683 return dhd_do_msglevel(dhd, cmd, argv, dhd_sd_msgs); in dhd_sd_msglevel()
687 dhd_sd_blocksize(void *dhd, cmd_t *cmd, char **argv) in dhd_sd_blocksize() argument
719 if ((ret = dhd_var_getbuf(dhd, cmd->name, &func, sizeof(func), &ptr)) >= 0) in dhd_sd_blocksize()
724 ret = dhd_var_setbuf(dhd, cmd->name, &size, sizeof(size)); in dhd_sd_blocksize()
731 dhd_sd_mode(void *wl, cmd_t *cmd, char **argv) in dhd_sd_mode() argument
752 ret = dhd_var_setint(wl, cmd, argv); in dhd_sd_mode()
755 if ((ret = dhd_var_get(wl, cmd, argv))) { in dhd_sd_mode()
771 dhd_dma_mode(void *wl, cmd_t *cmd, char **argv) in dhd_dma_mode() argument
800 ret = dhd_var_setint(wl, cmd, argv); in dhd_dma_mode()
803 if ((ret = dhd_var_get(wl, cmd, argv))) { in dhd_dma_mode()
822 dhd_sdreg(void *dhd, cmd_t *cmd, char **argv) in dhd_sdreg() argument
829 UNUSED_PARAMETER(cmd); in dhd_sdreg()
882 dhd_membytes(void *dhd, cmd_t *cmd, char **argv) in dhd_membytes() argument
1015 maxchunk = DHD_IOCTL_MAXLEN - (strlen(cmd->name) + 1 + (2 * sizeof(int))); in dhd_membytes()
1022 strcpy(buf, cmd->name); in dhd_membytes()
1046 dhd_idletime(void *dhd, cmd_t *cmd, char **argv) in dhd_idletime() argument
1077 if ((err = dhd_var_get(dhd, cmd, argv))) { in dhd_idletime()
1095 dhd_idleclock(void *dhd, cmd_t *cmd, char **argv) in dhd_idleclock() argument
1122 if ((err = dhd_var_get(dhd, cmd, argv))) { in dhd_idleclock()
1142 dhd_sprom(void *dhd, cmd_t *cmd, char **argv) in dhd_sprom() argument
1158 UNUSED_PARAMETER(cmd); in dhd_sprom()
1384 dhd_vars(void *dhd, cmd_t *cmd, char **argv) in dhd_vars() argument
1391 UNUSED_PARAMETER(cmd); in dhd_vars()
1452 dhd_load_file_bytes(void *dhd, cmd_t *cmd, FILE *fp, int fsize, int start) in dhd_load_file_bytes() argument
1461 UNUSED_PARAMETER(cmd); in dhd_load_file_bytes()
1499 dhd_download(void *dhd, cmd_t *cmd, char **argv) in dhd_download() argument
1639 if (dhd_load_file_bytes(dhd, cmd, fp, fsize, start)) { in dhd_download()
1657 if (dhd_load_file_bytes(dhd, cmd, fp, fsize, start)) { in dhd_download()
1710 dhd_upload(void *dhd, cmd_t *cmd, char **argv) in dhd_upload() argument
1729 UNUSED_PARAMETER(cmd); in dhd_upload()
1839 dhd_logstamp(void *dhd, cmd_t *cmd, char **argv) in dhd_logstamp() argument
1869 ret = dhd_var_setbuf(dhd, cmd->name, valn, argc * sizeof(int)); in dhd_logstamp()
1875 dhd_sd_reg(void *dhd, cmd_t *cmd, char **argv) in dhd_sd_reg() argument
1890 if (!strcmp(cmd->name, "sd_hostreg")) { in dhd_sd_reg()
1897 } else if (!strcmp(cmd->name, "sd_devreg")) { in dhd_sd_reg()
1930 if ((ret = dhd_var_getbuf(dhd, cmd->name, &sdreg, sizeof(sdreg), &ptr)) >= 0) in dhd_sd_reg()
1933 ret = dhd_var_setbuf(dhd, cmd->name, &sdreg, sizeof(sdreg)); in dhd_sd_reg()
1960 dhd_msglevel(void *dhd, cmd_t *cmd, char **argv) in dhd_msglevel() argument
1962 return dhd_do_msglevel(dhd, cmd, argv, dhd_msgs); in dhd_msglevel()
1966 dhd_do_msglevel(void *dhd, cmd_t *cmd, char **argv, dbg_msg_t *dbg_msg) in dhd_do_msglevel() argument
1972 if ((ret = dhd_iovar_getint(dhd, cmd->name, (int*)&msglevel)) < 0) in dhd_do_msglevel()
2011 return (dhd_iovar_setint(dhd, cmd->name, msglevel)); in dhd_do_msglevel()
2054 dhd_version(void *dhd, cmd_t *cmd, char **argv) in dhd_version() argument
2059 UNUSED_PARAMETER(cmd); in dhd_version()
2067 if ((ret = dhd_var_getbuf(dhd, cmd->name, NULL, 0, (void**)&ptr)) < 0) in dhd_version()
2077 dhd_var_setint(void *dhd, cmd_t *cmd, char **argv) in dhd_var_setint() argument
2085 if (cmd->set == -1) { in dhd_var_setint()
2086 printf("set not defined for %s\n", cmd->name); in dhd_var_setint()
2127 dhd_var_get(void *dhd, cmd_t *cmd, char **argv) in dhd_var_get() argument
2132 UNUSED_PARAMETER(cmd); in dhd_var_get()
2156 dhd_var_getint(void *dhd, cmd_t *cmd, char **argv) in dhd_var_getint() argument
2161 if (cmd->get == -1) { in dhd_var_getint()
2162 printf("get not defined for %s\n", cmd->name); in dhd_var_getint()
2166 if ((err = dhd_var_get(dhd, cmd, argv))) in dhd_var_getint()
2180 dhd_var_getandprintstr(void *dhd, cmd_t *cmd, char **argv) in dhd_var_getandprintstr() argument
2184 if ((err = dhd_var_get(dhd, cmd, argv))) in dhd_var_getandprintstr()
2195 char *cmd[2] = {"bcmerrorstr"}; in dhd_printlasterror() local
2197 if (dhd_var_get(dhd, NULL, cmd) != 0) { in dhd_printlasterror()
2205 dhd_varint(void *dhd, cmd_t *cmd, char *argv[]) in dhd_varint() argument
2208 return (dhd_var_setint(dhd, cmd, argv)); in dhd_varint()
2210 return (dhd_var_getint(dhd, cmd, argv)); in dhd_varint()
2251 dhd_var_void(void *dhd, cmd_t *cmd, char **argv) in dhd_var_void() argument
2255 if (cmd->set < 0) in dhd_var_void()
2258 return dhd_var_setbuf(dhd, cmd->name, NULL, 0); in dhd_var_void()
2325 dhd_varstr(void *dhd, cmd_t *cmd, char **argv) in dhd_varstr() argument
2332 if ((error = dhd_var_getbuf(dhd, cmd->name, NULL, 0, &ptr)) < 0) in dhd_varstr()
2341 return dhd_var_setbuf(dhd, cmd->name, str, strlen(str) + 1); in dhd_varstr()