Lines Matching refs:host
30 uint32_t host_ocr = get_host_ocr(card->host.io_voltage); in sdmmc_init_ocr()
178 if ((card->host.flags & SDMMC_HOST_FLAG_4BIT) && in sdmmc_init_host_bus_width()
181 } else if ((card->host.flags & SDMMC_HOST_FLAG_8BIT) && in sdmmc_init_host_bus_width()
187 esp_err_t err = (*card->host.set_bus_width)(card->host.slot, bus_width); in sdmmc_init_host_bus_width()
198 assert(card->max_freq_khz <= card->host.max_freq_khz); in sdmmc_init_host_frequency()
223 esp_err_t err = (*card->host.set_card_clk)(card->host.slot, selected_freq); in sdmmc_init_host_frequency()
231 if (card->host.set_bus_ddr_mode == NULL) { in sdmmc_init_host_frequency()
235 esp_err_t err = (*card->host.set_bus_ddr_mode)(card->host.slot, true); in sdmmc_init_host_frequency()
298 int slot_bit_width = card->host.get_bus_width(card->host.slot); in sdmmc_fix_host_flags()
300 (card->host.flags & (width_4bit | width_8bit))) { in sdmmc_fix_host_flags()
301 card->host.flags &= ~width_mask; in sdmmc_fix_host_flags()
302 card->host.flags |= width_1bit; in sdmmc_fix_host_flags()
303 } else if (slot_bit_width == 4 && (card->host.flags & width_8bit)) { in sdmmc_fix_host_flags()
304 if ((card->host.flags & width_4bit) == 0) { in sdmmc_fix_host_flags()
306 card->host.flags &= ~width_mask; in sdmmc_fix_host_flags()
307 card->host.flags |= width_1bit; in sdmmc_fix_host_flags()
309 card->host.flags &= ~width_mask; in sdmmc_fix_host_flags()
310 card->host.flags |= width_4bit; in sdmmc_fix_host_flags()