Lines Matching refs:sdhc_id
52 unsigned char sdhc_id, bool enable) in xenon_set_sdclk_off_idle() argument
59 mask = (0x1 << (XENON_SDCLK_IDLEOFF_ENABLE_SHIFT + sdhc_id)); in xenon_set_sdclk_off_idle()
83 unsigned char sdhc_id) in xenon_enable_sdhc() argument
88 reg |= (BIT(sdhc_id) << XENON_SLOT_ENABLE_SHIFT); in xenon_enable_sdhc()
101 unsigned char sdhc_id) in xenon_disable_sdhc() argument
106 reg &= ~(BIT(sdhc_id) << XENON_SLOT_ENABLE_SHIFT); in xenon_disable_sdhc()
112 unsigned char sdhc_id) in xenon_enable_sdhc_parallel_tran() argument
117 reg |= BIT(sdhc_id); in xenon_enable_sdhc_parallel_tran()
161 unsigned char sdhc_id, u8 mask) in xenon_reset_exit() argument
172 xenon_set_sdclk_off_idle(host, sdhc_id, false); in xenon_reset_exit()
183 xenon_reset_exit(host, priv->sdhc_id, mask); in xenon_reset()
292 xenon_set_sdclk_off_idle(host, priv->sdhc_id, true); in xenon_set_ios()
364 u8 sdhc_id = priv->sdhc_id; in xenon_enable_sdio_irq() local
374 reg |= (1 << (sdhc_id + XENON_SLOT_TYPE_SDIO_SHIFT)); in xenon_enable_sdio_irq()
379 reg &= ~(1 << (sdhc_id + XENON_SLOT_TYPE_SDIO_SHIFT)); in xenon_enable_sdio_irq()
407 u32 sdhc_id, nr_sdhc; in xenon_probe_dt() local
414 sdhc_id = 0x0; in xenon_probe_dt()
415 if (!of_property_read_u32(np, "marvell,xenon-sdhc-id", &sdhc_id)) { in xenon_probe_dt()
418 if (unlikely(sdhc_id > nr_sdhc)) { in xenon_probe_dt()
420 sdhc_id, nr_sdhc); in xenon_probe_dt()
424 priv->sdhc_id = sdhc_id; in xenon_probe_dt()
444 u8 sdhc_id = priv->sdhc_id; in xenon_sdhc_prepare() local
447 xenon_enable_sdhc(host, sdhc_id); in xenon_sdhc_prepare()
453 xenon_enable_sdhc_parallel_tran(host, sdhc_id); in xenon_sdhc_prepare()
456 xenon_set_sdclk_off_idle(host, sdhc_id, false); in xenon_sdhc_prepare()
467 u8 sdhc_id = priv->sdhc_id; in xenon_sdhc_unprepare() local
470 xenon_disable_sdhc(host, sdhc_id); in xenon_sdhc_unprepare()