Lines Matching refs:intel_host
447 struct intel_host { struct
463 static int __intel_dsm(struct intel_host *intel_host, struct device *dev, in __intel_dsm() argument
489 static int intel_dsm(struct intel_host *intel_host, struct device *dev, in intel_dsm() argument
492 if (fn > 31 || !(intel_host->dsm_fns & (1 << fn))) in intel_dsm()
495 return __intel_dsm(intel_host, dev, fn, result); in intel_dsm()
498 static void intel_dsm_init(struct intel_host *intel_host, struct device *dev, in intel_dsm_init() argument
504 intel_host->d3_retune = true; in intel_dsm_init()
506 err = __intel_dsm(intel_host, dev, INTEL_DSM_FNS, &intel_host->dsm_fns); in intel_dsm_init()
514 mmc_hostname(mmc), intel_host->dsm_fns); in intel_dsm_init()
516 err = intel_dsm(intel_host, dev, INTEL_DSM_DRV_STRENGTH, &val); in intel_dsm_init()
517 intel_host->drv_strength = err ? 0 : val; in intel_dsm_init()
519 err = intel_dsm(intel_host, dev, INTEL_DSM_D3_RETUNE, &val); in intel_dsm_init()
520 intel_host->d3_retune = err ? true : !!val; in intel_dsm_init()
544 struct intel_host *intel_host = sdhci_pci_priv(slot); in intel_select_drive_strength() local
546 if (!(mmc_driver_type_mask(intel_host->drv_strength) & card_drv)) in intel_select_drive_strength()
549 return intel_host->drv_strength; in intel_select_drive_strength()
574 struct intel_host *intel_host = sdhci_pci_priv(slot); in sdhci_intel_set_power() local
584 if (intel_host->needs_pwr_off) { in sdhci_intel_set_power()
585 intel_host->needs_pwr_off = false; in sdhci_intel_set_power()
643 struct intel_host *intel_host = sdhci_pci_priv(slot); in intel_start_signal_voltage_switch() local
663 err = intel_dsm(intel_host, dev, fn, &result); in intel_start_signal_voltage_switch()
693 struct intel_host *intel_host = sdhci_pci_priv(slot); in byt_read_dsm() local
697 intel_dsm_init(intel_host, dev, mmc); in byt_read_dsm()
698 slot->chip->rpm_retune = intel_host->d3_retune; in byt_read_dsm()
730 struct intel_host *intel_host = sdhci_pci_priv(slot); in intel_cache_ltr() local
733 intel_host->active_ltr = readl(host->ioaddr + INTEL_ACTIVELTR); in intel_cache_ltr()
734 intel_host->idle_ltr = readl(host->ioaddr + INTEL_IDLELTR); in intel_cache_ltr()
741 struct intel_host *intel_host = sdhci_pci_priv(slot); in intel_ltr_set() local
771 if (ltr == intel_host->active_ltr) in intel_ltr_set()
844 struct intel_host *intel_host = sdhci_pci_priv(slot); in byt_add_debugfs() local
851 debugfs_create_x32("active_ltr", 0444, dir, &intel_host->active_ltr); in byt_add_debugfs()
852 debugfs_create_x32("idle_ltr", 0444, dir, &intel_host->idle_ltr); in byt_add_debugfs()
971 struct intel_host *intel_host = sdhci_pci_priv(slot); in glk_rpm_retune_wa() local
977 if (intel_host->rpm_retune_ok || !mmc_can_retune(host->mmc)) in glk_rpm_retune_wa()
984 intel_host->glk_rx_ctrl1 = glk_rx_ctrl1; in glk_rpm_retune_wa()
985 intel_host->glk_tun_val = glk_tun_val; in glk_rpm_retune_wa()
989 if (!intel_host->glk_tun_val) in glk_rpm_retune_wa()
992 if (glk_rx_ctrl1 != intel_host->glk_rx_ctrl1) { in glk_rpm_retune_wa()
993 intel_host->rpm_retune_ok = true; in glk_rpm_retune_wa()
998 (intel_host->glk_tun_val << 1)); in glk_rpm_retune_wa()
1005 intel_host->rpm_retune_ok = true; in glk_rpm_retune_wa()
1083 struct intel_host *intel_host = sdhci_pci_priv(slot); in byt_needs_pwr_off() local
1086 intel_host->needs_pwr_off = reg & SDHCI_POWER_ON; in byt_needs_pwr_off()
1150 .priv_size = sizeof(struct intel_host),
1172 .priv_size = sizeof(struct intel_host),
1191 .priv_size = sizeof(struct intel_host),
1210 .priv_size = sizeof(struct intel_host),
1231 .priv_size = sizeof(struct intel_host),