Lines Matching refs:sec_ctx

121 static inline u32 sec_alloc_queue_id(struct sec_ctx *ctx, struct sec_req *req)  in sec_alloc_queue_id()
131 static inline void sec_free_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_free_queue_id()
206 struct sec_ctx *ctx = req->ctx; in sec_cb_status_check()
239 struct sec_ctx *ctx; in sec_req_cb()
277 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req) in sec_bd_send()
434 static int sec_alg_resource_alloc(struct sec_ctx *ctx, in sec_alg_resource_alloc()
475 static void sec_alg_resource_free(struct sec_ctx *ctx, in sec_alg_resource_free()
490 static int sec_alloc_qp_ctx_resource(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx) in sec_alloc_qp_ctx_resource()
534 static void sec_free_qp_ctx_resource(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx) in sec_free_qp_ctx_resource()
545 static int sec_create_qp_ctx(struct sec_ctx *ctx, int qp_ctx_id) in sec_create_qp_ctx()
581 static void sec_release_qp_ctx(struct sec_ctx *ctx, in sec_release_qp_ctx()
589 static int sec_ctx_base_init(struct sec_ctx *ctx) in sec_ctx_base_init()
633 static void sec_ctx_base_uninit(struct sec_ctx *ctx) in sec_ctx_base_uninit()
644 static int sec_cipher_init(struct sec_ctx *ctx) in sec_cipher_init()
656 static void sec_cipher_uninit(struct sec_ctx *ctx) in sec_cipher_uninit()
665 static int sec_auth_init(struct sec_ctx *ctx) in sec_auth_init()
677 static void sec_auth_uninit(struct sec_ctx *ctx) in sec_auth_uninit()
689 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_fbtfm_init()
710 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_init()
744 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_uninit()
755 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_3des_setkey()
826 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_setkey()
888 static int sec_cipher_pbuf_map(struct sec_ctx *ctx, struct sec_req *req, in GEN_SEC_SETKEY_FUNC()
926 static void sec_cipher_pbuf_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_pbuf_unmap()
966 static int sec_cipher_map(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_map()
1036 static void sec_cipher_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_unmap()
1052 static int sec_skcipher_sgl_map(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_map()
1059 static void sec_skcipher_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_unmap()
1120 struct sec_ctx *ctx = crypto_tfm_ctx(tfm); in sec_aead_setauthsize()
1145 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_setkey()
1227 static int sec_aead_sgl_map(struct sec_ctx *ctx, struct sec_req *req) in GEN_SEC_AEAD_SETKEY_FUNC()
1234 static void sec_aead_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_sgl_unmap()
1241 static int sec_request_transfer(struct sec_ctx *ctx, struct sec_req *req) in sec_request_transfer()
1262 static void sec_request_untransfer(struct sec_ctx *ctx, struct sec_req *req) in sec_request_untransfer()
1267 static void sec_skcipher_copy_iv(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_copy_iv()
1275 static int sec_skcipher_bd_fill(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_bd_fill()
1326 static int sec_skcipher_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_bd_fill_v3()
1424 static struct sec_req *sec_back_req_clear(struct sec_ctx *ctx, in sec_back_req_clear()
1442 static void sec_skcipher_callback(struct sec_ctx *ctx, struct sec_req *req, in sec_skcipher_callback()
1470 static void set_aead_auth_iv(struct sec_ctx *ctx, struct sec_req *req) in set_aead_auth_iv()
1513 static void sec_aead_set_iv(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_set_iv()
1624 static int sec_aead_bd_fill(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_bd_fill()
1679 static int sec_aead_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_bd_fill_v3()
1702 static void sec_aead_callback(struct sec_ctx *c, struct sec_req *req, int err) in sec_aead_callback()
1746 static void sec_request_uninit(struct sec_ctx *ctx, struct sec_req *req) in sec_request_uninit()
1752 static int sec_request_init(struct sec_ctx *ctx, struct sec_req *req) in sec_request_init()
1770 static int sec_process(struct sec_ctx *ctx, struct sec_req *req) in sec_process()
1856 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_ctx_init()
1881 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_init()
1923 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_exit()
1932 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_ctx_init()
1954 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_ctx_exit()
1963 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_xcm_ctx_init()
1989 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_xcm_ctx_exit()
2010 static int sec_skcipher_cryptlen_check(struct sec_ctx *ctx, in sec_skcipher_cryptlen_check()
2045 static int sec_skcipher_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_skcipher_param_check()
2078 static int sec_skcipher_soft_crypto(struct sec_ctx *ctx, in sec_skcipher_soft_crypto()
2112 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_crypto()
2156 .cra_ctxsize = sizeof(struct sec_ctx),\
2232 static int sec_aead_spec_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_spec_check()
2280 static int sec_aead_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_param_check()
2319 static int sec_aead_soft_crypto(struct sec_ctx *ctx, in sec_aead_soft_crypto()
2358 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_crypto()
2396 .cra_ctxsize = sizeof(struct sec_ctx),\