Home
last modified time | relevance | path

Searched refs:ext_csd (Results 1 – 8 of 8) sorted by relevance

/linux-2.6.39/drivers/mmc/core/
Dmmc.c113 if (card->ext_csd.erase_group_def & 1) in mmc_set_erase_size()
114 card->erase_size = card->ext_csd.hc_erase_size; in mmc_set_erase_size()
181 u8 *ext_csd; in mmc_read_ext_csd() local
192 ext_csd = kmalloc(512, GFP_KERNEL); in mmc_read_ext_csd()
193 if (!ext_csd) { in mmc_read_ext_csd()
199 err = mmc_send_ext_csd(card, ext_csd); in mmc_read_ext_csd()
230 int ext_csd_struct = ext_csd[EXT_CSD_STRUCTURE]; in mmc_read_ext_csd()
240 card->ext_csd.rev = ext_csd[EXT_CSD_REV]; in mmc_read_ext_csd()
241 if (card->ext_csd.rev > 5) { in mmc_read_ext_csd()
243 mmc_hostname(card->host), card->ext_csd.rev); in mmc_read_ext_csd()
[all …]
Ddebugfs.c231 u8 *ext_csd; in mmc_ext_csd_open() local
238 ext_csd = kmalloc(512, GFP_KERNEL); in mmc_ext_csd_open()
239 if (!ext_csd) { in mmc_ext_csd_open()
245 err = mmc_send_ext_csd(card, ext_csd); in mmc_ext_csd_open()
251 n += sprintf(buf + n, "%02x", ext_csd[i]); in mmc_ext_csd_open()
256 kfree(ext_csd); in mmc_ext_csd_open()
261 kfree(ext_csd); in mmc_ext_csd_open()
Dcore.c1168 } else if (card->ext_csd.hc_erase_size) { in mmc_init_erase()
1169 card->pref_erase = card->ext_csd.hc_erase_size; in mmc_init_erase()
1196 if (card->ext_csd.erase_group_def & 1) { in mmc_set_mmc_erase_timeout()
1199 erase_timeout = card->ext_csd.trim_timeout; in mmc_set_mmc_erase_timeout()
1201 erase_timeout = card->ext_csd.hc_erase_timeout; in mmc_set_mmc_erase_timeout()
1235 erase_timeout *= card->ext_csd.sec_erase_mult; in mmc_set_mmc_erase_timeout()
1237 erase_timeout *= card->ext_csd.sec_trim_mult; in mmc_set_mmc_erase_timeout()
1410 !(card->ext_csd.sec_feature_support & EXT_CSD_SEC_ER_EN)) in mmc_erase()
1414 !(card->ext_csd.sec_feature_support & EXT_CSD_SEC_GB_CL_EN)) in mmc_erase()
1463 if (card->ext_csd.sec_feature_support & EXT_CSD_SEC_GB_CL_EN) in mmc_can_trim()
[all …]
Dmmc_ops.h22 int mmc_send_ext_csd(struct mmc_card *card, u8 *ext_csd);
Dmmc_ops.c89 mmc_delay(DIV_ROUND_UP(card->ext_csd.sa_timeout, 10000)); in mmc_card_sleepawake()
350 int mmc_send_ext_csd(struct mmc_card *card, u8 *ext_csd) in mmc_send_ext_csd() argument
353 ext_csd, 512); in mmc_send_ext_csd()
/linux-2.6.39/include/linux/mmc/
Dcard.h139 struct mmc_ext_csd ext_csd; /* mmc v4 extended card specific */ member
/linux-2.6.39/drivers/mmc/card/
Dblock.c648 set_capacity(md->disk, card->ext_csd.sectors); in mmc_blk_alloc()
Dmmc_test.c577 return card->ext_csd.sectors; in mmc_test_capacity()