Home
last modified time | relevance | path

Searched refs:sec_ctx (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.10/drivers/crypto/hisilicon/sec2/
Dsec.h44 struct sec_ctx *ctx;
70 int (*buf_map)(struct sec_ctx *ctx, struct sec_req *req);
71 void (*buf_unmap)(struct sec_ctx *ctx, struct sec_req *req);
72 void (*do_transfer)(struct sec_ctx *ctx, struct sec_req *req);
73 int (*bd_fill)(struct sec_ctx *ctx, struct sec_req *req);
74 int (*bd_send)(struct sec_ctx *ctx, struct sec_req *req);
75 void (*callback)(struct sec_ctx *ctx, struct sec_req *req, int err);
76 int (*process)(struct sec_ctx *ctx, struct sec_req *req);
107 struct sec_ctx *ctx;
121 struct sec_ctx { struct
Dsec_crypto.c70 static inline int sec_alloc_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_alloc_queue_id()
80 static inline void sec_free_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_free_queue_id()
151 struct sec_ctx *ctx; in sec_req_cb()
195 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req) in sec_bd_send()
323 static int sec_alg_resource_alloc(struct sec_ctx *ctx, in sec_alg_resource_alloc()
357 static void sec_alg_resource_free(struct sec_ctx *ctx, in sec_alg_resource_free()
370 static int sec_create_qp_ctx(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_create_qp_ctx()
426 static void sec_release_qp_ctx(struct sec_ctx *ctx, in sec_release_qp_ctx()
440 static int sec_ctx_base_init(struct sec_ctx *ctx) in sec_ctx_base_init()
485 static void sec_ctx_base_uninit(struct sec_ctx *ctx) in sec_ctx_base_uninit()
[all …]
/Linux-v5.10/net/key/
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 …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->sadb_x_sec_exttype; in pfkey_sadb2xfrm_user_sec_ctx()
[all …]
/Linux-v5.10/include/linux/
Dsecurity.h1629 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp);
1633 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx);
1648 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument
1669 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument
Dlsm_hook_defs.h339 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp)
346 struct xfrm_user_sec_ctx *sec_ctx)
/Linux-v5.10/fs/ceph/
Dxattr.c1212 &as_ctx->sec_ctx, in ceph_security_init_secctx()
1263 ceph_pagelist_append(pagelist, as_ctx->sec_ctx, as_ctx->sec_ctxlen); in ceph_security_init_secctx()
1281 security_release_secctx(as_ctx->sec_ctx, as_ctx->sec_ctxlen); in ceph_release_acl_sec_ctx()
Dsuper.h996 void *sec_ctx; member
/Linux-v5.10/security/
Dsecurity.c2355 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument
2358 return call_int_hook(xfrm_policy_alloc_security, 0, ctxp, sec_ctx, gfp); in security_xfrm_policy_alloc()
2380 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument
2382 return call_int_hook(xfrm_state_alloc, 0, x, sec_ctx); in security_xfrm_state_alloc()