Lines Matching refs:sdhc
766 static int read_data_port(const struct device *dev, struct sdhc_data *sdhc) in read_data_port() argument
770 uint32_t block_size = sdhc->block_size; in read_data_port()
771 uint32_t i, block_cnt = sdhc->blocks; in read_data_port()
772 uint32_t *data = (uint32_t *)sdhc->data; in read_data_port()
775 if (sdhc->timeout_ms == SDHC_TIMEOUT_FOREVER) { in read_data_port()
778 wait_time = K_MSEC(sdhc->timeout_ms); in read_data_port()
792 (sdhc->blocks - block_cnt)); in read_data_port()
809 return wait_xfr_complete(dev, sdhc->timeout_ms); in read_data_port()
812 static int write_data_port(const struct device *dev, struct sdhc_data *sdhc) in write_data_port() argument
816 uint32_t block_size = sdhc->block_size; in write_data_port()
817 uint32_t i, block_cnt = sdhc->blocks; in write_data_port()
818 uint32_t *data = (uint32_t *)sdhc->data; in write_data_port()
821 if (sdhc->timeout_ms == SDHC_TIMEOUT_FOREVER) { in write_data_port()
824 wait_time = K_MSEC(sdhc->timeout_ms); in write_data_port()
868 return wait_xfr_complete(dev, sdhc->timeout_ms); in write_data_port()