Lines Matching refs:ret
1693 int ret = BCME_OK; in dhdsdio_clkctl() local
1709 return ret; in dhdsdio_clkctl()
1718 ret = dhdsdio_htclk(bus, TRUE, pendok); in dhdsdio_clkctl()
1719 if (ret == BCME_OK) { in dhdsdio_clkctl()
1741 ret = BCME_OK; in dhdsdio_clkctl()
1752 ret = dhdsdio_sdclk(bus, TRUE); in dhdsdio_clkctl()
1754 ret = dhdsdio_htclk(bus, FALSE, FALSE); in dhdsdio_clkctl()
1758 if (ret == BCME_OK) { in dhdsdio_clkctl()
1776 ret = BCME_OK; in dhdsdio_clkctl()
1786 ret = dhdsdio_htclk(bus, FALSE, FALSE); in dhdsdio_clkctl()
1788 ret = dhdsdio_sdclk(bus, FALSE); in dhdsdio_clkctl()
1800 return ret; in dhdsdio_clkctl()
1965 int ret = BCME_ERROR; in __dhdsdio_clk_enable() local
1983 ret = dhdsdio_clkctl(bus, CLK_AVAIL, can_wait); in __dhdsdio_clk_enable()
1987 return ret; in __dhdsdio_clk_enable()
1999 int ret = BCME_ERROR; in __dhdsdio_clk_disable() local
2007 return ret; in __dhdsdio_clk_disable()
2021 ret = BCME_OK; in __dhdsdio_clk_disable()
2024 return ret; in __dhdsdio_clk_disable()
2101 int ret = BCME_ERROR; in dhd_bus_txdata() local
2196 ret = BCME_NORESOURCE; in dhd_bus_txdata()
2198 ret = BCME_OK; in dhd_bus_txdata()
2240 ret = dhdsdio_txpkt(bus, chan, &pkt, 1, TRUE); in dhd_bus_txdata()
2242 if (ret != BCME_OK) in dhd_bus_txdata()
2257 return ret; in dhd_bus_txdata()
2527 int ret = 0; in dhdsdio_txpkt() local
2600 ret = dhd_bcmsdh_send_buf(bus, bcmsdh_cur_sbwad(sdh), SDIO_FUNC_2, F2SYNC, in dhdsdio_txpkt()
2602 if (ret == BCME_OK) in dhdsdio_txpkt()
2626 wlfc_enabled = (dhd_wlfc_txcomplete(bus->dhd, pkt, ret == 0) != in dhdsdio_txpkt()
2632 dhd_txcomplete(bus->dhd, pkt, ret != 0); in dhdsdio_txpkt()
2641 return ret; in dhdsdio_txpkt()
2775 int ret; in dhdsdio_sendpendctl() local
2788 ret = dhd_bcmsdh_send_buf(bus, bcmsdh_cur_sbwad(sdh), SDIO_FUNC_2, F2SYNC, in dhdsdio_sendpendctl()
2791 if (ret == BCME_OK) in dhdsdio_sendpendctl()
2806 int ret = -1; in dhd_bus_txctl() local
2909 ret = 0; in dhd_bus_txctl()
2935 ret = -1; in dhd_bus_txctl()
2944 if (ret == -1) { in dhd_bus_txctl()
2952 ret = dhd_bcmsdh_send_buffer(bus, frame, len); in dhd_bus_txctl()
2969 if (ret) in dhd_bus_txctl()
2985 if (ret == BCME_NODEVICE) in dhd_bus_txctl()
2990 return ret ? err_nodevice >= ERROR_BCME_NODEVICE_MAX ? -ETIMEDOUT : -EIO : 0; in dhd_bus_txctl()
3971 int ret = BCME_ERROR; in dhdsdio_get_mem_dump() local
3995 ret = dhdsdio_membytes(bus, FALSE, start, databuf, read_size); in dhdsdio_get_mem_dump()
3996 if (ret) { in dhdsdio_get_mem_dump()
3997 DHD_ERROR(("%s: Error membytes %d\n", __FUNCTION__, ret)); in dhdsdio_get_mem_dump()
3998 ret = BCME_ERROR; in dhdsdio_get_mem_dump()
4015 return ret; in dhdsdio_get_mem_dump()
4022 int ret = BCME_ERROR; in dhdsdio_mem_dump() local
4027 return ret; in dhdsdio_mem_dump()
4030 ret = dhdsdio_get_mem_dump(bus); in dhdsdio_mem_dump()
4031 if (ret) { in dhdsdio_mem_dump()
4033 __FUNCTION__, ret)); in dhdsdio_mem_dump()
4042 return ret; in dhdsdio_mem_dump()
5616 int32 ret; in dhd_txglom_enable() local
5627 ret = dhd_iovar(dhdp, 0, "bus:rxglom", (char *)&rxglom, sizeof(rxglom), NULL, 0, in dhd_txglom_enable()
5629 if (ret >= 0) in dhd_txglom_enable()
5649 int err, ret = 0; in dhd_bus_init() local
5663 if ((ret = dhdsdio_readshared_console(bus)) >= 0) { in dhd_bus_init()
5666 if ((ret = dhdsdio_readconsole(bus)) < 0) { in dhd_bus_init()
5681 ret = -1; in dhd_bus_init()
5704 ret = -1; in dhd_bus_init()
5726 ret = -1; in dhd_bus_init()
5850 return ret; in dhd_bus_init()
8388 int ret; local
8524 if ((ret = bcmsdh_intr_reg(sdh, dhdsdio_isr, bus)) != 0) {
8526 __FUNCTION__, ret));
8540 if ((ret = dhd_bus_start(bus->dhd)) != 0) {
8543 if (ret == BCME_NOTUP)
9167 int ret; local
9172 ret = dhdsdio_download_firmware(bus, osh, bus->sdh);
9184 return ret;
9190 int ret; local
9211 ret = _dhdsdio_download_firmware(bus);
9216 return ret;
9411 int ret = 0; local
9465 ret = dhd_os_check_wakelock(bus->dhd);
9467 if ((!ret) && (bus->dhd->up) && (bus->dhd->op_mode != DHD_FLAG_HOSTAP_MODE)) {
9470 ret = 1;
9477 if (ret) {
9485 return ret;
9916 int ret; local
9931 ret = bcmsdh_send_buf(bus->sdh, addr, fn, flags, buf, nbytes,
9935 ASSERT(ret != BCME_PENDING);
9937 if (ret == BCME_NODEVICE) {
9939 } else if (ret < 0) {
9942 __FUNCTION__, ret));
9960 } while ((ret < 0) && retrydata && ++retries < max_retry);
9962 return ret;
10787 int ret; local
10795 ret = _dhdsdio_download_btfw(bus);
10800 return ret;
10807 int ret; local
10811 ret = dhdsdio_download_btfw(bus, osh, bus->sdh);
10813 return ret;
10838 int ret = -1; local
10840 ret = dhd_bcmsdh_send_buf(bus, bcmsdh_cur_sbwad(((dhd_bus_t*)bus)->sdh),
10843 if (ret == BCME_OK)
10846 return ret;