Lines Matching refs:ext_csd
162 u8 *ext_csd;
172 * As the ext_csd is so large and mostly unused, we don't store the
175 ext_csd = kmalloc(512, GFP_KERNEL);
176 if (!ext_csd) {
178 "receive the ext_csd. mmc v4 cards will be "
183 err = mmc_send_ext_csd(card, ext_csd);
204 card->ext_csd.sectors =
205 ext_csd[EXT_CSD_SEC_CNT + 0] << 0 |
206 ext_csd[EXT_CSD_SEC_CNT + 1] << 8 |
207 ext_csd[EXT_CSD_SEC_CNT + 2] << 16 |
208 ext_csd[EXT_CSD_SEC_CNT + 3] << 24;
209 if (card->ext_csd.sectors)
212 switch (ext_csd[EXT_CSD_CARD_TYPE]) {
214 card->ext_csd.hs_max_dtr = 52000000;
217 card->ext_csd.hs_max_dtr = 26000000;
228 kfree(ext_csd);
332 if ((card->ext_csd.hs_max_dtr != 0) &&
350 if (max_dtr > card->ext_csd.hs_max_dtr)
351 max_dtr = card->ext_csd.hs_max_dtr;