* add interrupt lock in low level API to gurantee the correctness of operations. * make some functions as in-line functions * clean up and optimize the code comments Signed-off-by: Wayne Ren <wei.ren@synopsys.com>