Searched refs:rest (Results 1 – 9 of 9) sorted by relevance
| /TwlSDK-5.1.0/build/libraries/math/common/src/ |
| D | net_sha256.c | 153 u32 rest = MATHSHA256_CBLOCK - (u32)context->num; in MATH_SHA256Update() local 155 if (rest > length) in MATH_SHA256Update() 157 rest = length; in MATH_SHA256Update() 160 (void)memcpy(&dat[context->num], input, rest); in MATH_SHA256Update() 161 input = (const u8 *)input + rest; in MATH_SHA256Update() 162 length -= rest; in MATH_SHA256Update() 163 context->num += rest; in MATH_SHA256Update() 196 u32 rest = MATHSHA256_CBLOCK - (u32)context->num; in MATH_SHA256Fill() local 198 if (rest > length) in MATH_SHA256Fill() 200 rest = length; in MATH_SHA256Fill() [all …]
|
| D | dgt_sha1.c | 209 u32 rest = MATH_SHA1_BLOCK_SIZE - context->pool; in MATHi_SHA1Fill() local 210 if (rest > length) in MATHi_SHA1Fill() 212 rest = length; in MATHi_SHA1Fill() 214 MI_CpuFill8(&context->block[context->pool], input, rest); in MATHi_SHA1Fill() 215 length -= rest; in MATHi_SHA1Fill() 216 context->pool += rest; in MATHi_SHA1Fill() 286 u32 rest = MATH_SHA1_BLOCK_SIZE - context->pool; in MATH_SHA1Update() local 287 if (rest > length) in MATH_SHA1Update() 289 rest = length; in MATH_SHA1Update() 291 MI_CpuCopy8(input, &context->block[context->pool], rest); in MATH_SHA1Update() [all …]
|
| /TwlSDK-5.1.0/build/libraries/mb/common/src/ |
| D | mb_fileinfo.c | 218 u32 rest = len; in MB_ReadSegment() local 229 dst += ROM_HEADER_SIZE_FULL, rest -= ROM_HEADER_SIZE_FULL; in MB_ReadSegment() 236 rest = 0; in MB_ReadSegment() 265 if (rest >= MB_AUTHCODE_SIZE) in MB_ReadSegment() 276 dst += MB_AUTHCODE_SIZE, rest -= MB_AUTHCODE_SIZE; in MB_ReadSegment() 280 rest = 0; in MB_ReadSegment() 284 if (rest >= sizeof(MBiCacheList)) in MB_ReadSegment() 288 dst += sizeof(MBiCacheList), rest -= sizeof(MBiCacheList); in MB_ReadSegment() 304 rest = 0; in MB_ReadSegment() 308 if (rest >= sizeof(u32) * 4) in MB_ReadSegment() [all …]
|
| /TwlSDK-5.1.0/build/libraries/mi/common/src/ |
| D | mi_cache.c | 102 int rest = MATH_CountPopulation(bitset) - cache->invalid_total; in WFSi_TouchCachePages() local 103 if (rest > 0) in WFSi_TouchCachePages() 109 if (--del < rest) in WFSi_TouchCachePages() 117 cache->valid_total -= rest; in WFSi_TouchCachePages() 118 cache->invalid_total += rest; in WFSi_TouchCachePages()
|
| /TwlSDK-5.1.0/build/demos/mb/multiboot-wfs/child/src/ |
| D | child.c | 352 int rest; in ModeChildFile() local 356 rest = (int)(FS_GetFileLength(file) - FS_GetFilePosition(file)); in ModeChildFile() 357 if (rest > (int)sizeof(tmp_buf)) in ModeChildFile() 359 rest = (int)sizeof(tmp_buf); in ModeChildFile() 361 PrintString(3, 16, COLOR_WHITE, "reading... %d BYTE", rest); in ModeChildFile() 394 if (ret != rest) in ModeChildFile()
|
| /TwlSDK-5.1.0/build/libraries/fs/common/src/ |
| D | fs_archive_fatfs.c | 1002 u32 rest = *length; in FSi_FATFS_ReadFile() local 1006 while (rest > 0) in FSi_FATFS_ReadFile() 1012 u32 len = rest; in FSi_FATFS_ReadFile() 1014 if (!FSi_IsValidAddressForARM7(buffer, rest) || (((u32)buffer & 31) != 0)) in FSi_FATFS_ReadFile() 1027 async &= ((dst == buffer) && (len == rest)); in FSi_FATFS_ReadFile() 1036 rest -= len; in FSi_FATFS_ReadFile() 1047 rest -= read; in FSi_FATFS_ReadFile() 1054 *length -= rest; in FSi_FATFS_ReadFile() 1076 u32 rest = *length; in FSi_FATFS_WriteFile() local 1080 while (rest > 0) in FSi_FATFS_WriteFile() [all …]
|
| D | fs_proc_default.c | 773 const u32 rest = (u32)(prop->file.bottom - pos); in FSi_ROMFAT_ReadFile() local 775 if (*length > rest) in FSi_ROMFAT_ReadFile() 777 *length = rest; in FSi_ROMFAT_ReadFile() 802 const u32 rest = (u32)(prop->file.bottom - pos); in FSi_ROMFAT_WriteFile() local 804 if (*length > rest) in FSi_ROMFAT_WriteFile() 806 *length = rest; in FSi_ROMFAT_WriteFile()
|
| /TwlSDK-5.1.0/build/libraries/card/common/src/ |
| D | card_spi.c | 197 int rest = (int)(timeout - force_wait); in CARDi_CommandEnd() local 198 while (!CARDi_CommandCheckBusy() && (rest > 0)) in CARDi_CommandEnd() 200 int interval = (rest < 5) ? rest : 5; in CARDi_CommandEnd() 202 rest -= interval; in CARDi_CommandEnd()
|
| /TwlSDK-5.1.0/build/libraries/dsp/common/src/ |
| D | dsp_pipe.c | 157 u32 rest; in DSPi_FileIOProc() local 162 rest = FS_GetFileLength(file) - FS_GetFilePosition(file); in DSPi_FileIOProc() 163 length = (DSPWord)MATH_MIN(length, rest); in DSPi_FileIOProc()
|