Lines Matching refs:g_mmc
61 static mmc_card_t g_mmc; variable
73 if (kStatus_Success != MMC_WriteBlocks(&g_mmc, buffer, sector, count)) { in mmc_disk_write()
86 if (kStatus_Success != MMC_ReadBlocks(&g_mmc, buffer, sector, count)) { in mmc_disk_read()
104 *(uint32_t *)buffer = g_mmc.userPartitionBlocks; in mmc_disk_ioctl()
113 *(uint32_t *)buffer = g_mmc.block_size; in mmc_disk_ioctl()
122 *(uint32_t *)buffer = g_mmc.eraseGroupBlocks; in mmc_disk_ioctl()
157 g_mmc.host.base = MMC_HOST_BASEADDR; in mmc_disk_initialize()
158 g_mmc.host.source_clock_hz = MMC_HOST_CLK_FREQ; in mmc_disk_initialize()
166 g_mmc.hostVoltageWindowVCC = BOARD_MMC_VCC_SUPPLY; in mmc_disk_initialize()
168 if (kStatus_Success != MMC_Init(&g_mmc)) { in mmc_disk_initialize()
169 MMC_Deinit(&g_mmc); in mmc_disk_initialize()
170 memset(&g_mmc, 0U, sizeof(g_mmc)); in mmc_disk_initialize()