target/linux/generic/files/drivers/mtd/nand/mtk_bmt_nmbm.c
static bool nmbm_block_walk(struct nmbm_instance *ni, bool ascending,
			    uint32_t ba, uint32_t *nba, int32_t count,
			    int32_t limit)
{
	if (ascending)
		return nmbm_block_walk_asc(ni, ba, nba, count, limit);

	return nmbm_block_walk_desc(ni, ba, nba, count, limit);
}
/*
 * nmbm_block_walk - Skip specified number of good blocks from curr. block addr
 * @ni: NMBM instance structure
 * @ascending: whether to walk ascending
 * @ba: start physical block address
 * @nba: return physical block address after walk
 * @count: number of good blocks to be skipped
 * @limit: highest/lowest block address allowed for walking
 *
 * Start from @ba, skipping any bad blocks, counting @count good blocks, and
 * return the next good block address.
 *
 * If no enough good blocks counted while @limit reached, false will be returned.
 *
 * If @count == 0, nearest good block address will be returned.
 * @limit can be set to negative if no limit required.
 * @limit is not counted in walking.
 */
Skip specified number of good blocks from curr.

Start from @ba, skipping any bad blocks, counting @count good blocks, and
return the next good block address.

If no enough good blocks counted while @limit reached, false will be returned.

If @count == 0, nearest good block address will be returned.
@limit can be set to negative if no limit required.
@limit is not counted in walking.
Skip specified number of good blocks from curr . Start from @ba skipping any bad blocks counting @count good blocks and return the next good block address . If no enough good blocks counted while @limit reached false will be returned . If @count == 0 nearest good block address will be returned . @limit can be set to negative if no limit required . @limit is not counted in walking .
static bool nmbm_block_walk(struct nmbm_instance *ni, bool ascending,
			    uint32_t ba, uint32_t *nba, int32_t count,
			    int32_t limit)
{
	if (ascending)
		return nmbm_block_walk_asc(ni, ba, nba, count, limit);
	return nmbm_block_walk_desc(ni, ba, nba, count, limit);
}
static bool nmbm_block_walk ( struct nmbm_instance * ni , bool ascending , uint32_t ba , uint32_t * nba , int32_t count , int32_t limit ) { if ( ascending ) return nmbm_block_walk_asc ( ni , ba , nba , count , limit ) ; return nmbm_block_walk_desc ( ni , ba , nba , count , limit ) ; }
nmbm_block_walk - Skip specified number of good blocks from curr.
nmbm_block_walk - Skip specified number of good blocks from curr .