Home
last modified time | relevance | path

Searched refs:sctx (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/md/
H A Ddm-switch.c63 struct switch_ctx *sctx; in alloc_switch_ctx() local
65 sctx = kzalloc_flex(*sctx, path_list, nr_paths); in alloc_switch_ctx()
66 if (!sctx) in alloc_switch_ctx()
69 sctx->ti = ti; in alloc_switch_ctx()
70 sctx->region_size = region_size; in alloc_switch_ctx()
72 ti->private = sctx; in alloc_switch_ctx()
74 return sctx; in alloc_switch_ctx()
79 struct switch_ctx *sctx = ti->private; in alloc_region_table() local
83 if (!(sctx->region_size & (sctx->region_size - 1))) in alloc_region_table()
84 sctx->region_size_bits = __ffs(sctx->region_size); in alloc_region_table()
[all …]
/linux/fs/btrfs/
H A Dscrub.c138 struct scrub_ctx *sctx; member
350 stripe->sctx = NULL; in release_scrub_stripe()
396 static void scrub_put_ctx(struct scrub_ctx *sctx);
430 static noinline_for_stack void scrub_free_ctx(struct scrub_ctx *sctx) in scrub_free_ctx() argument
434 if (!sctx) in scrub_free_ctx()
438 release_scrub_stripe(&sctx->stripes[i]); in scrub_free_ctx()
440 kvfree(sctx); in scrub_free_ctx()
443 static void scrub_put_ctx(struct scrub_ctx *sctx) in scrub_put_ctx() argument
445 if (refcount_dec_and_test(&sctx->refs)) in scrub_put_ctx()
446 scrub_free_ctx(sctx); in scrub_put_ctx()
[all …]
/linux/include/crypto/
H A Dsha2.h74 static inline void sha224_block_init(struct crypto_sha256_state *sctx) in sha224_block_init() argument
76 sctx->state[0] = SHA224_H0; in sha224_block_init()
77 sctx->state[1] = SHA224_H1; in sha224_block_init()
78 sctx->state[2] = SHA224_H2; in sha224_block_init()
79 sctx->state[3] = SHA224_H3; in sha224_block_init()
80 sctx->state[4] = SHA224_H4; in sha224_block_init()
81 sctx->state[5] = SHA224_H5; in sha224_block_init()
82 sctx->state[6] = SHA224_H6; in sha224_block_init()
83 sctx->state[7] = SHA224_H7; in sha224_block_init()
84 sctx->count = 0; in sha224_block_init()
[all …]
/linux/security/apparmor/
H A Dcrypto.c39 struct sha256_ctx sctx; in aa_calc_profile_hash() local
49 sha256_init(&sctx); in aa_calc_profile_hash()
50 sha256_update(&sctx, (u8 *)&le32_version, 4); in aa_calc_profile_hash()
51 sha256_update(&sctx, (u8 *)start, len); in aa_calc_profile_hash()
52 sha256_final(&sctx, profile->hash); in aa_calc_profile_hash()
/linux/arch/s390/purgatory/
H A Dpurgatory.c19 struct sha256_ctx sctx; in verify_sha256_digest() local
21 sha256_init(&sctx); in verify_sha256_digest()
25 sha256_update(&sctx, (uint8_t *)(ptr->start), ptr->len); in verify_sha256_digest()
27 sha256_final(&sctx, digest); in verify_sha256_digest()
/linux/tools/perf/util/
H A Dexpr.l85 static int literal(yyscan_t scanner, const struct expr_scanner_ctx *sctx) in literal() argument
89 yylval->num = expr__get_literal(expr_get_text(scanner), sctx); in literal()
91 if (!sctx->is_test) in literal()
116 struct expr_scanner_ctx *sctx = expr_get_extra(yyscanner); variable
127 {literal} { return literal(yyscanner, sctx); }
129 {symbol} { return str(yyscanner, ID, sctx->runtime); }
H A Dstat-shadow.c150 pctx->sctx.user_requested_cpu_list = strdup(config->user_requested_cpu_list); in generic_metric()
151 pctx->sctx.runtime = runtime; in generic_metric()
152 pctx->sctx.system_wide = config->system_wide; in generic_metric()
H A Dexpr.h17 struct expr_scanner_ctx sctx; member
H A Dmetricgroup.c251 m->pctx->sctx.user_requested_cpu_list = NULL; in metric__new()
253 m->pctx->sctx.user_requested_cpu_list = strdup(user_requested_cpu_list); in metric__new()
254 if (!m->pctx->sctx.user_requested_cpu_list) in metric__new()
257 m->pctx->sctx.runtime = runtime; in metric__new()
258 m->pctx->sctx.system_wide = system_wide; in metric__new()
1540 expr->runtime = m->pctx->sctx.runtime; in parse_groups()
H A Dexpr.c327 zfree(&ctx->sctx.user_requested_cpu_list); in expr__ctx_free()
346 ret = expr_lex_init_extra(&ctx->sctx, &scanner); in __expr__parse()
/linux/arch/riscv/purgatory/
H A Dpurgatory.c23 struct sha256_ctx sctx; in verify_sha256_digest() local
26 sha256_init(&sctx); in verify_sha256_digest()
29 sha256_update(&sctx, (uint8_t *)(ptr->start), ptr->len); in verify_sha256_digest()
30 sha256_final(&sctx, digest); in verify_sha256_digest()
/linux/arch/x86/purgatory/
H A Dpurgatory.c28 struct sha256_ctx sctx; in verify_sha256_digest() local
30 sha256_init(&sctx); in verify_sha256_digest()
34 sha256_update(&sctx, (uint8_t *)(ptr->start), ptr->len); in verify_sha256_digest()
36 sha256_final(&sctx, digest); in verify_sha256_digest()
/linux/drivers/char/tpm/
H A Dtpm2-sessions.c472 struct sha256_ctx sctx; in tpm2_KDFe() local
480 sha256_init(&sctx); in tpm2_KDFe()
482 sha256_update(&sctx, (u8 *)&c, sizeof(c)); in tpm2_KDFe()
484 sha256_update(&sctx, z, EC_PT_SZ); in tpm2_KDFe()
486 sha256_update(&sctx, str, strlen(str)+1); in tpm2_KDFe()
487 sha256_update(&sctx, pt_u, EC_PT_SZ); in tpm2_KDFe()
488 sha256_update(&sctx, pt_v, EC_PT_SZ); in tpm2_KDFe()
489 sha256_final(&sctx, out); in tpm2_KDFe()
595 struct sha256_ctx sctx; in tpm_buf_fill_hmac_session() local
691 sha256_init(&sctx); in tpm_buf_fill_hmac_session()
[all …]
/linux/drivers/misc/
H A Dfastrpc.c303 struct fastrpc_session_ctx *sctx; member
328 struct fastrpc_session_ctx *sctx) in fastrpc_sid_offset() argument
330 return (u64)sctx->sid << cctx->soc_data->sid_pos; in fastrpc_sid_offset()
351 dev_err(map->fl->sctx->dev, in fastrpc_free_map()
467 if (fl->sctx && fl->sctx->sid) in fastrpc_buf_alloc()
468 buf->dma_addr += fastrpc_sid_offset(fl->cctx, fl->sctx); in fastrpc_buf_alloc()
776 return sg_dma_addr + fastrpc_sid_offset(fl->cctx, fl->sctx); in fastrpc_compute_dma_addr()
782 struct fastrpc_session_ctx *sess = fl->sctx; in fastrpc_map_attach()
874 struct fastrpc_session_ctx *sess = fl->sctx; in fastrpc_map_create()
952 struct device *dev = ctx->fl->sctx->dev; in fastrpc_create_maps()
[all …]
/linux/drivers/staging/rtl8723bs/include/
H A Drtw_xmit.h226 void rtw_sctx_init(struct submit_ctx *sctx, int timeout_ms);
227 int rtw_sctx_wait(struct submit_ctx *sctx);
228 void rtw_sctx_done_err(struct submit_ctx **sctx, int status);
229 void rtw_sctx_done(struct submit_ctx **sctx);
248 struct submit_ctx *sctx; member
/linux/drivers/crypto/
H A Dpadlock-sha.c34 struct sha1_state *sctx = padlock_shash_desc_ctx(desc); in padlock_sha1_init() local
36 *sctx = (struct sha1_state){ in padlock_sha1_init()
45 struct crypto_sha256_state *sctx = padlock_shash_desc_ctx(desc); in padlock_sha256_init() local
47 sha256_block_init(sctx); in padlock_sha256_init()
/linux/arch/powerpc/perf/
H A Dcallchain_32.c43 struct sigcontext32 sctx; member
85 if (read_user_stack_32((unsigned int __user *) &sf->sctx.regs, &regs)) in sane_signal_32_frame()
/linux/arch/powerpc/kernel/
H A Dsignal_32.c195 struct sigcontext sctx; /* the sigcontext */ member
861 sc = (struct sigcontext __user *) &frame->sctx; in handle_signal32()
1314 sc = &sf->sctx; in COMPAT_SYSCALL_DEFINE0()
/linux/tools/perf/tests/
H A Dexpr.c143 ctx->sctx.runtime = 3; in test__expr()
H A Dpmu-events.c945 ctx->sctx.is_test = true; in metric_parse_fake()