Lines Matching refs:destCount
66 context->destCount = 0; in InitUncompContextRL()
88 context->destCount = 0; in InitUncompContextLZ()
113 context->destCount = 0; in InitUncompContextHuffman()
140 inline u32 ReadHeader( u8* headerSize, s32 *destCount, const u8* srcp, u32 srcSize, s32 forceDestSi… in ReadHeader() argument
143 NN_NULL_TASSERT_(destCount); in ReadHeader()
151 *destCount |= (*srcp << ((3 - *headerSize) * 8)); in ReadHeader()
155 *destCount |= (*srcp << ((6 - *headerSize) * 8)); in ReadHeader()
159 if ( *headerSize == 4 && *destCount > 0 ) in ReadHeader()
170 ( forceDestSize < *destCount ) ) in ReadHeader()
172 *destCount = forceDestSize; in ReadHeader()
216 …read_len = ReadHeader( &context->headerSize, &context->destCount, srcp, len, context->forceDestCou… in ReadUncompRL()
221 return (context->headerSize == 0)? context->destCount : -1; in ReadUncompRL()
225 while ( context->destCount > 0 ) in ReadUncompRL()
235 context->destCount--; in ReadUncompRL()
240 return context->destCount; in ReadUncompRL()
253 context->destCount--; in ReadUncompRL()
257 return context->destCount; in ReadUncompRL()
274 if ( context->length > context->destCount ) in ReadUncompRL()
281 context->length = (u16)context->destCount; in ReadUncompRL()
285 return context->destCount; in ReadUncompRL()
338 …read_len = ReadHeader( &context->headerSize, &context->destCount, srcp, len, context->forceDestCou… in ReadUncompLZ()
343 return (context->headerSize == 0)? context->destCount : -1; in ReadUncompLZ()
347 while ( context->destCount > 0 ) in ReadUncompLZ()
353 return context->destCount; in ReadUncompLZ()
360 context->destCount--; in ReadUncompLZ()
416 return context->destCount; in ReadUncompLZ()
427 if ( context->length > context->destCount ) in ReadUncompLZ()
433 context->length = context->destCount; in ReadUncompLZ()
440 context->destCount--; in ReadUncompLZ()
445 if ( context->destCount == 0 ) in ReadUncompLZ()
455 return context->destCount; in ReadUncompLZ()
524 …read_len = ReadHeader( &context->headerSize, &context->destCount, srcp, len, context->forceDestCou… in ReadUncompHuffman()
529 return (context->headerSize == 0)? context->destCount : -1; in ReadUncompHuffman()
547 return context->destCount; in ReadUncompHuffman()
563 while ( context->destCount > 0 ) in ReadUncompHuffman()
570 return context->destCount; in ReadUncompHuffman()
598 if ( context->destCount <= (context->destTmpCnt / 8) ) in ReadUncompHuffman()
609 context->destCount -= 4; in ReadUncompHuffman()
611 if ( context->destCount <= 0 ) in ReadUncompHuffman()
713 context->destCount = -1; in InitUncompContextLH()
781 context->destCount = (s32)( headerVal >> 8 ); in ReadUncompLH()
783 if ( context->destCount == 0 ) in ReadUncompLH()
786 context->destCount = -1; in ReadUncompLH()
795 context->destCount = (s32)internal::ForceConvertEndian( (u32)val32 ); in ReadUncompLH()
800 … if ( ( context->forceDestCount > 0 ) && ( context->forceDestCount < context->destCount ) ) in ReadUncompLH()
802 context->destCount = context->forceDestCount; in ReadUncompLH()
909 while ( context->destCount > 0 ) in ReadUncompLH()
946 context->destCount--; in ReadUncompLH()
1014 if ( context->destCount < lzLength ) in ReadUncompLH()
1021 lzLength = (u16)context->destCount; in ReadUncompLH()
1024 context->destCount -= lzLength; in ReadUncompLH()
1041 if ( (context->destCount == 0) && in ReadUncompLH()
1048 return context->destCount; in ReadUncompLH()
1364 context->destCount = 0; in InitUncompContextLRC()
1426 …read_len = ReadHeader( &context->headerSize, &context->destCount, srcp, len, context->forceDestCou… in ReadUncompLRC()
1431 return (context->headerSize == 0)? context->destCount : -1; in ReadUncompLRC()
1449 while ( context->destCount > 0 ) in ReadUncompLRC()
1461 context->destCount--; in ReadUncompLRC()
1486 if ( context->length > context->destCount ) in ReadUncompLRC()
1492 context->length = (u16)( context->destCount ); in ReadUncompLRC()
1499 context->destCount--; in ReadUncompLRC()
1517 if ( (context->destCount == 0) && in ReadUncompLRC()
1524 return context->destCount; in ReadUncompLRC()