Lines Matching refs:csd

77 	switch (card->csd.mmca_vsn) {  in mmc_decode_cid()
114 mmc_hostname(card->host), card->csd.mmca_vsn); in mmc_decode_cid()
126 card->erase_size = card->csd.erase_size; in mmc_set_erase_size()
136 struct mmc_csd *csd = &card->csd; in mmc_decode_csd() local
145 csd->structure = UNSTUFF_BITS(resp, 126, 2); in mmc_decode_csd()
146 if (csd->structure == 0) { in mmc_decode_csd()
148 mmc_hostname(card->host), csd->structure); in mmc_decode_csd()
152 csd->mmca_vsn = UNSTUFF_BITS(resp, 122, 4); in mmc_decode_csd()
155 csd->taac_ns = (taac_exp[e] * taac_mant[m] + 9) / 10; in mmc_decode_csd()
156 csd->taac_clks = UNSTUFF_BITS(resp, 104, 8) * 100; in mmc_decode_csd()
160 csd->max_dtr = tran_exp[e] * tran_mant[m]; in mmc_decode_csd()
161 csd->cmdclass = UNSTUFF_BITS(resp, 84, 12); in mmc_decode_csd()
165 csd->capacity = (1 + m) << (e + 2); in mmc_decode_csd()
167 csd->read_blkbits = UNSTUFF_BITS(resp, 80, 4); in mmc_decode_csd()
168 csd->read_partial = UNSTUFF_BITS(resp, 79, 1); in mmc_decode_csd()
169 csd->write_misalign = UNSTUFF_BITS(resp, 78, 1); in mmc_decode_csd()
170 csd->read_misalign = UNSTUFF_BITS(resp, 77, 1); in mmc_decode_csd()
171 csd->dsr_imp = UNSTUFF_BITS(resp, 76, 1); in mmc_decode_csd()
172 csd->r2w_factor = UNSTUFF_BITS(resp, 26, 3); in mmc_decode_csd()
173 csd->write_blkbits = UNSTUFF_BITS(resp, 22, 4); in mmc_decode_csd()
174 csd->write_partial = UNSTUFF_BITS(resp, 21, 1); in mmc_decode_csd()
176 if (csd->write_blkbits >= 9) { in mmc_decode_csd()
179 csd->erase_size = (a + 1) * (b + 1); in mmc_decode_csd()
180 csd->erase_size <<= csd->write_blkbits - 9; in mmc_decode_csd()
371 if (card->csd.structure == 3) { in mmc_decode_ext_csd()
689 if (card->csd.capacity == (4096 * 512)) { in mmc_read_ext_csd()
781 MMC_DEV_ATTR(csd, "%08x%08x%08x%08x\n", card->raw_csd[0], card->raw_csd[1],
832 if (card->csd.dsr_imp && host->dsr_req) in mmc_dsr_show()
987 else if (max_dtr > card->csd.max_dtr) in mmc_set_bus_speed()
988 max_dtr = card->csd.max_dtr; in mmc_set_bus_speed()
1677 if (card->csd.dsr_imp && host->dsr_req) in mmc_init_card()