Lines Matching +full:no +full:- +full:sd
1 /*-
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26 * the SD Simplified Specification. The following disclaimer may apply:
29 * specification ("Simplified Specification") by the SD Card Association and
30 * the SD Group. The Simplified Specification is a subset of the complete SD
31 * Specification which is owned by the SD Card Association and the SD
32 * Group. This Simplified Specification is provided on a non-confidential
34 * Simplified Specification may require a license from the SD Card
35 * Association, SD Group, SD-3C LLC or other third parties.
40 * as a standard specification for SD Cards and SD Host/Ancillary products and
41 * is provided "AS-IS" without any representations or warranties of any
42 * kind. No responsibility is assumed by the SD Group, SD-3C LLC or the SD
44 * right of the SD Group, SD-3C LLC, the SD Card Association or any third
45 * parties, which may result from its use. No license is granted by
47 * SD Group, SD-3C LLC, the SD Card Association or any third party. Nothing
48 * herein shall be construed as an obligation by the SD Group, the SD-3C LLC
49 * or the SD Card Association to disclose or distribute any technical
50 * information, know-how or other confidential information to any third party.
69 #define LOG_PPS 5 /* Log no more than 5 errors per second. */
81 memset(cmd->resp, 0, sizeof(cmd->resp)); in mmc_wait_for_cmd()
82 cmd->retries = 0; /* Retries done here, not in hardware. */ in mmc_wait_for_cmd()
83 cmd->mrq = &mreq; in mmc_wait_for_cmd()
84 if (cmd->data != NULL) in mmc_wait_for_cmd()
85 cmd->data->mrq = &mreq; in mmc_wait_for_cmd()
90 err = cmd->error; in mmc_wait_for_cmd()
91 } while (err != MMC_ERR_NONE && retries-- > 0); in mmc_wait_for_cmd()
95 if (sc->squelched == 0 && ppsratecheck(&sc->log_time, in mmc_wait_for_cmd()
96 &sc->log_count, LOG_PPS)) { in mmc_wait_for_cmd()
97 device_printf(sc->dev, "CMD%d failed, RESULT: %d\n", in mmc_wait_for_cmd()
98 cmd->opcode, err); in mmc_wait_for_cmd()
115 cmd->flags |= MMC_CMD_IS_APP; in mmc_wait_for_app_cmd()
118 sc->squelched++; in mmc_wait_for_app_cmd()
134 err = cmd->error; in mmc_wait_for_app_cmd()
136 } while (err != MMC_ERR_NONE && retries-- > 0); in mmc_wait_for_app_cmd()
137 sc->squelched--; in mmc_wait_for_app_cmd()
140 if (sc->squelched == 0 && ppsratecheck(&sc->log_time, in mmc_wait_for_app_cmd()
141 &sc->log_count, LOG_PPS)) { in mmc_wait_for_app_cmd()
142 device_printf(sc->dev, "ACMD%d failed, RESULT: %d\n", in mmc_wait_for_app_cmd()
143 cmd->opcode, err); in mmc_wait_for_app_cmd()
158 KASSERT(timeout != 0, ("%s: no timeout", __func__)); in mmc_switch()
177 * Pause re-tuning so it won't interfere with the busy state and also in mmc_switch()
181 sc->retune_paused++; in mmc_switch()
187 sc->retune_paused--; in mmc_switch()
198 KASSERT(timeout != 0, ("%s: no timeout", __func__)); in mmc_switch_status()