Lines Matching full:clkdiv
174 uint32_t clkdiv, val32; in ti_sdhci_read_2() local
191 clkdiv = ((val32 >> MMCHS_SYSCTL_CLKD_SHIFT) & in ti_sdhci_read_2()
194 val32 |= (clkdiv & SDHCI_DIVIDER_MASK) << SDHCI_DIVIDER_SHIFT; in ti_sdhci_read_2()
196 val32 |= ((clkdiv >> SDHCI_DIVIDER_MASK_LEN) & in ti_sdhci_read_2()
281 uint32_t clkdiv, val32; in ti_sdhci_write_2() local
289 clkdiv = (val >> SDHCI_DIVIDER_SHIFT) & SDHCI_DIVIDER_MASK; in ti_sdhci_write_2()
291 clkdiv |= ((val >> SDHCI_DIVIDER_HI_SHIFT) & in ti_sdhci_write_2()
293 clkdiv *= 2; in ti_sdhci_write_2()
294 if (clkdiv > MMCHS_SYSCTL_CLKD_MASK) in ti_sdhci_write_2()
295 clkdiv = MMCHS_SYSCTL_CLKD_MASK; in ti_sdhci_write_2()
300 val32 |= clkdiv << MMCHS_SYSCTL_CLKD_SHIFT; in ti_sdhci_write_2()