Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/mmc/core/
Dmmc.c124 if (card->ext_csd.erase_group_def & 1) in mmc_set_erase_size()
125 card->erase_size = card->ext_csd.hc_erase_size; in mmc_set_erase_size()
190 u8 card_type = card->ext_csd.raw_card_type; in mmc_select_card_type()
244 card->ext_csd.strobe_support && in mmc_select_card_type()
248 card->ext_csd.hs_max_dtr = hs_max_dtr; in mmc_select_card_type()
249 card->ext_csd.hs200_max_dtr = hs200_max_dtr; in mmc_select_card_type()
253 static void mmc_manage_enhanced_area(struct mmc_card *card, u8 *ext_csd) in mmc_manage_enhanced_area() argument
260 card->ext_csd.enhanced_area_offset = -EINVAL; in mmc_manage_enhanced_area()
261 card->ext_csd.enhanced_area_size = -EINVAL; in mmc_manage_enhanced_area()
268 if ((ext_csd[EXT_CSD_PARTITION_SUPPORT] & 0x2) && in mmc_manage_enhanced_area()
[all …]
Dmmc_ops.c357 u8 *ext_csd; in mmc_get_ext_csd() local
369 ext_csd = kzalloc(512, GFP_KERNEL); in mmc_get_ext_csd()
370 if (!ext_csd) in mmc_get_ext_csd()
373 err = mmc_send_cxd_data(card, card->host, MMC_SEND_EXT_CSD, ext_csd, in mmc_get_ext_csd()
376 kfree(ext_csd); in mmc_get_ext_csd()
378 *new_ext_csd = ext_csd; in mmc_get_ext_csd()
805 if (!card->ext_csd.hpi) { in mmc_send_hpi_cmd()
811 opcode = card->ext_csd.hpi_cmd; in mmc_send_hpi_cmd()
846 if (!card->ext_csd.hpi_en) { in mmc_interrupt_hpi()
881 prg_wait = jiffies + msecs_to_jiffies(card->ext_csd.out_of_int_time); in mmc_interrupt_hpi()
[all …]
Dblock.c216 if (card->ext_csd.boot_ro_lock & EXT_CSD_BOOT_WP_B_PERM_WP_EN) in power_ro_lock_show()
218 else if (card->ext_csd.boot_ro_lock & EXT_CSD_BOOT_WP_B_PWR_WP_EN) in power_ro_lock_show()
597 card->ext_csd.part_config = value; in __mmc_blk_ioctl_cmd()
823 if (card->ext_csd.cmdq_en) { in mmc_blk_part_switch_pre()
841 if (card->reenable_cmdq && !card->ext_csd.cmdq_en) in mmc_blk_part_switch_post()
858 u8 part_config = card->ext_csd.part_config; in mmc_blk_part_switch()
869 card->ext_csd.part_time); in mmc_blk_part_switch()
875 card->ext_csd.part_config = part_config; in mmc_blk_part_switch()
1067 u8 **ext_csd; in mmc_blk_issue_drv_op() local
1090 card->ext_csd.boot_ro_lock | in mmc_blk_issue_drv_op()
[all …]
Dcore.c1872 (arg == MMC_TRIM_ARG && card->ext_csd.rev >= 6)) { in mmc_mmc_erase_timeout()
1873 erase_timeout = card->ext_csd.trim_timeout; in mmc_mmc_erase_timeout()
1874 } else if (card->ext_csd.erase_group_def & 1) { in mmc_mmc_erase_timeout()
1877 erase_timeout = card->ext_csd.trim_timeout; in mmc_mmc_erase_timeout()
1879 erase_timeout = card->ext_csd.hc_erase_timeout; in mmc_mmc_erase_timeout()
1913 erase_timeout *= card->ext_csd.sec_erase_mult; in mmc_mmc_erase_timeout()
1915 erase_timeout *= card->ext_csd.sec_trim_mult; in mmc_mmc_erase_timeout()
2185 !(card->ext_csd.sec_feature_support & EXT_CSD_SEC_ER_EN)) in mmc_erase()
2189 !(card->ext_csd.sec_feature_support & EXT_CSD_SEC_GB_CL_EN)) in mmc_erase()
2240 if ((card->ext_csd.sec_feature_support & EXT_CSD_SEC_GB_CL_EN) && in mmc_can_trim()
[all …]
Dquirks.h160 f->ext_csd_rev == card->ext_csd.rev) && in mmc_fixup_device()
Dqueue.c432 q_depth = min_t(int, card->ext_csd.cmdq_depth, host->cqe_qdepth); in mmc_mq_init()
Dmmc_test.c616 return card->ext_csd.sectors; in mmc_test_capacity()
2328 if (card->ext_csd.cmdq_en) in mmc_test_reset()
3240 if (card->ext_csd.cmdq_en) {
/Linux-v4.19/include/linux/mmc/
Dcard.h288 struct mmc_ext_csd ext_csd; /* mmc v4 extended card specific */ member
315 return card->ext_csd.data_sector_size == 4096; in mmc_large_sector()