Home
last modified time | relevance | path

Searched refs:add (Results 1 – 25 of 35) sorted by relevance

12

/hal_stm32-3.5.0/stm32cube/stm32f2xx/drivers/src/
Dstm32f2xx_hal_sd.c576 uint32_t add = BlockAdd; in HAL_SD_ReadBlocks() local
589 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_ReadBlocks()
602 add *= 512U; in HAL_SD_ReadBlocks()
620 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
627 errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
787 uint32_t add = BlockAdd; in HAL_SD_WriteBlocks() local
800 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_WriteBlocks()
813 add *= 512U; in HAL_SD_WriteBlocks()
831 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
838 errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
[all …]
Dstm32f2xx_hal_mmc.c606 uint32_t add = BlockAdd; in HAL_MMC_ReadBlocks() local
632 add *= 512U; in HAL_MMC_ReadBlocks()
650 errorstate = SDMMC_CmdReadMultiBlock(hmmc->Instance, add); in HAL_MMC_ReadBlocks()
657 errorstate = SDMMC_CmdReadSingleBlock(hmmc->Instance, add); in HAL_MMC_ReadBlocks()
807 uint32_t add = BlockAdd; in HAL_MMC_WriteBlocks() local
833 add *= 512U; in HAL_MMC_WriteBlocks()
842 errorstate = SDMMC_CmdWriteMultiBlock(hmmc->Instance, add); in HAL_MMC_WriteBlocks()
849 errorstate = SDMMC_CmdWriteSingleBlock(hmmc->Instance, add); in HAL_MMC_WriteBlocks()
980 uint32_t add = BlockAdd; in HAL_MMC_ReadBlocks_IT() local
1010 add *= 512U; in HAL_MMC_ReadBlocks_IT()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l1xx/drivers/src/
Dstm32l1xx_hal_sd.c576 uint32_t add = BlockAdd; in HAL_SD_ReadBlocks() local
589 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_ReadBlocks()
602 add *= 512U; in HAL_SD_ReadBlocks()
620 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
627 errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
791 uint32_t add = BlockAdd; in HAL_SD_WriteBlocks() local
804 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_WriteBlocks()
817 add *= 512U; in HAL_SD_WriteBlocks()
835 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
842 errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f7xx/drivers/src/
Dstm32f7xx_hal_sd.c576 uint32_t add = BlockAdd; in HAL_SD_ReadBlocks() local
589 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_ReadBlocks()
602 add *= 512U; in HAL_SD_ReadBlocks()
620 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
627 errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
787 uint32_t add = BlockAdd; in HAL_SD_WriteBlocks() local
800 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_WriteBlocks()
813 add *= 512U; in HAL_SD_WriteBlocks()
831 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
838 errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
[all …]
Dstm32f7xx_hal_mmc.c606 uint32_t add = BlockAdd; in HAL_MMC_ReadBlocks() local
632 add *= 512U; in HAL_MMC_ReadBlocks()
650 errorstate = SDMMC_CmdReadMultiBlock(hmmc->Instance, add); in HAL_MMC_ReadBlocks()
657 errorstate = SDMMC_CmdReadSingleBlock(hmmc->Instance, add); in HAL_MMC_ReadBlocks()
807 uint32_t add = BlockAdd; in HAL_MMC_WriteBlocks() local
833 add *= 512U; in HAL_MMC_WriteBlocks()
842 errorstate = SDMMC_CmdWriteMultiBlock(hmmc->Instance, add); in HAL_MMC_WriteBlocks()
849 errorstate = SDMMC_CmdWriteSingleBlock(hmmc->Instance, add); in HAL_MMC_WriteBlocks()
980 uint32_t add = BlockAdd; in HAL_MMC_ReadBlocks_IT() local
1010 add *= 512U; in HAL_MMC_ReadBlocks_IT()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_hal_sd.c573 uint32_t add = BlockAdd; in HAL_SD_ReadBlocks() local
586 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_ReadBlocks()
599 add *= 512U; in HAL_SD_ReadBlocks()
617 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
624 errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
784 uint32_t add = BlockAdd; in HAL_SD_WriteBlocks() local
797 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_WriteBlocks()
810 add *= 512U; in HAL_SD_WriteBlocks()
828 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
835 errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
[all …]
Dstm32f1xx_hal_mmc.c570 uint32_t add = BlockAdd; in HAL_MMC_ReadBlocks() local
596 add *= 512U; in HAL_MMC_ReadBlocks()
614 errorstate = SDMMC_CmdReadMultiBlock(hmmc->Instance, add); in HAL_MMC_ReadBlocks()
621 errorstate = SDMMC_CmdReadSingleBlock(hmmc->Instance, add); in HAL_MMC_ReadBlocks()
771 uint32_t add = BlockAdd; in HAL_MMC_WriteBlocks() local
797 add *= 512U; in HAL_MMC_WriteBlocks()
806 errorstate = SDMMC_CmdWriteMultiBlock(hmmc->Instance, add); in HAL_MMC_WriteBlocks()
813 errorstate = SDMMC_CmdWriteSingleBlock(hmmc->Instance, add); in HAL_MMC_WriteBlocks()
944 uint32_t add = BlockAdd; in HAL_MMC_ReadBlocks_IT() local
974 add *= 512U; in HAL_MMC_ReadBlocks_IT()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f4xx/drivers/src/
Dstm32f4xx_hal_sd.c576 uint32_t add = BlockAdd; in HAL_SD_ReadBlocks() local
589 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_ReadBlocks()
602 add *= 512U; in HAL_SD_ReadBlocks()
620 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
627 errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
791 uint32_t add = BlockAdd; in HAL_SD_WriteBlocks() local
804 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_WriteBlocks()
817 add *= 512U; in HAL_SD_WriteBlocks()
835 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
842 errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
[all …]
Dstm32f4xx_hal_mmc.c606 uint32_t add = BlockAdd; in HAL_MMC_ReadBlocks() local
632 add *= 512U; in HAL_MMC_ReadBlocks()
650 errorstate = SDMMC_CmdReadMultiBlock(hmmc->Instance, add); in HAL_MMC_ReadBlocks()
657 errorstate = SDMMC_CmdReadSingleBlock(hmmc->Instance, add); in HAL_MMC_ReadBlocks()
811 uint32_t add = BlockAdd; in HAL_MMC_WriteBlocks() local
837 add *= 512U; in HAL_MMC_WriteBlocks()
846 errorstate = SDMMC_CmdWriteMultiBlock(hmmc->Instance, add); in HAL_MMC_WriteBlocks()
853 errorstate = SDMMC_CmdWriteSingleBlock(hmmc->Instance, add); in HAL_MMC_WriteBlocks()
988 uint32_t add = BlockAdd; in HAL_MMC_ReadBlocks_IT() local
1022 add *= 512U; in HAL_MMC_ReadBlocks_IT()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32mp1xx/drivers/src/
Dstm32mp1xx_hal_sd.c606 uint32_t add = BlockAdd; in HAL_SD_ReadBlocks() local
619 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_ReadBlocks()
632 add *= 512U; in HAL_SD_ReadBlocks()
662 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
669 errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
791 uint32_t add = BlockAdd; in HAL_SD_WriteBlocks() local
804 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_WriteBlocks()
817 add *= 512U; in HAL_SD_WriteBlocks()
847 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
854 errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
[all …]
Dstm32mp1xx_hal_sd_ex.c112 uint32_t add = BlockAdd; in HAL_SDEx_ReadBlocksDMAMultiBuffer() local
116 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SDEx_ReadBlocksDMAMultiBuffer()
140 add *= 512U; in HAL_SDEx_ReadBlocksDMAMultiBuffer()
164 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SDEx_ReadBlocksDMAMultiBuffer()
194 uint32_t add = BlockAdd; in HAL_SDEx_WriteBlocksDMAMultiBuffer() local
198 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SDEx_WriteBlocksDMAMultiBuffer()
221 add *= 512U; in HAL_SDEx_WriteBlocksDMAMultiBuffer()
243 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SDEx_WriteBlocksDMAMultiBuffer()
/hal_stm32-3.5.0/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_hal_sd_ex.c115 uint32_t add = BlockAdd; in HAL_SDEx_ReadBlocksDMAMultiBuffer() local
119 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SDEx_ReadBlocksDMAMultiBuffer()
144 add *= 512U; in HAL_SDEx_ReadBlocksDMAMultiBuffer()
166 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SDEx_ReadBlocksDMAMultiBuffer()
201 uint32_t add = BlockAdd; in HAL_SDEx_WriteBlocksDMAMultiBuffer() local
205 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SDEx_WriteBlocksDMAMultiBuffer()
228 add *= 512U; in HAL_SDEx_WriteBlocksDMAMultiBuffer()
248 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SDEx_WriteBlocksDMAMultiBuffer()
Dstm32h7xx_hal_sd.c681 uint32_t add = BlockAdd; in HAL_SD_ReadBlocks() local
694 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_ReadBlocks()
707 add *= 512U; in HAL_SD_ReadBlocks()
726 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
733 errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
866 uint32_t add = BlockAdd; in HAL_SD_WriteBlocks() local
879 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_WriteBlocks()
892 add *= 512U; in HAL_SD_WriteBlocks()
911 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
918 errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
[all …]
Dstm32h7xx_hal_mmc_ex.c119 uint32_t add = BlockAdd; in HAL_MMCEx_ReadBlocksDMAMultiBuffer() local
164 add *= 512U; in HAL_MMCEx_ReadBlocksDMAMultiBuffer()
186 errorstate = SDMMC_CmdReadMultiBlock(hmmc->Instance, add); in HAL_MMCEx_ReadBlocksDMAMultiBuffer()
222 uint32_t add = BlockAdd; in HAL_MMCEx_WriteBlocksDMAMultiBuffer() local
268 add *= 512U; in HAL_MMCEx_WriteBlocksDMAMultiBuffer()
288 errorstate = SDMMC_CmdWriteMultiBlock(hmmc->Instance, add); in HAL_MMCEx_WriteBlocksDMAMultiBuffer()
/hal_stm32-3.5.0/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_hal_sd_ex.c115 uint32_t add = BlockAdd; in HAL_SDEx_ReadBlocksDMAMultiBuffer() local
119 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SDEx_ReadBlocksDMAMultiBuffer()
144 add *= 512U; in HAL_SDEx_ReadBlocksDMAMultiBuffer()
166 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SDEx_ReadBlocksDMAMultiBuffer()
201 uint32_t add = BlockAdd; in HAL_SDEx_WriteBlocksDMAMultiBuffer() local
205 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SDEx_WriteBlocksDMAMultiBuffer()
228 add *= 512U; in HAL_SDEx_WriteBlocksDMAMultiBuffer()
248 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SDEx_WriteBlocksDMAMultiBuffer()
Dstm32l5xx_hal_sd.c674 uint32_t add = BlockAdd; in HAL_SD_ReadBlocks() local
687 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_ReadBlocks()
700 add *= 512U; in HAL_SD_ReadBlocks()
719 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
726 errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
859 uint32_t add = BlockAdd; in HAL_SD_WriteBlocks() local
872 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_WriteBlocks()
885 add *= 512U; in HAL_SD_WriteBlocks()
904 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
911 errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
[all …]
Dstm32l5xx_hal_mmc.c605 uint32_t add = BlockAdd; in HAL_MMC_ReadBlocks() local
650 add *= 512U; in HAL_MMC_ReadBlocks()
669 errorstate = SDMMC_CmdReadMultiBlock(hmmc->Instance, add); in HAL_MMC_ReadBlocks()
676 errorstate = SDMMC_CmdReadSingleBlock(hmmc->Instance, add); in HAL_MMC_ReadBlocks()
801 uint32_t add = BlockAdd; in HAL_MMC_WriteBlocks() local
845 add *= 512U; in HAL_MMC_WriteBlocks()
864 errorstate = SDMMC_CmdWriteMultiBlock(hmmc->Instance, add); in HAL_MMC_WriteBlocks()
871 errorstate = SDMMC_CmdWriteSingleBlock(hmmc->Instance, add); in HAL_MMC_WriteBlocks()
993 uint32_t add = BlockAdd; in HAL_MMC_ReadBlocks_IT() local
1039 add *= 512U; in HAL_MMC_ReadBlocks_IT()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_hal_sd_ex.c161 uint32_t add = BlockAdd; in HAL_SDEx_ReadBlocksDMAMultiBuffer() local
165 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SDEx_ReadBlocksDMAMultiBuffer()
189 add *= 512U; in HAL_SDEx_ReadBlocksDMAMultiBuffer()
211 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SDEx_ReadBlocksDMAMultiBuffer()
243 uint32_t add = BlockAdd; in HAL_SDEx_WriteBlocksDMAMultiBuffer() local
247 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SDEx_WriteBlocksDMAMultiBuffer()
270 add *= 512U; in HAL_SDEx_WriteBlocksDMAMultiBuffer()
290 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SDEx_WriteBlocksDMAMultiBuffer()
Dstm32l4xx_hal_mmc.c649 uint32_t add = BlockAdd; in HAL_MMC_ReadBlocks() local
662 if((add + NumberOfBlocks) > (hmmc->MmcCard.LogBlockNbr)) in HAL_MMC_ReadBlocks()
675 add *= 512U; in HAL_MMC_ReadBlocks()
700 errorstate = SDMMC_CmdReadMultiBlock(hmmc->Instance, add); in HAL_MMC_ReadBlocks()
707 errorstate = SDMMC_CmdReadSingleBlock(hmmc->Instance, add); in HAL_MMC_ReadBlocks()
869 uint32_t add = BlockAdd; in HAL_MMC_WriteBlocks() local
882 if((add + NumberOfBlocks) > (hmmc->MmcCard.LogBlockNbr)) in HAL_MMC_WriteBlocks()
895 add *= 512U; in HAL_MMC_WriteBlocks()
916 errorstate = SDMMC_CmdWriteMultiBlock(hmmc->Instance, add); in HAL_MMC_WriteBlocks()
923 errorstate = SDMMC_CmdWriteSingleBlock(hmmc->Instance, add); in HAL_MMC_WriteBlocks()
[all …]
Dstm32l4xx_hal_sd.c703 uint32_t add = BlockAdd; in HAL_SD_ReadBlocks() local
716 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_ReadBlocks()
729 add *= 512U; in HAL_SD_ReadBlocks()
754 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
761 errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
926 uint32_t add = BlockAdd; in HAL_SD_WriteBlocks() local
939 if((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_WriteBlocks()
952 add *= 512U; in HAL_SD_WriteBlocks()
977 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
984 errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
[all …]
Dstm32l4xx_hal_mmc_ex.c114 uint32_t add = BlockAdd; in HAL_MMCEx_ReadBlocksDMAMultiBuffer() local
140 add *= 512U; in HAL_MMCEx_ReadBlocksDMAMultiBuffer()
162 errorstate = SDMMC_CmdReadMultiBlock(hmmc->Instance, add); in HAL_MMCEx_ReadBlocksDMAMultiBuffer()
194 uint32_t add = BlockAdd; in HAL_MMCEx_WriteBlocksDMAMultiBuffer() local
221 add *= 512U; in HAL_MMCEx_WriteBlocksDMAMultiBuffer()
241 errorstate = SDMMC_CmdWriteMultiBlock(hmmc->Instance, add); in HAL_MMCEx_WriteBlocksDMAMultiBuffer()
/hal_stm32-3.5.0/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_hal_sd_ex.c206 uint32_t add = BlockAdd; in HAL_SDEx_DMALinkedList_ReadBlocks() local
210 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SDEx_DMALinkedList_ReadBlocks()
242 add *= 512U; in HAL_SDEx_DMALinkedList_ReadBlocks()
264 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SDEx_DMALinkedList_ReadBlocks()
301 uint32_t add = BlockAdd; in HAL_SDEx_DMALinkedList_WriteBlocks() local
305 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SDEx_DMALinkedList_WriteBlocks()
336 add *= 512U; in HAL_SDEx_DMALinkedList_WriteBlocks()
356 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SDEx_DMALinkedList_WriteBlocks()
Dstm32u5xx_hal_sd.c678 uint32_t add = BlockAdd; in HAL_SD_ReadBlocks() local
691 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_ReadBlocks()
704 add *= BLOCKSIZE; in HAL_SD_ReadBlocks()
723 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
730 errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
863 uint32_t add = BlockAdd; in HAL_SD_WriteBlocks() local
876 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_WriteBlocks()
889 add *= BLOCKSIZE; in HAL_SD_WriteBlocks()
908 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
915 errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32h5xx/drivers/src/
Dstm32h5xx_hal_sd_ex.c206 uint32_t add = BlockAdd; in HAL_SDEx_DMALinkedList_ReadBlocks() local
210 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SDEx_DMALinkedList_ReadBlocks()
242 add *= 512U; in HAL_SDEx_DMALinkedList_ReadBlocks()
264 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SDEx_DMALinkedList_ReadBlocks()
301 uint32_t add = BlockAdd; in HAL_SDEx_DMALinkedList_WriteBlocks() local
305 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SDEx_DMALinkedList_WriteBlocks()
336 add *= 512U; in HAL_SDEx_DMALinkedList_WriteBlocks()
356 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SDEx_DMALinkedList_WriteBlocks()
Dstm32h5xx_hal_sd.c687 uint32_t add = BlockAdd; in HAL_SD_ReadBlocks() local
700 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_ReadBlocks()
713 add *= 512U; in HAL_SD_ReadBlocks()
732 errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
739 errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); in HAL_SD_ReadBlocks()
872 uint32_t add = BlockAdd; in HAL_SD_WriteBlocks() local
885 if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) in HAL_SD_WriteBlocks()
898 add *= 512U; in HAL_SD_WriteBlocks()
917 errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
924 errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); in HAL_SD_WriteBlocks()
[all …]

12