• Home
  • Raw
  • Download

Lines Matching refs:dhd

88 static int dhd_var_getbuf(void *dhd, char *iovar, void *param, int param_len, void **bufptr);
89 static int dhd_var_setbuf(void *dhd, char *iovar, void *param, int param_len);
93 static int dhd_iovar_getint(void *dhd, char *name, int *var);
94 static int dhd_iovar_setint(void *dhd, char *name, int var);
120 static int dhd_do_msglevel(void *dhd, cmd_t *cmd, char **argv, dbg_msg_t *dbg_msg);
427 dhd_list(void *dhd, cmd_t *garb, char **argv) in dhd_list() argument
434 UNUSED_PARAMETER(dhd); in dhd_list()
519 dhd_check(void *dhd) in dhd_check() argument
524 if ((ret = dhd_get(dhd, DHD_GET_MAGIC, &val, sizeof(int))) < 0) in dhd_check()
528 if ((ret = dhd_get(dhd, DHD_GET_VERSION, &val, sizeof(int))) < 0) in dhd_check()
592 dhd_pktgen(void *dhd, cmd_t *cmd, char **argv) in dhd_pktgen() argument
599 UNUSED_PARAMETER(dhd); in dhd_pktgen()
603 if ((ret = dhd_var_getbuf(dhd, "pktgen", NULL, 0, &ptr)) != 0) in dhd_pktgen()
691 ret = dhd_var_setbuf(dhd, "pktgen", &pktgen, sizeof(pktgen)); in dhd_pktgen()
743 dhd_sd_msglevel(void *dhd, cmd_t *cmd, char **argv) in dhd_sd_msglevel() argument
745 return dhd_do_msglevel(dhd, cmd, argv, dhd_sd_msgs); in dhd_sd_msglevel()
749 dhd_sd_blocksize(void *dhd, cmd_t *cmd, char **argv) in dhd_sd_blocksize() argument
781 if ((ret = dhd_var_getbuf(dhd, cmd->name, &func, sizeof(func), &ptr)) >= 0) in dhd_sd_blocksize()
786 ret = dhd_var_setbuf(dhd, cmd->name, &size, sizeof(size)); in dhd_sd_blocksize()
884 dhd_sdreg(void *dhd, cmd_t *cmd, char **argv) in dhd_sdreg() argument
933 ret = dhd_var_getbuf(dhd, argv[0], &sdreg, sizeof(sdreg), (void**)&ptr); in dhd_sdreg()
937 ret = dhd_var_setbuf(dhd, argv[0], &sdreg, sizeof(sdreg)); in dhd_sdreg()
944 dhd_membytes(void *dhd, cmd_t *cmd, char **argv) in dhd_membytes() argument
1034 ret = dhd_var_getbuf(dhd, "membytes", in dhd_membytes()
1101 ret = dhd_set(dhd, DHD_SET_VAR, &buf[0], (ptr - buf)); in dhd_membytes()
1112 dhd_idletime(void *dhd, cmd_t *cmd, char **argv) in dhd_idletime() argument
1140 err = dhd_set(dhd, DHD_SET_VAR, &buf[0], (endptr - buf)); in dhd_idletime()
1143 if ((err = dhd_var_get(dhd, cmd, argv))) { in dhd_idletime()
1161 dhd_idleclock(void *dhd, cmd_t *cmd, char **argv) in dhd_idleclock() argument
1185 err = dhd_set(dhd, DHD_SET_VAR, &buf[0], (endptr - buf)); in dhd_idleclock()
1188 if ((err = dhd_var_get(dhd, cmd, argv))) { in dhd_idleclock()
1208 dhd_sprom(void *dhd, cmd_t *cmd, char **argv) in dhd_sprom() argument
1349 ret = dhd_set(dhd, DHD_SET_VAR, buf, in dhd_sprom()
1353 ret = dhd_get(dhd, DHD_GET_VAR, buf, in dhd_sprom()
1450 dhd_vars(void *dhd, cmd_t *cmd, char **argv) in dhd_vars() argument
1465 if ((ret = dhd_var_getbuf(dhd, "vars", NULL, 0, (void**)&bufp))) in dhd_vars()
1496 ret = dhd_set(dhd, DHD_SET_VAR, buf, bufp - buf); in dhd_vars()
1519 dhd_verify_file_bytes(void *dhd, uint8 *memblock, int start, uint len) in dhd_verify_file_bytes() argument
1529 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_verify_file_bytes()
1551 dhd_load_file_bytes(void *dhd, cmd_t *cmd, FILE *fp, int fsize, int start, uint blk_sz, bool verify) in dhd_load_file_bytes() argument
1596 ret = dhd_set(dhd, DHD_SET_VAR, &buf[0], (bufp - buf + len)); in dhd_load_file_bytes()
1605 if (dhd_verify_file_bytes(dhd, memblock, start, len) != 0) { in dhd_load_file_bytes()
1624 dhd_proptxstatusenable(void *dhd, cmd_t *cmd, char **argv) in dhd_proptxstatusenable() argument
1631 ret = dhd_iovar_setint(dhd, cmd->name, flag); in dhd_proptxstatusenable()
1634 ret = dhd_iovar_getint(dhd, cmd->name, &flag); in dhd_proptxstatusenable()
1642 dhd_proptxstatusmode(void *dhd, cmd_t *cmd, char **argv) in dhd_proptxstatusmode() argument
1649 ret = dhd_iovar_setint(dhd, cmd->name, mode); in dhd_proptxstatusmode()
1652 ret = dhd_iovar_getint(dhd, cmd->name, &mode); in dhd_proptxstatusmode()
1660 dhd_proptxopt(void *dhd, cmd_t *cmd, char **argv) in dhd_proptxopt() argument
1667 ret = dhd_iovar_setint(dhd, cmd->name, flag); in dhd_proptxopt()
1670 ret = dhd_iovar_getint(dhd, cmd->name, &flag); in dhd_proptxopt()
1680 dhd_get_ramstart(void *dhd, uint32 *ramstart) in dhd_get_ramstart() argument
1686 if ((ret = dhd_var_get(dhd, NULL, ramstart_args)) != BCME_OK) { in dhd_get_ramstart()
1698 dhd_download(void *dhd, cmd_t *cmd, char **argv) in dhd_download() argument
1731 if ((ret = dhd_get_ramstart(dhd, &start)) != BCME_OK) in dhd_download()
1827 if ((ret = dhd_var_get(dhd, NULL, bustype_args))) { in dhd_download()
1839 if ((ret = dhd_var_get(dhd, NULL, memszargs))) { in dhd_download()
1851 if ((ret = dhd_iovar_setint(dhd, "dwnldstate", TRUE))) { in dhd_download()
1878 if ((ret = dhd_load_file_bytes(dhd, cmd, fp, fsize, start, memblock_sz, verify))) { in dhd_download()
1915 ret = dhd_set(dhd, DHD_SET_VAR, buf, (bufp - buf)); in dhd_download()
1925 if ((ret = dhd_iovar_setint(dhd, "dwnldstate", FALSE))) { in dhd_download()
1953 dhd_dldn(void *dhd, cmd_t *cmd, char **argv) in dhd_dldn() argument
2003 fd = dhd_set(dhd, DHD_DLDN_ST, NULL, 0); in dhd_dldn()
2039 if ((ret = dhd_get_ramstart(dhd, &start)) != BCME_OK) in dhd_dldn()
2049 ret = dhd_set(dhd, DHD_DLDN_WRITE, memblock, len); in dhd_dldn()
2072 ret = dhd_set(dhd, DHD_DLDN_END, NULL, 0); in dhd_dldn()
2079 dhd_upload(void *dhd, cmd_t *cmd, char **argv) in dhd_upload() argument
2101 if ((ret = dhd_get_ramstart(dhd, &start)) != BCME_OK) in dhd_upload()
2151 if ((ret = dhd_var_get(dhd, NULL, memszargs))) { in dhd_upload()
2180 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_upload()
2205 dhd_get_debug_info(void *dhd, hndrte_debug_t *debug_info) in dhd_get_debug_info() argument
2215 if ((ret = dhd_get_ramstart(dhd, &ramstart)) != BCME_OK) in dhd_get_debug_info()
2231 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&buffer); in dhd_get_debug_info()
2247 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&buffer); in dhd_get_debug_info()
2268 dhd_coredump(void *dhd, cmd_t *cmd, char **argv) in dhd_coredump() argument
2332 if ((ret = dhd_get_debug_info(dhd, &debugInfo)) < 0) in dhd_coredump()
2348 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_coredump()
2402 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_coredump()
2426 dhd_consoledump(void *dhd, cmd_t *cmd, char **argv) in dhd_consoledump() argument
2471 if ((ret = dhd_get_debug_info(dhd, &debugInfo)) < 0) in dhd_consoledump()
2483 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_consoledump()
2511 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_consoledump()
2530 dhd_logstamp(void *dhd, cmd_t *cmd, char **argv) in dhd_logstamp() argument
2560 ret = dhd_var_setbuf(dhd, cmd->name, valn, argc * sizeof(int)); in dhd_logstamp()
2566 dhd_sd_reg(void *dhd, cmd_t *cmd, char **argv) in dhd_sd_reg() argument
2621 if ((ret = dhd_var_getbuf(dhd, cmd->name, &sdreg, sizeof(sdreg), &ptr)) >= 0) in dhd_sd_reg()
2624 ret = dhd_var_setbuf(dhd, cmd->name, &sdreg, sizeof(sdreg)); in dhd_sd_reg()
2654 dhd_msglevel(void *dhd, cmd_t *cmd, char **argv) in dhd_msglevel() argument
2656 return dhd_do_msglevel(dhd, cmd, argv, dhd_msgs); in dhd_msglevel()
2660 dhd_do_msglevel(void *dhd, cmd_t *cmd, char **argv, dbg_msg_t *dbg_msg) in dhd_do_msglevel() argument
2666 if ((ret = dhd_iovar_getint(dhd, cmd->name, (int*)&msglevel)) < 0) in dhd_do_msglevel()
2705 return (dhd_iovar_setint(dhd, cmd->name, msglevel)); in dhd_do_msglevel()
2748 dhd_version(void *dhd, cmd_t *cmd, char **argv) in dhd_version() argument
2761 if ((ret = dhd_var_getbuf(dhd, cmd->name, NULL, 0, (void**)&ptr)) < 0) in dhd_version()
2771 dhd_var_setint(void *dhd, cmd_t *cmd, char **argv) in dhd_var_setint() argument
2817 return (dhd_set(dhd, DHD_SET_VAR, &buf[0], len)); in dhd_var_setint()
2821 dhd_var_get(void *dhd, cmd_t *cmd, char **argv) in dhd_var_get() argument
2846 return (dhd_get(dhd, DHD_GET_VAR, &buf[0], DHD_IOCTL_MAXLEN)); in dhd_var_get()
2850 dhd_var_getint(void *dhd, cmd_t *cmd, char **argv) in dhd_var_getint() argument
2859 if ((err = dhd_var_get(dhd, cmd, argv))) in dhd_var_getint()
2873 dhd_var_getandprintstr(void *dhd, cmd_t *cmd, char **argv) in dhd_var_getandprintstr() argument
2877 if ((err = dhd_var_get(dhd, cmd, argv))) in dhd_var_getandprintstr()
2886 dhd_printlasterror(void *dhd) in dhd_printlasterror() argument
2890 if (dhd_var_get(dhd, NULL, cmd) != 0) { in dhd_printlasterror()
2898 dhd_varint(void *dhd, cmd_t *cmd, char *argv[]) in dhd_varint() argument
2901 return (dhd_var_setint(dhd, cmd, argv)); in dhd_varint()
2903 return (dhd_var_getint(dhd, cmd, argv)); in dhd_varint()
2907 dhd_var_getbuf(void *dhd, char *iovar, void *param, int param_len, void **bufptr) in dhd_var_getbuf() argument
2922 return dhd_get(dhd, DHD_GET_VAR, &buf[0], DHD_IOCTL_MAXLEN); in dhd_var_getbuf()
2926 dhd_var_setbuf(void *dhd, char *iovar, void *param, int param_len) in dhd_var_setbuf() argument
2941 return dhd_set(dhd, DHD_SET_VAR, &buf[0], len); in dhd_var_setbuf()
2945 dhd_var_void(void *dhd, cmd_t *cmd, char **argv) in dhd_var_void() argument
2952 return dhd_var_setbuf(dhd, cmd->name, NULL, 0); in dhd_var_void()
2984 dhd_iovar_getint(void *dhd, char *name, int *var) in dhd_iovar_getint() argument
2993 if ((error = dhd_get(dhd, DHD_GET_VAR, &ibuf, sizeof(ibuf))) < 0) in dhd_iovar_getint()
3002 dhd_iovar_setint(void *dhd, char *name, int var) in dhd_iovar_setint() argument
3012 if ((error = dhd_set(dhd, DHD_SET_VAR, &ibuf, len)) < 0) in dhd_iovar_setint()
3019 dhd_varstr(void *dhd, cmd_t *cmd, char **argv) in dhd_varstr() argument
3027 if ((error = dhd_var_getbuf(dhd, cmd->name, NULL, 0, &ptr)) < 0) in dhd_varstr()
3036 return dhd_var_setbuf(dhd, cmd->name, str, strlen(str) + 1); in dhd_varstr()
3042 dhd_hostreorder_flows(void *dhd, cmd_t *cmd, char **argv) in dhd_hostreorder_flows() argument
3049 if ((ret = dhd_var_getbuf(dhd, cmd->name, NULL, 0, &ptr)) < 0) { in dhd_hostreorder_flows()