• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/sdhci/

Lines Matching refs:ios

1234 	const struct mmc_ios *ios;
1241 ios = &slot->host.ios;
1245 if (ios->clock > SD_SDR50_MAX) {
1246 if (ios->timing == bus_timing_mmc_hs400 ||
1247 ios->timing == bus_timing_mmc_hs400es)
1252 else if (ios->clock > SD_SDR25_MAX)
1254 else if (ios->clock > SD_SDR12_MAX) {
1255 if (ios->timing == bus_timing_uhs_ddr50 ||
1256 ios->timing == bus_timing_mmc_ddr52)
1260 } else if (ios->clock > SD_MMC_CARD_ID_FREQUENCY)
1263 sdhci_set_clock(slot, ios->clock);
1270 struct mmc_ios *ios = &slot->host.ios;
1274 if (ios->power_mode == power_off) {
1279 sdhci_set_clock(slot, ios->clock);
1280 sdhci_set_power(slot, (ios->power_mode == power_off) ? 0 : ios->vdd);
1281 if (ios->bus_width == bus_width_8) {
1284 } else if (ios->bus_width == bus_width_4) {
1287 } else if (ios->bus_width == bus_width_1) {
1291 panic("Invalid bus width: %d", ios->bus_width);
1293 if (ios->clock > SD_SDR12_MAX &&
1320 vccq = slot->host.ios.vccq;
1358 sdhci_set_clock(slot, slot->host.ios.clock);
1367 const struct mmc_ios *ios = &slot->host.ios;
1379 switch (ios->timing) {
1413 ios->bus_width == bus_width_8) ? MMC_TUNING_LEN_HS200 :
1444 if (slot->host.ios.timing == bus_timing_mmc_hs400)
2333 *result = slot->host.ios.bus_mode;
2336 *result = slot->host.ios.bus_width;
2339 *result = slot->host.ios.chip_select;
2342 *result = slot->host.ios.clock;
2360 *result = slot->host.ios.power_mode;
2363 *result = slot->host.ios.vdd;
2379 *result = slot->host.ios.vccq;
2385 *result = slot->host.ios.timing;
2424 slot->host.ios.bus_mode = value;
2427 slot->host.ios.bus_width = value;
2430 slot->host.ios.chip_select = value;
2453 slot->host.ios.clock = clock;
2455 slot->host.ios.clock = 0;
2464 slot->host.ios.power_mode = value;
2467 slot->host.ios.vdd = value;
2470 slot->host.ios.vccq = value;
2473 slot->host.ios.timing = value;
2601 memcpy(&cts->proto_specific.mmc.ios, &slot->host.ios, sizeof(struct mmc_ios));
2677 struct mmc_ios *ios;
2681 ios = &slot->host.ios;
2683 new_ios = &cts->ios;
2687 ios->clock = sdhci_cam_get_possible_host_clock(slot, new_ios->clock);
2688 slot_printf(slot, "Clock => %d\n", ios->clock);
2691 ios->vdd = new_ios->vdd;
2692 slot_printf(slot, "VDD => %d\n", ios->vdd);
2695 ios->chip_select = new_ios->chip_select;
2696 slot_printf(slot, "CS => %d\n", ios->chip_select);
2699 ios->bus_width = new_ios->bus_width;
2700 slot_printf(slot, "Bus width => %d\n", ios->bus_width);
2703 ios->power_mode = new_ios->power_mode;
2704 slot_printf(slot, "Power mode => %d\n", ios->power_mode);
2707 ios->timing = new_ios->timing;
2708 slot_printf(slot, "Timing => %d\n", ios->timing);
2711 ios->bus_mode = new_ios->bus_mode;
2712 slot_printf(slot, "Bus mode => %d\n", ios->bus_mode);
2722 struct mmc_ios *ios = &slot->host.ios;
2725 __func__, ios->power_mode, ios->clock, ios->bus_width, ios->timing);
2728 if (ios->power_mode == power_off) {
2733 sdhci_set_clock(slot, ios->clock);
2734 sdhci_set_power(slot, (ios->power_mode == power_off) ? 0 : ios->vdd);
2735 if (ios->bus_width == bus_width_8) {
2738 } else if (ios->bus_width == bus_width_4) {
2741 } else if (ios->bus_width == bus_width_1) {
2745 panic("Invalid bus width: %d", ios->bus_width);
2747 if (ios->timing == bus_timing_hs &&