Home
last modified time | relevance | path

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

/linux/fs/btrfs/
H A Dsend.c376 static void inconsistent_snapshot_error(struct send_ctx *sctx, in inconsistent_snapshot_error() argument
401 btrfs_err(sctx->send_root->fs_info, in inconsistent_snapshot_error()
403 result_string, what, sctx->cmp_key->objectid, in inconsistent_snapshot_error()
404 btrfs_root_id(sctx->send_root), in inconsistent_snapshot_error()
405 (sctx->parent_root ? btrfs_root_id(sctx->parent_root) : 0)); in inconsistent_snapshot_error()
409 static bool proto_cmd_ok(const struct send_ctx *sctx, int cmd) in proto_cmd_ok() argument
411 switch (sctx->proto) { in proto_cmd_ok()
419 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino);
422 get_waiting_dir_move(struct send_ctx *sctx, u64 ino);
424 static int is_waiting_for_rm(struct send_ctx *sctx, u64 dir_ino, u64 gen);
[all …]
H A Dscrub.c130 struct scrub_ctx *sctx; member
342 stripe->sctx = NULL; in release_scrub_stripe()
383 static void scrub_put_ctx(struct scrub_ctx *sctx);
417 static noinline_for_stack void scrub_free_ctx(struct scrub_ctx *sctx) in scrub_free_ctx() argument
421 if (!sctx) in scrub_free_ctx()
425 release_scrub_stripe(&sctx->stripes[i]); in scrub_free_ctx()
427 kvfree(sctx); in scrub_free_ctx()
430 static void scrub_put_ctx(struct scrub_ctx *sctx) in scrub_put_ctx() argument
432 if (refcount_dec_and_test(&sctx->refs)) in scrub_put_ctx()
433 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
128 {literal} { return literal(yyscanner, sctx); }
130 {symbol} { return str(yyscanner, ID, sctx->runtime); }
H A Dstat-shadow.c158 pctx->sctx.user_requested_cpu_list = strdup(config->user_requested_cpu_list); in generic_metric()
159 pctx->sctx.runtime = runtime; in generic_metric()
160 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()
1541 expr->runtime = m->pctx->sctx.runtime; in parse_groups()
H A Dexpr.c337 zfree(&ctx->sctx.user_requested_cpu_list); in __expr__parse()
356 ret = expr_lex_init_extra(&ctx->sctx, &scanner); in __expr__parse()
/linux/drivers/misc/
H A Dfastrpc.c303 struct fastrpc_session_ctx *sctx; member
330 struct fastrpc_session_ctx *sctx) in fastrpc_sid_offset() argument
332 return (u64)sctx->sid << cctx->soc_data->sid_pos; in fastrpc_sid_offset()
353 dev_err(map->fl->sctx->dev, in fastrpc_free_map()
475 if (fl->sctx && fl->sctx->sid) in fastrpc_buf_alloc()
476 buf->dma_addr += fastrpc_sid_offset(fl->cctx, fl->sctx); in fastrpc_buf_alloc()
832 return sg_dma_addr + fastrpc_sid_offset(fl->cctx, fl->sctx); in fastrpc_compute_dma_addr()
838 struct fastrpc_session_ctx *sess = fl->sctx; in fastrpc_map_attach()
999 struct device *dev = ctx->fl->sctx->dev; in fastrpc_create_maps()
1035 struct device *dev = ctx->fl->sctx->dev; in fastrpc_get_args()
[all …]
/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.c977 ctx->sctx.is_test = true; in metric_parse_fake()
/linux/drivers/staging/rtl8723bs/core/
H A Drtw_mlme_ext.c1969 struct submit_ctx sctx; in dump_mgntframe_and_wait() local
1978 rtw_sctx_init(&sctx, timeout_ms); in dump_mgntframe_and_wait()
1979 pxmitbuf->sctx = &sctx; in dump_mgntframe_and_wait()
1984 ret = rtw_sctx_wait(&sctx); in dump_mgntframe_and_wait()
1987 pxmitbuf->sctx = NULL; in dump_mgntframe_and_wait()