Lines Matching refs:host_io

44 	struct sdhc_io host_io;  member
328 memcpy(&ios, &data->host_io, sizeof(ios)); in rcar_mmc_reset()
329 memset(&data->host_io, 0, sizeof(ios)); in rcar_mmc_reset()
331 data->host_io.power_mode = ios.power_mode; in rcar_mmc_reset()
350 data->host_io.bus_width = SDHC_BUS_WIDTH4BIT; in rcar_mmc_reset()
351 data->host_io.timing = SDHC_TIMING_LEGACY; in rcar_mmc_reset()
763 if (data->block_size == 1 && dev_data->host_io.bus_width == SDHC_BUS_WIDTH8BIT) { in rcar_mmc_sd_buf_rx_tx_data()
1017 static int rcar_mmc_change_voltage(const struct mmc_rcar_cfg *cfg, struct sdhc_io *host_io, in rcar_mmc_change_voltage() argument
1023 if (!ios->signal_voltage || ios->signal_voltage == host_io->signal_voltage) { in rcar_mmc_change_voltage()
1053 host_io->signal_voltage = ios->signal_voltage; in rcar_mmc_change_voltage()
1097 struct sdhc_io *host_io = &data->host_io; in rcar_mmc_set_clk_rate() local
1099 if (host_io->clock == ios->clock) { in rcar_mmc_set_clk_rate()
1104 host_io->clock = 0; in rcar_mmc_set_clk_rate()
1140 host_io->clock = ios->clock; in rcar_mmc_set_clk_rate()
1163 host_io->clock = ios->clock; in rcar_mmc_set_clk_rate()
1193 struct sdhc_io *host_io = &data->host_io; in rcar_mmc_set_bus_width() local
1196 if (host_io->bus_width == ios->bus_width) { in rcar_mmc_set_bus_width()
1243 host_io->bus_width = ios->bus_width; in rcar_mmc_set_bus_width()
1245 LOG_DBG("%s: set bus-width to %d", dev->name, host_io->bus_width); in rcar_mmc_set_bus_width()
1301 struct sdhc_io *host_io = &data->host_io; in rcar_mmc_set_timings() local
1302 enum sd_voltage new_voltage = host_io->signal_voltage; in rcar_mmc_set_timings()
1304 if (host_io->timing == ios->timing) { in rcar_mmc_set_timings()
1308 if (!host_io->timing) { in rcar_mmc_set_timings()
1361 if (rcar_mmc_change_voltage(dev->config, host_io, ios)) { in rcar_mmc_set_timings()
1370 host_io->timing = ios->timing; in rcar_mmc_set_timings()
1393 struct sdhc_io *host_io; in rcar_mmc_set_io() local
1400 host_io = &data->host_io; in rcar_mmc_set_io()
1412 host_io->clock, ios->clock); in rcar_mmc_set_io()
1456 host_io->bus_mode = ios->bus_mode; in rcar_mmc_set_io()
1459 if (ios->power_mode && host_io->power_mode != ios->power_mode) { in rcar_mmc_set_io()
1504 host_io->power_mode = ios->power_mode; in rcar_mmc_set_io()
1510 host_io->bus_width, ios->bus_width); in rcar_mmc_set_io()
1517 host_io->timing, ios->timing); in rcar_mmc_set_io()
1521 ret = rcar_mmc_change_voltage(dev->config, host_io, ios); in rcar_mmc_set_io()
1524 host_io->signal_voltage, ios->signal_voltage); in rcar_mmc_set_io()
1633 if (dev_data->host_io.timing == SDHC_TIMING_HS200) { in rcar_mmc_execute_tuning()
1636 } else if (dev_data->host_io.timing != SDHC_TIMING_HS400) { in rcar_mmc_execute_tuning()
1650 if (dev_data->host_io.bus_width == SDHC_BUS_WIDTH4BIT) { in rcar_mmc_execute_tuning()
1653 } else if (dev_data->host_io.bus_width == SDHC_BUS_WIDTH8BIT) { in rcar_mmc_execute_tuning()