Home
last modified time | relevance | path

Searched refs:raw_csd (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.5.0/drivers/disk/
Dsdmmc_sdhc.h591 uint32_t *raw_csd, uint32_t *blk_cout, uint32_t *blk_size) in sdhc_decode_csd() argument
595 csd->csd_structure = (uint8_t)((raw_csd[3U] & in sdhc_decode_csd()
597 csd->read_time1 = (uint8_t)((raw_csd[3U] & in sdhc_decode_csd()
599 csd->read_time2 = (uint8_t)((raw_csd[3U] & in sdhc_decode_csd()
601 csd->xfer_rate = (uint8_t)(raw_csd[3U] & in sdhc_decode_csd()
603 csd->cmd_class = (uint16_t)((raw_csd[2U] & in sdhc_decode_csd()
605 csd->read_blk_len = (uint8_t)((raw_csd[2U] & in sdhc_decode_csd()
607 if (raw_csd[2U] & 0x8000U) in sdhc_decode_csd()
609 if (raw_csd[2U] & 0x4000U) in sdhc_decode_csd()
611 if (raw_csd[2U] & 0x2000U) in sdhc_decode_csd()
[all …]
/Zephyr-Core-3.5.0/subsys/sd/
Dsd_ops.c83 static inline void sdmmc_decode_csd(struct sd_csd *csd, uint32_t *raw_csd, uint32_t *blk_count, in sdmmc_decode_csd() argument
89 csd->csd_structure = (uint8_t)((raw_csd[3U] & 0xC0000000U) >> 30U); in sdmmc_decode_csd()
90 csd->read_time1 = (uint8_t)((raw_csd[3U] & 0xFF0000U) >> 16U); in sdmmc_decode_csd()
91 csd->read_time2 = (uint8_t)((raw_csd[3U] & 0xFF00U) >> 8U); in sdmmc_decode_csd()
92 csd->xfer_rate = (uint8_t)(raw_csd[3U] & 0xFFU); in sdmmc_decode_csd()
93 csd->cmd_class = (uint16_t)((raw_csd[2U] & 0xFFF00000U) >> 20U); in sdmmc_decode_csd()
94 csd->read_blk_len = (uint8_t)((raw_csd[2U] & 0xF0000U) >> 16U); in sdmmc_decode_csd()
95 if (raw_csd[2U] & 0x8000U) { in sdmmc_decode_csd()
98 if (raw_csd[2U] & 0x4000U) { in sdmmc_decode_csd()
101 if (raw_csd[2U] & 0x2000U) { in sdmmc_decode_csd()
[all …]
Dmmc.c80 static inline void mmc_decode_csd(struct sd_csd *csd, uint32_t *raw_csd);
315 static inline void mmc_decode_csd(struct sd_csd *csd, uint32_t *raw_csd) in mmc_decode_csd() argument
317 csd->csd_structure = (uint8_t)((raw_csd[3U] & 0xC0000000U) >> 30U); in mmc_decode_csd()
318 csd->read_time1 = (uint8_t)((raw_csd[3U] & 0xFF0000U) >> 16U); in mmc_decode_csd()
319 csd->read_time2 = (uint8_t)((raw_csd[3U] & 0xFF00U) >> 8U); in mmc_decode_csd()
320 csd->xfer_rate = (uint8_t)(raw_csd[3U] & 0xFFU); in mmc_decode_csd()
321 csd->cmd_class = (uint16_t)((raw_csd[2U] & 0xFFF00000U) >> 20U); in mmc_decode_csd()
322 csd->read_blk_len = (uint8_t)((raw_csd[2U] & 0xF0000U) >> 16U); in mmc_decode_csd()
323 if (raw_csd[2U] & 0x8000U) { in mmc_decode_csd()
326 if (raw_csd[2U] & 0x4000U) { in mmc_decode_csd()
[all …]