/block/ |
D | blk-sysfs.c | 24 queue_var_show(unsigned long var, char *page) in queue_var_show() argument 26 return sprintf(page, "%lu\n", var); in queue_var_show() 30 queue_var_store(unsigned long *var, const char *page, size_t count) in queue_var_store() argument 35 err = kstrtoul(page, 10, &v); in queue_var_store() 44 static ssize_t queue_requests_show(struct request_queue *q, char *page) in queue_requests_show() argument 46 return queue_var_show(q->nr_requests, (page)); in queue_requests_show() 50 queue_requests_store(struct request_queue *q, const char *page, size_t count) in queue_requests_store() argument 58 ret = queue_var_store(&nr, page, count); in queue_requests_store() 76 static ssize_t queue_ra_show(struct request_queue *q, char *page) in queue_ra_show() argument 81 return queue_var_show(ra_kb, (page)); in queue_ra_show() [all …]
|
D | blk-mq-sysfs.c | 33 char *page) in blk_mq_sysfs_show() argument 50 res = entry->show(ctx, page); in blk_mq_sysfs_show() 56 const char *page, size_t length) in blk_mq_sysfs_store() argument 73 res = entry->store(ctx, page, length); in blk_mq_sysfs_store() 79 struct attribute *attr, char *page) in blk_mq_hw_sysfs_show() argument 96 res = entry->show(hctx, page); in blk_mq_hw_sysfs_show() 102 struct attribute *attr, const char *page, in blk_mq_hw_sysfs_store() argument 120 res = entry->store(hctx, page, length); in blk_mq_hw_sysfs_store() 125 static ssize_t blk_mq_sysfs_dispatched_show(struct blk_mq_ctx *ctx, char *page) in blk_mq_sysfs_dispatched_show() argument 127 return sprintf(page, "%lu %lu\n", ctx->rq_dispatched[1], in blk_mq_sysfs_dispatched_show() [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 | bio.c | 721 int bio_add_pc_page(struct request_queue *q, struct bio *bio, struct page in bio_add_pc_page() argument 722 *page, unsigned int len, unsigned int offset) in bio_add_pc_page() 744 if (page == prev->bv_page && in bio_add_pc_page() 767 bvec->bv_page = page; in bio_add_pc_page() 816 int bio_add_page(struct bio *bio, struct page *page, in bio_add_page() argument 835 if (page == bv->bv_page && in bio_add_page() 846 bv->bv_page = page; in bio_add_page() 1136 struct page *page; in bio_copy_user_iov() local 1207 page = map_data->pages[i / nr_pages]; in bio_copy_user_iov() 1208 page += (i % nr_pages); in bio_copy_user_iov() [all …]
|
D | deadline-iosched.c | 377 deadline_var_show(int var, char *page) in deadline_var_show() argument 379 return sprintf(page, "%d\n", var); in deadline_var_show() 383 deadline_var_store(int *var, const char *page, size_t count) in deadline_var_store() argument 385 char *p = (char *) page; in deadline_var_store() 392 static ssize_t __FUNC(struct elevator_queue *e, char *page) \ 398 return deadline_var_show(__data, (page)); \ 408 static ssize_t __FUNC(struct elevator_queue *e, const char *page, size_t count) \ 412 int ret = deadline_var_store(&__data, (page), count); \
|
D | bounce.c | 200 struct page *page = to->bv_page; in __blk_queue_bounce() local 202 if (page_to_pfn(page) <= queue_bounce_pfn(q)) in __blk_queue_bounce() 211 flush_dcache_page(page); in __blk_queue_bounce() 214 vfrom = kmap_atomic(page) + to->bv_offset; in __blk_queue_bounce()
|
D | blk-mq-tag.c | 707 ssize_t blk_mq_tag_sysfs_show(struct blk_mq_tags *tags, char *page) in blk_mq_tag_sysfs_show() argument 709 char *orig_page = page; in blk_mq_tag_sysfs_show() 715 page += sprintf(page, "nr_tags=%u, reserved_tags=%u, " in blk_mq_tag_sysfs_show() 723 page += sprintf(page, "nr_free=%u, nr_reserved=%u\n", free, res); in blk_mq_tag_sysfs_show() 724 page += sprintf(page, "active_queues=%u\n", atomic_read(&tags->active_queues)); in blk_mq_tag_sysfs_show() 726 return page - orig_page; in blk_mq_tag_sysfs_show()
|
D | partition-generic.c | 575 struct page *page; in read_dev_sector() local 577 page = read_mapping_page(mapping, (pgoff_t)(n >> (PAGE_CACHE_SHIFT-9)), in read_dev_sector() 579 if (!IS_ERR(page)) { in read_dev_sector() 580 if (PageError(page)) in read_dev_sector() 582 p->v = page; in read_dev_sector() 583 return (unsigned char *)page_address(page) + ((n & ((1 << (PAGE_CACHE_SHIFT - 9)) - 1)) << 9); in read_dev_sector() 585 page_cache_release(page); in read_dev_sector()
|
D | blk-lib.c | 146 struct page *page) in blkdev_issue_write_same() argument 177 bio->bi_io_vec->bv_page = page; in blkdev_issue_write_same()
|
D | blk-mq.c | 1439 struct page *page; in blk_mq_free_rq_map() local 1454 page = list_first_entry(&tags->page_list, struct page, lru); in blk_mq_free_rq_map() 1455 list_del_init(&page->lru); in blk_mq_free_rq_map() 1460 kmemleak_free(page_address(page)); in blk_mq_free_rq_map() 1461 __free_pages(page, page->private); in blk_mq_free_rq_map() 1507 struct page *page; in blk_mq_init_rq_map() local 1515 page = alloc_pages_node(set->numa_node, in blk_mq_init_rq_map() 1518 if (page) in blk_mq_init_rq_map() 1526 if (!page) in blk_mq_init_rq_map() 1529 page->private = this_order; in blk_mq_init_rq_map() [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 | blk-mq-tag.h | 57 extern ssize_t blk_mq_tag_sysfs_show(struct blk_mq_tags *tags, char *page);
|
D | elevator.c | 748 elv_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in elv_attr_show() argument 759 error = e->type ? entry->show(e, page) : -ENOENT; in elv_attr_show() 766 const char *page, size_t length) in elv_attr_store() argument 777 error = e->type ? entry->store(e, page, length) : -ENOENT; in elv_attr_store()
|
D | cfq-iosched.c | 4623 cfq_var_show(unsigned int var, char *page) in cfq_var_show() argument 4625 return sprintf(page, "%u\n", var); in cfq_var_show() 4629 cfq_var_store(unsigned int *var, const char *page, size_t count) in cfq_var_store() argument 4631 char *p = (char *) page; in cfq_var_store() 4638 static ssize_t __FUNC(struct elevator_queue *e, char *page) \ 4644 return cfq_var_show(__data, (page)); \ 4661 static ssize_t __FUNC(struct elevator_queue *e, const char *page, size_t count) \ 4665 int ret = cfq_var_store(&__data, (page), count); \
|
D | blk-core.c | 1529 void blk_add_request_payload(struct request *rq, struct page *page, in blk_add_request_payload() argument 1534 bio->bi_io_vec->bv_page = page; in blk_add_request_payload()
|