Lines Matching refs:req
127 struct mmc_request *req);
196 static int mmc_wait_for_req(struct mmc_softc *sc, struct mmc_request *req);
197 static void mmc_wakeup(struct mmc_request *req);
363 mmc_wakeup(struct mmc_request *req)
367 sc = (struct mmc_softc *)req->done_data;
369 req->flags |= MMC_REQ_DONE;
371 wakeup(req);
375 mmc_wait_for_req(struct mmc_softc *sc, struct mmc_request *req)
378 req->done = mmc_wakeup;
379 req->done_data = sc;
382 req->cmd->opcode, req->cmd->arg, req->cmd->flags);
383 if (req->cmd->data) {
384 printf(" data %d\n", (int)req->cmd->data->len);
388 MMCBR_REQUEST(device_get_parent(sc->dev), sc->dev, req);
390 while ((req->flags & MMC_REQ_DONE) == 0)
391 msleep(req, &sc->sc_mtx, 0, "mmcreq", 0);
393 if (mmc_debug > 2 || (mmc_debug > 1 && req->cmd->error))
394 device_printf(sc->dev, "RESULT: %d\n", req->cmd->error);
399 mmc_wait_for_request(device_t brdev, device_t reqdev, struct mmc_request *req)
403 return (mmc_wait_for_req(sc, req));