Lines Matching refs:length
137 s32 length = flags & 0x7f; in MI_SecureUncompressRL() local
145 length++; in MI_SecureUncompressRL()
146 if ( length > destCount ) in MI_SecureUncompressRL()
151 srcCount -= length; in MI_SecureUncompressRL()
157 destCount -= length; in MI_SecureUncompressRL()
161 } while ( --length > 0 ); in MI_SecureUncompressRL()
167 length += 3; in MI_SecureUncompressRL()
168 if ( length > destCount ) in MI_SecureUncompressRL()
174 destCount -= length; in MI_SecureUncompressRL()
183 } while ( --length > 0 ); in MI_SecureUncompressRL()
305 s32 length = (*pSrc >> 4); in MI_SecureUncompressLZ() local
310 length += 3; in MI_SecureUncompressLZ()
315 if ( length == 1 ) in MI_SecureUncompressLZ()
324 length = (*pSrc++ & 0x0F) << 12; in MI_SecureUncompressLZ()
325 length |= (*pSrc++) << 4; in MI_SecureUncompressLZ()
326 length |= (*pSrc >> 4); in MI_SecureUncompressLZ()
327 length += 0xFF + 0xF + 3; in MI_SecureUncompressLZ()
332 else if ( length == 0 ) in MI_SecureUncompressLZ()
340 length = (*pSrc++ & 0x0F) << 4; in MI_SecureUncompressLZ()
341 length |= (*pSrc >> 4); in MI_SecureUncompressLZ()
342 length += 0xF + 2; in MI_SecureUncompressLZ()
349 length += 1; in MI_SecureUncompressLZ()
372 if ( length > destCount ) in MI_SecureUncompressLZ()
381 destCount -= length; in MI_SecureUncompressLZ()
386 } while ( --length > 0 ); in MI_SecureUncompressLZ()