Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/drivers/disk/
Dsdmmc_sdhc.h590 static inline void sdhc_decode_csd(struct sd_csd *csd, 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()
608 csd->flags |= SD_CSD_READ_BLK_PARTIAL_FLAG; in sdhc_decode_csd()
610 csd->flags |= SD_CSD_READ_BLK_PARTIAL_FLAG; in sdhc_decode_csd()
612 csd->flags |= SD_CSD_READ_BLK_MISALIGN_FLAG; in sdhc_decode_csd()
[all …]
/Zephyr-Core-3.6.0/subsys/sd/
Dsd_ops.c92 static inline void sdmmc_decode_csd(struct sd_csd *csd, uint32_t *raw_csd, uint32_t *blk_count, in sdmmc_decode_csd() argument
98 csd->csd_structure = (uint8_t)((raw_csd[3U] & 0xC0000000U) >> 30U); in sdmmc_decode_csd()
99 csd->read_time1 = (uint8_t)((raw_csd[3U] & 0xFF0000U) >> 16U); in sdmmc_decode_csd()
100 csd->read_time2 = (uint8_t)((raw_csd[3U] & 0xFF00U) >> 8U); in sdmmc_decode_csd()
101 csd->xfer_rate = (uint8_t)(raw_csd[3U] & 0xFFU); in sdmmc_decode_csd()
102 csd->cmd_class = (uint16_t)((raw_csd[2U] & 0xFFF00000U) >> 20U); in sdmmc_decode_csd()
103 csd->read_blk_len = (uint8_t)((raw_csd[2U] & 0xF0000U) >> 16U); in sdmmc_decode_csd()
105 csd->flags |= SD_CSD_READ_BLK_PARTIAL_FLAG; in sdmmc_decode_csd()
108 csd->flags |= SD_CSD_READ_BLK_PARTIAL_FLAG; in sdmmc_decode_csd()
111 csd->flags |= SD_CSD_READ_BLK_MISALIGN_FLAG; 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()
324 csd->flags |= SD_CSD_READ_BLK_PARTIAL_FLAG; in mmc_decode_csd()
327 csd->flags |= SD_CSD_READ_BLK_PARTIAL_FLAG; in mmc_decode_csd()
[all …]