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
177 xenon_set_sdclk_off_idle(host, sdhc_id, false); in xenon_reset_exit()
188 xenon_reset_exit(host, priv->sdhc_id, mask); in xenon_reset()
297 xenon_set_sdclk_off_idle(host, priv->sdhc_id, true); in xenon_set_ios()
369 u8 sdhc_id = priv->sdhc_id; in xenon_enable_sdio_irq() local
379 reg |= (1 << (sdhc_id + XENON_SLOT_TYPE_SDIO_SHIFT)); in xenon_enable_sdio_irq()
384 reg &= ~(1 << (sdhc_id + XENON_SLOT_TYPE_SDIO_SHIFT)); in xenon_enable_sdio_irq()
412 u32 sdhc_id, nr_sdhc; in xenon_probe_dt() local
419 sdhc_id = 0x0; in xenon_probe_dt()
420 if (!of_property_read_u32(np, "marvell,xenon-sdhc-id", &sdhc_id)) { in xenon_probe_dt()
423 if (unlikely(sdhc_id > nr_sdhc)) { in xenon_probe_dt()
425 sdhc_id, nr_sdhc); in xenon_probe_dt()
429 priv->sdhc_id = sdhc_id; in xenon_probe_dt()
449 u8 sdhc_id = priv->sdhc_id; in xenon_sdhc_prepare() local
452 xenon_enable_sdhc(host, sdhc_id); in xenon_sdhc_prepare()
458 xenon_enable_sdhc_parallel_tran(host, sdhc_id); in xenon_sdhc_prepare()
461 xenon_set_sdclk_off_idle(host, sdhc_id, false); in xenon_sdhc_prepare()
472 u8 sdhc_id = priv->sdhc_id; in xenon_sdhc_unprepare() local
475 xenon_disable_sdhc(host, sdhc_id); in xenon_sdhc_unprepare()