/block/ |
D | cmdline-parser.c | 97 char buf[BDEVNAME_SIZE + 32 + 4]; in parse_parts() local 122 length = (!next) ? (sizeof(buf) - 1) : in parse_parts() 123 min_t(int, next - bdevdef, sizeof(buf) - 1); in parse_parts() 125 strncpy(buf, bdevdef, length); in parse_parts() 126 buf[length] = '\0'; in parse_parts() 128 ret = parse_subpart(next_subpart, buf); in parse_parts() 167 char *buf; in cmdline_parts_parse() local 174 next = pbuf = buf = kstrdup(cmdline, GFP_KERNEL); in cmdline_parts_parse() 175 if (!buf) in cmdline_parts_parse() 203 kfree(buf); in cmdline_parts_parse()
|
D | genhd.c | 77 char *disk_name(struct gendisk *hd, int partno, char *buf) in disk_name() argument 80 snprintf(buf, BDEVNAME_SIZE, "%s", hd->disk_name); in disk_name() 82 snprintf(buf, BDEVNAME_SIZE, "%sp%d", hd->disk_name, partno); in disk_name() 84 snprintf(buf, BDEVNAME_SIZE, "%s%d", hd->disk_name, partno); in disk_name() 86 return buf; in disk_name() 89 const char *bdevname(struct block_device *bdev, char *buf) in bdevname() argument 91 return disk_name(bdev->bd_disk, bdev->bd_partno, buf); in bdevname() 633 static char *bdevt_str(dev_t devt, char *buf) in bdevt_str() argument 638 snprintf(buf, BDEVT_SIZE, "%-9s", tbuf); in bdevt_str() 640 snprintf(buf, BDEVT_SIZE, "%03x:%05x", MAJOR(devt), MINOR(devt)); in bdevt_str() [all …]
|
D | bio-integrity.c | 213 void *buf; in bio_integrity_prep() local 246 buf = kmalloc(len, GFP_NOIO | q->bounce_gfp); in bio_integrity_prep() 248 if (unlikely(buf == NULL)) { in bio_integrity_prep() 253 end = (((unsigned long) buf) + len + PAGE_SIZE - 1) >> PAGE_SHIFT; in bio_integrity_prep() 254 start = ((unsigned long) buf) >> PAGE_SHIFT; in bio_integrity_prep() 261 kfree(buf); in bio_integrity_prep() 274 offset = offset_in_page(buf); in bio_integrity_prep() 285 ret = bio_integrity_add_page(bio, virt_to_page(buf), in bio_integrity_prep() 297 buf += bytes; in bio_integrity_prep()
|
D | blk-timeout.c | 40 char *buf) in part_timeout_show() argument 45 return sprintf(buf, "%d\n", set != 0); in part_timeout_show() 49 const char *buf, size_t count) in part_timeout_store() argument 56 char *p = (char *) buf; in part_timeout_store()
|
D | bsg-lib.c | 204 static int bsg_map_buffer(struct bsg_buffer *buf, struct request *req) in bsg_map_buffer() argument 210 buf->sg_list = kmalloc(sz, GFP_KERNEL); in bsg_map_buffer() 211 if (!buf->sg_list) in bsg_map_buffer() 213 sg_init_table(buf->sg_list, req->nr_phys_segments); in bsg_map_buffer() 214 buf->sg_cnt = blk_rq_map_sg(req->q, req, buf->sg_list); in bsg_map_buffer() 215 buf->payload_len = blk_rq_bytes(req); in bsg_map_buffer()
|
D | blk-mq-debugfs.c | 147 static ssize_t queue_state_write(void *data, const char __user *buf, in queue_state_write() argument 166 if (copy_from_user(opbuf, buf, count)) in queue_state_write() 195 static ssize_t queue_write_hint_store(void *data, const char __user *buf, in queue_write_hint_store() argument 544 static ssize_t hctx_io_poll_write(void *data, const char __user *buf, in hctx_io_poll_write() argument 570 static ssize_t hctx_dispatched_write(void *data, const char __user *buf, in hctx_dispatched_write() argument 589 static ssize_t hctx_queued_write(void *data, const char __user *buf, in hctx_queued_write() argument 606 static ssize_t hctx_run_write(void *data, const char __user *buf, size_t count, in hctx_run_write() argument 676 static ssize_t ctx_dispatched_write(void *data, const char __user *buf, in ctx_dispatched_write() argument 693 static ssize_t ctx_merged_write(void *data, const char __user *buf, in ctx_merged_write() argument 710 static ssize_t ctx_completed_write(void *data, const char __user *buf, in ctx_completed_write() argument [all …]
|
D | blk.h | 223 char *buf); 225 char *buf); 227 char *buf); 229 char *buf); 231 const char *buf, size_t count); 360 char *disk_name(struct gendisk *hd, int partno, char *buf);
|
D | blk-iocost.c | 3003 static size_t ioc_pd_stat(struct blkg_policy_data *pd, char *buf, size_t size) in ioc_pd_stat() argument 3016 pos += scnprintf(buf + pos, size - pos, " cost.vrate=%u.%02u", in ioc_pd_stat() 3020 pos += scnprintf(buf + pos, size - pos, " cost.usage=%llu", in ioc_pd_stat() 3024 pos += scnprintf(buf + pos, size - pos, in ioc_pd_stat() 3056 static ssize_t ioc_weight_write(struct kernfs_open_file *of, char *buf, in ioc_weight_write() argument 3067 if (!strchr(buf, ':')) { in ioc_weight_write() 3070 if (!sscanf(buf, "default %u", &v) && !sscanf(buf, "%u", &v)) in ioc_weight_write() 3093 ret = blkg_conf_prep(blkcg, &blkcg_policy_iocost, buf, &ctx); in ioc_weight_write() 3201 char buf[32]; in ioc_qos_write() local 3214 match_strlcpy(buf, &args[0], sizeof(buf)); in ioc_qos_write() [all …]
|
D | blk-iolatency.c | 830 static ssize_t iolatency_set_limit(struct kernfs_open_file *of, char *buf, in iolatency_set_limit() argument 842 ret = blkg_conf_prep(blkcg, &blkcg_policy_iolatency, buf, &ctx); in iolatency_set_limit() 905 static size_t iolatency_ssd_stat(struct iolatency_grp *iolat, char *buf, in iolatency_ssd_stat() argument 921 return scnprintf(buf, size, " missed=%llu total=%llu depth=max", in iolatency_ssd_stat() 924 return scnprintf(buf, size, " missed=%llu total=%llu depth=%u", in iolatency_ssd_stat() 930 static size_t iolatency_pd_stat(struct blkg_policy_data *pd, char *buf, in iolatency_pd_stat() argument 941 return iolatency_ssd_stat(iolat, buf, size); in iolatency_pd_stat() 946 return scnprintf(buf, size, " depth=max avg_lat=%llu win=%llu", in iolatency_pd_stat() 949 return scnprintf(buf, size, " depth=%u avg_lat=%llu win=%llu", in iolatency_pd_stat()
|
D | mq-deadline-cgroup.c | 55 static size_t dd_pd_stat(struct blkg_policy_data *pd, char *buf, size_t size) in dd_pd_stat() argument 68 res += scnprintf(buf + res, size - res, in dd_pd_stat()
|
D | blk-ioprio.c | 102 static ssize_t ioprio_set_prio_policy(struct kernfs_open_file *of, char *buf, in ioprio_set_prio_policy() argument 111 ret = sysfs_match_string(policy_name, buf); in ioprio_set_prio_policy()
|
D | bfq-cgroup.c | 1079 char *buf, size_t nbytes, in bfq_io_set_device_weight() argument 1088 ret = blkg_conf_prep(blkcg, &blkcg_policy_bfq, buf, &ctx); in bfq_io_set_device_weight() 1117 char *buf, size_t nbytes, in bfq_io_set_weight() argument 1124 buf = strim(buf); in bfq_io_set_weight() 1127 v = simple_strtoull(buf, &endp, 0); in bfq_io_set_weight() 1128 if (*endp == '\0' || sscanf(buf, "default %llu", &v) == 1) { in bfq_io_set_weight() 1133 return bfq_io_set_device_weight(of, buf, nbytes, off); in bfq_io_set_weight()
|
D | blk-cgroup.c | 872 char *buf; in blkcg_print_stat() local 874 size_t size = seq_get_buf(sf, &buf), off = 0; in blkcg_print_stat() 894 off += scnprintf(buf+off, size-off, "%s ", dname); in blkcg_print_stat() 909 off += scnprintf(buf+off, size-off, in blkcg_print_stat() 917 off += scnprintf(buf+off, size-off, in blkcg_print_stat() 930 written = pol->pd_stat_fn(blkg->pd[i], buf+off, size-off); in blkcg_print_stat() 938 off += scnprintf(buf+off, size-off, "\n"); in blkcg_print_stat()
|
D | blk-throttle.c | 1460 char *buf, size_t nbytes, loff_t off, bool is_u64) in tg_set_conf() argument 1468 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, buf, &ctx); in tg_set_conf() 1493 char *buf, size_t nbytes, loff_t off) in tg_set_conf_u64() argument 1495 return tg_set_conf(of, buf, nbytes, off, true); in tg_set_conf_u64() 1499 char *buf, size_t nbytes, loff_t off) in tg_set_conf_uint() argument 1501 return tg_set_conf(of, buf, nbytes, off, false); in tg_set_conf_uint() 1649 char *buf, size_t nbytes, loff_t off) in tg_set_limit() argument 1660 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, buf, &ctx); in tg_set_limit()
|
D | bsg.c | 242 unsigned char buf[32]; in bsg_add_device() local 262 format_dev_t(buf, inode->i_rdev), bd->max_queue); in bsg_add_device()
|
D | sed-opal.c | 848 static int response_parse(const u8 *buf, size_t length, in response_parse() argument 859 if (!buf) in response_parse() 865 hdr = (struct opal_header *)buf; in response_parse() 866 pos = buf; in response_parse() 883 if (pos > buf + length) in response_parse()
|
D | bio.c | 734 const char *bio_devname(struct bio *bio, char *buf) in bio_devname() argument 736 return disk_name(bio->bi_disk, bio->bi_partno, buf); in bio_devname()
|
/block/partitions/ |
D | ldm.c | 817 char buf[64]; in ldm_parse_dgr4() local 841 ldm_get_vstr (buffer + 0x18 + r_objid, buf, sizeof (buf)); in ldm_parse_dgr4() 1113 static bool ldm_parse_vblk (const u8 *buf, int len, struct vblk *vb) in ldm_parse_vblk() argument 1118 BUG_ON (!buf || !vb); in ldm_parse_vblk() 1120 r_objid = ldm_relative (buf, len, 0x18, 0); in ldm_parse_vblk() 1126 vb->flags = buf[0x12]; in ldm_parse_vblk() 1127 vb->type = buf[0x13]; in ldm_parse_vblk() 1128 vb->obj_id = ldm_get_vnum (buf + 0x18); in ldm_parse_vblk() 1129 ldm_get_vstr (buf+0x18+r_objid, vb->name, sizeof (vb->name)); in ldm_parse_vblk() 1132 case VBLK_CMP3: result = ldm_parse_cmp3 (buf, len, vb); break; in ldm_parse_vblk() [all …]
|
D | core.c | 176 struct device_attribute *attr, char *buf) in part_partition_show() argument 180 return sprintf(buf, "%d\n", p->partno); in part_partition_show() 184 struct device_attribute *attr, char *buf) in part_start_show() argument 188 return sprintf(buf, "%llu\n",(unsigned long long)p->start_sect); in part_start_show() 192 struct device_attribute *attr, char *buf) in part_ro_show() argument 195 return sprintf(buf, "%d\n", p->policy ? 1 : 0); in part_ro_show() 199 struct device_attribute *attr, char *buf) in part_alignment_offset_show() argument 203 return sprintf(buf, "%u\n", in part_alignment_offset_show() 209 struct device_attribute *attr, char *buf) in part_discard_alignment_show() argument 213 return sprintf(buf, "%u\n", in part_discard_alignment_show() [all …]
|
D | efi.c | 120 efi_crc32(const void *buf, unsigned long len) in efi_crc32() argument 122 return (crc32(~0L, buf, len) ^ ~0L); in efi_crc32()
|