Lines Matching refs:npblb
2620 uint32_t npblb; in CRYP_DMAOutCplt() local
2641 npblb = ((((uint32_t)hcryp->Size / 16U) + 1U) * 16U) - ((uint32_t)hcryp->Size); in CRYP_DMAOutCplt()
2648 MODIFY_REG(hcryp->Instance->CR, AES_CR_NPBLB, npblb << 20U); in CRYP_DMAOutCplt()
2652 if ((npblb % 4U) == 0U) in CRYP_DMAOutCplt()
2654 lastwordsize = (16U - npblb) / 4U; in CRYP_DMAOutCplt()
2658 lastwordsize = ((16U - npblb) / 4U) + 1U; in CRYP_DMAOutCplt()
3075 uint32_t npblb; in CRYP_AESGCM_Process() local
3203 npblb = ((((uint32_t)hcryp->Size / 16U) + 1U) * 16U) - ((uint32_t)hcryp->Size); in CRYP_AESGCM_Process()
3209 MODIFY_REG(hcryp->Instance->CR, AES_CR_NPBLB, npblb << 20U); in CRYP_AESGCM_Process()
3212 if ((npblb % 4U) == 0U) in CRYP_AESGCM_Process()
3214 lastwordsize = (16U - npblb) / 4U; in CRYP_AESGCM_Process()
3218 lastwordsize = ((16U - npblb) / 4U) + 1U; in CRYP_AESGCM_Process()
3279 uint32_t npblb; in CRYP_AESGCM_Process_IT() local
3441 npblb = 16U - ((uint32_t)hcryp->Size); in CRYP_AESGCM_Process_IT()
3446 MODIFY_REG(hcryp->Instance->CR, AES_CR_NPBLB, npblb << 20U); in CRYP_AESGCM_Process_IT()
3450 if ((npblb % 4U) == 0U) in CRYP_AESGCM_Process_IT()
3452 lastwordsize = (16U - npblb) / 4U; in CRYP_AESGCM_Process_IT()
3456 lastwordsize = ((16U - npblb) / 4U) + 1U; in CRYP_AESGCM_Process_IT()
3588 npblb = 16U - ((uint32_t)hcryp->Size); in CRYP_AESGCM_Process_IT()
3593 MODIFY_REG(hcryp->Instance->CR, AES_CR_NPBLB, npblb << 20U); in CRYP_AESGCM_Process_IT()
3597 if ((npblb % 4U) == 0U) in CRYP_AESGCM_Process_IT()
3599 lastwordsize = (16U - npblb) / 4U; in CRYP_AESGCM_Process_IT()
3603 lastwordsize = ((16U - npblb) / 4U) + 1U; in CRYP_AESGCM_Process_IT()
3748 uint32_t npblb; in CRYP_AESCCM_Process() local
3874 npblb = ((((uint32_t)hcryp->Size / 16U) + 1U) * 16U) - ((uint32_t)hcryp->Size); in CRYP_AESCCM_Process()
3879 MODIFY_REG(hcryp->Instance->CR, AES_CR_NPBLB, npblb << 20); in CRYP_AESCCM_Process()
3883 if ((npblb % 4U) == 0U) in CRYP_AESCCM_Process()
3885 lastwordsize = (16U - npblb) / 4U; in CRYP_AESCCM_Process()
3889 lastwordsize = ((16U - npblb) / 4U) + 1U; in CRYP_AESCCM_Process()
3947 uint32_t npblb; in CRYP_AESCCM_Process_IT() local
4105 npblb = 16U - (uint32_t)hcryp->Size; in CRYP_AESCCM_Process_IT()
4112 MODIFY_REG(hcryp->Instance->CR, AES_CR_NPBLB, npblb << 20U); in CRYP_AESCCM_Process_IT()
4116 if ((npblb % 4U) == 0U) in CRYP_AESCCM_Process_IT()
4118 lastwordsize = (16U - npblb) / 4U; in CRYP_AESCCM_Process_IT()
4122 lastwordsize = ((16U - npblb) / 4U) + 1U; in CRYP_AESCCM_Process_IT()
4246 npblb = 16U - (uint32_t)hcryp->Size; in CRYP_AESCCM_Process_IT()
4253 MODIFY_REG(hcryp->Instance->CR, AES_CR_NPBLB, npblb << 20U); in CRYP_AESCCM_Process_IT()
4257 if ((npblb % 4U) == 0U) in CRYP_AESCCM_Process_IT()
4259 lastwordsize = (16U - npblb) / 4U; in CRYP_AESCCM_Process_IT()
4263 lastwordsize = ((16U - npblb) / 4U) + 1U; in CRYP_AESCCM_Process_IT()
4407 uint32_t npblb; in CRYP_GCMCCM_SetPayloadPhase_IT() local
4506 npblb = ((((uint32_t)hcryp->Size / 16U) + 1U) * 16U) - ((uint32_t)hcryp->Size); in CRYP_GCMCCM_SetPayloadPhase_IT()
4513 MODIFY_REG(hcryp->Instance->CR, AES_CR_NPBLB, npblb << 20U); in CRYP_GCMCCM_SetPayloadPhase_IT()
4517 if ((npblb % 4U) == 0U) in CRYP_GCMCCM_SetPayloadPhase_IT()
4519 lastwordsize = (16U - npblb) / 4U; in CRYP_GCMCCM_SetPayloadPhase_IT()
4523 lastwordsize = ((16U - npblb) / 4U) + 1U; in CRYP_GCMCCM_SetPayloadPhase_IT()
4560 uint32_t npblb; in CRYP_GCMCCM_SetPayloadPhase_DMA() local
4586 npblb = 16U - (uint32_t)hcryp->Size; in CRYP_GCMCCM_SetPayloadPhase_DMA()
4594 MODIFY_REG(hcryp->Instance->CR, AES_CR_NPBLB, npblb << 20U); in CRYP_GCMCCM_SetPayloadPhase_DMA()
4598 if ((npblb % 4U) == 0U) in CRYP_GCMCCM_SetPayloadPhase_DMA()
4600 lastwordsize = (16U - npblb) / 4U; in CRYP_GCMCCM_SetPayloadPhase_DMA()
4604 lastwordsize = ((16U - npblb) / 4U) + 1U; in CRYP_GCMCCM_SetPayloadPhase_DMA()
4974 uint32_t npblb; in CRYP_GCMCCM_SetHeaderPhase_IT() local
5047 npblb = 16U - ((uint32_t)hcryp->Size); in CRYP_GCMCCM_SetHeaderPhase_IT()
5053 MODIFY_REG(hcryp->Instance->CR, AES_CR_NPBLB, npblb << 20U); in CRYP_GCMCCM_SetHeaderPhase_IT()
5057 if ((npblb % 4U) == 0U) in CRYP_GCMCCM_SetHeaderPhase_IT()
5059 lastwordsize = (16U - npblb) / 4U; in CRYP_GCMCCM_SetHeaderPhase_IT()
5063 lastwordsize = ((16U - npblb) / 4U) + 1U; in CRYP_GCMCCM_SetHeaderPhase_IT()
5461 uint16_t npblb; in CRYP_PhaseProcessingResume() local
5551 npblb = (((hcryp->Size / 16U) + 1U) * 16U) - (hcryp->Size); in CRYP_PhaseProcessingResume()
5557 MODIFY_REG(hcryp->Instance->CR, AES_CR_NPBLB, ((uint32_t)npblb) << 20U); in CRYP_PhaseProcessingResume()
5561 if ((npblb % 4U) == 0U) in CRYP_PhaseProcessingResume()
5563 lastwordsize = (16U - npblb) / 4U; in CRYP_PhaseProcessingResume()
5567 lastwordsize = ((16U - npblb) / 4U) + 1U; in CRYP_PhaseProcessingResume()