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

/linux-master/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.c121 static inline u32 sec_alloc_queue_id(struct sec_ctx *ctx, struct sec_req *req)
131 static inline void sec_free_queue_id(struct sec_ctx *ctx, struct sec_req *req)
206 struct sec_ctx *ctx = req->ctx;
239 struct sec_ctx *ctx;
277 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req)
434 static int sec_alg_resource_alloc(struct sec_ctx *ctx,
475 static void sec_alg_resource_free(struct sec_ctx *ctx,
488 static int sec_alloc_qp_ctx_resource(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx)
532 static void sec_free_qp_ctx_resource(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx)
543 static int sec_create_qp_ctx(struct sec_ctx *ct
[all...]
/linux-master/net/key/
H A Daf_key.c440 static inline int pfkey_sec_ctx_len(const struct sadb_x_sec_ctx *sec_ctx) argument
443 sec_ctx->sadb_x_ctx_len,
449 const struct sadb_x_sec_ctx *sec_ctx = p; local
450 int len = sec_ctx->sadb_x_ctx_len;
455 len = pfkey_sec_ctx_len(sec_ctx);
457 if (sec_ctx->sadb_x_sec_len != len)
463 static inline struct xfrm_user_sec_ctx *pfkey_sadb2xfrm_user_sec_ctx(const struct sadb_x_sec_ctx *sec_ctx, argument
467 int ctx_size = sec_ctx->sadb_x_ctx_len;
474 uctx->len = pfkey_sec_ctx_len(sec_ctx);
475 uctx->exttype = sec_ctx
770 struct sadb_x_sec_ctx *sec_ctx; local
1067 const struct sadb_x_sec_ctx *sec_ctx; local
2070 struct sadb_x_sec_ctx *sec_ctx; local
2254 struct sadb_x_sec_ctx *sec_ctx; local
2369 struct sadb_x_sec_ctx *sec_ctx; local
3161 struct sadb_x_sec_ctx *sec_ctx; local
3271 struct sadb_x_sec_ctx *sec_ctx; local
[all...]
/linux-master/include/linux/
H A Dsecurity.h1828 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp);
1832 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx);
1847 struct xfrm_user_sec_ctx *sec_ctx,
1868 struct xfrm_user_sec_ctx *sec_ctx)
1846 security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp) argument
1867 security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx) argument
H A Dlsm_hook_defs.h381 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp)
388 struct xfrm_user_sec_ctx *sec_ctx)
/linux-master/fs/ceph/
H A Dxattr.c1386 &name, &as_ctx->sec_ctx,
1436 ceph_pagelist_append(pagelist, as_ctx->sec_ctx, as_ctx->sec_ctxlen);
1454 security_release_secctx(as_ctx->sec_ctx, as_ctx->sec_ctxlen);
H A Dsuper.h1137 void *sec_ctx; member in struct:ceph_acl_sec_ctx
/linux-master/security/
H A Dsecurity.c5050 * @sec_ctx: security label provided by userspace
5059 struct xfrm_user_sec_ctx *sec_ctx,
5062 return call_int_hook(xfrm_policy_alloc_security, ctxp, sec_ctx, gfp);
5110 * @sec_ctx: security label provided by userspace
5114 * correspond to @sec_ctx.
5119 struct xfrm_user_sec_ctx *sec_ctx)
5121 return call_int_hook(xfrm_state_alloc, x, sec_ctx);
5058 security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp) argument
5118 security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx) argument

Completed in 194 milliseconds