Lines Matching refs:p_csd_reg
168 sdmmc_priv_csd_reg_t p_csd_reg; in sdhc_ra_request() local
226 p_csd_reg.reg.sdrsp10 = priv->sdmmc_ctrl.p_reg->SD_RSP10; in sdhc_ra_request()
227 p_csd_reg.reg.sdrsp32 = priv->sdmmc_ctrl.p_reg->SD_RSP32; in sdhc_ra_request()
228 p_csd_reg.reg.sdrsp54 = priv->sdmmc_ctrl.p_reg->SD_RSP54; in sdhc_ra_request()
229 p_csd_reg.reg.sdrsp76 = priv->sdmmc_ctrl.p_reg->SD_RSP76; in sdhc_ra_request()
232 uint32_t csd_version = p_csd_reg.csd_v1_b.csd_structure; in sdhc_ra_request()
237 mult = (1U << (p_csd_reg.csd_v1_b.c_size_mult + 2)); in sdhc_ra_request()
239 ((p_csd_reg.csd_v1_b.c_size + 1U) * mult); in sdhc_ra_request()
242 uint32_t read_sector_size = 1U << p_csd_reg.csd_v1_b.read_bl_len; in sdhc_ra_request()
254 if (SDHI_PRV_SECTOR_COUNT_IN_EXT_CSD == p_csd_reg.csd_v1_b.c_size) { in sdhc_ra_request()
263 (p_csd_reg.csd_v2_b.c_size + 1U) * SDHI_PRV_BYTES_PER_KILOBYTE; in sdhc_ra_request()
271 p_csd_reg.csd_v1_b.sector_size + 1U; in sdhc_ra_request()
400 p_csd_reg.reg.sdrsp10 = (uint32_t)priv->sdmmc_ctrl.p_reg->SD_RSP10 << 8; in sdhc_ra_request()
401 p_csd_reg.reg.sdrsp32 = (uint32_t)priv->sdmmc_ctrl.p_reg->SD_RSP32 << 8; in sdhc_ra_request()
402 p_csd_reg.reg.sdrsp54 = (uint32_t)priv->sdmmc_ctrl.p_reg->SD_RSP54 << 8; in sdhc_ra_request()
403 p_csd_reg.reg.sdrsp76 = (uint32_t)priv->sdmmc_ctrl.p_reg->SD_RSP76 << 8; in sdhc_ra_request()
405 memcpy(cmd->response, &p_csd_reg.reg, sizeof(cmd->response)); in sdhc_ra_request()
408 p_csd_reg.reg.sdrsp10 = (uint32_t)priv->sdmmc_ctrl.p_reg->SD_RSP10; in sdhc_ra_request()
409 p_csd_reg.reg.sdrsp32 = (uint32_t)priv->sdmmc_ctrl.p_reg->SD_RSP32; in sdhc_ra_request()
410 p_csd_reg.reg.sdrsp54 = (uint32_t)priv->sdmmc_ctrl.p_reg->SD_RSP54; in sdhc_ra_request()
411 p_csd_reg.reg.sdrsp76 = (uint32_t)priv->sdmmc_ctrl.p_reg->SD_RSP76; in sdhc_ra_request()
413 memcpy(cmd->response, &p_csd_reg.reg, sizeof(cmd->response)); in sdhc_ra_request()