/block/ |
D | blk-sysfs.c | 23 queue_var_show(unsigned long var, char *page) in queue_var_show() argument 25 return sprintf(page, "%lu\n", var); in queue_var_show() 29 queue_var_store(unsigned long *var, const char *page, size_t count) in queue_var_store() argument 34 err = kstrtoul(page, 10, &v); in queue_var_store() 43 static ssize_t queue_requests_show(struct request_queue *q, char *page) in queue_requests_show() argument 45 return queue_var_show(q->nr_requests, (page)); in queue_requests_show() 49 queue_requests_store(struct request_queue *q, const char *page, size_t count) in queue_requests_store() argument 57 ret = queue_var_store(&nr, page, count); in queue_requests_store() 75 static ssize_t queue_ra_show(struct request_queue *q, char *page) in queue_ra_show() argument 80 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->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 283 return sprintf(page, "%u\n", bi->tag_size); in integrity_tag_size_show() 285 return sprintf(page, "0\n"); in integrity_tag_size_show() [all …]
|
D | bio.c | 703 static int __bio_add_page(struct request_queue *q, struct bio *bio, struct page in __bio_add_page() argument 704 *page, unsigned int len, unsigned int offset, in __bio_add_page() 727 if (page == prev->bv_page && in __bio_add_page() 785 bvec->bv_page = page; in __bio_add_page() 840 int bio_add_pc_page(struct request_queue *q, struct bio *bio, struct page *page, in bio_add_pc_page() argument 843 return __bio_add_page(q, bio, page, len, offset, in bio_add_pc_page() 860 int bio_add_page(struct bio *bio, struct page *page, unsigned int len, in bio_add_page() argument 870 return __bio_add_page(q, bio, page, len, offset, max_sectors); in bio_add_page() 1147 struct page *page; in bio_copy_user_iov() local 1208 page = map_data->pages[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 | 219 struct page *page = to->bv_page; in __blk_queue_bounce() local 221 if (page_to_pfn(page) <= queue_bounce_pfn(q) && !force) in __blk_queue_bounce() 230 flush_dcache_page(page); in __blk_queue_bounce() 233 vfrom = kmap_atomic(page) + to->bv_offset; in __blk_queue_bounce()
|
D | blk-mq-tag.c | 589 ssize_t blk_mq_tag_sysfs_show(struct blk_mq_tags *tags, char *page) in blk_mq_tag_sysfs_show() argument 591 char *orig_page = page; in blk_mq_tag_sysfs_show() 597 page += sprintf(page, "nr_tags=%u, reserved_tags=%u, " in blk_mq_tag_sysfs_show() 605 page += sprintf(page, "nr_free=%u, nr_reserved=%u\n", free, res); in blk_mq_tag_sysfs_show() 606 page += sprintf(page, "active_queues=%u\n", atomic_read(&tags->active_queues)); in blk_mq_tag_sysfs_show() 608 return page - orig_page; in blk_mq_tag_sysfs_show()
|
D | partition-generic.c | 566 struct page *page; in read_dev_sector() local 568 page = read_mapping_page(mapping, (pgoff_t)(n >> (PAGE_CACHE_SHIFT-9)), in read_dev_sector() 570 if (!IS_ERR(page)) { in read_dev_sector() 571 if (PageError(page)) in read_dev_sector() 573 p->v = page; in read_dev_sector() 574 return (unsigned char *)page_address(page) + ((n & ((1 << (PAGE_CACHE_SHIFT - 9)) - 1)) << 9); in read_dev_sector() 576 page_cache_release(page); in read_dev_sector()
|
D | blk-lib.c | 157 struct page *page) in blkdev_issue_write_same() argument 190 bio->bi_io_vec->bv_page = page; in blkdev_issue_write_same()
|
D | blk-mq.c | 1276 struct page *page; in blk_mq_free_rq_map() local 1291 page = list_first_entry(&tags->page_list, struct page, lru); in blk_mq_free_rq_map() 1292 list_del_init(&page->lru); in blk_mq_free_rq_map() 1293 __free_pages(page, page->private); in blk_mq_free_rq_map() 1338 struct page *page; in blk_mq_init_rq_map() local 1346 page = alloc_pages_node(set->numa_node, in blk_mq_init_rq_map() 1349 if (page) in blk_mq_init_rq_map() 1357 if (!page) in blk_mq_init_rq_map() 1360 page->private = this_order; in blk_mq_init_rq_map() 1361 list_add_tail(&page->lru, &tags->page_list); in blk_mq_init_rq_map() [all …]
|
D | bio-integrity.c | 130 int bio_integrity_add_page(struct bio *bio, struct page *page, in bio_integrity_add_page() argument 143 iv->bv_page = page; in bio_integrity_add_page()
|
D | blk-mq-tag.h | 54 extern ssize_t blk_mq_tag_sysfs_show(struct blk_mq_tags *tags, char *page);
|
D | elevator.c | 752 elv_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in elv_attr_show() argument 763 error = e->type ? entry->show(e, page) : -ENOENT; in elv_attr_show() 770 const char *page, size_t length) in elv_attr_store() argument 781 error = e->type ? entry->store(e, page, length) : -ENOENT; in elv_attr_store()
|
D | cfq-iosched.c | 4484 cfq_var_show(unsigned int var, char *page) in cfq_var_show() argument 4486 return sprintf(page, "%u\n", var); in cfq_var_show() 4490 cfq_var_store(unsigned int *var, const char *page, size_t count) in cfq_var_store() argument 4492 char *p = (char *) page; in cfq_var_store() 4499 static ssize_t __FUNC(struct elevator_queue *e, char *page) \ 4505 return cfq_var_show(__data, (page)); \ 4522 static ssize_t __FUNC(struct elevator_queue *e, const char *page, size_t count) \ 4526 int ret = cfq_var_store(&__data, (page), count); \
|
D | blk-core.c | 1410 void blk_add_request_payload(struct request *rq, struct page *page, in blk_add_request_payload() argument 1415 bio->bi_io_vec->bv_page = page; in blk_add_request_payload()
|