Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 51) sorted by relevance

123

/block/
A Dioprio.c71 int ret; in SYSCALL_DEFINE3() local
74 if (ret) in SYSCALL_DEFINE3()
75 return ret; in SYSCALL_DEFINE3()
122 if (ret) in SYSCALL_DEFINE3()
135 return ret; in SYSCALL_DEFINE3()
140 int ret; in get_task_ioprio() local
143 if (ret) in get_task_ioprio()
160 int ret; in get_task_raw_ioprio() local
163 if (ret) in get_task_raw_ioprio()
212 ret = ioprio_best(ret, tmpio); in SYSCALL_DEFINE2()
[all …]
A Dblk-map.c128 return ret; in bio_uncopy_user()
211 if (ret) in bio_copy_user_iov()
219 if (ret) in bio_copy_user_iov()
230 if (ret) in bio_copy_user_iov()
277 int ret; in bio_map_user_iov() local
286 if (ret) in bio_map_user_iov()
289 if (ret) in bio_map_user_iov()
443 int ret; in blk_rq_append_bio() local
476 int ret; in blk_rq_map_user_bvec() local
488 if (ret) in blk_rq_map_user_bvec()
[all …]
A Dblk-sysfs.c56 ssize_t ret; in queue_requests_show() local
61 return ret; in queue_requests_show()
76 if (ret < 0) in queue_requests_store()
77 return ret; in queue_requests_store()
86 ret = err; in queue_requests_store()
89 return ret; in queue_requests_store()
100 return ret; in queue_ra_show()
124 return ret; in queue_ra_store()
876 int ret; in blk_register_queue() local
896 if (ret) in blk_register_queue()
[all …]
A Dfops.c55 ssize_t ret; in __blkdev_direct_IO_simple() local
104 return ret; in __blkdev_direct_IO_simple()
274 if (!ret) in __blkdev_direct_IO()
512 int ret; in blkdev_write_end() local
674 int ret; in blkdev_open() local
681 if (ret) in blkdev_open()
692 if (ret) in blkdev_open()
780 if (ret) in blkdev_write_iter()
786 ret = direct_write_fallback(iocb, from, ret, in blkdev_write_iter()
800 ret = generic_write_sync(iocb, ret); in blkdev_write_iter()
[all …]
A Dsed-opal.c306 int ret; in read_sed_opal_key() local
475 int ret; in opal_recv_check() local
495 int ret; in opal_send_recv() local
498 if (ret) in opal_send_recv()
501 if (ret) in opal_send_recv()
504 if (ret) in opal_send_recv()
673 int ret; in opal_discovery0() local
678 if (ret) in opal_discovery0()
1260 int ret; in finalize_and_send() local
1749 int ret; in start_SIDASP_opal_session() local
[all …]
A Dblk-mq-sysfs.c98 pos += ret; in blk_mq_hw_sysfs_cpus_show()
168 if (ret) in blk_mq_register_hctx()
169 return ret; in blk_mq_register_hctx()
173 if (ret) in blk_mq_register_hctx()
184 return ret; in blk_mq_register_hctx()
224 int ret; in blk_mq_sysfs_register() local
227 if (ret < 0) in blk_mq_sysfs_register()
235 if (ret) in blk_mq_sysfs_register()
250 return ret; in blk_mq_sysfs_register()
291 if (ret) in blk_mq_sysfs_register_hctxs()
[all …]
A Dbsg.c61 int ret; in bsg_sg_io() local
71 return ret; in bsg_sg_io()
193 int ret; in bsg_register_queue() local
204 if (ret < 0) { in bsg_register_queue()
220 if (ret) in bsg_register_queue()
226 if (ret) in bsg_register_queue()
253 int ret; in bsg_init() local
256 if (ret) in bsg_init()
257 return ret; in bsg_init()
260 if (ret) in bsg_init()
[all …]
A Dblk-crypto.c479 int ret; in blk_crypto_ioctl_import_key() local
496 if (ret < 0) in blk_crypto_ioctl_import_key()
509 ret = 0; in blk_crypto_ioctl_import_key()
514 return ret; in blk_crypto_ioctl_import_key()
522 int ret; in blk_crypto_ioctl_generate_key() local
531 if (ret < 0) in blk_crypto_ioctl_generate_key()
544 ret = 0; in blk_crypto_ioctl_generate_key()
548 return ret; in blk_crypto_ioctl_generate_key()
557 int ret; in blk_crypto_ioctl_prepare_key() local
587 ret = 0; in blk_crypto_ioctl_prepare_key()
[all …]
A Dblk-lib.c90 int ret; in blkdev_issue_discard() local
97 ret = 0; in blkdev_issue_discard()
102 return ret; in blkdev_issue_discard()
154 int ret = 0; in blkdev_issue_write_zeroes() local
179 return ret; in blkdev_issue_write_zeroes()
232 int ret = 0; in blkdev_issue_zero_pages() local
251 return ret; in blkdev_issue_zero_pages()
311 int ret; in blkdev_issue_zeroout() local
322 return ret; in blkdev_issue_zeroout()
336 int ret = 0; in blkdev_issue_secure_erase() local
[all …]
A Dbsg-lib.c35 int ret; in bsg_transport_sg_io_fn() local
73 if (ret) in bsg_transport_sg_io_fn()
82 ret = 0; in bsg_transport_sg_io_fn()
91 if (ret) in bsg_transport_sg_io_fn()
119 ret = -EFAULT; in bsg_transport_sg_io_fn()
149 return ret; in bsg_transport_sg_io_fn()
235 int ret; in bsg_prepare_job() local
241 if (ret) in bsg_prepare_job()
246 if (ret) in bsg_prepare_job()
281 int ret; in bsg_queue_rq() local
[all …]
A Dbdev.c67 int ret; in bdev_write_inode() local
73 if (ret) in bdev_write_inode()
182 int ret; in set_blocksize() local
185 if (ret) in set_blocksize()
727 int ret; in blkdev_get_whole() local
760 int ret; in blkdev_get_part() local
763 if (ret) in blkdev_get_part()
784 int ret; in bdev_permission() local
790 if (ret) in bdev_permission()
931 int ret; in bdev_open() local
[all …]
A Dbio-integrity.c84 int ret; in bio_integrity_uncopy_user() local
166 int ret; in bio_integrity_copy_user() local
175 ret = -EFAULT; in bio_integrity_copy_user()
202 if (ret != len) { in bio_integrity_copy_user()
203 ret = -ENOMEM; in bio_integrity_copy_user()
214 return ret; in bio_integrity_copy_user()
303 if (ret) in bio_integrity_map_user()
315 return ret; in bio_integrity_map_user()
336 int ret; in bio_integrity_map_iter() local
358 if (!ret) { in bio_integrity_map_iter()
[all …]
A Delevator.c340 bool ret; in elv_attempt_insert_merge() local
371 return ret; in elv_attempt_insert_merge()
597 if (ret) in elevator_switch()
610 if (ret) { in elevator_switch()
617 return ret; in elevator_switch()
654 if (ret) in elevator_change_done()
657 return ret; in elevator_change_done()
693 if (!ret) in elevator_change()
727 if (!ret) in elv_update_nr_hw_queues()
803 int ret; in elv_iosched_store() local
[all …]
A Dblk-zoned.c208 int ret = 0; in blkdev_zone_mgmt() local
250 return ret; in blkdev_zone_mgmt()
278 int ret; in blkdev_report_zones_ioctl() local
295 if (ret < 0) in blkdev_report_zones_ioctl()
331 int ret; in blkdev_zone_mgmt_ioctl() local
353 if (ret) in blkdev_zone_mgmt_ioctl()
377 return ret; in blkdev_zone_mgmt_ioctl()
1658 int ret; in blk_revalidate_zone_cb() local
1710 if (!ret) in blk_revalidate_zone_cb()
1819 int ret; in blk_zone_issue_zeroout() local
[all …]
A Dioctl.c447 int ret, n; in blkdev_roset() local
456 if (ret) in blkdev_roset()
471 int ret; in blkdev_getgeo() local
485 if (ret) in blkdev_getgeo()
505 int ret; in compat_hdio_getgeo() local
519 if (ret) in compat_hdio_getgeo()
524 if (ret) in compat_hdio_getgeo()
527 return ret; in compat_hdio_getgeo()
539 int ret, n; in blkdev_bszset() local
663 int ret; in blkdev_ioctl() local
[all …]
A Dgenhd.c299 return ret; in __register_blkdev()
382 if (ret) in disk_scan_partitions()
437 int ret; in __add_disk() local
497 if (ret) in __add_disk()
501 if (ret) in __add_disk()
506 if (ret) in __add_disk()
529 if (ret) in __add_disk()
535 if (ret) in __add_disk()
540 if (ret) in __add_disk()
591 int ret; in add_disk_fwnode() local
[all …]
A Dblk-mq-sched.c179 int ret; in blk_mq_do_dispatch_sched() local
183 if (ret != 1) in blk_mq_do_dispatch_sched()
191 return ret; in blk_mq_do_dispatch_sched()
218 int ret = 0; in blk_mq_do_dispatch_ctx() local
265 return ret; in blk_mq_do_dispatch_ctx()
363 ret = true; in blk_mq_sched_bio_merge()
367 return ret; in blk_mq_sched_bio_merge()
553 int ret; in blk_mq_init_sched() local
575 if (ret) in blk_mq_init_sched()
581 if (ret) { in blk_mq_init_sched()
[all …]
A Dholder.c65 int ret = 0; in bd_link_disk_holder() local
97 ret = -ENOMEM; in bd_link_disk_holder()
105 ret = add_symlink(disk->slave_dir, bdev_kobj(bdev)); in bd_link_disk_holder()
106 if (ret) in bd_link_disk_holder()
108 ret = add_symlink(bdev->bd_holder_dir, &disk_to_dev(disk)->kobj); in bd_link_disk_holder()
109 if (ret) in bd_link_disk_holder()
122 if (ret) in bd_link_disk_holder()
124 return ret; in bd_link_disk_holder()
A Dblk-pm.c61 int ret = 0; in blk_pre_runtime_suspend() local
64 return ret; in blk_pre_runtime_suspend()
79 ret = -EBUSY; in blk_pre_runtime_suspend()
90 ret = 0; in blk_pre_runtime_suspend()
94 if (ret < 0) { in blk_pre_runtime_suspend()
103 return ret; in blk_pre_runtime_suspend()
A Dblk-mq.c651 int ret; in blk_mq_alloc_request() local
654 if (ret) in blk_mq_alloc_request()
689 int ret; in blk_mq_alloc_request_hctx() local
709 if (ret) in blk_mq_alloc_request_hctx()
1447 wait->ret = ret; in blk_end_sync_rq()
3293 if (ret) in blk_insert_cloned_request()
3570 int ret; in blk_mq_init_request() local
4096 int ret; in blk_mq_alloc_map_and_rqs() local
4392 int ret; in blk_mq_alloc_queue() local
4853 if (ret) in blk_mq_alloc_tag_set()
[all …]
A Dblk-cgroup.c379 int i, ret; in blkg_create() local
443 if (!ret) in blkg_create()
830 int ret; in blkg_conf_open_bdev_frozen() local
877 int ret; in blkg_conf_prep() local
880 if (ret) in blkg_conf_prep()
891 if (ret) in blkg_conf_prep()
981 return ret; in blkg_conf_prep()
1602 int ret; in blkcg_activate_policy() local
1675 ret = 0; in blkcg_activate_policy()
1685 return ret; in blkcg_activate_policy()
[all …]
A Dblk-throttle.c1135 int ret; in throtl_pending_timer_fn() local
1321 int ret; in blk_throtl_init() local
1370 int ret; in tg_set_conf() local
1376 if (ret) in tg_set_conf()
1381 if (ret) in tg_set_conf()
1386 if (ret) in tg_set_conf()
1404 ret = 0; in tg_set_conf()
1555 int ret; in tg_set_limit() local
1560 if (ret) in tg_set_limit()
1570 if (ret) in tg_set_limit()
[all …]
A Dblk-ioprio.c86 int ret; in ioprio_set_prio_policy() local
91 ret = sysfs_match_string(policy_name, buf); in ioprio_set_prio_policy()
92 if (ret < 0) in ioprio_set_prio_policy()
93 return ret; in ioprio_set_prio_policy()
94 blkcg->prio_policy = ret; in ioprio_set_prio_policy()
/block/partitions/
A Dcmdline.c44 int ret = 0; in parse_subpart() local
60 ret = -EINVAL; in parse_subpart()
78 ret = -EINVAL; in parse_subpart()
102 return ret; in parse_subpart()
142 if (ret) in parse_parts()
151 ret = -EINVAL; in parse_parts()
161 return ret; in parse_parts()
179 int ret; in cmdline_parts_parse() local
195 if (ret) in cmdline_parts_parse()
207 ret = 0; in cmdline_parts_parse()
[all …]
A Dcore.c431 int ret; in bdev_add_partition() local
454 return ret; in bdev_add_partition()
483 ret = 0; in bdev_del_partition()
486 return ret; in bdev_del_partition()
510 ret = 0; in bdev_resize_partition()
513 return ret; in bdev_resize_partition()
612 ret = 0; in blk_add_partitions()
636 ret = 0; in blk_add_partitions()
639 return ret; in blk_add_partitions()
646 int ret = 0; in bdev_disk_changed() local
[all …]

Completed in 79 milliseconds

123