Lines Matching refs:resp
713 printf("resp=");
788 sdmmc_response resp;
802 error = sdmmc_mem_send_cid(sc, &resp);
828 memcpy(sc->raw_cid, resp, sizeof(sc->raw_cid));
860 error = sdmmc_mem_send_csd(sc, &resp);
866 if (sdmmc_decode_csd(sc, resp) != 0 ||
913 sdmmc_mem_send_cid(struct sdmmc_softc *sc, sdmmc_response *resp)
928 if (error == 0 && resp != NULL)
929 memcpy(resp, &cmd.c_resp, sizeof(*resp));
992 sdmmc_mem_send_csd(struct sdmmc_softc *sc, sdmmc_response *resp)
1007 if (error == 0 && resp != NULL)
1008 memcpy(resp, &cmd.c_resp, sizeof(*resp));
1013 sdmmc_decode_csd(struct sdmmc_softc *sc, sdmmc_response resp)
1038 csd->csdver = SD_CSD_CSDVER(resp);
1043 csd->capacity = SD_CSD_V2_CAPACITY(resp);
1045 csd->ccc = SD_CSD_CCC(resp);
1050 csd->capacity = SD_CSD_CAPACITY(resp);
1051 csd->read_bl_len = SD_CSD_READ_BL_LEN(resp);
1060 csd->mmcver = SD_CSD_MMCVER(resp);
1061 csd->write_bl_len = SD_CSD_WRITE_BL_LEN(resp);
1062 csd->r2w_factor = SD_CSD_R2W_FACTOR(resp);
1063 e = SD_CSD_SPEED_EXP(resp);
1064 m = SD_CSD_SPEED_MANT(resp);
1067 csd->csdver = MMC_CSD_CSDVER(resp);
1074 csd->mmcver = MMC_CSD_MMCVER(resp);
1075 csd->capacity = MMC_CSD_CAPACITY(resp);
1076 csd->read_bl_len = MMC_CSD_READ_BL_LEN(resp);
1077 csd->write_bl_len = MMC_CSD_WRITE_BL_LEN(resp);
1078 csd->r2w_factor = MMC_CSD_R2W_FACTOR(resp);
1079 e = MMC_CSD_TRAN_SPEED_EXP(resp);
1080 m = MMC_CSD_TRAN_SPEED_MANT(resp);
1091 sdmmc_print_csd(resp, csd);
1098 sdmmc_decode_cid(struct sdmmc_softc *sc, sdmmc_response resp)
1103 cid->mid = SD_CID_MID(resp);
1104 cid->oid = SD_CID_OID(resp);
1105 SD_CID_PNM_CPY(resp, cid->pnm);
1106 cid->rev = SD_CID_REV(resp);
1107 cid->psn = SD_CID_PSN(resp);
1108 cid->mdt = SD_CID_MDT(resp);
1113 cid->mid = MMC_CID_MID_V1(resp);
1114 MMC_CID_PNM_V1_CPY(resp, cid->pnm);
1115 cid->rev = MMC_CID_REV_V1(resp);
1116 cid->psn = MMC_CID_PSN_V1(resp);
1117 cid->mdt = MMC_CID_MDT_V1(resp);
1122 cid->mid = MMC_CID_MID_V2(resp);
1123 cid->oid = MMC_CID_OID_V2(resp);
1124 MMC_CID_PNM_V2_CPY(resp, cid->pnm);
1125 cid->psn = MMC_CID_PSN_V2(resp);
1292 sdmmc_response resp;
1295 memset(resp, 0, sizeof(resp));
1296 /*resp[0] = sc->raw_scr[1];
1297 resp[1] = sc->raw_scr[0];*/
1299 * Change the raw-scr received from the DMA stream to resp.
1301 resp[0] = be32toh(sc->raw_scr[1]) >> 8; // LSW
1302 resp[1] = be32toh(sc->raw_scr[0]); // MSW
1303 resp[0] |= (resp[1] & 0xff) << 24;
1304 resp[1] >>= 8;
1305 resp[0] = htole32(resp[0]);
1306 resp[1] = htole32(resp[1]);
1308 ver = SCR_STRUCTURE(resp);
1309 sc->scr.sd_spec = SCR_SD_SPEC(resp);
1310 sc->scr.bus_width = SCR_SD_BUS_WIDTHS(resp);