Searched refs:sec_ctx (Results 1 – 8 of 8) sorted by relevance
/linux-6.12.1/drivers/crypto/hisilicon/sec2/ |
D | sec.h | 48 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
|
D | sec_crypto.c | 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() [all …]
|
/linux-6.12.1/net/key/ |
D | af_key.c | 440 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 …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->sadb_x_sec_exttype; in pfkey_sadb2xfrm_user_sec_ctx() [all …]
|
/linux-6.12.1/include/linux/ |
D | security.h | 1872 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp); 1876 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx); 1891 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument 1912 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument
|
D | lsm_hook_defs.h | 384 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp) 391 struct xfrm_user_sec_ctx *sec_ctx)
|
/linux-6.12.1/fs/ceph/ |
D | xattr.c | 1386 &name, &as_ctx->sec_ctx, in ceph_security_init_secctx() 1436 ceph_pagelist_append(pagelist, as_ctx->sec_ctx, as_ctx->sec_ctxlen); in ceph_security_init_secctx() 1454 security_release_secctx(as_ctx->sec_ctx, as_ctx->sec_ctxlen); in ceph_release_acl_sec_ctx()
|
D | super.h | 1136 void *sec_ctx; member
|
/linux-6.12.1/security/ |
D | security.c | 5252 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument 5255 return call_int_hook(xfrm_policy_alloc_security, ctxp, sec_ctx, gfp); in security_xfrm_policy_alloc() 5312 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument 5314 return call_int_hook(xfrm_state_alloc, x, sec_ctx); in security_xfrm_state_alloc()
|