Lines Matching refs:dataConfig

913     cy_stc_sd_host_data_config_t dataConfig;  in Cy_SD_Host_Read()  local
937 dataConfig.enableIntAtBlockGap = true; in Cy_SD_Host_Read()
942 dataConfig.enableIntAtBlockGap = false; in Cy_SD_Host_Read()
945 dataConfig.blockSize = CY_SD_HOST_BLOCK_SIZE; in Cy_SD_Host_Read()
946 dataConfig.numberOfBlock = config->numberOfBlocks; in Cy_SD_Host_Read()
947 dataConfig.enableDma = config->enableDma; in Cy_SD_Host_Read()
948 dataConfig.autoCommand = config->autoCommand; in Cy_SD_Host_Read()
949 dataConfig.read = true; in Cy_SD_Host_Read()
950 dataConfig.dataTimeout = config->dataTimeout; in Cy_SD_Host_Read()
951 dataConfig.enReliableWrite = config->enReliableWrite; in Cy_SD_Host_Read()
953 if ((true == dataConfig.enableDma) && in Cy_SD_Host_Read()
967 dataConfig.data = (uint32_t*)&aDmaDescriptTbl[0]; in Cy_SD_Host_Read()
972 dataConfig.data = (uint32_t*)config->data; in Cy_SD_Host_Read()
975 ret = Cy_SD_Host_InitDataTransfer(base, &dataConfig); in Cy_SD_Host_Read()
996 (false == dataConfig.enableDma)) in Cy_SD_Host_Read()
999 ret = Cy_SD_Host_CmdRxData(base, &dataConfig); in Cy_SD_Host_Read()
1043 cy_stc_sd_host_data_config_t dataConfig; in Cy_SD_Host_Write() local
1069 dataConfig.enableIntAtBlockGap = true; in Cy_SD_Host_Write()
1074 dataConfig.enableIntAtBlockGap = false; in Cy_SD_Host_Write()
1077 dataConfig.blockSize = CY_SD_HOST_BLOCK_SIZE; in Cy_SD_Host_Write()
1078 dataConfig.numberOfBlock = config->numberOfBlocks; in Cy_SD_Host_Write()
1079 dataConfig.enableDma = config->enableDma; in Cy_SD_Host_Write()
1080 dataConfig.autoCommand = config->autoCommand; in Cy_SD_Host_Write()
1081 dataConfig.read = false; in Cy_SD_Host_Write()
1082 dataConfig.data = (uint32_t*)config->data; in Cy_SD_Host_Write()
1083 dataConfig.dataTimeout = config->dataTimeout; in Cy_SD_Host_Write()
1084 dataConfig.enReliableWrite = config->enReliableWrite; in Cy_SD_Host_Write()
1086 if ((true == dataConfig.enableDma) && in Cy_SD_Host_Write()
1100 dataConfig.data = (uint32_t*)&aDmaDescriptTbl[0]; in Cy_SD_Host_Write()
1104 dataConfig.data = (uint32_t*)config->data; in Cy_SD_Host_Write()
1107 ret = Cy_SD_Host_InitDataTransfer(base, &dataConfig); in Cy_SD_Host_Write()
1128 (false == dataConfig.enableDma)) in Cy_SD_Host_Write()
1131 ret = Cy_SD_Host_CmdTxData(base, &dataConfig); in Cy_SD_Host_Write()
2412 cy_stc_sd_host_data_config_t dataConfig; in Cy_SD_Host_SdCardSwitchFunc() local
2424 dataConfig.blockSize = CY_SD_HOST_SD_STATUS_BLOCKS; in Cy_SD_Host_SdCardSwitchFunc()
2425 dataConfig.numberOfBlock = 1UL; in Cy_SD_Host_SdCardSwitchFunc()
2426 dataConfig.enableDma = false; in Cy_SD_Host_SdCardSwitchFunc()
2427 dataConfig.autoCommand = CY_SD_HOST_AUTO_CMD_NONE; in Cy_SD_Host_SdCardSwitchFunc()
2428 dataConfig.read = true; in Cy_SD_Host_SdCardSwitchFunc()
2429 dataConfig.data = status; in Cy_SD_Host_SdCardSwitchFunc()
2430 dataConfig.dataTimeout = CY_SD_HOST_MAX_TIMEOUT; in Cy_SD_Host_SdCardSwitchFunc()
2431 dataConfig.enableIntAtBlockGap = false; in Cy_SD_Host_SdCardSwitchFunc()
2432 dataConfig.enReliableWrite = false; in Cy_SD_Host_SdCardSwitchFunc()
2436 (void)Cy_SD_Host_InitDataTransfer(base, &dataConfig); in Cy_SD_Host_SdCardSwitchFunc()
2449 ret = Cy_SD_Host_CmdRxData(base, &dataConfig); in Cy_SD_Host_SdCardSwitchFunc()
2558 cy_stc_sd_host_data_config_t dataConfig; in Cy_SD_Host_OpsProgramCsd() local
2572 dataConfig.blockSize = CY_SD_HOST_CSD_BLOCKS; in Cy_SD_Host_OpsProgramCsd()
2573 dataConfig.numberOfBlock = 1UL; in Cy_SD_Host_OpsProgramCsd()
2574 dataConfig.enableDma = false; in Cy_SD_Host_OpsProgramCsd()
2575 dataConfig.autoCommand = CY_SD_HOST_AUTO_CMD_NONE; in Cy_SD_Host_OpsProgramCsd()
2576 dataConfig.read = false; in Cy_SD_Host_OpsProgramCsd()
2577 dataConfig.data = context->csd; in Cy_SD_Host_OpsProgramCsd()
2578 dataConfig.dataTimeout = CY_SD_HOST_MAX_TIMEOUT; in Cy_SD_Host_OpsProgramCsd()
2579 dataConfig.enableIntAtBlockGap = false; in Cy_SD_Host_OpsProgramCsd()
2580 dataConfig.enReliableWrite = false; in Cy_SD_Host_OpsProgramCsd()
2583 (void)Cy_SD_Host_InitDataTransfer(base, &dataConfig); in Cy_SD_Host_OpsProgramCsd()
3354 cy_stc_sd_host_data_config_t dataConfig; in Cy_SD_Host_GetSdStatus() local
3371 dataConfig.blockSize = CY_SD_HOST_SD_STATUS_BLOCKS; in Cy_SD_Host_GetSdStatus()
3372 dataConfig.numberOfBlock = 1UL; in Cy_SD_Host_GetSdStatus()
3373 dataConfig.enableDma = false; in Cy_SD_Host_GetSdStatus()
3374 dataConfig.autoCommand = CY_SD_HOST_AUTO_CMD_NONE; in Cy_SD_Host_GetSdStatus()
3375 dataConfig.read = true; in Cy_SD_Host_GetSdStatus()
3376 dataConfig.data = sdStatus; in Cy_SD_Host_GetSdStatus()
3377 dataConfig.dataTimeout = CY_SD_HOST_MAX_TIMEOUT; in Cy_SD_Host_GetSdStatus()
3378 dataConfig.enableIntAtBlockGap = false; in Cy_SD_Host_GetSdStatus()
3379 dataConfig.enReliableWrite = false; in Cy_SD_Host_GetSdStatus()
3381 (void)Cy_SD_Host_InitDataTransfer(base, &dataConfig); in Cy_SD_Host_GetSdStatus()
3393 ret = Cy_SD_Host_CmdRxData(base, &dataConfig); in Cy_SD_Host_GetSdStatus()
3655 cy_stc_sd_host_data_config_t dataConfig; in Cy_SD_Host_GetExtCsd() local
3669 dataConfig.blockSize = CY_SD_HOST_BLOCK_SIZE; in Cy_SD_Host_GetExtCsd()
3670 dataConfig.numberOfBlock = 1UL; in Cy_SD_Host_GetExtCsd()
3671 dataConfig.enableDma = false; in Cy_SD_Host_GetExtCsd()
3672 dataConfig.autoCommand = CY_SD_HOST_AUTO_CMD_NONE; in Cy_SD_Host_GetExtCsd()
3673 dataConfig.read = true; in Cy_SD_Host_GetExtCsd()
3674 dataConfig.data = extCsd; in Cy_SD_Host_GetExtCsd()
3675 dataConfig.dataTimeout = CY_SD_HOST_MAX_TIMEOUT; in Cy_SD_Host_GetExtCsd()
3676 dataConfig.enableIntAtBlockGap = false; in Cy_SD_Host_GetExtCsd()
3677 dataConfig.enReliableWrite = false; in Cy_SD_Host_GetExtCsd()
3679 (void)Cy_SD_Host_InitDataTransfer(base, &dataConfig); in Cy_SD_Host_GetExtCsd()
3691 ret = Cy_SD_Host_CmdRxData(base, &dataConfig); in Cy_SD_Host_GetExtCsd()
3787 cy_stc_sd_host_data_config_t dataConfig; in Cy_SD_Host_GetScr() local
3804 dataConfig.blockSize = CY_SD_HOST_SCR_BLOCKS; in Cy_SD_Host_GetScr()
3805 dataConfig.numberOfBlock = 1UL; in Cy_SD_Host_GetScr()
3806 dataConfig.enableDma = false; in Cy_SD_Host_GetScr()
3807 dataConfig.autoCommand = CY_SD_HOST_AUTO_CMD_NONE; in Cy_SD_Host_GetScr()
3808 dataConfig.read = true; in Cy_SD_Host_GetScr()
3809 dataConfig.data = (uint32_t *)scr; in Cy_SD_Host_GetScr()
3810 dataConfig.dataTimeout = CY_SD_HOST_MAX_TIMEOUT; in Cy_SD_Host_GetScr()
3811 dataConfig.enableIntAtBlockGap = false; in Cy_SD_Host_GetScr()
3812 dataConfig.enReliableWrite = false; in Cy_SD_Host_GetScr()
3814 (void)Cy_SD_Host_InitDataTransfer(base, &dataConfig); in Cy_SD_Host_GetScr()
3826 ret = Cy_SD_Host_CmdRxData(base, &dataConfig); in Cy_SD_Host_GetScr()
4711 cy_stc_sd_host_data_config_t dataConfig; in Cy_SD_Host_FindBusSpeedMode() local
4725 dataConfig.blockSize = CY_SD_HOST_SD_STATUS_BLOCKS; in Cy_SD_Host_FindBusSpeedMode()
4726 dataConfig.numberOfBlock = 1UL; in Cy_SD_Host_FindBusSpeedMode()
4727 dataConfig.enableDma = false; in Cy_SD_Host_FindBusSpeedMode()
4728 dataConfig.autoCommand = CY_SD_HOST_AUTO_CMD_NONE; in Cy_SD_Host_FindBusSpeedMode()
4729 dataConfig.read = true; in Cy_SD_Host_FindBusSpeedMode()
4730 dataConfig.data = status; in Cy_SD_Host_FindBusSpeedMode()
4731 dataConfig.dataTimeout = CY_SD_HOST_MAX_TIMEOUT; in Cy_SD_Host_FindBusSpeedMode()
4732 dataConfig.enableIntAtBlockGap = false; in Cy_SD_Host_FindBusSpeedMode()
4733 dataConfig.enReliableWrite = false; in Cy_SD_Host_FindBusSpeedMode()
4740 (void)Cy_SD_Host_InitDataTransfer(base, &dataConfig); in Cy_SD_Host_FindBusSpeedMode()
4753 ret = Cy_SD_Host_CmdRxData(base, &dataConfig); in Cy_SD_Host_FindBusSpeedMode()
4982 cy_stc_sd_host_data_config_t const *dataConfig) in Cy_SD_Host_InitDataTransfer() argument
4988 if ((NULL != base) && (NULL != dataConfig) && (NULL != dataConfig->data)) in Cy_SD_Host_InitDataTransfer()
4990 CY_ASSERT_L3(CY_SD_HOST_IS_AUTO_CMD_VALID(dataConfig->autoCommand)); in Cy_SD_Host_InitDataTransfer()
4991 CY_ASSERT_L2(CY_SD_HOST_IS_TIMEOUT_VALID(dataConfig->dataTimeout)); in Cy_SD_Host_InitDataTransfer()
4992 …CY_ASSERT_L2(CY_SD_HOST_IS_BLK_SIZE_VALID(dataConfig->blockSize, _FLD2VAL(SDHC_CORE_HOST_CTRL2_R_U… in Cy_SD_Host_InitDataTransfer()
4999 if (((uint32_t)CY_SD_HOST_DMA_ADMA2_ADMA3 == dmaMode) && (dataConfig->enableDma)) in Cy_SD_Host_InitDataTransfer()
5002 SDHC_CORE_ADMA_ID_LOW_R(base) = (uint32_t)dataConfig->data; in Cy_SD_Host_InitDataTransfer()
5006 if (dataConfig->enableDma) in Cy_SD_Host_InitDataTransfer()
5019 SDHC_CORE_ADMA_SA_LOW_R(base) = (uint32_t)dataConfig->data; in Cy_SD_Host_InitDataTransfer()
5022 SDHC_CORE_SDMASA_R(base) = dataConfig->numberOfBlock; in Cy_SD_Host_InitDataTransfer()
5027 SDHC_CORE_SDMASA_R(base) = (uint32_t)dataConfig->data; in Cy_SD_Host_InitDataTransfer()
5033 SDHC_CORE_ADMA_SA_LOW_R(base) = (uint32_t)dataConfig->data; in Cy_SD_Host_InitDataTransfer()
5039 SDHC_CORE_SDMASA_R(base) = dataConfig->numberOfBlock; in Cy_SD_Host_InitDataTransfer()
5045 dataConfig->blockSize); in Cy_SD_Host_InitDataTransfer()
5048 SDHC_CORE_BLOCKCOUNT_R(base) = (uint16_t)dataConfig->numberOfBlock; in Cy_SD_Host_InitDataTransfer()
5052 … transferMode = _BOOL2FLD(SDHC_CORE_XFER_MODE_R_MULTI_BLK_SEL, (1U < dataConfig->numberOfBlock)); in Cy_SD_Host_InitDataTransfer()
5055 transferMode |= _BOOL2FLD(SDHC_CORE_XFER_MODE_R_DATA_XFER_DIR, dataConfig->read); in Cy_SD_Host_InitDataTransfer()
5061 transferMode |= _BOOL2FLD(SDHC_CORE_XFER_MODE_R_DMA_ENABLE, dataConfig->enableDma); in Cy_SD_Host_InitDataTransfer()
5066 ((dataConfig->enableIntAtBlockGap) ? 1UL : 0UL)); in Cy_SD_Host_InitDataTransfer()
5071 dataConfig->dataTimeout); in Cy_SD_Host_InitDataTransfer()
5074 if (dataConfig->enReliableWrite) in Cy_SD_Host_InitDataTransfer()
5077 dataConfig->enReliableWrite, in Cy_SD_Host_InitDataTransfer()
5078 dataConfig->numberOfBlock); in Cy_SD_Host_InitDataTransfer()
5082 switch (dataConfig->autoCommand) in Cy_SD_Host_InitDataTransfer()