[PATCH] qm: Move all the same logic functions of hisilicon crypto to qm