Lines Matching refs:ui32Base

95 DESConfigSet(uint32_t ui32Base, uint32_t ui32Config)  in DESConfigSet()  argument
100 ASSERT(ui32Base == DES_BASE); in DESConfigSet()
105 ui32Config |= (HWREG(ui32Base + DES_O_CTRL) & DES_CTRL_CONTEXT); in DESConfigSet()
110 HWREG(ui32Base + DES_O_CTRL) = ui32Config; in DESConfigSet()
129 DESKeySet(uint32_t ui32Base, uint8_t *pui8Key) in DESKeySet() argument
134 ASSERT(ui32Base == DES_BASE); in DESKeySet()
139 HWREG(ui32Base + DES_O_KEY1_L) = * ((uint32_t *)(pui8Key + 0)); in DESKeySet()
140 HWREG(ui32Base + DES_O_KEY1_H) = * ((uint32_t *)(pui8Key + 4)); in DESKeySet()
146 if(HWREG(ui32Base + DES_O_CTRL) & DES_CFG_TRIPLE) in DESKeySet()
148 HWREG(ui32Base + DES_O_KEY2_L) = * ((uint32_t *)(pui8Key + 8)); in DESKeySet()
149 HWREG(ui32Base + DES_O_KEY2_H) = * ((uint32_t *)(pui8Key + 12)); in DESKeySet()
150 HWREG(ui32Base + DES_O_KEY3_L) = * ((uint32_t *)(pui8Key + 16)); in DESKeySet()
151 HWREG(ui32Base + DES_O_KEY3_H) = * ((uint32_t *)(pui8Key + 20)); in DESKeySet()
172 DESIVSet(uint32_t ui32Base, uint8_t *pui8IVdata) in DESIVSet() argument
177 ASSERT(ui32Base == DES_BASE); in DESIVSet()
183 if((HWREG(ui32Base + DES_O_CTRL) & DES_CTRL_CONTEXT) == 0) in DESIVSet()
191 HWREG(ui32Base + DES_O_IV_L) = *((uint32_t *) (pui8IVdata + 0)); in DESIVSet()
192 HWREG(ui32Base + DES_O_IV_H) = *((uint32_t *) (pui8IVdata + 4)); in DESIVSet()
217 DESDataLengthSet(uint32_t ui32Base, uint32_t ui32Length) in DESDataLengthSet() argument
222 ASSERT(ui32Base == DES_BASE); in DESDataLengthSet()
227 HWREG(ui32Base + DES_O_LENGTH) = ui32Length; in DESDataLengthSet()
245 DESDataReadNonBlocking(uint32_t ui32Base, uint8_t *pui8Dest, uint8_t ui8Length) in DESDataReadNonBlocking() argument
254 ASSERT(ui32Base == DES_BASE); in DESDataReadNonBlocking()
263 if((DES_CTRL_OUTPUT_READY & (HWREG(ui32Base + DES_O_CTRL))) == 0) in DESDataReadNonBlocking()
305 DESDataRead(uint32_t ui32Base, uint8_t *pui8Dest, uint8_t ui8Length) in DESDataRead() argument
314 ASSERT(ui32Base == DES_BASE); in DESDataRead()
322 while((HWREG(ui32Base + DES_O_CTRL) & DES_CTRL_OUTPUT_READY) == 0) in DESDataRead()
357 DESDataWriteNonBlocking(uint32_t ui32Base, uint8_t *pui8Src, uint8_t ui8Length) in DESDataWriteNonBlocking() argument
367 ASSERT(ui32Base == DES_BASE); in DESDataWriteNonBlocking()
378 if(!(DES_CTRL_INPUT_READY & (HWREG(ui32Base + DES_O_CTRL)))) in DESDataWriteNonBlocking()
419 DESDataWrite(uint32_t ui32Base, uint8_t *pui8Src, uint8_t ui8Length) in DESDataWrite() argument
428 ASSERT(ui32Base == DES_BASE); in DESDataWrite()
438 while(((HWREG(ui32Base + DES_O_CTRL) & DES_CTRL_INPUT_READY)) == 0) in DESDataWrite()
482 DESDataProcess(uint32_t ui32Base, uint8_t *pui8Src, uint8_t *pui8Dest, in DESDataProcess() argument
490 ASSERT(ui32Base == DES_BASE); in DESDataProcess()
497 HWREG(ui32Base + DES_O_LENGTH) = ui32Length; in DESDataProcess()
509 while((DES_CTRL_INPUT_READY & (HWREG(ui32Base + DES_O_CTRL))) == 0) in DESDataProcess()
516 DESDataWriteNonBlocking(ui32Base, pui8Src + ui32Count*8 ,8); in DESDataProcess()
521 while((DES_CTRL_OUTPUT_READY & (HWREG(ui32Base + DES_O_CTRL))) == 0) in DESDataProcess()
528 DESDataReadNonBlocking(ui32Base, pui8Dest + ui32Count*8 ,8); in DESDataProcess()
540 while((DES_CTRL_INPUT_READY & (HWREG(ui32Base + DES_O_CTRL))) == 0) in DESDataProcess()
546 DESDataWriteNonBlocking(ui32Base, pui8Src + (8*ui32BlkCount) , in DESDataProcess()
551 while((DES_CTRL_OUTPUT_READY & (HWREG(ui32Base + DES_O_CTRL))) == 0) in DESDataProcess()
558 DESDataReadNonBlocking(ui32Base, pui8Dest + (8*ui32BlkCount) , in DESDataProcess()
592 DESIntStatus(uint32_t ui32Base, bool bMasked) in DESIntStatus() argument
598 ASSERT(ui32Base == DES_BASE); in DESIntStatus()
605 ui32IntStatus = HWREG(ui32Base + DES_O_IRQSTATUS); in DESIntStatus()
606 ui32IntStatus &= HWREG(ui32Base + DES_O_IRQENABLE); in DESIntStatus()
613 ui32IntStatus = HWREG(ui32Base + DES_O_IRQSTATUS); in DESIntStatus()
640 DESIntEnable(uint32_t ui32Base, uint32_t ui32IntFlags) in DESIntEnable() argument
645 ASSERT(ui32Base == DES_BASE); in DESIntEnable()
657 HWREG(ui32Base + DES_O_IRQENABLE) |= ui32IntFlags & 0x0000ffff; in DESIntEnable()
682 DESIntDisable(uint32_t ui32Base, uint32_t ui32IntFlags) in DESIntDisable() argument
687 ASSERT(ui32Base == DES_BASE); in DESIntDisable()
699 HWREG(ui32Base + DES_O_IRQENABLE) &= ~(ui32IntFlags & 0x0000ffff); in DESIntDisable()
724 DESIntClear(uint32_t ui32Base, uint32_t ui32IntFlags) in DESIntClear() argument
729 ASSERT(ui32Base == DES_BASE); in DESIntClear()
763 DESIntRegister(uint32_t ui32Base, void(*pfnHandler)(void)) in DESIntRegister() argument
768 ASSERT(ui32Base == DES_BASE); in DESIntRegister()
797 DESIntUnregister(uint32_t ui32Base) in DESIntUnregister() argument
802 ASSERT(ui32Base == DES_BASE); in DESIntUnregister()
833 DESDMAEnable(uint32_t ui32Base, uint32_t ui32Flags) in DESDMAEnable() argument
838 ASSERT(ui32Base == DES_BASE); in DESDMAEnable()
846 HWREG(ui32Base + DES_O_SYSCONFIG) |= ui32Flags; in DESDMAEnable()
867 DESDMADisable(uint32_t ui32Base, uint32_t ui32Flags) in DESDMADisable() argument
872 ASSERT(ui32Base == DES_BASE); in DESDMADisable()
880 HWREG(ui32Base + DES_O_SYSCONFIG) &= ~ui32Flags; in DESDMADisable()