Home
last modified time | relevance | path

Searched refs:sec_ctx (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec2/
H A Dsec.h42 struct sec_ctx *ctx;
68 int (*buf_map)(struct sec_ctx *ctx, struct sec_req *req);
69 void (*buf_unmap)(struct sec_ctx *ctx, struct sec_req *req);
70 void (*do_transfer)(struct sec_ctx *ctx, struct sec_req *req);
71 int (*bd_fill)(struct sec_ctx *ctx, struct sec_req *req);
72 int (*bd_send)(struct sec_ctx *ctx, struct sec_req *req);
73 void (*callback)(struct sec_ctx *ctx, struct sec_req *req, int err);
74 int (*process)(struct sec_ctx *ctx, struct sec_req *req);
105 struct sec_ctx *ctx;
119 struct sec_ctx { struct
[all...]
H A Dsec_crypto.c69 static inline int sec_alloc_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_alloc_queue_id()
79 static inline void sec_free_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_free_queue_id()
150 struct sec_ctx *ctx; in sec_req_cb()
194 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req) in sec_bd_send()
322 static int sec_alg_resource_alloc(struct sec_ctx *ctx, in sec_alg_resource_alloc()
356 static void sec_alg_resource_free(struct sec_ctx *ctx, in sec_alg_resource_free()
369 static int sec_create_qp_ctx(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_create_qp_ctx()
425 static void sec_release_qp_ctx(struct sec_ctx *ctx, in sec_release_qp_ctx()
439 static int sec_ctx_base_init(struct sec_ctx *ctx) in sec_ctx_base_init()
483 static void sec_ctx_base_uninit(struct sec_ctx *ct
[all...]
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/sec2/
H A Dsec.h48 struct sec_ctx *ctx;
79 int (*buf_map)(struct sec_ctx *ctx, struct sec_req *req);
80 void (*buf_unmap)(struct sec_ctx *ctx, struct sec_req *req);
81 void (*do_transfer)(struct sec_ctx *ctx, struct sec_req *req);
82 int (*bd_fill)(struct sec_ctx *ctx, struct sec_req *req);
83 int (*bd_send)(struct sec_ctx *ctx, struct sec_req *req);
84 void (*callback)(struct sec_ctx *ctx, struct sec_req *req, int err);
85 int (*process)(struct sec_ctx *ctx, struct sec_req *req);
122 struct sec_ctx *ctx;
135 struct sec_ctx { struct
[all...]
H A Dsec_crypto.c118 static inline int sec_alloc_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_alloc_queue_id()
128 static inline void sec_free_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_free_queue_id()
203 struct sec_ctx *ctx = req->ctx; in sec_cb_status_check()
236 struct sec_ctx *ctx; in sec_req_cb()
274 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req) in sec_bd_send()
431 static int sec_alg_resource_alloc(struct sec_ctx *ctx, in sec_alg_resource_alloc()
472 static void sec_alg_resource_free(struct sec_ctx *ctx, in sec_alg_resource_free()
485 static int sec_alloc_qp_ctx_resource(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_alloc_qp_ctx_resource()
530 static void sec_free_qp_ctx_resource(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx) in sec_free_qp_ctx_resource()
541 static int sec_create_qp_ctx(struct hisi_qm *qm, struct sec_ctx *ct
[all...]
/kernel/linux/linux-5.10/net/key/
H A Daf_key.c444 static inline int pfkey_sec_ctx_len(const struct sadb_x_sec_ctx *sec_ctx) in pfkey_sec_ctx_len() argument
447 sec_ctx->sadb_x_ctx_len, in pfkey_sec_ctx_len()
453 const struct sadb_x_sec_ctx *sec_ctx = p; in verify_sec_ctx_len() local
454 int len = sec_ctx->sadb_x_ctx_len; in verify_sec_ctx_len()
459 len = pfkey_sec_ctx_len(sec_ctx); in verify_sec_ctx_len()
461 if (sec_ctx->sadb_x_sec_len != len) in verify_sec_ctx_len()
467 static inline struct xfrm_user_sec_ctx *pfkey_sadb2xfrm_user_sec_ctx(const struct sadb_x_sec_ctx *sec_ctx, in pfkey_sadb2xfrm_user_sec_ctx() argument
471 int ctx_size = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx()
478 uctx->len = pfkey_sec_ctx_len(sec_ctx); in pfkey_sadb2xfrm_user_sec_ctx()
479 uctx->exttype = sec_ctx in pfkey_sadb2xfrm_user_sec_ctx()
774 struct sadb_x_sec_ctx *sec_ctx; __pfkey_xfrm_state2msg() local
1071 const struct sadb_x_sec_ctx *sec_ctx; pfkey_msg2xfrm_state() local
2075 struct sadb_x_sec_ctx *sec_ctx; pfkey_xfrm_policy2msg() local
2259 struct sadb_x_sec_ctx *sec_ctx; pfkey_spdadd() local
2374 struct sadb_x_sec_ctx *sec_ctx; pfkey_spddelete() local
3166 struct sadb_x_sec_ctx *sec_ctx; pfkey_send_acquire() local
3276 struct sadb_x_sec_ctx *sec_ctx; pfkey_compile_policy() local
[all...]
/kernel/linux/linux-6.6/net/key/
H A Daf_key.c440 static inline int pfkey_sec_ctx_len(const struct sadb_x_sec_ctx *sec_ctx) in pfkey_sec_ctx_len() argument
443 sec_ctx->sadb_x_ctx_len, in pfkey_sec_ctx_len()
449 const struct sadb_x_sec_ctx *sec_ctx = p; in verify_sec_ctx_len() local
450 int len = sec_ctx->sadb_x_ctx_len; in verify_sec_ctx_len()
455 len = pfkey_sec_ctx_len(sec_ctx); in verify_sec_ctx_len()
457 if (sec_ctx->sadb_x_sec_len != len) in verify_sec_ctx_len()
463 static inline struct xfrm_user_sec_ctx *pfkey_sadb2xfrm_user_sec_ctx(const struct sadb_x_sec_ctx *sec_ctx, in pfkey_sadb2xfrm_user_sec_ctx() argument
467 int ctx_size = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx()
474 uctx->len = pfkey_sec_ctx_len(sec_ctx); in pfkey_sadb2xfrm_user_sec_ctx()
475 uctx->exttype = sec_ctx in pfkey_sadb2xfrm_user_sec_ctx()
770 struct sadb_x_sec_ctx *sec_ctx; __pfkey_xfrm_state2msg() local
1067 const struct sadb_x_sec_ctx *sec_ctx; pfkey_msg2xfrm_state() local
2070 struct sadb_x_sec_ctx *sec_ctx; pfkey_xfrm_policy2msg() local
2254 struct sadb_x_sec_ctx *sec_ctx; pfkey_spdadd() local
2369 struct sadb_x_sec_ctx *sec_ctx; pfkey_spddelete() local
3161 struct sadb_x_sec_ctx *sec_ctx; pfkey_send_acquire() local
3271 struct sadb_x_sec_ctx *sec_ctx; pfkey_compile_policy() local
[all...]
/kernel/linux/linux-5.10/fs/ceph/
H A Dxattr.c1220 &as_ctx->sec_ctx, in ceph_security_init_secctx()
1271 ceph_pagelist_append(pagelist, as_ctx->sec_ctx, as_ctx->sec_ctxlen); in ceph_security_init_secctx()
1289 security_release_secctx(as_ctx->sec_ctx, as_ctx->sec_ctxlen); in ceph_release_acl_sec_ctx()
H A Dsuper.h1017 void *sec_ctx; member
/kernel/linux/linux-5.10/include/linux/
H A Dsecurity.h1649 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp);
1653 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx);
1668 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc()
1689 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc()
1667 security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp) security_xfrm_policy_alloc() argument
1688 security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx) security_xfrm_state_alloc() argument
/kernel/linux/linux-5.10/security/
H A Dsecurity.c2403 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc()
2406 return call_int_hook(xfrm_policy_alloc_security, 0, ctxp, sec_ctx, gfp); in security_xfrm_policy_alloc()
2428 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc()
2430 return call_int_hook(xfrm_state_alloc, 0, x, sec_ctx); in security_xfrm_state_alloc()
2402 security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp) security_xfrm_policy_alloc() argument
2427 security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx) security_xfrm_state_alloc() argument
/kernel/linux/linux-6.6/include/linux/
H A Dsecurity.h1749 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp);
1753 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx);
1768 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc()
1789 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc()
1767 security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp) security_xfrm_policy_alloc() argument
1788 security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx) security_xfrm_state_alloc() argument
/kernel/linux/linux-6.6/security/
H A Dsecurity.c4854 * @sec_ctx: security label provided by userspace
4863 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc()
4866 return call_int_hook(xfrm_policy_alloc_security, 0, ctxp, sec_ctx, gfp); in security_xfrm_policy_alloc()
4914 * @sec_ctx: security label provided by userspace
4918 * correspond to @sec_ctx.
4923 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc()
4925 return call_int_hook(xfrm_state_alloc, 0, x, sec_ctx); in security_xfrm_state_alloc()
4862 security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp) security_xfrm_policy_alloc() argument
4922 security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx) security_xfrm_state_alloc() argument
/kernel/linux/linux-6.6/fs/ceph/
H A Dxattr.c1368 &name, &as_ctx->sec_ctx, in ceph_security_init_secctx()
1418 ceph_pagelist_append(pagelist, as_ctx->sec_ctx, as_ctx->sec_ctxlen); in ceph_security_init_secctx()
1436 security_release_secctx(as_ctx->sec_ctx, as_ctx->sec_ctxlen); in ceph_release_acl_sec_ctx()
H A Dsuper.h1130 void *sec_ctx; member

Completed in 39 milliseconds