sec_alg_res
struct sec_alg_res *res;
struct sec_alg_res *res = &qp_ctx->res[req->req_id];
static int sec_alloc_civ_resource(struct device *dev, struct sec_alg_res *res)
static void sec_free_civ_resource(struct device *dev, struct sec_alg_res *res)
static int sec_alloc_aiv_resource(struct device *dev, struct sec_alg_res *res)
static void sec_free_aiv_resource(struct device *dev, struct sec_alg_res *res)
static int sec_alloc_mac_resource(struct device *dev, struct sec_alg_res *res)
static void sec_free_mac_resource(struct device *dev, struct sec_alg_res *res)
static void sec_free_pbuf_resource(struct device *dev, struct sec_alg_res *res)
static int sec_alloc_pbuf_resource(struct device *dev, struct sec_alg_res *res)
struct sec_alg_res *res = qp_ctx->res;
qp_ctx->res = kzalloc_objs(struct sec_alg_res, q_depth);