Home
last modified time | relevance | path

Searched refs:err (Results 1 – 18 of 18) sorted by relevance

/block/
Dsed-opal.c577 static bool can_add(int *err, struct opal_dev *cmd, size_t len) in can_add() argument
579 if (*err) in can_add()
584 *err = -ERANGE; in can_add()
591 static void add_token_u8(int *err, struct opal_dev *cmd, u8 tok) in add_token_u8() argument
593 if (!can_add(err, cmd, 1)) in add_token_u8()
603 int err = 0; in add_short_atom_header() local
610 add_token_u8(&err, cmd, atom); in add_short_atom_header()
627 static void add_token_u64(int *err, struct opal_dev *cmd, u64 number) in add_token_u64() argument
633 add_token_u8(err, cmd, number); in add_token_u64()
640 if (!can_add(err, cmd, len + 1)) { in add_token_u64()
[all …]
Dblk-crypto-profile.c163 int err = blk_crypto_profile_init(profile, num_slots); in devm_blk_crypto_profile_init() local
165 if (err) in devm_blk_crypto_profile_init()
166 return err; in devm_blk_crypto_profile_init()
259 int err; in blk_crypto_get_keyslot() local
300 err = profile->ll_ops.keyslot_program(profile, key, slot_idx); in blk_crypto_get_keyslot()
301 if (err) { in blk_crypto_get_keyslot()
304 return errno_to_blk_status(err); in blk_crypto_get_keyslot()
379 int err; in __blk_crypto_evict_key() local
384 err = profile->ll_ops.keyslot_evict(profile, key, -1); in __blk_crypto_evict_key()
386 return err; in __blk_crypto_evict_key()
[all …]
Dblk-crypto-fallback.c96 int err; in blk_crypto_fallback_evict_keyslot() local
101 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], blank_key, in blk_crypto_fallback_evict_keyslot()
103 WARN_ON(err); in blk_crypto_fallback_evict_keyslot()
115 int err; in blk_crypto_fallback_keyslot_program() local
122 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], key->raw, in blk_crypto_fallback_keyslot_program()
124 if (err) { in blk_crypto_fallback_keyslot_program()
126 return err; in blk_crypto_fallback_keyslot_program()
538 int err; in blk_crypto_fallback_init() local
545 err = bioset_init(&crypto_bio_split, 64, 0, 0); in blk_crypto_fallback_init()
546 if (err) in blk_crypto_fallback_init()
[all …]
Dioctl.c94 int err; in blk_ioctl_discard() local
117 err = truncate_bdev_range(bdev, mode, start, start + len - 1); in blk_ioctl_discard()
118 if (err) in blk_ioctl_discard()
120 err = blkdev_issue_discard(bdev, start >> 9, len >> 9, GFP_KERNEL); in blk_ioctl_discard()
123 return err; in blk_ioctl_discard()
131 int err; in blk_ioctl_secure_erase() local
148 err = truncate_bdev_range(bdev, mode, start, start + len - 1); in blk_ioctl_secure_erase()
149 if (!err) in blk_ioctl_secure_erase()
150 err = blkdev_issue_secure_erase(bdev, start >> 9, len >> 9, in blk_ioctl_secure_erase()
153 return err; in blk_ioctl_secure_erase()
[all …]
Dblk-sysfs.c38 int err; in queue_var_store() local
41 err = kstrtoul(page, 10, &v); in queue_var_store()
42 if (err || v > UINT_MAX) in queue_var_store()
52 int err; in queue_var_store64() local
55 err = kstrtos64(page, 10, &v); in queue_var_store64()
56 if (err < 0) in queue_var_store64()
57 return err; in queue_var_store64()
72 int ret, err; in queue_requests_store() local
84 err = blk_mq_update_nr_requests(q, nr); in queue_requests_store()
85 if (err) in queue_requests_store()
[all …]
Dblk-crypto-sysfs.c133 int err; in blk_crypto_sysfs_register() local
143 err = kobject_init_and_add(&obj->kobj, &blk_crypto_ktype, &q->kobj, in blk_crypto_sysfs_register()
145 if (err) { in blk_crypto_sysfs_register()
147 return err; in blk_crypto_sysfs_register()
Dblk-pm.c122 void blk_post_runtime_suspend(struct request_queue *q, int err) in blk_post_runtime_suspend() argument
128 if (!err) { in blk_post_runtime_suspend()
136 if (err) in blk_post_runtime_suspend()
Dblk-crypto.c455 int err; in blk_crypto_evict_key() local
458 err = __blk_crypto_evict_key(q->crypto_profile, key); in blk_crypto_evict_key()
460 err = blk_crypto_fallback_evict_key(key); in blk_crypto_evict_key()
469 if (err) in blk_crypto_evict_key()
470 pr_warn_ratelimited("%pg: error %d evicting key\n", bdev, err); in blk_crypto_evict_key()
Dblk-ioc.c253 int err; in set_task_ioprio() local
265 err = security_task_setioprio(task, ioprio); in set_task_ioprio()
266 if (err) in set_task_ioprio()
267 return err; in set_task_ioprio()
Delevator.c682 int err; in elevator_init_mq() local
709 err = blk_mq_init_sched(q, e); in elevator_init_mq()
713 if (err) { in elevator_init_mq()
728 int err; in elevator_switch() local
735 err = elevator_switch_mq(q, new_e); in elevator_switch()
740 return err; in elevator_switch()
Dbdev.c110 int err = bd_prepare_to_claim(bdev, truncate_bdev_range); in truncate_bdev_range() local
111 if (err) in truncate_bdev_range()
469 int err; in bdev_cache_init() local
476 err = register_filesystem(&bd_type); in bdev_cache_init()
477 if (err) in bdev_cache_init()
Dbio-integrity.c77 goto err; in bio_integrity_alloc()
88 err: in bio_integrity_alloc()
Dblk-mq.c2581 int err; in blk_mq_bio_to_request() local
2590 err = blk_crypto_rq_bio_prep(rq, bio, GFP_NOIO); in blk_mq_bio_to_request()
2591 WARN_ON_ONCE(err); in blk_mq_bio_to_request()
4363 int err; in blk_mq_alloc_set_map_and_rqs() local
4367 err = __blk_mq_alloc_rq_maps(set); in blk_mq_alloc_set_map_and_rqs()
4368 if (!err) in blk_mq_alloc_set_map_and_rqs()
4373 err = -ENOMEM; in blk_mq_alloc_set_map_and_rqs()
4378 if (!set->queue_depth || err) { in blk_mq_alloc_set_map_and_rqs()
Dkyber-iosched.c367 goto err; in kyber_queue_data_alloc()
403 err: in kyber_queue_data_alloc()
Dblk-iocost.c3203 goto err; in ioc_qos_write()
3303 err: in ioc_qos_write()
3370 goto err; in ioc_cost_model_write()
3429 err: in ioc_cost_model_write()
/block/partitions/
Dcore.c125 int i, res, err; in check_partition() local
143 i = res = err = 0; in check_partition()
152 err = res; in check_partition()
164 err = -ENOSPC; in check_partition()
168 if (err) in check_partition()
169 res = err; in check_partition()
314 int err; in add_partition() local
345 err = -ENOMEM; in add_partition()
369 err = blk_alloc_ext_minor(); in add_partition()
370 if (err < 0) in add_partition()
[all …]
Defi.c626 int err; in find_valid_gpt() local
628 err = fops->alternative_gpt_sector(disk, &agpt_sector); in find_valid_gpt()
629 if (!err) in find_valid_gpt()
Dldm.c370 goto err; in ldm_validate_tocblocks()
392 goto err; in ldm_validate_tocblocks()
399 goto err; in ldm_validate_tocblocks()
405 goto err; in ldm_validate_tocblocks()
410 err: in ldm_validate_tocblocks()