Lines Matching refs:ulBlock

120     uint32_t ulBlock;  /**< Block number the buffer is associated with; BBLK_INVALID if unused. */  member
167 static bool BufferFind( uint32_t ulBlock,
198 gBufCtx.aHead[ bIdx ].ulBlock = BBLK_INVALID; in RedBufferInit()
216 REDSTATUS RedBufferGet( uint32_t ulBlock, in RedBufferGet() argument
223 …if( ( ulBlock >= gpRedVolume->ulBlockCount ) || ( ( uFlags & BFLAG_MASK ) != uFlags ) || ( ppBuffe… in RedBufferGet()
230 if( BufferFind( ulBlock, &bIdx ) ) in RedBufferGet()
278 … if( ( ( pHead->uFlags & BFLAG_DIRTY ) != 0U ) && ( pHead->ulBlock != BBLK_INVALID ) ) in RedBufferGet()
310 pHead->ulBlock = BBLK_INVALID; in RedBufferGet()
312 ret = RedIoRead( gbRedVolNum, ulBlock, 1U, gBufCtx.b.aabBuffer[ bIdx ] ); in RedBufferGet()
345 pHead->ulBlock = ulBlock; in RedBufferGet()
443 ( pHead->ulBlock != BBLK_INVALID ) && in RedBufferFlush()
445 ( pHead->ulBlock >= ulBlockStart ) && in RedBufferFlush()
446 ( pHead->ulBlock < ( ulBlockStart + ulBlockCount ) ) ) in RedBufferFlush()
510 pHead->ulBlock = ulBlockNew; in RedBufferBranch()
535 gBufCtx.aHead[ bIdx ].ulBlock = BBLK_INVALID; in RedBufferDiscard()
579 ( pHead->ulBlock != BBLK_INVALID ) && in RedBufferDiscardRange()
580 ( pHead->ulBlock >= ulBlockStart ) && in RedBufferDiscardRange()
581 ( pHead->ulBlock < ( ulBlockStart + ulBlockCount ) ) ) in RedBufferDiscardRange()
585 pHead->ulBlock = BBLK_INVALID; in RedBufferDiscardRange()
762 ( gBufCtx.aHead[ bIdx ].ulBlock != BBLK_INVALID ) && in BufferToIdx()
803 ret = RedIoWrite( pHead->bVolNum, pHead->ulBlock, 1U, gBufCtx.b.aabBuffer[ bIdx ] ); in BufferWrite()
1189 static bool BufferFind( uint32_t ulBlock, in BufferFind() argument
1194 if( ( ulBlock >= gpRedVolume->ulBlockCount ) || ( pbIdx == NULL ) ) in BufferFind()
1206 if( ( pHead->bVolNum == gbRedVolNum ) && ( pHead->ulBlock == ulBlock ) ) in BufferFind()