Lines Matching refs:csd
85 switch (card->csd.mmca_vsn) { in mmc_decode_cid()
122 mmc_hostname(card->host), card->csd.mmca_vsn); in mmc_decode_cid()
134 card->erase_size = card->csd.erase_size; in mmc_set_erase_size()
144 struct mmc_csd *csd = &card->csd; in mmc_decode_csd() local
153 csd->structure = UNSTUFF_BITS(resp, 126, 2); in mmc_decode_csd()
154 if (csd->structure == 0) { in mmc_decode_csd()
156 mmc_hostname(card->host), csd->structure); in mmc_decode_csd()
160 csd->mmca_vsn = UNSTUFF_BITS(resp, 122, 4); in mmc_decode_csd()
163 csd->taac_ns = (taac_exp[e] * taac_mant[m] + 9) / 10; in mmc_decode_csd()
164 csd->taac_clks = UNSTUFF_BITS(resp, 104, 8) * 100; in mmc_decode_csd()
168 csd->max_dtr = tran_exp[e] * tran_mant[m]; in mmc_decode_csd()
169 csd->cmdclass = UNSTUFF_BITS(resp, 84, 12); in mmc_decode_csd()
173 csd->capacity = (1 + m) << (e + 2); in mmc_decode_csd()
175 csd->read_blkbits = UNSTUFF_BITS(resp, 80, 4); in mmc_decode_csd()
176 csd->read_partial = UNSTUFF_BITS(resp, 79, 1); in mmc_decode_csd()
177 csd->write_misalign = UNSTUFF_BITS(resp, 78, 1); in mmc_decode_csd()
178 csd->read_misalign = UNSTUFF_BITS(resp, 77, 1); in mmc_decode_csd()
179 csd->dsr_imp = UNSTUFF_BITS(resp, 76, 1); in mmc_decode_csd()
180 csd->r2w_factor = UNSTUFF_BITS(resp, 26, 3); in mmc_decode_csd()
181 csd->write_blkbits = UNSTUFF_BITS(resp, 22, 4); in mmc_decode_csd()
182 csd->write_partial = UNSTUFF_BITS(resp, 21, 1); in mmc_decode_csd()
184 if (csd->write_blkbits >= 9) { in mmc_decode_csd()
187 csd->erase_size = (a + 1) * (b + 1); in mmc_decode_csd()
188 csd->erase_size <<= csd->write_blkbits - 9; in mmc_decode_csd()
379 if (card->csd.structure == 3) { in mmc_decode_ext_csd()
697 if (card->csd.capacity == (4096 * 512)) { in mmc_read_ext_csd()
789 MMC_DEV_ATTR(csd, "%08x%08x%08x%08x\n", card->raw_csd[0], card->raw_csd[1],
839 if (card->csd.dsr_imp && host->dsr_req) in mmc_dsr_show()
994 else if (max_dtr > card->csd.max_dtr) in mmc_set_bus_speed()
995 max_dtr = card->csd.max_dtr; in mmc_set_bus_speed()
1704 if (card->csd.dsr_imp && host->dsr_req) in mmc_init_card()