crypto: hisilicon - support get algs by the capability register

The value of qm algorithm can change dynamically according to the
value of the capability register.

Add xxx_set_qm_algs() function to obtain the algs that the
hardware device supported from the capability register and set
them into usr mode attribute files.

Signed-off-by: Zhiqi Song <>
Signed-off-by: Wenkai Lin <>
Signed-off-by: Weili Qian <>
Signed-off-by: Herbert Xu <>
5 files changed