/block/ |
D | blk-sysfs.c | 27 queue_var_show(unsigned long var, char *page) in queue_var_show() argument 29 return sprintf(page, "%lu\n", var); in queue_var_show() 33 queue_var_store(unsigned long *var, const char *page, size_t count) in queue_var_store() argument 38 err = kstrtoul(page, 10, &v); in queue_var_store() 47 static ssize_t queue_var_store64(s64 *var, const char *page) in queue_var_store64() argument 52 err = kstrtos64(page, 10, &v); in queue_var_store64() 60 static ssize_t queue_requests_show(struct request_queue *q, char *page) in queue_requests_show() argument 62 return queue_var_show(q->nr_requests, (page)); in queue_requests_show() 66 queue_requests_store(struct request_queue *q, const char *page, size_t count) in queue_requests_store() argument 74 ret = queue_var_store(&nr, page, count); in queue_requests_store() [all …]
|
D | blk-integrity.c | 246 char *page) in integrity_attr_show() argument 253 return entry->show(bi, page); in integrity_attr_show() 257 struct attribute *attr, const char *page, in integrity_attr_store() argument 267 ret = entry->store(bi, page, count); in integrity_attr_store() 272 static ssize_t integrity_format_show(struct blk_integrity *bi, char *page) in integrity_format_show() argument 275 return sprintf(page, "%s\n", bi->profile->name); in integrity_format_show() 277 return sprintf(page, "none\n"); in integrity_format_show() 280 static ssize_t integrity_tag_size_show(struct blk_integrity *bi, char *page) in integrity_tag_size_show() argument 282 return sprintf(page, "%u\n", bi->tag_size); in integrity_tag_size_show() 285 static ssize_t integrity_interval_show(struct blk_integrity *bi, char *page) in integrity_interval_show() argument [all …]
|
D | blk-mq-sysfs.c | 42 char *page) in blk_mq_sysfs_show() argument 59 res = entry->show(ctx, page); in blk_mq_sysfs_show() 65 const char *page, size_t length) in blk_mq_sysfs_store() argument 82 res = entry->store(ctx, page, length); in blk_mq_sysfs_store() 88 struct attribute *attr, char *page) in blk_mq_hw_sysfs_show() argument 105 res = entry->show(hctx, page); in blk_mq_hw_sysfs_show() 111 struct attribute *attr, const char *page, in blk_mq_hw_sysfs_store() argument 129 res = entry->store(hctx, page, length); in blk_mq_hw_sysfs_store() 135 char *page) in blk_mq_hw_sysfs_nr_tags_show() argument 137 return sprintf(page, "%u\n", hctx->tags->nr_tags); in blk_mq_hw_sysfs_nr_tags_show() [all …]
|
D | bio.c | 738 int bio_add_pc_page(struct request_queue *q, struct bio *bio, struct page in bio_add_pc_page() argument 739 *page, unsigned int len, unsigned int offset) in bio_add_pc_page() 761 if (page == prev->bv_page && in bio_add_pc_page() 784 bvec->bv_page = page; in bio_add_pc_page() 836 bool __bio_try_merge_page(struct bio *bio, struct page *page, in __bio_try_merge_page() argument 845 if (page == bv->bv_page && off == bv->bv_offset + bv->bv_len) { in __bio_try_merge_page() 865 void __bio_add_page(struct bio *bio, struct page *page, in __bio_add_page() argument 873 bv->bv_page = page; in __bio_add_page() 892 int bio_add_page(struct bio *bio, struct page *page, in bio_add_page() argument 895 if (!__bio_try_merge_page(bio, page, len, offset)) { in bio_add_page() [all …]
|
D | badblocks.c | 66 u64 *p = bb->page; in badblocks_check() 138 u64 *p = bb->page; in badblocks_update_acked() 195 p = bb->page; in badblocks_set() 361 p = bb->page; in badblocks_clear() 443 if (bb->page == NULL || bb->changed) in ack_all_badblocks() 449 u64 *p = bb->page; in ack_all_badblocks() 475 ssize_t badblocks_show(struct badblocks *bb, char *page, int unack) in badblocks_show() argument 479 u64 *p = bb->page; in badblocks_show() 501 len += snprintf(page+len, PAGE_SIZE-len, "%llu %u\n", in badblocks_show() 525 ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len, in badblocks_store() argument [all …]
|
D | deadline-iosched.c | 371 deadline_var_show(int var, char *page) in deadline_var_show() argument 373 return sprintf(page, "%d\n", var); in deadline_var_show() 377 deadline_var_store(int *var, const char *page) in deadline_var_store() argument 379 char *p = (char *) page; in deadline_var_store() 385 static ssize_t __FUNC(struct elevator_queue *e, char *page) \ 391 return deadline_var_show(__data, (page)); \ 401 static ssize_t __FUNC(struct elevator_queue *e, const char *page, size_t count) \ 405 deadline_var_store(&__data, (page)); \
|
D | blk-zoned.c | 74 struct page *page; in blkdev_report_zones() local 124 page = alloc_page(gfp_mask); in blkdev_report_zones() 125 if (!page) { in blkdev_report_zones() 129 if (!bio_add_page(bio, page, PAGE_SIZE, 0)) { in blkdev_report_zones() 130 __free_page(page); in blkdev_report_zones()
|
D | bounce.c | 224 struct page *page = to->bv_page; in __blk_queue_bounce() local 226 if (page_to_pfn(page) <= q->limits.bounce_pfn) in __blk_queue_bounce() 235 flush_dcache_page(page); in __blk_queue_bounce() 238 vfrom = kmap_atomic(page) + to->bv_offset; in __blk_queue_bounce()
|
D | blk-lib.c | 164 sector_t nr_sects, gfp_t gfp_mask, struct page *page, in __blkdev_issue_write_same() argument 190 bio->bi_io_vec->bv_page = page; in __blkdev_issue_write_same() 223 struct page *page) in blkdev_issue_write_same() argument 230 ret = __blkdev_issue_write_same(bdev, sector, nr_sects, gfp_mask, page, in blkdev_issue_write_same()
|
D | partition-generic.c | 657 struct page *page; in read_dev_sector() local 659 page = read_mapping_page(mapping, (pgoff_t)(n >> (PAGE_SHIFT-9)), NULL); in read_dev_sector() 660 if (!IS_ERR(page)) { in read_dev_sector() 661 if (PageError(page)) in read_dev_sector() 663 p->v = page; in read_dev_sector() 664 return (unsigned char *)page_address(page) + ((n & ((1 << (PAGE_SHIFT - 9)) - 1)) << 9); in read_dev_sector() 666 put_page(page); in read_dev_sector()
|
D | mq-deadline.c | 455 deadline_var_show(int var, char *page) in deadline_var_show() argument 457 return sprintf(page, "%d\n", var); in deadline_var_show() 461 deadline_var_store(int *var, const char *page) in deadline_var_store() argument 463 char *p = (char *) page; in deadline_var_store() 469 static ssize_t __FUNC(struct elevator_queue *e, char *page) \ 475 return deadline_var_show(__data, (page)); \ 485 static ssize_t __FUNC(struct elevator_queue *e, const char *page, size_t count) \ 489 deadline_var_store(&__data, (page)); \
|
D | bfq-iosched.c | 4828 static ssize_t bfq_var_show(unsigned int var, char *page) in bfq_var_show() argument 4830 return sprintf(page, "%u\n", var); in bfq_var_show() 4833 static int bfq_var_store(unsigned long *var, const char *page) in bfq_var_store() argument 4836 int ret = kstrtoul(page, 10, &new_val); in bfq_var_store() 4845 static ssize_t __FUNC(struct elevator_queue *e, char *page) \ 4853 return bfq_var_show(__data, (page)); \ 4867 static ssize_t __FUNC(struct elevator_queue *e, char *page) \ 4872 return bfq_var_show(__data, (page)); \ 4879 __FUNC(struct elevator_queue *e, const char *page, size_t count) \ 4885 ret = bfq_var_store(&__data, (page)); \ [all …]
|
D | blk-mq.c | 1764 struct page *page; in blk_mq_free_rqs() local 1780 page = list_first_entry(&tags->page_list, struct page, lru); in blk_mq_free_rqs() 1781 list_del_init(&page->lru); in blk_mq_free_rqs() 1786 kmemleak_free(page_address(page)); in blk_mq_free_rqs() 1787 __free_pages(page, page->private); in blk_mq_free_rqs() 1866 struct page *page; in blk_mq_alloc_rqs() local 1874 page = alloc_pages_node(node, in blk_mq_alloc_rqs() 1877 if (page) in blk_mq_alloc_rqs() 1885 if (!page) in blk_mq_alloc_rqs() 1888 page->private = this_order; in blk_mq_alloc_rqs() [all …]
|
D | bio-integrity.c | 135 int bio_integrity_add_page(struct bio *bio, struct page *page, in bio_integrity_add_page() argument 153 iv->bv_page = page; in bio_integrity_add_page()
|
D | kyber-iosched.c | 649 char *page) \ 653 return sprintf(page, "%llu\n", kqd->op##_lat_nsec); \ 657 const char *page, size_t count) \ 663 ret = kstrtoull(page, 10, &nsec); \
|
D | blk.h | 342 extern ssize_t blk_throtl_sample_time_show(struct request_queue *q, char *page); 344 const char *page, size_t count);
|
D | elevator.c | 813 elv_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in elv_attr_show() argument 824 error = e->type ? entry->show(e, page) : -ENOENT; in elv_attr_show() 831 const char *page, size_t length) in elv_attr_store() argument 842 error = e->type ? entry->store(e, page, length) : -ENOENT; in elv_attr_store()
|
D | genhd.c | 748 char *page) in disk_badblocks_show() argument 753 return sprintf(page, "\n"); in disk_badblocks_show() 755 return badblocks_show(disk->bb, page, 0); in disk_badblocks_show() 760 const char *page, size_t len) in disk_badblocks_store() argument 767 return badblocks_store(disk->bb, page, len, 0); in disk_badblocks_store()
|
D | cfq-iosched.c | 4752 cfq_var_show(unsigned int var, char *page) in cfq_var_show() argument 4754 return sprintf(page, "%u\n", var); in cfq_var_show() 4758 cfq_var_store(unsigned int *var, const char *page) in cfq_var_store() argument 4760 char *p = (char *) page; in cfq_var_store() 4766 static ssize_t __FUNC(struct elevator_queue *e, char *page) \ 4772 return cfq_var_show(__data, (page)); \ 4789 static ssize_t __FUNC(struct elevator_queue *e, char *page) \ 4794 return cfq_var_show(__data, (page)); \ 4804 static ssize_t __FUNC(struct elevator_queue *e, const char *page, size_t count) \ 4809 cfq_var_store(&__data, (page)); \ [all …]
|
D | blk-throttle.c | 2451 ssize_t blk_throtl_sample_time_show(struct request_queue *q, char *page) in blk_throtl_sample_time_show() argument 2455 return sprintf(page, "%u\n", jiffies_to_msecs(q->td->throtl_slice)); in blk_throtl_sample_time_show() 2459 const char *page, size_t count) in blk_throtl_sample_time_store() argument 2466 if (kstrtoul(page, 10, &v)) in blk_throtl_sample_time_store()
|