Lines Matching refs:ios
289 static int imx_usdhc_set_io(const struct device *dev, struct sdhc_io *ios) in imx_usdhc_set_io() argument
297 ios->bus_width, in imx_usdhc_set_io()
298 ios->clock, in imx_usdhc_set_io()
299 ios->power_mode == SDHC_POWER_ON ? "ON" : "OFF", in imx_usdhc_set_io()
300 ios->signal_voltage == SD_VOL_1_8_V ? "1.8V" : "3.3V" in imx_usdhc_set_io()
309 if (ios->clock && (ios->clock > data->props.f_max || ios->clock < data->props.f_min)) { in imx_usdhc_set_io()
314 if (host_io->clock != ios->clock) { in imx_usdhc_set_io()
315 if (ios->clock != 0) { in imx_usdhc_set_io()
317 bus_clk = USDHC_SetSdClock(cfg->base, src_clk_hz, ios->clock); in imx_usdhc_set_io()
323 host_io->clock = ios->clock; in imx_usdhc_set_io()
328 if (host_io->bus_width != ios->bus_width) { in imx_usdhc_set_io()
329 switch (ios->bus_width) { in imx_usdhc_set_io()
342 host_io->bus_width = ios->bus_width; in imx_usdhc_set_io()
346 if (ios->signal_voltage != host_io->signal_voltage) { in imx_usdhc_set_io()
347 switch (ios->signal_voltage) { in imx_usdhc_set_io()
378 host_io->signal_voltage = ios->signal_voltage; in imx_usdhc_set_io()
382 if ((host_io->power_mode != ios->power_mode) && (cfg->pwr_gpio.port)) { in imx_usdhc_set_io()
383 if (ios->power_mode == SDHC_POWER_OFF) { in imx_usdhc_set_io()
385 } else if (ios->power_mode == SDHC_POWER_ON) { in imx_usdhc_set_io()
388 host_io->power_mode = ios->power_mode; in imx_usdhc_set_io()
392 if (host_io->timing != ios->timing) { in imx_usdhc_set_io()
393 switch (ios->timing) { in imx_usdhc_set_io()
426 host_io->timing = ios->timing; in imx_usdhc_set_io()