Lines Matching refs:regionCounter

606         uint32_t regionCounter;        /* incrementing variable used to increment through the flash  in FLASH_IsProtected()  local
628 regionCounter = 0U; /* make sure regionCounter is initialized to 0 first */ in FLASH_IsProtected()
630 while (regionCounter <= ftfxConfig->flashDesc.protectRegionMem.count) in FLASH_IsProtected()
632 flashRegionAddress[regionCounter] = ftfxConfig->flashDesc.protectRegionMem.base + in FLASH_IsProtected()
633 … ftfxConfig->flashDesc.protectRegionMem.size * regionCounter; in FLASH_IsProtected()
634 regionCounter++; in FLASH_IsProtected()
646regionCounter = 0U; /* make sure regionCounter is initialized to 0 firs… in FLASH_IsProtected()
656 while (regionCounter < ftfxConfig->flashDesc.protectRegionMem.count) in FLASH_IsProtected()
663 if (regionCounter < (uint32_t)MAX_FLASH_PROT_REGION_COUNT) in FLASH_IsProtected()
665 … flashRegionProtectStatus[regionCounter] = (uint8_t)(((kFPROTLx[0]) >> regionCounter) & 0x1U); in FLASH_IsProtected()
668 if (regionCounter < 32u) in FLASH_IsProtected()
670 … flashRegionProtectStatus[regionCounter] = (uint8_t)(((kFPROTLx[0]) >> regionCounter) & 0x1U); in FLASH_IsProtected()
674 else if (regionCounter < 64U) in FLASH_IsProtected()
676 flashRegionProtectStatus[regionCounter] = in FLASH_IsProtected()
677 (uint8_t)(((kFPROTHx[0]) >> (regionCounter - 32U)) & 0x1U); in FLASH_IsProtected()
684 regionCounter++; in FLASH_IsProtected()
690 if (regionCounter < 16U) in FLASH_IsProtected()
692 … flashRegionProtectStatus[regionCounter] = (uint8_t)((kFPROTSx[0] >> regionCounter) & (0x01u)); in FLASH_IsProtected()
698 regionCounter++; in FLASH_IsProtected()
716 regionCounter = 0U; /* make sure regionCounter is initialized to 0 first */ in FLASH_IsProtected()
725 …if ((start >= flashRegionAddress[regionCounter]) && (start < flashRegionAddress[regionCounter + 1U… in FLASH_IsProtected()
732 if (0U == flashRegionProtectStatus[regionCounter]) in FLASH_IsProtected()
740regionCounter++; /* increment regionCounter to check for the next flash protection region */ in FLASH_IsProtected()