• Home
  • Raw
  • Download

Lines Matching refs:ret

496 	int ret;  in dhd_check()  local
499 if ((ret = dhd_get(dhd, DHD_GET_MAGIC, &val, sizeof(int)) < 0)) in dhd_check()
500 return ret; in dhd_check()
503 if ((ret = dhd_get(dhd, DHD_GET_VERSION, &val, sizeof(int)) < 0)) in dhd_check()
504 return ret; in dhd_check()
569 int ret = 0; in dhd_pktgen() local
578 if ((ret = dhd_var_getbuf(dhd, "pktgen", NULL, 0, &ptr)) != 0) in dhd_pktgen()
579 return ret; in dhd_pktgen()
599 ret = -1; in dhd_pktgen()
606 ret = -1; in dhd_pktgen()
654 ret = USAGE_ERROR; in dhd_pktgen()
661 ret = -1; in dhd_pktgen()
666 ret = dhd_var_setbuf(dhd, "pktgen", &pktgen, sizeof(pktgen)); in dhd_pktgen()
702 return ret; in dhd_pktgen()
726 int ret; in dhd_sd_blocksize() local
756 if ((ret = dhd_var_getbuf(dhd, cmd->name, &func, sizeof(func), &ptr)) >= 0) in dhd_sd_blocksize()
761 ret = dhd_var_setbuf(dhd, cmd->name, &size, sizeof(size)); in dhd_sd_blocksize()
764 return (ret); in dhd_sd_blocksize()
770 int ret; in dhd_sd_mode() local
789 ret = dhd_var_setint(wl, cmd, argv); in dhd_sd_mode()
792 if ((ret = dhd_var_get(wl, cmd, argv))) { in dhd_sd_mode()
793 return (ret); in dhd_sd_mode()
804 return (ret); in dhd_sd_mode()
810 int ret; in dhd_dma_mode() local
837 ret = dhd_var_setint(wl, cmd, argv); in dhd_dma_mode()
840 if ((ret = dhd_var_get(wl, cmd, argv))) { in dhd_dma_mode()
841 return (ret); in dhd_dma_mode()
854 return (ret); in dhd_dma_mode()
861 int ret; in dhd_sdreg() local
908 ret = dhd_var_getbuf(dhd, argv[0], &sdreg, sizeof(sdreg), (void**)&ptr); in dhd_sdreg()
909 if (ret >= 0) in dhd_sdreg()
912 ret = dhd_var_setbuf(dhd, argv[0], &sdreg, sizeof(sdreg)); in dhd_sdreg()
915 return (ret); in dhd_sdreg()
921 int ret = -1; in dhd_membytes() local
943 ret = -1; in dhd_membytes()
958 ret = -1; in dhd_membytes()
1006 ret = dhd_var_getbuf(dhd, "membytes", in dhd_membytes()
1008 if (ret < 0) in dhd_membytes()
1026 ret = USAGE_ERROR; in dhd_membytes()
1038 ret = USAGE_ERROR; in dhd_membytes()
1072 ret = dhd_set(dhd, DHD_SET_VAR, &buf[0], (ptr - buf)); in dhd_membytes()
1073 if (ret < 0) in dhd_membytes()
1079 return ret; in dhd_membytes()
1184 int ret, i; in dhd_sprom()
1239 if ((ret = file_size(fname)) < 0) in dhd_sprom()
1242 bytes = ret; in dhd_sprom()
1320 ret = dhd_set(dhd, DHD_SET_VAR, buf, in dhd_sprom()
1322 return (ret); in dhd_sprom()
1324 ret = dhd_get(dhd, DHD_GET_VAR, buf, in dhd_sprom()
1326 if (ret < 0) { in dhd_sprom()
1327 return ret; in dhd_sprom()
1423 int ret; in dhd_vars() local
1436 if ((ret = dhd_var_getbuf(dhd, "vars", NULL, 0, (void**)&bufp))) in dhd_vars()
1457 if ((ret = read_vars(vname, bufp, in dhd_vars()
1459 ret = -1; in dhd_vars()
1463 nvram_len = ret; in dhd_vars()
1467 ret = dhd_set(dhd, DHD_SET_VAR, buf, bufp - buf); in dhd_vars()
1473 ret = -1; in dhd_vars()
1477 return ret; in dhd_vars()
1497 int ret; in dhd_load_file_bytes() local
1522 ret = dhd_set(dhd, DHD_SET_VAR, &buf[0], (bufp - buf + len)); in dhd_load_file_bytes()
1524 if (ret) { in dhd_load_file_bytes()
1526 __FUNCTION__, ret, len, start); in dhd_load_file_bytes()
1581 int ret = 0; in dhd_download()
1603 ret = -1; in dhd_download()
1611 ret = -1; in dhd_download()
1619 ret = -1; in dhd_download()
1633 ret = -1; in dhd_download()
1638 ret = -1; in dhd_download()
1646 ret = -1; in dhd_download()
1652 ret = -1; in dhd_download()
1659 ret = -1; in dhd_download()
1673 ret = BCME_UNSUPPORTED; in dhd_download()
1685 if ((ret = dhd_var_get(dhd, NULL, memszargs))) { in dhd_download()
1697 ret = -1; in dhd_download()
1704 if ((ret = dhd_iovar_setint(dhd, "download", TRUE))) { in dhd_download()
1718 ret = -1; in dhd_download()
1737 if ((ret = read_vars(vname, bufp, in dhd_download()
1739 ret = -1; in dhd_download()
1743 nvram_len = ret; in dhd_download()
1747 ret = dhd_set(dhd, DHD_SET_VAR, buf, (bufp - buf)); in dhd_download()
1748 if (ret) { in dhd_download()
1750 __FUNCTION__, ret); in dhd_download()
1757 if ((ret = dhd_iovar_setint(dhd, "download", FALSE))) { in dhd_download()
1769 return ret; in dhd_download()
1781 int ret = 0; in dhd_dldn()
1803 ret = -1; in dhd_dldn()
1812 ret = -1; in dhd_dldn()
1819 ret = -1; in dhd_dldn()
1826 ret = -1; in dhd_dldn()
1833 ret = -1; in dhd_dldn()
1839 ret = -1; in dhd_dldn()
1848 ret = -1; in dhd_dldn()
1856 ret = -1; in dhd_dldn()
1863 ret = -1; in dhd_dldn()
1867 ret = dhd_set(dhd, DHD_DLDN_WRITE, memblock, len); in dhd_dldn()
1868 if (ret) { in dhd_dldn()
1870 __FUNCTION__, ret, len, start); in dhd_dldn()
1879 ret = -1; in dhd_dldn()
1892 return ret; in dhd_dldn()
1905 int ret = 0; in dhd_upload()
1926 ret = -1; in dhd_upload()
1934 ret = -1; in dhd_upload()
1945 ret = -1; in dhd_upload()
1950 ret = -1; in dhd_upload()
1954 ret = -1; in dhd_upload()
1962 ret = -1; in dhd_upload()
1966 if ((ret = dhd_var_get(dhd, NULL, memszargs))) { in dhd_upload()
1978 ret = -1; in dhd_upload()
1985 ret = -1; in dhd_upload()
2002 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_upload()
2003 if (ret) { in dhd_upload()
2011 ret = -1; in dhd_upload()
2021 return ret; in dhd_upload()
2028 int ret; in dhd_logstamp() local
2056 ret = dhd_var_setbuf(dhd, cmd->name, valn, argc * sizeof(int)); in dhd_logstamp()
2058 return (ret); in dhd_logstamp()
2064 int ret; in dhd_sd_reg() local
2117 if ((ret = dhd_var_getbuf(dhd, cmd->name, &sdreg, sizeof(sdreg), &ptr)) >= 0) in dhd_sd_reg()
2120 ret = dhd_var_setbuf(dhd, cmd->name, &sdreg, sizeof(sdreg)); in dhd_sd_reg()
2123 return (ret); in dhd_sd_reg()
2155 int ret, i; in dhd_do_msglevel() local
2159 if ((ret = dhd_iovar_getint(dhd, cmd->name, (int*)&msglevel)) < 0) in dhd_do_msglevel()
2160 return (ret); in dhd_do_msglevel()
2243 int ret; in dhd_version() local
2254 if ((ret = dhd_var_getbuf(dhd, cmd->name, NULL, 0, (void**)&ptr)) < 0) in dhd_version()
2255 return ret; in dhd_version()