Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/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.c240 esp_err_t sdmmc_send_cmd_set_blocklen(sdmmc_card_t* card, sdmmc_csd_t* csd) in sdmmc_send_cmd_set_blocklen() argument
244 .arg = csd->sector_size, in sdmmc_send_cmd_set_blocklen()
359 size_t block_size = card->csd.sector_size; in sdmmc_write_sectors()
389 if (start_block + block_count > card->csd.capacity) { in sdmmc_write_sectors_dma()
392 size_t block_size = card->csd.sector_size; in sdmmc_write_sectors_dma()
434 size_t block_size = card->csd.sector_size; in sdmmc_read_sectors()
464 if (start_block + block_count > card->csd.capacity) { in sdmmc_read_sectors_dma()
467 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-3.6.0/components/sdmmc/test/
Dtest_sd.c310 size_t block_size = card->csd.sector_size; in do_single_write_read_test()
384 do_single_write_read_test(card, card->csd.capacity - 64, 32, 4, no_log); in test_read_write_with_offset()
385 do_single_write_read_test(card, card->csd.capacity - 64, 64, 4, no_log); in test_read_write_with_offset()
386 do_single_write_read_test(card, card->csd.capacity - 8, 1, 4, no_log); in test_read_write_with_offset()
387 do_single_write_read_test(card, card->csd.capacity/2, 1, 4, no_log); in test_read_write_with_offset()
388 do_single_write_read_test(card, card->csd.capacity/2, 4, 4, no_log); in test_read_write_with_offset()
389 do_single_write_read_test(card, card->csd.capacity/2, 8, 4, no_log); in test_read_write_with_offset()
390 do_single_write_read_test(card, card->csd.capacity/2, 16, 4, no_log); in test_read_write_with_offset()
391 do_single_write_read_test(card, card->csd.capacity/2, 32, 4, no_log); in test_read_write_with_offset()
392 do_single_write_read_test(card, card->csd.capacity/2, 64, 4, no_log); in test_read_write_with_offset()
[all …]
/hal_espressif-3.6.0/components/fatfs/diskio/
Ddiskio_sdmmc.c78 *((DWORD*) buff) = card->csd.capacity; in ff_sdmmc_ioctl()
81 *((WORD*) buff) = card->csd.sector_size; in ff_sdmmc_ioctl()
/hal_espressif-3.6.0/components/driver/include/driver/
Dsdmmc_types.h174 sdmmc_csd_t csd; /*!< decoded CSD (Card-Specific Data) register value */ member
/hal_espressif-3.6.0/components/fatfs/vfs/
Dvfs_fat_sdmmc.c164 card->csd.sector_size, in partition_card()