Lines Matching refs:ctrl2
158 rt_uint16_t ctrl2; in sdhci_do_enable_v4_mode() local
160 ctrl2 = rt_sdhci_readw(host, RT_SDHCI_HOST_CONTROL2); in sdhci_do_enable_v4_mode()
161 if (ctrl2 & RT_SDHCI_CTRL_V4_MODE) in sdhci_do_enable_v4_mode()
164 ctrl2 |= RT_SDHCI_CTRL_V4_MODE; in sdhci_do_enable_v4_mode()
165 rt_sdhci_writew(host, ctrl2, RT_SDHCI_HOST_CONTROL2); in sdhci_do_enable_v4_mode()
191 rt_uint16_t ctrl2; in sdhci_auto_cmd_select() local
197 ctrl2 = rt_sdhci_readw(host, RT_SDHCI_HOST_CONTROL2); in sdhci_auto_cmd_select()
199 ctrl2 |= RT_SDHCI_CMD23_ENABLE; in sdhci_auto_cmd_select()
201 ctrl2 &= ~RT_SDHCI_CMD23_ENABLE; in sdhci_auto_cmd_select()
202 rt_sdhci_writew(host, ctrl2, RT_SDHCI_HOST_CONTROL2); in sdhci_auto_cmd_select()
438 rt_uint16_t ctrl2; in sdhci_config_dma() local
455 ctrl2 = rt_sdhci_readw(host, RT_SDHCI_HOST_CONTROL2); in sdhci_config_dma()
456 ctrl2 |= RT_SDHCI_CTRL_64BIT_ADDR; in sdhci_config_dma()
457 rt_sdhci_writew(host, ctrl2, RT_SDHCI_HOST_CONTROL2); in sdhci_config_dma()