Lines Matching refs:sdhc_id
53 unsigned char sdhc_id, bool enable) in xenon_set_sdclk_off_idle() argument
60 mask = (0x1 << (XENON_SDCLK_IDLEOFF_ENABLE_SHIFT + sdhc_id)); in xenon_set_sdclk_off_idle()
84 unsigned char sdhc_id) in xenon_enable_sdhc() argument
89 reg |= (BIT(sdhc_id) << XENON_SLOT_ENABLE_SHIFT); in xenon_enable_sdhc()
102 unsigned char sdhc_id) in xenon_disable_sdhc() argument
107 reg &= ~(BIT(sdhc_id) << XENON_SLOT_ENABLE_SHIFT); in xenon_disable_sdhc()
113 unsigned char sdhc_id) in xenon_enable_sdhc_parallel_tran() argument
118 reg |= BIT(sdhc_id); in xenon_enable_sdhc_parallel_tran()
162 unsigned char sdhc_id, u8 mask) in xenon_reset_exit() argument
178 xenon_set_sdclk_off_idle(host, sdhc_id, false); in xenon_reset_exit()
189 xenon_reset_exit(host, priv->sdhc_id, mask); in xenon_reset()
308 xenon_set_sdclk_off_idle(host, priv->sdhc_id, true); in xenon_set_ios()
380 u8 sdhc_id = priv->sdhc_id; in xenon_enable_sdio_irq() local
390 reg |= (1 << (sdhc_id + XENON_SLOT_TYPE_SDIO_SHIFT)); in xenon_enable_sdio_irq()
395 reg &= ~(1 << (sdhc_id + XENON_SLOT_TYPE_SDIO_SHIFT)); in xenon_enable_sdio_irq()
423 u32 sdhc_id, nr_sdhc; in xenon_probe_params() local
430 sdhc_id = 0x0; in xenon_probe_params()
431 if (!device_property_read_u32(dev, "marvell,xenon-sdhc-id", &sdhc_id)) { in xenon_probe_params()
434 if (unlikely(sdhc_id > nr_sdhc)) { in xenon_probe_params()
436 sdhc_id, nr_sdhc); in xenon_probe_params()
440 priv->sdhc_id = sdhc_id; in xenon_probe_params()
460 u8 sdhc_id = priv->sdhc_id; in xenon_sdhc_prepare() local
463 xenon_enable_sdhc(host, sdhc_id); in xenon_sdhc_prepare()
469 xenon_enable_sdhc_parallel_tran(host, sdhc_id); in xenon_sdhc_prepare()
472 xenon_set_sdclk_off_idle(host, sdhc_id, false); in xenon_sdhc_prepare()
483 u8 sdhc_id = priv->sdhc_id; in xenon_sdhc_unprepare() local
486 xenon_disable_sdhc(host, sdhc_id); in xenon_sdhc_unprepare()