Lines Matching refs:cfg
275 handle->cfg.voltage = 0; in chal_sd_init()
279 handle->cfg.voltage |= SD_VDD_WINDOW_3_3_TO_3_4; in chal_sd_init()
282 handle->cfg.voltage |= SD_VDD_WINDOW_3_0_TO_3_1; in chal_sd_init()
285 handle->cfg.voltage |= SD_VDD_WINDOW_1_8_TO_1_9; in chal_sd_init()
368 handle->cfg.mode = SD_PIO_MODE; /* set to PIO mode first for init */ in chal_sd_start()
369 handle->cfg.dma = SD_DMA_OFF; in chal_sd_start()
381 handle->cfg.mode = mode; in chal_sd_start()
481 handle->cfg.dma = mode; in chal_sd_set_dma()
485 val |= handle->cfg.dma - 1; in chal_sd_set_dma()
491 handle->cfg.dma = 0; in chal_sd_set_dma()
509 if (handle->cfg.dma == SD_DMA_OFF) in chal_sd_get_dma_addr()
551 cmd_mode_reg |= ((handle->cfg.dma) ? 1 : 0); in chal_sd_send_cmd()
570 if (handle->cfg.dma == SD_DMA_OFF) in chal_sd_set_dma_addr()
700 if (length <= handle->cfg.blockSize) { in chal_sd_setup_xfer()
701 handle->ctrl.blkReg = length | handle->cfg.dmaBoundary; in chal_sd_setup_xfer()
703 blocks = length / handle->cfg.blockSize; in chal_sd_setup_xfer()
704 handle->ctrl.blkReg = (blocks << 16) | handle->cfg.blockSize | in chal_sd_setup_xfer()
705 handle->cfg.dmaBoundary; in chal_sd_setup_xfer()
708 if (handle->cfg.dma != SD_DMA_OFF) { in chal_sd_setup_xfer()
735 blockSize = handle->cfg.blockSize; in chal_sd_write_buffer()
792 blockSize = handle->cfg.blockSize; in chal_sd_read_buffer()
962 handle->cfg.speedMode = speed; in chal_sd_config()
963 handle->cfg.retryLimit = retry; in chal_sd_config()
964 handle->cfg.dmaBoundary = boundary; in chal_sd_config()
965 handle->cfg.blockSize = blkSize; in chal_sd_config()