Searched refs:ret (Results 1 - 25 of 32) sorted by relevance

12

/block/
H A Dioprio.c69 int ret; local
91 ret = -ESRCH;
100 ret = set_task_ioprio(p, ioprio);
108 ret = set_task_ioprio(p, ioprio);
109 if (ret)
128 ret = set_task_ioprio(p, ioprio);
129 if (ret)
137 ret = -EINVAL;
141 return ret;
146 int ret; local
184 int ret = -ESRCH; local
[all...]
H A Dbsg-lib.c115 int ret; local
133 ret = bsg_map_buffer(&job->request_payload, req);
134 if (ret)
138 ret = bsg_map_buffer(&job->reply_payload, rsp);
139 if (ret)
168 int ret; local
179 ret = bsg_create_job(dev, req);
180 if (ret) {
181 req->errors = ret;
182 blk_end_request_all(req, ret);
214 int ret; local
[all...]
H A Dbsg.c142 int ret = 0; local
155 ret = -ENODATA;
160 ret = -EAGAIN;
169 return ret;
172 return ret;
217 int ret = 0; local
229 ret = -EINVAL;
233 ret = -EINVAL;
237 return ret;
249 int ret, r local
405 int ret; local
432 int ret = 0; local
488 int ret, tret; local
539 int nr_commands, ret; local
588 err_block_err(int ret) argument
600 int ret; local
623 int ret, nr_commands; local
676 int ret; local
733 int ret = 0, do_free; local
891 int ret; local
1001 int ret; local
1072 int ret, i; local
[all...]
H A Dblk-map.c30 int ret = 0; local
36 ret = bio_uncopy_user(bio);
39 return ret;
48 int reading, ret; local
77 ret = blk_rq_append_bio(q, rq, bio);
78 if (!ret)
85 return ret;
116 int ret; local
142 ret = __blk_rq_map_user(q, rq, map_data, ubuf, map_len,
144 if (ret <
256 int ret = 0, ret2; local
296 int ret; local
[all...]
H A Dblk-mq-sysfs.c157 ssize_t ret; local
160 ret = sysfs_list_show(page, &ctx->rq_list, "CTX pending");
163 return ret;
197 ssize_t ret; local
200 ret = sysfs_list_show(page, &hctx->dispatch, "HCTX pending");
203 return ret;
219 ssize_t ret = 0; local
225 ret += sprintf(ret + page, "%u", i);
227 ret
348 int i, ret; local
416 int ret, i; local
453 int i, ret = 0; local
[all...]
H A Dblk-lib.c50 int ret = 0; local
91 ret = -ENOMEM;
138 ret = -EIO;
140 return ret;
164 int ret = 0; local
181 ret = -ENOMEM;
212 ret = -ENOTSUPP;
214 return ret;
232 int ret; local
242 ret
[all...]
H A Dblk-mq-cpu.c26 int ret = NOTIFY_OK; local
31 ret = notify->notify(notify->data, action, cpu);
32 if (ret != NOTIFY_OK)
37 return ret;
H A Dcmdline-parser.c12 int ret = 0; local
28 ret = -EINVAL;
46 ret = -EINVAL;
75 return ret;
91 int ret = -EINVAL; local
127 ret = parse_subpart(next_subpart, buf);
128 if (ret)
137 ret = -EINVAL;
147 return ret;
165 int ret; local
[all...]
H A Dblk-sysfs.c52 int ret, err; local
57 ret = queue_var_store(&nr, page, count);
58 if (ret < 0)
59 return ret;
72 return ret;
87 ssize_t ret = queue_var_store(&ra_kb, page, count); local
89 if (ret < 0)
90 return ret;
94 return ret;
171 ssize_t ret local
236 ssize_t ret = queue_var_store(&nm, page, count); local
264 ssize_t ret = -EINVAL; local
546 int ret; local
[all...]
H A Dblk-mq-cpumap.c25 unsigned int ret; local
27 ret = cpumask_first(topology_thread_cpumask(cpu));
28 if (ret < nr_cpu_ids)
29 return ret;
H A Dioctl.c264 static inline int is_unrecognized_ioctl(int ret) argument
266 return ret == -EINVAL ||
267 ret == -ENOTTY ||
268 ret == -ENOIOCTLCMD;
280 int ret, n; local
288 ret = __blkdev_driver_ioctl(bdev, mode, cmd, arg);
289 if (!is_unrecognized_ioctl(ret))
290 return ret;
297 ret = __blkdev_driver_ioctl(bdev, mode, cmd, arg);
298 if (!is_unrecognized_ioctl(ret))
[all...]
H A Dscsi_ioctl.c254 int r, ret = 0; local
276 ret = -EFAULT;
280 if (!ret)
281 ret = r;
283 return ret;
290 ssize_t ret = 0; local
317 ret = -ENOMEM;
329 ret = -EFAULT;
333 ret = 0;
338 ret
744 int ret; local
[all...]
H A Dbio.c593 int ret; local
595 ret = bio_integrity_clone(b, bio, gfp_mask);
597 if (ret < 0) {
667 int ret; local
669 ret = bio_integrity_clone(bio, bio_src, gfp_mask);
670 if (ret < 0) {
881 struct submit_bio_ret *ret = bio->bi_private; local
883 ret->error = error;
884 complete(&ret->event);
897 struct submit_bio_ret ret; local
1047 int ret = 0, i; local
1106 int ret = 0, i; local
1149 int i, ret; local
1289 int ret, offset; local
[all...]
H A Dblk-cgroup.c182 int i, ret; local
189 ret = -EINVAL;
197 ret = -ENOMEM;
207 ret = -EINVAL;
223 ret = radix_tree_insert(&blkcg->blkg_tree, q->id, blkg);
224 if (likely(!ret)) {
238 if (!ret) {
248 return ERR_PTR(ret);
254 return ERR_PTR(ret);
713 int part, ret; local
909 int ret = 0; local
963 int cnt = 0, ret; local
1108 int i, ret; local
[all...]
H A Dbio-integrity.c222 unsigned int ret = 0; local
237 ret = proc_fn(&iter);
238 if (ret) {
240 return ret;
245 return ret;
307 int ret; local
316 ret = bio_integrity_add_page(bio, virt_to_page(buf),
319 if (ret == 0)
322 if (ret < bytes)
H A Dblk-timeout.c86 enum blk_eh_timer_return ret = BLK_EH_RESET_TIMER; local
89 ret = q->rq_timed_out_fn(req);
90 switch (ret) {
108 printk(KERN_ERR "block: bad eh return: %d\n", ret);
H A Dcompat_ioctl.c55 int ret; local
68 ret = disk->fops->getgeo(bdev, &geo);
69 if (ret)
70 return ret;
72 ret = copy_to_user(ugeo, &geo, 4);
73 ret |= put_user(geo.start, &ugeo->start);
74 if (ret)
75 ret = -EFAULT;
77 return ret;
659 int ret local
[all...]
H A Dblk-mq.c83 int ret; local
88 ret = wait_event_interruptible(q->mq_freeze_wq,
92 if (ret)
93 return ret;
237 int ret; local
239 ret = blk_mq_queue_enter(q);
240 if (ret)
241 return ERR_PTR(ret);
529 enum blk_eh_timer_return ret = BLK_EH_RESET_TIMER; local
544 ret
723 int ret; local
1166 int ret; local
2106 int i, ret; local
[all...]
H A Delevator.c419 int ret; local
434 ret = blk_try_merge(q->last_merge, bio);
435 if (ret != ELEVATOR_NO_MERGE) {
437 return ret;
470 bool ret; local
484 ret = false;
494 ret = true;
498 return ret;
977 int ret; local
981 ret
991 int ret; local
[all...]
H A Ddeadline-iosched.c129 int ret; local
142 ret = ELEVATOR_FRONT_MERGE;
151 return ret;
412 int ret = deadline_var_store(&__data, (page), count); \
421 return ret; \
H A Dblk-settings.c545 unsigned int top, bottom, alignment, ret = 0; local
579 ret = -1;
599 ret = -1;
606 ret = -1;
613 ret = -1;
627 ret = -1;
652 return ret;
H A Dblk-flush.c454 int ret = 0; local
475 ret = submit_bio_wait(WRITE_FLUSH, bio);
486 return ret;
H A Dblk-ioc.c237 int ret; local
267 ret = task->io_context ? 0 : -EBUSY;
271 return ret;
/block/partitions/
H A Defi.c191 int i, part = 0, ret = 0; /* invalid by default */ local
197 ret = pmbr_part_valid(&mbr->partition_record[i]);
198 if (ret == GPT_MBR_PROTECTIVE) {
209 if (ret != GPT_MBR_PROTECTIVE)
216 ret = GPT_MBR_HYBRID;
230 if (ret == GPT_MBR_PROTECTIVE) {
238 return ret;
H A Daix.c172 int ret = 0; local
278 ret = 1;
292 return ret;

Completed in 247 milliseconds

12