Home
last modified time | relevance | path

Searched refs:csd (Results 1 – 9 of 9) sorted by relevance

/hal_espressif-2.7.6/components/sdmmc/
Dsdmmc_common.c117 err = sdmmc_mmc_decode_cid(card->csd.mmc_ver, raw_cid, &card->cid); in sdmmc_init_mmc_decode_cid()
129 esp_err_t err = sdmmc_send_cmd_send_csd(card, &card->csd); in sdmmc_init_csd()
134 const size_t max_sdsc_capacity = UINT32_MAX / card->csd.sector_size + 1; in sdmmc_init_csd()
136 card->csd.capacity > max_sdsc_capacity) { in sdmmc_init_csd()
138 __func__, card->csd.capacity, max_sdsc_capacity); in sdmmc_init_csd()
139 card->csd.capacity = max_sdsc_capacity; in sdmmc_init_csd()
279 …fprintf(stream, "Size: %lluMB\n", ((uint64_t) card->csd.capacity) * card->csd.sector_size / (1024 … in sdmmc_card_print_info()
283 card->csd.csd_ver, in sdmmc_card_print_info()
284 card->csd.sector_size, card->csd.capacity, card->csd.read_block_len); in sdmmc_card_print_info()
Dsdmmc_mmc.c37 ESP_LOGD(TAG, "MMC version: %d", card->csd.mmc_ver); in sdmmc_init_mmc_read_ext_csd()
38 if (card->csd.mmc_ver < MMC_CSD_MMCVER_4_0) { in sdmmc_init_mmc_read_ext_csd()
68 card->csd.tr_speed = card->max_freq_khz * 1000; in sdmmc_init_mmc_read_ext_csd()
91 card->csd.capacity = sectors; in sdmmc_init_mmc_read_ext_csd()
247 sdmmc_csd_t csd; in sdmmc_init_mmc_check_csd() local
250 err = sdmmc_send_cmd_send_csd(card, &csd); in sdmmc_init_mmc_check_csd()
Dsdmmc_sd.c51 esp_err_t err = sdmmc_send_cmd_set_blocklen(card, &card->csd); in sdmmc_init_sd_blocklen()
122 ((card->csd.card_command_class & SD_CSD_CCC_SWITCH) == 0)) { in sdmmc_send_cmd_switch_func()
180 ((card->csd.card_command_class & SD_CSD_CCC_SWITCH) == 0)) { in sdmmc_enable_hs_mode()
240 err = sdmmc_send_cmd_send_csd(card, &card->csd); in sdmmc_enable_hs_mode_and_check()
253 if (card->csd.tr_speed != 50000000) { in sdmmc_enable_hs_mode_and_check()
254 ESP_LOGW(TAG, "unexpected: after enabling HS mode, tr_speed=%d", card->csd.tr_speed); in sdmmc_enable_hs_mode_and_check()
Dsdmmc_cmd.c251 esp_err_t sdmmc_send_cmd_set_blocklen(sdmmc_card_t* card, sdmmc_csd_t* csd) in sdmmc_send_cmd_set_blocklen() argument
255 .arg = csd->sector_size, in sdmmc_send_cmd_set_blocklen()
370 size_t block_size = card->csd.sector_size; in sdmmc_write_sectors()
400 if (start_block + block_count > card->csd.capacity) { in sdmmc_write_sectors_dma()
403 size_t block_size = card->csd.sector_size; in sdmmc_write_sectors_dma()
445 size_t block_size = card->csd.sector_size; in sdmmc_read_sectors()
475 if (start_block + block_count > card->csd.capacity) { in sdmmc_read_sectors_dma()
478 size_t block_size = card->csd.sector_size; in sdmmc_read_sectors_dma()
Dsdmmc_common.h57 esp_err_t sdmmc_send_cmd_set_blocklen(sdmmc_card_t* card, sdmmc_csd_t* csd);
/hal_espressif-2.7.6/components/sdmmc/test/
Dtest_sd.c274 size_t block_size = card->csd.sector_size; in do_single_write_read_test()
316 do_single_write_read_test(card, card->csd.capacity - 64, 32, 4); in read_write_test()
317 do_single_write_read_test(card, card->csd.capacity - 64, 64, 4); in read_write_test()
318 do_single_write_read_test(card, card->csd.capacity - 8, 1, 4); in read_write_test()
319 do_single_write_read_test(card, card->csd.capacity/2, 1, 4); in read_write_test()
320 do_single_write_read_test(card, card->csd.capacity/2, 4, 4); in read_write_test()
321 do_single_write_read_test(card, card->csd.capacity/2, 8, 4); in read_write_test()
322 do_single_write_read_test(card, card->csd.capacity/2, 16, 4); in read_write_test()
323 do_single_write_read_test(card, card->csd.capacity/2, 32, 4); in read_write_test()
324 do_single_write_read_test(card, card->csd.capacity/2, 64, 4); in read_write_test()
[all …]
/hal_espressif-2.7.6/components/fatfs/diskio/
Ddiskio_sdmmc.c68 *((DWORD*) buff) = card->csd.capacity; in ff_sdmmc_ioctl()
71 *((WORD*) buff) = card->csd.sector_size; in ff_sdmmc_ioctl()
/hal_espressif-2.7.6/components/driver/include/driver/
Dsdmmc_types.h168 sdmmc_csd_t csd; /*!< decoded CSD (Card-Specific Data) register value */ member
/hal_espressif-2.7.6/components/fatfs/vfs/
Dvfs_fat_sdmmc.c164 card->csd.sector_size, in partition_card()