/block/ |
D | blk-sysfs.c | 30 queue_var_show(unsigned long var, char *page) in queue_var_show() argument 32 return sprintf(page, "%lu\n", var); in queue_var_show() 36 queue_var_store(unsigned long *var, const char *page, size_t count) in queue_var_store() argument 41 err = kstrtoul(page, 10, &v); in queue_var_store() 50 static ssize_t queue_requests_show(struct request_queue *q, char *page) in queue_requests_show() argument 52 return queue_var_show(q->nr_requests, page); in queue_requests_show() 56 queue_requests_store(struct request_queue *q, const char *page, size_t count) in queue_requests_store() argument 64 ret = queue_var_store(&nr, page, count); in queue_requests_store() 78 static ssize_t queue_ra_show(struct request_queue *q, char *page) in queue_ra_show() argument 85 return queue_var_show(ra_kb, page); in queue_ra_show() [all …]
|
D | blk-integrity.c | 221 char *page) in format_show() argument 226 return sysfs_emit(page, "%s\n", bi->profile->name); in format_show() 227 return sysfs_emit(page, "none\n"); in format_show() 231 char *page) in tag_size_show() argument 235 return sysfs_emit(page, "%u\n", bi->tag_size); in tag_size_show() 240 char *page) in protection_interval_bytes_show() argument 244 return sysfs_emit(page, "%u\n", in protection_interval_bytes_show() 250 const char *page, size_t count) in read_verify_store() argument 253 char *p = (char *) page; in read_verify_store() 265 struct device_attribute *attr, char *page) in read_verify_show() argument [all …]
|
D | bio.c | 911 static bool bvec_try_merge_page(struct bio_vec *bv, struct page *page, in bvec_try_merge_page() argument 916 phys_addr_t page_addr = page_to_phys(page); in bvec_try_merge_page() 920 if (xen_domain() && !xen_biovec_phys_mergeable(bv, page)) in bvec_try_merge_page() 922 if (!zone_device_pages_have_same_pgmap(bv->bv_page, page)) in bvec_try_merge_page() 929 if (bv->bv_page + bv_end / PAGE_SIZE != page + off / PAGE_SIZE) in bvec_try_merge_page() 943 struct page *page, unsigned len, unsigned offset, in bvec_try_merge_hw_page() argument 948 phys_addr_t addr2 = page_to_phys(page) + offset + len - 1; in bvec_try_merge_hw_page() 954 return bvec_try_merge_page(bv, page, len, offset, same_page); in bvec_try_merge_hw_page() 971 struct page *page, unsigned int len, unsigned int offset, in bio_add_hw_page() argument 983 if (bvec_try_merge_hw_page(q, bv, page, len, offset, in bio_add_hw_page() [all …]
|
D | blk-map.c | 135 struct page *page; in bio_copy_user_iov() local 180 page = map_data->pages[i / nr_pages]; in bio_copy_user_iov() 181 page += (i % nr_pages); in bio_copy_user_iov() 185 page = alloc_page(GFP_NOIO | gfp_mask); in bio_copy_user_iov() 186 if (!page) { in bio_copy_user_iov() 192 if (bio_add_pc_page(rq->q, bio, page, bytes, offset) < bytes) { in bio_copy_user_iov() 194 __free_page(page); in bio_copy_user_iov() 295 struct page *stack_pages[UIO_FASTIOV]; in bio_map_user_iov() 296 struct page **pages = stack_pages; in bio_map_user_iov() 317 struct page *page = pages[j]; in bio_map_user_iov() local [all …]
|
D | blk-crypto-sysfs.c | 21 struct blk_crypto_attr *attr, char *page); 35 struct blk_crypto_attr *attr, char *page) in max_dun_bits_show() argument 37 return sysfs_emit(page, "%u\n", 8 * profile->max_dun_bytes_supported); in max_dun_bits_show() 41 struct blk_crypto_attr *attr, char *page) in num_keyslots_show() argument 43 return sysfs_emit(page, "%u\n", profile->num_slots); in num_keyslots_show() 82 struct blk_crypto_attr *attr, char *page) in blk_crypto_mode_show() argument 86 return sysfs_emit(page, "0x%x\n", profile->modes_supported[mode_num]); in blk_crypto_mode_show() 102 struct attribute *attr, char *page) in blk_crypto_attr_show() argument 107 return a->show(profile, a, page); in blk_crypto_attr_show()
|
D | badblocks.c | 58 u64 *p = bb->page; in badblocks_check() 129 u64 *p = bb->page; in badblocks_update_acked() 186 p = bb->page; in badblocks_set() 351 p = bb->page; in badblocks_clear() 433 if (bb->page == NULL || bb->changed) in ack_all_badblocks() 439 u64 *p = bb->page; in ack_all_badblocks() 465 ssize_t badblocks_show(struct badblocks *bb, char *page, int unack) in badblocks_show() argument 469 u64 *p = bb->page; in badblocks_show() 491 len += snprintf(page+len, PAGE_SIZE-len, "%llu %u\n", in badblocks_show() 515 ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len, in badblocks_store() argument [all …]
|
D | blk-mq-sysfs.c | 50 struct attribute *attr, char *page) in blk_mq_hw_sysfs_show() argument 65 res = entry->show(hctx, page); in blk_mq_hw_sysfs_show() 71 char *page) in blk_mq_hw_sysfs_nr_tags_show() argument 73 return sprintf(page, "%u\n", hctx->tags->nr_tags); in blk_mq_hw_sysfs_nr_tags_show() 77 char *page) in blk_mq_hw_sysfs_nr_reserved_tags_show() argument 79 return sprintf(page, "%u\n", hctx->tags->nr_reserved_tags); in blk_mq_hw_sysfs_nr_reserved_tags_show() 82 static ssize_t blk_mq_hw_sysfs_cpus_show(struct blk_mq_hw_ctx *hctx, char *page) in blk_mq_hw_sysfs_cpus_show() argument 90 ret = snprintf(pos + page, size - pos, "%u", i); in blk_mq_hw_sysfs_cpus_show() 92 ret = snprintf(pos + page, size - pos, ", %u", i); in blk_mq_hw_sysfs_cpus_show() 101 ret = snprintf(pos + page, size + 1 - pos, "\n"); in blk_mq_hw_sysfs_cpus_show()
|
D | blk.h | 107 struct page *page, unsigned len, unsigned offset, 397 extern ssize_t blk_throtl_sample_time_show(struct request_queue *q, char *page); 399 const char *page, size_t count); 467 struct page *page, unsigned int len, unsigned int offset, 474 static inline void bio_release_page(struct bio *bio, struct page *page) in bio_release_page() argument 477 unpin_user_page(page); in bio_release_page()
|
D | fops.c | 416 static int blkdev_writepage(struct page *page, struct writeback_control *wbc) in blkdev_writepage() argument 418 return block_write_full_page(page, blkdev_get_block, wbc); in blkdev_writepage() 432 loff_t pos, unsigned len, struct page **pagep, void **fsdata) in blkdev_write_begin() 438 loff_t pos, unsigned len, unsigned copied, struct page *page, in blkdev_write_end() argument 442 ret = block_write_end(file, mapping, pos, len, copied, page, fsdata); in blkdev_write_end() 444 unlock_page(page); in blkdev_write_end() 445 put_page(page); in blkdev_write_end()
|
D | bio-integrity.c | 123 int bio_integrity_add_page(struct bio *bio, struct page *page, in bio_integrity_add_page() argument 137 if (bvec_try_merge_hw_page(q, bv, page, len, offset, in bio_integrity_add_page() 155 bvec_set_page(&bip->bip_vec[bip->bip_vcnt], page, len, offset); in bio_integrity_add_page()
|
D | blk-crypto-fallback.c | 321 struct page *plaintext_page = enc_bvec->bv_page; in blk_crypto_fallback_encrypt_bio() 322 struct page *ciphertext_page = in blk_crypto_fallback_encrypt_bio() 421 struct page *page = bv.bv_page; in blk_crypto_fallback_decrypt_bio() local 423 sg_set_page(&sg, page, data_unit_size, bv.bv_offset); in blk_crypto_fallback_decrypt_bio()
|
D | blk-mq.c | 3240 struct page *page; in blk_mq_clear_rq_mapping() local 3250 list_for_each_entry(page, &tags->page_list, lru) { in blk_mq_clear_rq_mapping() 3251 unsigned long start = (unsigned long)page_address(page); in blk_mq_clear_rq_mapping() 3252 unsigned long end = start + order_to_size(page->private); in blk_mq_clear_rq_mapping() 3280 struct page *page; in blk_mq_free_rqs() local 3306 page = list_first_entry(&tags->page_list, struct page, lru); in blk_mq_free_rqs() 3307 list_del_init(&page->lru); in blk_mq_free_rqs() 3312 kmemleak_free(page_address(page)); in blk_mq_free_rqs() 3313 __free_pages(page, page->private); in blk_mq_free_rqs() 3429 struct page *page; in blk_mq_alloc_rqs() local [all …]
|
D | elevator.c | 419 elv_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in elv_attr_show() argument 430 error = e->type ? entry->show(e, page) : -ENOENT; in elv_attr_show() 437 const char *page, size_t length) in elv_attr_store() argument 448 error = e->type ? entry->store(e, page, length) : -ENOENT; in elv_attr_store()
|
D | blk-merge.c | 198 struct page *start_page, unsigned long offset) in get_max_segment_size() 474 struct page *page = bvec->bv_page; in blk_bvec_map_sg() local 484 page += (offset >> PAGE_SHIFT); in blk_bvec_map_sg() 488 sg_set_page(*sg, page, len, offset); in blk_bvec_map_sg()
|
D | bfq-iosched.c | 7383 static ssize_t bfq_var_show(unsigned int var, char *page) in bfq_var_show() argument 7385 return sprintf(page, "%u\n", var); in bfq_var_show() 7388 static int bfq_var_store(unsigned long *var, const char *page) in bfq_var_store() argument 7391 int ret = kstrtoul(page, 10, &new_val); in bfq_var_store() 7400 static ssize_t __FUNC(struct elevator_queue *e, char *page) \ 7408 return bfq_var_show(__data, (page)); \ 7422 static ssize_t __FUNC(struct elevator_queue *e, char *page) \ 7427 return bfq_var_show(__data, (page)); \ 7434 __FUNC(struct elevator_queue *e, const char *page, size_t count) \ 7440 ret = bfq_var_store(&__data, (page)); \ [all …]
|
D | kyber-iosched.c | 865 char *page) \ 869 return sprintf(page, "%llu\n", kqd->latency_targets[domain]); \ 873 const char *page, size_t count) \ 879 ret = kstrtoull(page, 10, &nsec); \
|
D | genhd.c | 746 char *page) in disk_badblocks_show() argument 751 return sprintf(page, "\n"); in disk_badblocks_show() 753 return badblocks_show(disk->bb, page, 0); in disk_badblocks_show() 758 const char *page, size_t len) in disk_badblocks_store() argument 765 return badblocks_store(disk->bb, page, len, 0); in disk_badblocks_store()
|
D | mq-deadline.c | 985 static ssize_t __FUNC(struct elevator_queue *e, char *page) \ 989 return sysfs_emit(page, "%d\n", __VAR); \ 1003 static ssize_t __FUNC(struct elevator_queue *e, const char *page, size_t count) \ 1008 __ret = kstrtoint(page, 0, &__data); \
|
D | bounce.c | 243 struct page *bounce_page; in __blk_queue_bounce()
|
D | blk-iocost.c | 869 u64 *page, u64 *seqio, u64 *randio) in calc_lcoefs() argument 873 *page = *seqio = *randio = 0; in calc_lcoefs() 879 *page = DIV64_U64_ROUND_UP(VTIME_PER_SEC, bps_pages); in calc_lcoefs() 881 *page = 1; in calc_lcoefs() 886 if (v > *page) in calc_lcoefs() 887 *seqio = v - *page; in calc_lcoefs() 892 if (v > *page) in calc_lcoefs() 893 *randio = v - *page; in calc_lcoefs()
|
D | blk-throttle.c | 2457 ssize_t blk_throtl_sample_time_show(struct request_queue *q, char *page) in blk_throtl_sample_time_show() argument 2461 return sprintf(page, "%u\n", jiffies_to_msecs(q->td->throtl_slice)); in blk_throtl_sample_time_show() 2465 const char *page, size_t count) in blk_throtl_sample_time_store() argument 2472 if (kstrtoul(page, 10, &v)) in blk_throtl_sample_time_store()
|