Add parser parameter function.

Add some function for parsing parameter common part.

Signed-off-by: Yunchao Chen <chenyc@marvell.com>