Home
last modified time | relevance | path

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

/block/
Dsed-opal.c537 static bool can_add(int *err, struct opal_dev *cmd, size_t len) in can_add() argument
539 if (*err) in can_add()
544 *err = -ERANGE; in can_add()
551 static void add_token_u8(int *err, struct opal_dev *cmd, u8 tok) in add_token_u8() argument
553 if (!can_add(err, cmd, 1)) in add_token_u8()
563 int err = 0; in add_short_atom_header() local
570 add_token_u8(&err, cmd, atom); in add_short_atom_header()
587 static void add_token_u64(int *err, struct opal_dev *cmd, u64 number) in add_token_u64() argument
593 add_token_u8(err, cmd, number); in add_token_u64()
600 if (!can_add(err, cmd, len + 1)) { in add_token_u64()
[all …]
Dscsi_ioctl.c63 int timeout, err = get_user(timeout, p); in sg_set_timeout() local
65 if (!err) in sg_set_timeout()
68 return err; in sg_set_timeout()
89 int size, err = get_user(size, p); in sg_set_reserved_size() local
91 if (err) in sg_set_reserved_size()
92 return err; in sg_set_reserved_size()
413 int err; in sg_scsi_ioctl() local
442 err = PTR_ERR(rq); in sg_scsi_ioctl()
452 err = -EFAULT; in sg_scsi_ioctl()
460 err = blk_verify_command(req->cmd, mode); in sg_scsi_ioctl()
[all …]
Dkeyslot-manager.c155 int err = blk_ksm_init(ksm, num_slots); in devm_blk_ksm_init() local
157 if (err) in devm_blk_ksm_init()
158 return err; in devm_blk_ksm_init()
239 int err; in blk_ksm_get_slot_for_key() local
276 err = ksm->ksm_ll_ops.keyslot_program(ksm, key, slot_idx); in blk_ksm_get_slot_for_key()
277 if (err) { in blk_ksm_get_slot_for_key()
280 return errno_to_blk_status(err); in blk_ksm_get_slot_for_key()
362 int err; in blk_ksm_evict_key() local
367 err = ksm->ksm_ll_ops.keyslot_evict(ksm, key, -1); in blk_ksm_evict_key()
369 return err; in blk_ksm_evict_key()
[all …]
Dblk-crypto-fallback.c94 int err; in blk_crypto_evict_keyslot() local
99 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], blank_key, in blk_crypto_evict_keyslot()
101 WARN_ON(err); in blk_crypto_evict_keyslot()
112 int err; in blk_crypto_keyslot_program() local
119 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], key->raw, in blk_crypto_keyslot_program()
121 if (err) { in blk_crypto_keyslot_program()
123 return err; in blk_crypto_keyslot_program()
534 int err; in blk_crypto_fallback_init() local
541 err = blk_ksm_init(&blk_crypto_ksm, blk_crypto_num_keyslots); in blk_crypto_fallback_init()
542 if (err) in blk_crypto_fallback_init()
[all …]
Dblk-sysfs.c36 int err; in queue_var_store() local
39 err = kstrtoul(page, 10, &v); in queue_var_store()
40 if (err || v > UINT_MAX) in queue_var_store()
50 int err; in queue_var_store64() local
53 err = kstrtos64(page, 10, &v); in queue_var_store64()
54 if (err < 0) in queue_var_store64()
55 return err; in queue_var_store64()
70 int ret, err; in queue_requests_store() local
82 err = blk_mq_update_nr_requests(q, nr); in queue_requests_store()
83 if (err) in queue_requests_store()
[all …]
Dioprio.c38 int err; in set_task_ioprio() local
51 err = security_task_setioprio(task, ioprio); in set_task_ioprio()
52 if (err) in set_task_ioprio()
53 return err; in set_task_ioprio()
61 return err; in set_task_ioprio()
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.c431 int err; in blk_crypto_evict_key() local
434 err = blk_ksm_evict_key(q->ksm, key); in blk_crypto_evict_key()
436 err = blk_crypto_fallback_evict_key(key); in blk_crypto_evict_key()
445 if (err) in blk_crypto_evict_key()
446 pr_warn_ratelimited("error %d evicting key\n", err); in blk_crypto_evict_key()
Dioctl.c124 int err; in blk_ioctl_discard() local
146 err = truncate_bdev_range(bdev, mode, start, start + len - 1); in blk_ioctl_discard()
147 if (err) in blk_ioctl_discard()
148 return err; in blk_ioctl_discard()
159 int err; in blk_ioctl_zeroout() local
181 err = truncate_bdev_range(bdev, mode, start, end); in blk_ioctl_zeroout()
182 if (err) in blk_ioctl_zeroout()
183 return err; in blk_ioctl_zeroout()
Delevator.c668 int err; in elevator_init_mq() local
688 err = blk_mq_init_sched(q, e); in elevator_init_mq()
693 if (err) { in elevator_init_mq()
709 int err; in elevator_switch() local
716 err = elevator_switch_mq(q, new_e); in elevator_switch()
721 return err; in elevator_switch()
Dblk-mq-sched.c593 goto err; in blk_mq_init_sched()
598 goto err; in blk_mq_init_sched()
618 err: in blk_mq_init_sched()
Dbio-integrity.c80 goto err; in bio_integrity_alloc()
93 err: in bio_integrity_alloc()
Dgenhd.c701 int err; in register_disk() local
717 err = sysfs_create_link(block_depr, &ddev->kobj, in register_disk()
719 if (err) { in register_disk()
751 err = sysfs_create_link(&ddev->kobj, in register_disk()
754 WARN_ON(err); in register_disk()
Dblk-mq.c2032 int err; in blk_mq_bio_to_request() local
2042 err = blk_crypto_rq_bio_prep(rq, bio, GFP_NOIO); in blk_mq_bio_to_request()
2043 WARN_ON_ONCE(err); in blk_mq_bio_to_request()
3473 int err; in blk_mq_alloc_map_and_requests() local
3477 err = __blk_mq_alloc_rq_maps(set); in blk_mq_alloc_map_and_requests()
3478 if (!err) in blk_mq_alloc_map_and_requests()
3483 err = -ENOMEM; in blk_mq_alloc_map_and_requests()
3488 if (!set->queue_depth || err) { in blk_mq_alloc_map_and_requests()
Dkyber-iosched.c374 goto err; in kyber_queue_data_alloc()
412 err: in kyber_queue_data_alloc()
Dblk-iocost.c3189 goto err; in ioc_qos_write()
3289 err: in ioc_qos_write()
3356 goto err; in ioc_cost_model_write()
3415 err: in ioc_cost_model_write()
/block/partitions/
Dcore.c119 int i, res, err; in check_partition() local
137 i = res = err = 0; in check_partition()
146 err = res; in check_partition()
158 err = -ENOSPC; in check_partition()
162 if (err) in check_partition()
163 res = err; in check_partition()
380 int err; in add_partition() local
400 err = disk_expand_part_tbl(disk, partno); in add_partition()
401 if (err) in add_partition()
402 return ERR_PTR(err); in add_partition()
[all …]
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()