• Home
  • Raw
  • Download

Lines Matching refs:csd

102 	struct mmc_csd *csd = &card->csd;  in mmc_decode_csd()  local
112 csd->tacc_ns = (tacc_exp[e] * tacc_mant[m] + 9) / 10; in mmc_decode_csd()
113 csd->tacc_clks = UNSTUFF_BITS(resp, 104, 8) * 100; in mmc_decode_csd()
117 csd->max_dtr = tran_exp[e] * tran_mant[m]; in mmc_decode_csd()
118 csd->cmdclass = UNSTUFF_BITS(resp, 84, 12); in mmc_decode_csd()
122 csd->capacity = (1 + m) << (e + 2); in mmc_decode_csd()
124 csd->read_blkbits = UNSTUFF_BITS(resp, 80, 4); in mmc_decode_csd()
125 csd->read_partial = UNSTUFF_BITS(resp, 79, 1); in mmc_decode_csd()
126 csd->write_misalign = UNSTUFF_BITS(resp, 78, 1); in mmc_decode_csd()
127 csd->read_misalign = UNSTUFF_BITS(resp, 77, 1); in mmc_decode_csd()
128 csd->dsr_imp = UNSTUFF_BITS(resp, 76, 1); in mmc_decode_csd()
129 csd->r2w_factor = UNSTUFF_BITS(resp, 26, 3); in mmc_decode_csd()
130 csd->write_blkbits = UNSTUFF_BITS(resp, 22, 4); in mmc_decode_csd()
131 csd->write_partial = UNSTUFF_BITS(resp, 21, 1); in mmc_decode_csd()
134 csd->erase_size = 1; in mmc_decode_csd()
135 } else if (csd->write_blkbits >= 9) { in mmc_decode_csd()
136 csd->erase_size = UNSTUFF_BITS(resp, 39, 7) + 1; in mmc_decode_csd()
137 csd->erase_size <<= csd->write_blkbits - 9; in mmc_decode_csd()
149 csd->tacc_ns = 0; /* Unused */ in mmc_decode_csd()
150 csd->tacc_clks = 0; /* Unused */ in mmc_decode_csd()
154 csd->max_dtr = tran_exp[e] * tran_mant[m]; in mmc_decode_csd()
155 csd->cmdclass = UNSTUFF_BITS(resp, 84, 12); in mmc_decode_csd()
156 csd->c_size = UNSTUFF_BITS(resp, 48, 22); in mmc_decode_csd()
159 if (csd->c_size >= 0xFFFF) in mmc_decode_csd()
163 csd->capacity = (1 + m) << 10; in mmc_decode_csd()
165 csd->read_blkbits = 9; in mmc_decode_csd()
166 csd->read_partial = 0; in mmc_decode_csd()
167 csd->write_misalign = 0; in mmc_decode_csd()
168 csd->read_misalign = 0; in mmc_decode_csd()
169 csd->r2w_factor = 4; /* Unused */ in mmc_decode_csd()
170 csd->write_blkbits = 9; in mmc_decode_csd()
171 csd->write_partial = 0; in mmc_decode_csd()
172 csd->erase_size = 1; in mmc_decode_csd()
180 card->erase_size = csd->erase_size; in mmc_decode_csd()
229 if (!(card->csd.cmdclass & CCC_APP_SPEC)) { in mmc_read_ssr()
286 if (!(card->csd.cmdclass & CCC_SWITCH)) { in mmc_read_switch()
350 if (!(card->csd.cmdclass & CCC_SWITCH)) in mmc_sd_switch_hs()
593 if (!(card->csd.cmdclass & CCC_SWITCH)) in mmc_sd_init_uhs_card()
666 MMC_DEV_ATTR(csd, "%08x%08x%08x%08x\n", card->raw_csd[0], card->raw_csd[1],
696 if (card->csd.dsr_imp && host->dsr_req) in mmc_dsr_show()
939 } else if (max_dtr > card->csd.max_dtr) { in mmc_sd_get_max_clock()
940 max_dtr = card->csd.max_dtr; in mmc_sd_get_max_clock()
1012 if (card->csd.dsr_imp && host->dsr_req) in mmc_sd_init_card()