Lines Matching refs:ios
1332 const struct mmc_ios *ios; local
1339 ios = &slot->host.ios;
1343 if (ios->clock > SD_SDR50_MAX) {
1344 if (ios->timing == bus_timing_mmc_hs400 ||
1345 ios->timing == bus_timing_mmc_hs400es)
1350 else if (ios->clock > SD_SDR25_MAX)
1352 else if (ios->clock > SD_SDR12_MAX) {
1353 if (ios->timing == bus_timing_uhs_ddr50 ||
1354 ios->timing == bus_timing_mmc_ddr52)
1358 } else if (ios->clock > SD_MMC_CARD_ID_FREQUENCY)
1361 sdhci_set_clock(slot, ios->clock);
1368 struct mmc_ios *ios = &slot->host.ios; local
1372 if (ios->power_mode == power_off) {
1377 sdhci_set_clock(slot, ios->clock);
1378 sdhci_set_power(slot, (ios->power_mode == power_off) ? 0 : ios->vdd);
1379 if (ios->bus_width == bus_width_8) {
1382 } else if (ios->bus_width == bus_width_4) {
1385 } else if (ios->bus_width == bus_width_1) {
1389 panic("Invalid bus width: %d", ios->bus_width);
1391 if (ios->clock > SD_SDR12_MAX &&
1419 vccq = slot->host.ios.vccq;
1457 sdhci_set_clock(slot, slot->host.ios.clock);
1466 const struct mmc_ios *ios = &slot->host.ios; local
1478 switch (ios->timing) {
1514 ios->bus_width == bus_width_8) ? MMC_TUNING_LEN_HS200 :
1545 if (slot->host.ios.timing == bus_timing_mmc_hs400)
2447 *result = slot->host.ios.bus_mode;
2450 *result = slot->host.ios.bus_width;
2453 *result = slot->host.ios.chip_select;
2456 *result = slot->host.ios.clock;
2474 *result = slot->host.ios.power_mode;
2477 *result = slot->host.ios.vdd;
2493 *result = slot->host.ios.vccq;
2499 *result = slot->host.ios.timing;
2538 slot->host.ios.bus_mode = value;
2541 slot->host.ios.bus_width = value;
2544 slot->host.ios.chip_select = value;
2567 slot->host.ios.clock = clock;
2569 slot->host.ios.clock = 0;
2578 slot->host.ios.power_mode = value;
2581 slot->host.ios.vdd = value;
2584 slot->host.ios.vccq = value;
2587 slot->host.ios.timing = value;
2696 memcpy(&cts->proto_specific.mmc.ios, &slot->host.ios, sizeof(struct mmc_ios));
2769 struct mmc_ios *ios; local
2773 ios = &slot->host.ios;
2775 new_ios = &cts->ios;
2779 ios->clock = sdhci_cam_get_possible_host_clock(slot, new_ios->clock);
2781 slot_printf(slot, "Clock => %d\n", ios->clock);
2784 ios->vdd = new_ios->vdd;
2786 slot_printf(slot, "VDD => %d\n", ios->vdd);
2789 ios->chip_select = new_ios->chip_select;
2791 slot_printf(slot, "CS => %d\n", ios->chip_select);
2794 ios->bus_width = new_ios->bus_width;
2796 slot_printf(slot, "Bus width => %d\n", ios->bus_width);
2799 ios->power_mode = new_ios->power_mode;
2801 slot_printf(slot, "Power mode => %d\n", ios->power_mode);
2804 ios->timing = new_ios->timing;
2806 slot_printf(slot, "Timing => %d\n", ios->timing);
2809 ios->bus_mode = new_ios->bus_mode;
2811 slot_printf(slot, "Bus mode => %d\n", ios->bus_mode);
2814 ios->vccq = new_ios->vccq;
2816 slot_printf(slot, "VCCQ => %d\n", ios->vccq);
2826 struct mmc_ios *ios = &slot->host.ios; local
2830 __func__, ios->power_mode, ios->clock, ios->bus_width, ios->timing);
2833 if (ios->power_mode == power_off) {
2838 sdhci_set_clock(slot, ios->clock);
2839 sdhci_set_power(slot, (ios->power_mode == power_off) ? 0 : ios->vdd);
2840 if (ios->bus_width == bus_width_8) {
2843 } else if (ios->bus_width == bus_width_4) {
2846 } else if (ios->bus_width == bus_width_1) {
2850 panic("Invalid bus width: %d", ios->bus_width);
2852 if (ios->timing == bus_timing_hs &&