/block/ |
D | bfq-cgroup.c | 908 static int bfq_io_show_weight_legacy(struct seq_file *sf, void *v) in bfq_io_show_weight_legacy() argument 932 static int bfq_io_show_weight(struct seq_file *sf, void *v) in bfq_io_show_weight() argument 1010 u64 v; in bfq_io_set_device_weight() local 1016 if (sscanf(ctx.body, "%llu", &v) == 1) { in bfq_io_set_device_weight() 1019 if (!v) in bfq_io_set_device_weight() 1022 v = 0; in bfq_io_set_device_weight() 1031 if (!v || (v >= BFQ_MIN_WEIGHT && v <= BFQ_MAX_WEIGHT)) { in bfq_io_set_device_weight() 1032 bfq_group_set_weight(bfqg, bfqg->entity.weight, v); in bfq_io_set_device_weight() 1046 u64 v; in bfq_io_set_weight() local 1051 v = simple_strtoull(buf, &endp, 0); in bfq_io_set_weight() [all …]
|
D | blk-iocost.c | 784 u64 v; in calc_lcoefs() local 793 v = DIV64_U64_ROUND_UP(VTIME_PER_SEC, seqiops); in calc_lcoefs() 794 if (v > *page) in calc_lcoefs() 795 *seqio = v - *page; in calc_lcoefs() 799 v = DIV64_U64_ROUND_UP(VTIME_PER_SEC, randiops); in calc_lcoefs() 800 if (v > *page) in calc_lcoefs() 801 *randio = v - *page; in calc_lcoefs() 2059 static int ioc_weight_show(struct seq_file *sf, void *v) in ioc_weight_show() argument 2077 u32 v; in ioc_weight_write() local 2083 if (!sscanf(buf, "default %u", &v) && !sscanf(buf, "%u", &v)) in ioc_weight_write() [all …]
|
D | blk-throttle.c | 1334 u64 v = *(u64 *)((void *)tg + off); in tg_prfill_conf_u64() local 1336 if (v == U64_MAX) in tg_prfill_conf_u64() 1338 return __blkg_prfill_u64(sf, pd, v); in tg_prfill_conf_u64() 1345 unsigned int v = *(unsigned int *)((void *)tg + off); in tg_prfill_conf_uint() local 1347 if (v == UINT_MAX) in tg_prfill_conf_uint() 1349 return __blkg_prfill_u64(sf, pd, v); in tg_prfill_conf_uint() 1352 static int tg_print_conf_u64(struct seq_file *sf, void *v) in tg_print_conf_u64() argument 1359 static int tg_print_conf_uint(struct seq_file *sf, void *v) in tg_print_conf_uint() argument 1429 u64 v; in tg_set_conf() local 1436 if (sscanf(ctx.body, "%llu", &v) != 1) in tg_set_conf() [all …]
|
D | blk-mq-debugfs.c | 53 static void *queue_requeue_list_next(struct seq_file *m, void *v, loff_t *pos) in queue_requeue_list_next() argument 57 return seq_list_next(v, &q->requeue_list, pos); in queue_requeue_list_next() 60 static void queue_requeue_list_stop(struct seq_file *m, void *v) in queue_requeue_list_stop() argument 351 int blk_mq_debugfs_rq_show(struct seq_file *m, void *v) in blk_mq_debugfs_rq_show() argument 353 return __blk_mq_debugfs_rq_show(m, list_entry_rq(v)); in blk_mq_debugfs_rq_show() 366 static void *hctx_dispatch_next(struct seq_file *m, void *v, loff_t *pos) in hctx_dispatch_next() argument 370 return seq_list_next(v, &hctx->dispatch, pos); in hctx_dispatch_next() 373 static void hctx_dispatch_stop(struct seq_file *m, void *v) in hctx_dispatch_stop() argument 635 static void *ctx_##name##_rq_list_next(struct seq_file *m, void *v, \ 640 return seq_list_next(v, &ctx->rq_lists[type], pos); \ [all …]
|
D | blk-rq-qos.c | 9 static bool atomic_inc_below(atomic_t *v, unsigned int below) in atomic_inc_below() argument 11 unsigned int cur = atomic_read(v); in atomic_inc_below() 18 old = atomic_cmpxchg(v, cur, cur + 1); in atomic_inc_below()
|
D | blk-cgroup.c | 551 u64 __blkg_prfill_u64(struct seq_file *sf, struct blkg_policy_data *pd, u64 v) in __blkg_prfill_u64() argument 558 seq_printf(sf, "%s %llu\n", dname, (unsigned long long)v); in __blkg_prfill_u64() 559 return v; in __blkg_prfill_u64() 582 u64 v; in __blkg_prfill_rwstat() local 592 v = rwstat->cnt[BLKG_RWSTAT_READ] + in __blkg_prfill_rwstat() 595 seq_printf(sf, "%s Total %llu\n", dname, v); in __blkg_prfill_rwstat() 596 return v; in __blkg_prfill_rwstat() 635 int blkg_print_stat_bytes(struct seq_file *sf, void *v) in blkg_print_stat_bytes() argument 652 int blkg_print_stat_ios(struct seq_file *sf, void *v) in blkg_print_stat_ios() argument 676 int blkg_print_stat_bytes_recursive(struct seq_file *sf, void *v) in blkg_print_stat_bytes_recursive() argument [all …]
|
D | mq-deadline.c | 668 static void *deadline_##name##_fifo_next(struct seq_file *m, void *v, \ 674 return seq_list_next(v, &dd->fifo_list[ddir], pos); \ 677 static void deadline_##name##_fifo_stop(struct seq_file *m, void *v) \ 736 static void *deadline_dispatch_next(struct seq_file *m, void *v, loff_t *pos) in deadline_dispatch_next() argument 741 return seq_list_next(v, &dd->dispatch, pos); in deadline_dispatch_next() 744 static void deadline_dispatch_stop(struct seq_file *m, void *v) in deadline_dispatch_stop() argument
|
D | blk-sysfs.c | 36 unsigned long v; in queue_var_store() local 38 err = kstrtoul(page, 10, &v); in queue_var_store() 39 if (err || v > UINT_MAX) in queue_var_store() 42 *var = v; in queue_var_store() 50 s64 v; in queue_var_store64() local 52 err = kstrtos64(page, 10, &v); in queue_var_store64() 56 *var = v; in queue_var_store64()
|
D | compat_ioctl.c | 92 unsigned long v; in compat_hdio_ioctl() local 93 if (get_user(v, p) || put_user(v, uvp)) in compat_hdio_ioctl()
|
D | blk-mq-debugfs.h | 19 int blk_mq_debugfs_rq_show(struct seq_file *m, void *v);
|
D | blk-iolatency.c | 816 u64 v; in iolatency_set_limit() local 820 else if (sscanf(val, "%llu", &v) == 1) in iolatency_set_limit() 821 lat_val = v * NSEC_PER_USEC; in iolatency_set_limit() 880 static int iolatency_print_limit(struct seq_file *sf, void *v) in iolatency_print_limit() argument
|
D | genhd.c | 1017 static void *disk_seqf_next(struct seq_file *seqf, void *v, loff_t *pos) in disk_seqf_next() argument 1029 static void disk_seqf_stop(struct seq_file *seqf, void *v) in disk_seqf_stop() argument 1051 static int show_partition(struct seq_file *seqf, void *v) in show_partition() argument 1053 struct gendisk *sgp = v; in show_partition() 1365 static int diskstats_show(struct seq_file *seqf, void *v) in diskstats_show() argument 1367 struct gendisk *gp = v; in diskstats_show()
|
D | kyber-iosched.c | 916 static void *kyber_##name##_rqs_next(struct seq_file *m, void *v, \ 922 return seq_list_next(v, &khd->rqs[domain], pos); \ 925 static void kyber_##name##_rqs_stop(struct seq_file *m, void *v) \
|
D | partition-generic.c | 615 p->v = page; in read_dev_sector() 620 p->v = NULL; in read_dev_sector()
|
/block/partitions/ |
D | msdos.c | 221 struct solaris_x86_vtoc *v; in parse_solaris_x86() local 225 v = read_part_sector(state, offset + 1, §); in parse_solaris_x86() 226 if (!v) in parse_solaris_x86() 228 if (le32_to_cpu(v->v_sanity) != SOLARIS_X86_VTOC_SANE) { in parse_solaris_x86() 238 if (le32_to_cpu(v->v_version) != 1) { in parse_solaris_x86() 242 le32_to_cpu(v->v_version)); in parse_solaris_x86() 248 max_nparts = le16_to_cpu(v->v_nparts) > 8 ? SOLARIS_X86_NUMSLICE : 8; in parse_solaris_x86() 250 struct solaris_x86_slice *s = &v->v_slice[i]; in parse_solaris_x86()
|
D | ldm.c | 545 struct vblk *v = list_entry (item, struct vblk, list); in ldm_get_disk_objid() local 546 if (uuid_equal(&v->vblk.disk.disk_id, &ldb->ph.disk_id)) in ldm_get_disk_objid() 547 return v; in ldm_get_disk_objid() 1202 struct vblk *v = list_entry (item, struct vblk, list); in ldm_ldmdb_add() local 1203 if ((v->vblk.part.disk_id == vb->vblk.part.disk_id) && in ldm_ldmdb_add() 1204 (v->vblk.part.start > vb->vblk.part.start)) { in ldm_ldmdb_add() 1205 list_add_tail (&vb->list, &v->list); in ldm_ldmdb_add() 1355 int size, perbuf, skip, finish, s, v, recs; in ldm_get_vblks() local 1375 for (v = 0; v < perbuf; v++, data+=size) { /* For each vblk */ in ldm_get_vblks()
|