Home
last modified time | relevance | path

Searched refs:sctx (Results 1 – 18 of 18) 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.c51 * How many groups we have for each sctx.
130 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 in scrub_put_ctx()
439 struct scrub_ctx *sctx; scrub_setup_ctx() local
649 fill_writer_pointer_gap(struct scrub_ctx * sctx,u64 physical) fill_writer_pointer_gap() argument
976 scrub_stripe_report_errors(struct scrub_ctx * sctx,struct scrub_stripe * stripe,const struct scrub_error_records * errors) scrub_stripe_report_errors() argument
1143 struct scrub_ctx *sctx = stripe->sctx; scrub_stripe_read_repair_worker() local
1268 scrub_submit_write_bio(struct scrub_ctx * sctx,struct scrub_stripe * stripe,struct btrfs_bio * bbio,bool dev_replace) scrub_submit_write_bio() argument
1310 scrub_write_sectors(struct scrub_ctx * sctx,struct scrub_stripe * stripe,unsigned long write_bitmap,bool dev_replace) scrub_write_sectors() argument
1340 scrub_throttle_dev_io(struct scrub_ctx * sctx,struct btrfs_device * device,unsigned int bio_size) scrub_throttle_dev_io() argument
1565 sync_write_pointer_for_zoned(struct scrub_ctx * sctx,u64 logical,u64 physical,u64 physical_end) sync_write_pointer_for_zoned() argument
1842 scrub_submit_initial_read(struct scrub_ctx * sctx,struct scrub_stripe * stripe) scrub_submit_initial_read() argument
1901 submit_initial_group_read(struct scrub_ctx * sctx,unsigned int first_slot,unsigned int nr_stripes) submit_initial_group_read() argument
1923 flush_scrub_stripes(struct scrub_ctx * sctx) flush_scrub_stripes() argument
1997 queue_scrub_stripe(struct scrub_ctx * sctx,struct btrfs_block_group * bg,struct btrfs_device * dev,int mirror_num,u64 logical,u32 length,u64 physical,u64 * found_logical_ret) queue_scrub_stripe() argument
2045 should_cancel_scrub(const struct scrub_ctx * sctx) should_cancel_scrub() argument
2077 scrub_raid56_cached_parity(struct scrub_ctx * sctx,struct btrfs_device * scrub_dev,struct btrfs_chunk_map * map,u64 full_stripe_start,unsigned long * extent_bitmap) scrub_raid56_cached_parity() argument
2127 scrub_raid56_parity_stripe(struct scrub_ctx * sctx,struct btrfs_device * scrub_dev,struct btrfs_block_group * bg,struct btrfs_chunk_map * map,u64 full_stripe_start) scrub_raid56_parity_stripe() argument
2270 scrub_simple_mirror(struct scrub_ctx * sctx,struct btrfs_block_group * bg,u64 logical_start,u64 logical_length,struct btrfs_device * device,u64 physical,int mirror_num) scrub_simple_mirror() argument
2365 scrub_simple_stripe(struct scrub_ctx * sctx,struct btrfs_block_group * bg,struct btrfs_chunk_map * map,struct btrfs_device * device,int stripe_index) scrub_simple_stripe() argument
2399 scrub_stripe(struct scrub_ctx * sctx,struct btrfs_block_group * bg,struct btrfs_chunk_map * map,struct btrfs_device * scrub_dev,int stripe_index) scrub_stripe() argument
2561 scrub_chunk(struct scrub_ctx * sctx,struct btrfs_block_group * bg,struct btrfs_device * scrub_dev,u64 dev_offset,u64 dev_extent_len) scrub_chunk() argument
2620 scrub_enumerate_chunks(struct scrub_ctx * sctx,struct btrfs_device * scrub_dev,u64 start,u64 end) scrub_enumerate_chunks() argument
2913 scrub_one_super(struct scrub_ctx * sctx,struct btrfs_device * dev,struct page * page,u64 physical,u64 generation) scrub_one_super() argument
2942 scrub_supers(struct scrub_ctx * sctx,struct btrfs_device * scrub_dev) scrub_supers() argument
3052 struct scrub_ctx *sctx; btrfs_scrub_dev() local
3261 struct scrub_ctx *sctx; btrfs_scrub_cancel_dev() local
3286 struct scrub_ctx *sctx = NULL; btrfs_scrub_progress() local
[all...]
/linux/arch/s390/crypto/
H A Daes_s390.c76 struct s390_aes_ctx *sctx = crypto_skcipher_ctx(tfm); in setkey_fallback_skcipher() local
78 crypto_skcipher_clear_flags(sctx->fallback.skcipher, in setkey_fallback_skcipher()
80 crypto_skcipher_set_flags(sctx->fallback.skcipher, in setkey_fallback_skcipher()
83 return crypto_skcipher_setkey(sctx->fallback.skcipher, key, len); in setkey_fallback_skcipher()
86 static int fallback_skcipher_crypt(struct s390_aes_ctx *sctx, in fallback_skcipher_crypt() argument
93 skcipher_request_set_tfm(subreq, sctx->fallback.skcipher); in fallback_skcipher_crypt()
102 struct s390_aes_ctx *sctx = crypto_skcipher_ctx(tfm); in ecb_aes_set_key() local
111 sctx->fc = (fc && cpacf_test_func(&km_functions, fc)) ? fc : 0; in ecb_aes_set_key()
112 if (!sctx->fc) in ecb_aes_set_key()
115 sctx->key_len = key_len; in ecb_aes_set_key()
[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/char/tpm/
H A Dtpm2-sessions.c465 struct sha256_ctx sctx; in tpm2_KDFe() local
473 sha256_init(&sctx); in tpm2_KDFe()
475 sha256_update(&sctx, (u8 *)&c, sizeof(c)); in tpm2_KDFe()
477 sha256_update(&sctx, z, EC_PT_SZ); in tpm2_KDFe()
479 sha256_update(&sctx, str, strlen(str)+1); in tpm2_KDFe()
480 sha256_update(&sctx, pt_u, EC_PT_SZ); in tpm2_KDFe()
481 sha256_update(&sctx, pt_v, EC_PT_SZ); in tpm2_KDFe()
482 sha256_final(&sctx, out); in tpm2_KDFe()
606 struct sha256_ctx sctx; in tpm_buf_fill_hmac_session() local
702 sha256_init(&sctx); in tpm_buf_fill_hmac_session()
780 struct sha256_ctx sctx; tpm_buf_check_hmac_response() local
[all...]
/linux/drivers/misc/
H A Dfastrpc.c344 struct fastrpc_session_ctx *sctx; member
373 struct fastrpc_session_ctx *sctx) in fastrpc_sid_offset() argument
375 return (u64)sctx->sid << cctx->soc_data->sid_pos; in fastrpc_sid_offset()
396 dev_err(map->fl->sctx->dev, in fastrpc_free_map()
521 if (fl->sctx && fl->sctx->sid) in fastrpc_buf_alloc()
522 buf->dma_addr += fastrpc_sid_offset(fl->cctx, fl->sctx); in fastrpc_buf_alloc()
878 return sg_dma_addr + fastrpc_sid_offset(fl->cctx, fl->sctx); in fastrpc_compute_dma_addr()
884 struct fastrpc_session_ctx *sess = fl->sctx; in fastrpc_map_attach()
1046 struct device *dev = ctx->fl->sctx->dev; in fastrpc_create_maps()
1082 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()