Lines Matching full:ios
874 struct mmc_ios *ios;
879 ios = &sc->host.ios;
882 ios->clock, ios->bus_width, ios->timing);
884 switch (ios->power_mode) {
895 mmc_fdt_set_power(&sc->mmc_helper, ios->power_mode);
897 if (ios->bus_width == bus_width_8)
899 else if (ios->bus_width == bus_width_4)
911 if (ios->timing == bus_timing_uhs_ddr50 ||
912 ios->timing == bus_timing_mmc_ddr52 ||
913 ios->timing == bus_timing_mmc_hs400)
920 ret = sc->update_ios(sc, ios);
922 dwmmc_setup_bus(sc, ios->clock);
1320 *(int *)result = sc->host.ios.bus_mode;
1323 *(int *)result = sc->host.ios.bus_width;
1326 *(int *)result = sc->host.ios.chip_select;
1329 *(int *)result = sc->host.ios.clock;
1347 *(int *)result = sc->host.ios.power_mode;
1350 *(int *)result = sc->host.ios.vdd;
1353 *(int *)result = sc->host.ios.vccq;
1362 *(int *)result = sc->host.ios.timing;
1379 sc->host.ios.bus_mode = value;
1382 sc->host.ios.bus_width = value;
1385 sc->host.ios.chip_select = value;
1388 sc->host.ios.clock = value;
1397 sc->host.ios.power_mode = value;
1400 sc->host.ios.vdd = value;
1403 sc->host.ios.timing = value;
1406 sc->host.ios.vccq = value;
1440 memcpy(&cts->ios, &sc->host.ios, sizeof(struct mmc_ios));
1449 struct mmc_ios *ios;
1454 ios = &sc->host.ios;
1456 new_ios = &cts->ios;
1460 ios->clock = new_ios->clock;
1462 device_printf(sc->dev, "Clock => %d\n", ios->clock);
1465 ios->vdd = new_ios->vdd;
1467 device_printf(sc->dev, "VDD => %d\n", ios->vdd);
1470 ios->chip_select = new_ios->chip_select;
1472 device_printf(sc->dev, "CS => %d\n", ios->chip_select);
1475 ios->bus_width = new_ios->bus_width;
1477 device_printf(sc->dev, "Bus width => %d\n", ios->bus_width);
1480 ios->power_mode = new_ios->power_mode;
1482 device_printf(sc->dev, "Power mode => %d\n", ios->power_mode);
1485 ios->timing = new_ios->timing;
1487 device_printf(sc->dev, "Timing => %d\n", ios->timing);
1490 ios->bus_mode = new_ios->bus_mode;
1492 device_printf(sc->dev, "Bus mode => %d\n", ios->bus_mode);
1495 ios->vccq = new_ios->vccq;
1497 device_printf(sc->dev, "VCCQ => %d\n", ios->vccq);