Lines Matching refs:ulIdx

80                                         uint32_t ulIdx,
84 static uint64_t DirEntryIndexToOffset( uint32_t ulIdx );
343 uint32_t ulIdx = 0U; in RedDirEntryLookup() local
350 while( ( ret == 0 ) && ( ulIdx < ulDirentCount ) ) in RedDirEntryLookup()
352 ret = RedInodeDataSeekAndRead( pPInode, ulIdx / DIRENTS_PER_BLOCK ); in RedDirEntryLookup()
357 … uint32_t ulBlockLastIdx = REDMIN( DIRENTS_PER_BLOCK, ulDirentCount - ulIdx ); in RedDirEntryLookup()
386 ulIdx += ulBlockIdx; in RedDirEntryLookup()
392 ulFreeIdx = ulIdx + ulBlockIdx; in RedDirEntryLookup()
410 ulIdx += ulBlockLastIdx; in RedDirEntryLookup()
416 ulFreeIdx = ulIdx; in RedDirEntryLookup()
420 ulIdx += DIRENTS_PER_BLOCK; in RedDirEntryLookup()
436 if( ulIdx == ulDirentCount ) in RedDirEntryLookup()
448 ulIdx = ulFreeIdx; in RedDirEntryLookup()
455 *pulEntryIdx = ulIdx; in RedDirEntryLookup()
510 uint32_t ulIdx = *pulIdx; in RedDirEntryRead() local
517 while( ( ret == 0 ) && ( ulIdx < ulDirentCount ) ) in RedDirEntryRead()
519 uint32_t ulBlockOffset = ulIdx / DIRENTS_PER_BLOCK; in RedDirEntryRead()
529 … for( ulBlockIdx = ulIdx % DIRENTS_PER_BLOCK; ulBlockIdx < ulBlockLastIdx; ulBlockIdx++ ) in RedDirEntryRead()
533 *pulIdx = ulIdx + 1U; in RedDirEntryRead()
545 ulIdx++; in RedDirEntryRead()
550 REDASSERT( ulIdx <= ulDirentCount ); in RedDirEntryRead()
556 ulIdx += DIRENTS_PER_BLOCK - ( ulIdx % DIRENTS_PER_BLOCK ); in RedDirEntryRead()
565 REDASSERT( ulIdx <= ulDirentCount ); in RedDirEntryRead()
568 if( ( ret == 0 ) && ( ulIdx >= ulDirentCount ) ) in RedDirEntryRead()
878 uint32_t ulIdx, in DirEntryWrite() argument
886 ( ulIdx >= DIRENTS_MAX ) || in DirEntryWrite()
901 uint64_t ullOffset = DirEntryIndexToOffset( ulIdx ); in DirEntryWrite()
928 static uint64_t DirEntryIndexToOffset( uint32_t ulIdx ) in DirEntryIndexToOffset() argument
930 uint32_t ulBlock = ulIdx / DIRENTS_PER_BLOCK; in DirEntryIndexToOffset()
931 uint32_t ulOffsetInBlock = ulIdx % DIRENTS_PER_BLOCK; in DirEntryIndexToOffset()
934 REDASSERT( ulIdx < DIRENTS_MAX ); in DirEntryIndexToOffset()
952 uint32_t ulIdx; in DirOffsetToEntryIndex() local
959 ulIdx = ( uint32_t ) ( ullOffset >> BLOCK_SIZE_P2 ) * DIRENTS_PER_BLOCK; in DirOffsetToEntryIndex()
960 ulIdx += ( uint32_t ) ( ullOffset & ( REDCONF_BLOCK_SIZE - 1U ) ) / DIRENT_SIZE; in DirOffsetToEntryIndex()
962 return ulIdx; in DirOffsetToEntryIndex()