Lines Matching refs:buf
329 static char *bdevt_str(dev_t devt, char *buf) in bdevt_str() argument
334 snprintf(buf, BDEVT_SIZE, "%-9s", tbuf); in bdevt_str()
336 snprintf(buf, BDEVT_SIZE, "%03x:%05x", MAJOR(devt), MINOR(devt)); in bdevt_str()
338 return buf; in bdevt_str()
932 struct device_attribute *attr, char *buf) in disk_range_show() argument
936 return sprintf(buf, "%d\n", disk->minors); in disk_range_show()
940 struct device_attribute *attr, char *buf) in disk_ext_range_show() argument
944 return sprintf(buf, "%d\n", in disk_ext_range_show()
949 struct device_attribute *attr, char *buf) in disk_removable_show() argument
953 return sprintf(buf, "%d\n", in disk_removable_show()
958 struct device_attribute *attr, char *buf) in disk_hidden_show() argument
962 return sprintf(buf, "%d\n", in disk_hidden_show()
967 struct device_attribute *attr, char *buf) in disk_ro_show() argument
971 return sprintf(buf, "%d\n", get_disk_ro(disk) ? 1 : 0); in disk_ro_show()
975 struct device_attribute *attr, char *buf) in part_size_show() argument
977 return sprintf(buf, "%llu\n", bdev_nr_sectors(dev_to_bdev(dev))); in part_size_show()
981 struct device_attribute *attr, char *buf) in part_stat_show() argument
999 return sprintf(buf, in part_stat_show()
1030 char *buf) in part_inflight_show() argument
1041 return sprintf(buf, "%8u %8u\n", inflight[0], inflight[1]); in part_inflight_show()
1045 struct device_attribute *attr, char *buf) in disk_capability_show() argument
1049 return sprintf(buf, "%x\n", disk->flags); in disk_capability_show()
1054 char *buf) in disk_alignment_offset_show() argument
1058 return sprintf(buf, "%d\n", bdev_alignment_offset(disk->part0)); in disk_alignment_offset_show()
1063 char *buf) in disk_discard_alignment_show() argument
1067 return sprintf(buf, "%d\n", bdev_alignment_offset(disk->part0)); in disk_discard_alignment_show()
1071 struct device_attribute *attr, char *buf) in diskseq_show() argument
1075 return sprintf(buf, "%llu\n", disk->diskseq); in diskseq_show()
1094 struct device_attribute *attr, char *buf) in part_fail_show() argument
1096 return sprintf(buf, "%d\n", dev_to_bdev(dev)->bd_make_it_fail); in part_fail_show()
1101 const char *buf, size_t count) in part_fail_store() argument
1105 if (count > 0 && sscanf(buf, "%d", &i) > 0) in part_fail_store()