target/linux/generic/files/drivers/mtd/nand/mtk_bmt_nmbm.c
static uint32_t nmbm_get_block_state_raw(u32 *block_state,
					 uint32_t ba)
{
	uint32_t unit, shift;

	unit = ba / NMBM_BITMAP_BLOCKS_PER_UNIT;
	shift = (ba % NMBM_BITMAP_BLOCKS_PER_UNIT) * NMBM_BITMAP_BITS_PER_BLOCK;

	return (block_state[unit] >> shift) & BLOCK_ST_MASK;
}
/*
 * nmbm_get_block_state_raw - Get state of a block from raw block state table
 * @block_state: pointer to raw block state table (bitmap)
 * @ba: block address
 */
Get state of a block from raw block state table
@block_state: pointer to raw block state table (bitmap)
@ba: block address
Get state of a block from raw block state table @block_state : pointer to raw block state table ( bitmap ) @ba : block address
static uint32_t nmbm_get_block_state_raw(u32 *block_state,
					 uint32_t ba)
{
	uint32_t unit, shift;
	unit = ba / NMBM_BITMAP_BLOCKS_PER_UNIT;
	shift = (ba % NMBM_BITMAP_BLOCKS_PER_UNIT) * NMBM_BITMAP_BITS_PER_BLOCK;
	return (block_state[unit] >> shift) & BLOCK_ST_MASK;
}
static uint32_t nmbm_get_block_state_raw ( u32 * block_state , uint32_t ba ) { uint32_t unit , shift ; unit = ba / NMBM_BITMAP_BLOCKS_PER_UNIT ; shift = ( ba % NMBM_BITMAP_BLOCKS_PER_UNIT ) * NMBM_BITMAP_BITS_PER_BLOCK ; return ( block_state [ unit ] >> shift ) & BLOCK_ST_MASK ; }
nmbm_get_block_state_raw - Get state of a block from raw block state table
 @block_state: pointer to raw block state table (bitmap)
 @ba: block address
nmbm_get_block_state_raw - Get state of a block from raw block state table @block_state : pointer to raw block state table ( bitmap ) @ba : block address