Lines Matching refs:count
619 uint32_t count; in HAL_MMC_ReadBlocks() local
712 for (count = 0U; count < (SDMMC_FIFO_SIZE / 4U); count++) in HAL_MMC_ReadBlocks()
815 uint32_t count; in HAL_MMC_WriteBlocks() local
907 for (count = 0U; count < (SDMMC_FIFO_SIZE / 4U); count++) in HAL_MMC_WriteBlocks()
2250 uint32_t count; in HAL_MMC_GetCardExtCSD() local
2299 for (count = 0U; count < (SDMMC_FIFO_SIZE / 4U); count++) in HAL_MMC_GetCardExtCSD()
2369 uint32_t count; in HAL_MMC_ConfigWideBusOperation() local
2421 count = SDMMC_MAX_TRIAL; in HAL_MMC_ConfigWideBusOperation()
2432 count--; in HAL_MMC_ConfigWideBusOperation()
2433 } while (((response & 0x100U) == 0U) && (count != 0U)); in HAL_MMC_ConfigWideBusOperation()
2436 if ((count != 0U) && (errorstate == HAL_MMC_ERROR_NONE)) in HAL_MMC_ConfigWideBusOperation()
2451 else if (count == 0U) in HAL_MMC_ConfigWideBusOperation()
2953 uint32_t count; in HAL_MMC_Sanitize() local
2981 count = SDMMC_MAX_TRIAL; in HAL_MMC_Sanitize()
2992 count--; in HAL_MMC_Sanitize()
2993 } while (((response & 0x100U) == 0U) && (count != 0U)); in HAL_MMC_Sanitize()
2996 if ((count != 0U) && (errorstate == HAL_MMC_ERROR_NONE)) in HAL_MMC_Sanitize()
3004 else if (count == 0U) in HAL_MMC_Sanitize()
3065 uint32_t count; in HAL_MMC_ConfigSecRemovalType() local
3088 count = SDMMC_MAX_TRIAL; in HAL_MMC_ConfigSecRemovalType()
3099 count--; in HAL_MMC_ConfigSecRemovalType()
3100 } while (((response & 0x100U) == 0U) && (count != 0U)); in HAL_MMC_ConfigSecRemovalType()
3103 if ((count != 0U) && (errorstate == HAL_MMC_ERROR_NONE)) in HAL_MMC_ConfigSecRemovalType()
3111 else if (count == 0U) in HAL_MMC_ConfigSecRemovalType()
3198 count, in HAL_MMC_SleepDevice() local
3213 count = SDMMC_MAX_TRIAL; in HAL_MMC_SleepDevice()
3224 count--; in HAL_MMC_SleepDevice()
3225 } while (((response & 0x100U) == 0U) && (count != 0U)); in HAL_MMC_SleepDevice()
3228 if (count == 0U) in HAL_MMC_SleepDevice()
3272 count = SDMMC_MAX_TRIAL; in HAL_MMC_SleepDevice()
3284 count--; in HAL_MMC_SleepDevice()
3285 } while (((response & 0x100U) == 0U) && (count != 0U)); in HAL_MMC_SleepDevice()
3288 if (count == 0U) in HAL_MMC_SleepDevice()
3396 uint32_t count; in HAL_MMC_AwakeDevice() local
3449 count = SDMMC_MAX_TRIAL; in HAL_MMC_AwakeDevice()
3461 count--; in HAL_MMC_AwakeDevice()
3462 } while (((response & 0x100U) == 0U) && (count != 0U)); in HAL_MMC_AwakeDevice()
3465 if (count == 0U) in HAL_MMC_AwakeDevice()
3652 __IO uint32_t count = 0U; in MMC_PowerON() local
3666 if (count++ == SDMMC_MAX_VOLT_TRIAL) in MMC_PowerON()
3752 uint32_t count; in MMC_ReadExtCSD() local
3788 for (count = 0U; count < (SDMMC_FIFO_SIZE / 4U); count++) in MMC_ReadExtCSD()
3793 if ((i + count) == ((uint32_t)FieldIndex / 4U)) in MMC_ReadExtCSD()
3864 uint32_t count; in MMC_Read_IT() local
3873 for (count = 0U; count < (SDMMC_FIFO_SIZE / 4U); count++) in MMC_Read_IT()
3899 uint32_t count; in MMC_Write_IT() local
3908 for (count = 0U; count < (SDMMC_FIFO_SIZE / 4U); count++) in MMC_Write_IT()
3936 uint32_t count; in MMC_HighSpeed() local
3963 count = SDMMC_MAX_TRIAL; in MMC_HighSpeed()
3974 count--; in MMC_HighSpeed()
3975 } while (((response & 0x100U) == 0U) && (count != 0U)); in MMC_HighSpeed()
3978 if ((count != 0U) && (errorstate == HAL_MMC_ERROR_NONE)) in MMC_HighSpeed()
4039 else if (count == 0U) in MMC_HighSpeed()
4062 uint32_t count; in MMC_DDR_Mode() local
4111 count = SDMMC_MAX_TRIAL; in MMC_DDR_Mode()
4122 count--; in MMC_DDR_Mode()
4123 } while (((response & 0x100U) == 0U) && (count != 0U)); in MMC_DDR_Mode()
4126 if ((count != 0U) && (errorstate == HAL_MMC_ERROR_NONE)) in MMC_DDR_Mode()
4146 else if (count == 0U) in MMC_DDR_Mode()
4168 uint32_t count; in MMC_PwrClassUpdate() local
4224 count = SDMMC_MAX_TRIAL; in MMC_PwrClassUpdate()
4235 count--; in MMC_PwrClassUpdate()
4236 } while (((response & 0x100U) == 0U) && (count != 0U)); in MMC_PwrClassUpdate()
4239 if ((count != 0U) && (errorstate == HAL_MMC_ERROR_NONE)) in MMC_PwrClassUpdate()
4247 else if (count == 0U) in MMC_PwrClassUpdate()