Home
last modified time | relevance | path

Searched refs:page (Results 1 – 25 of 25) sorted by relevance

/block/
Dblk-sysfs.c28 queue_var_show(unsigned long var, char *page) in queue_var_show() argument
30 return sprintf(page, "%lu\n", var); in queue_var_show()
34 queue_var_store(unsigned long *var, const char *page, size_t count) in queue_var_store() argument
39 err = kstrtoul(page, 10, &v); in queue_var_store()
48 static ssize_t queue_var_store64(s64 *var, const char *page) in queue_var_store64() argument
53 err = kstrtos64(page, 10, &v); in queue_var_store64()
61 static ssize_t queue_requests_show(struct request_queue *q, char *page) in queue_requests_show() argument
63 return queue_var_show(q->nr_requests, page); in queue_requests_show()
67 queue_requests_store(struct request_queue *q, const char *page, size_t count) in queue_requests_store() argument
75 ret = queue_var_store(&nr, page, count); in queue_requests_store()
[all …]
Dblk-integrity.c222 char *page) in integrity_attr_show() argument
229 return entry->show(bi, page); in integrity_attr_show()
233 struct attribute *attr, const char *page, in integrity_attr_store() argument
243 ret = entry->store(bi, page, count); in integrity_attr_store()
248 static ssize_t integrity_format_show(struct blk_integrity *bi, char *page) in integrity_format_show() argument
251 return sprintf(page, "%s\n", bi->profile->name); in integrity_format_show()
253 return sprintf(page, "none\n"); in integrity_format_show()
256 static ssize_t integrity_tag_size_show(struct blk_integrity *bi, char *page) in integrity_tag_size_show() argument
258 return sprintf(page, "%u\n", bi->tag_size); in integrity_tag_size_show()
261 static ssize_t integrity_interval_show(struct blk_integrity *bi, char *page) in integrity_interval_show() argument
[all …]
Dblk-map.c133 struct page *page; in bio_copy_user_iov() local
178 page = map_data->pages[i / nr_pages]; in bio_copy_user_iov()
179 page += (i % nr_pages); in bio_copy_user_iov()
183 page = alloc_page(GFP_NOIO | gfp_mask); in bio_copy_user_iov()
184 if (!page) { in bio_copy_user_iov()
190 if (bio_add_pc_page(rq->q, bio, page, bytes, offset) < bytes) { in bio_copy_user_iov()
192 __free_page(page); in bio_copy_user_iov()
250 struct page **pages; in bio_map_user_iov()
268 struct page *page = pages[j]; in bio_map_user_iov() local
275 if (!bio_add_hw_page(rq->q, bio, page, n, offs, in bio_map_user_iov()
[all …]
Dbio.c781 struct page *page, unsigned int len, unsigned int off, in page_is_mergeable() argument
786 phys_addr_t page_addr = page_to_phys(page); in page_is_mergeable()
790 if (xen_domain() && !xen_biovec_phys_mergeable(bv, page)) in page_is_mergeable()
796 return (bv->bv_page + bv_end / PAGE_SIZE) == (page + off / PAGE_SIZE); in page_is_mergeable()
805 struct page *page, unsigned len, in bio_try_merge_hw_seg() argument
811 phys_addr_t addr2 = page_to_phys(page) + offset + len - 1; in bio_try_merge_hw_seg()
817 return __bio_try_merge_page(bio, page, len, offset, same_page); in bio_try_merge_hw_seg()
834 struct page *page, unsigned int len, unsigned int offset, in bio_add_hw_page() argument
846 if (bio_try_merge_hw_seg(q, bio, page, len, offset, same_page)) in bio_add_hw_page()
865 bvec->bv_page = page; in bio_add_hw_page()
[all …]
Dblk-crypto-sysfs.c21 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()
Dbadblocks.c58 u64 *p = bb->page; in badblocks_check()
130 u64 *p = bb->page; in badblocks_update_acked()
187 p = bb->page; in badblocks_set()
353 p = bb->page; in badblocks_clear()
435 if (bb->page == NULL || bb->changed) in ack_all_badblocks()
441 u64 *p = bb->page; in ack_all_badblocks()
467 ssize_t badblocks_show(struct badblocks *bb, char *page, int unack) in badblocks_show() argument
471 u64 *p = bb->page; in badblocks_show()
493 len += snprintf(page+len, PAGE_SIZE-len, "%llu %u\n", in badblocks_show()
517 ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len, in badblocks_store() argument
[all …]
Dblk-mq-sysfs.c55 struct attribute *attr, char *page) in blk_mq_hw_sysfs_show() argument
70 res = entry->show(hctx, page); in blk_mq_hw_sysfs_show()
76 struct attribute *attr, const char *page, in blk_mq_hw_sysfs_store() argument
92 res = entry->store(hctx, page, length); in blk_mq_hw_sysfs_store()
98 char *page) in blk_mq_hw_sysfs_nr_tags_show() argument
100 return sprintf(page, "%u\n", hctx->tags->nr_tags); in blk_mq_hw_sysfs_nr_tags_show()
104 char *page) in blk_mq_hw_sysfs_nr_reserved_tags_show() argument
106 return sprintf(page, "%u\n", hctx->tags->nr_reserved_tags); in blk_mq_hw_sysfs_nr_reserved_tags_show()
109 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
117 ret = snprintf(pos + page, size - pos, "%u", i); in blk_mq_hw_sysfs_cpus_show()
[all …]
Dfops.c350 static int blkdev_writepage(struct page *page, struct writeback_control *wbc) in blkdev_writepage() argument
352 return block_write_full_page(page, blkdev_get_block, wbc); in blkdev_writepage()
355 static int blkdev_readpage(struct file * file, struct page * page) in blkdev_readpage() argument
357 return block_read_full_page(page, blkdev_get_block); in blkdev_readpage()
366 loff_t pos, unsigned len, unsigned flags, struct page **pagep, in blkdev_write_begin()
374 loff_t pos, unsigned len, unsigned copied, struct page *page, in blkdev_write_end() argument
378 ret = block_write_end(file, mapping, pos, len, copied, page, fsdata); in blkdev_write_end()
380 unlock_page(page); in blkdev_write_end()
381 put_page(page); in blkdev_write_end()
Dblk-lib.c167 sector_t nr_sects, gfp_t gfp_mask, struct page *page, in __blkdev_issue_write_same() argument
196 bio->bi_io_vec->bv_page = page; in __blkdev_issue_write_same()
229 struct page *page) in blkdev_issue_write_same() argument
236 ret = __blkdev_issue_write_same(bdev, sector, nr_sects, gfp_mask, page, in blkdev_issue_write_same()
Dbdev.c322 struct page *page) in bdev_read_page() argument
333 result = ops->rw_page(bdev, sector + get_start_sect(bdev), page, in bdev_read_page()
359 struct page *page, struct writeback_control *wbc) in bdev_write_page() argument
370 set_page_writeback(page); in bdev_write_page()
371 result = ops->rw_page(bdev, sector + get_start_sect(bdev), page, in bdev_write_page()
374 end_page_writeback(page); in bdev_write_page()
376 clean_page_buffers(page); in bdev_write_page()
377 unlock_page(page); in bdev_write_page()
Dblk.h350 extern ssize_t blk_throtl_sample_time_show(struct request_queue *q, char *page);
352 const char *page, size_t count);
403 struct page *page, unsigned int len, unsigned int offset,
Dblk-crypto-fallback.c319 struct page *plaintext_page = enc_bvec->bv_page; in blk_crypto_fallback_encrypt_bio()
320 struct page *ciphertext_page = in blk_crypto_fallback_encrypt_bio()
419 struct page *page = bv.bv_page; in blk_crypto_fallback_decrypt_bio() local
421 sg_set_page(&sg, page, data_unit_size, bv.bv_offset); in blk_crypto_fallback_decrypt_bio()
Dblk-mq.c2324 struct page *page; in blk_mq_clear_rq_mapping() local
2327 list_for_each_entry(page, &tags->page_list, lru) { in blk_mq_clear_rq_mapping()
2328 unsigned long start = (unsigned long)page_address(page); in blk_mq_clear_rq_mapping()
2329 unsigned long end = start + order_to_size(page->private); in blk_mq_clear_rq_mapping()
2356 struct page *page; in blk_mq_free_rqs() local
2374 page = list_first_entry(&tags->page_list, struct page, lru); in blk_mq_free_rqs()
2375 list_del_init(&page->lru); in blk_mq_free_rqs()
2380 kmemleak_free(page_address(page)); in blk_mq_free_rqs()
2381 __free_pages(page, page->private); in blk_mq_free_rqs()
2471 struct page *page; in blk_mq_alloc_rqs() local
[all …]
Dbio-integrity.c123 int bio_integrity_add_page(struct bio *bio, struct page *page, in bio_integrity_add_page() argument
141 iv->bv_page = page; in bio_integrity_add_page()
Dbfq-iosched.c7085 static ssize_t bfq_var_show(unsigned int var, char *page) in bfq_var_show() argument
7087 return sprintf(page, "%u\n", var); in bfq_var_show()
7090 static int bfq_var_store(unsigned long *var, const char *page) in bfq_var_store() argument
7093 int ret = kstrtoul(page, 10, &new_val); in bfq_var_store()
7102 static ssize_t __FUNC(struct elevator_queue *e, char *page) \
7110 return bfq_var_show(__data, (page)); \
7124 static ssize_t __FUNC(struct elevator_queue *e, char *page) \
7129 return bfq_var_show(__data, (page)); \
7136 __FUNC(struct elevator_queue *e, const char *page, size_t count) \
7142 ret = bfq_var_store(&__data, (page)); \
[all …]
Delevator.c446 elv_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in elv_attr_show() argument
457 error = e->type ? entry->show(e, page) : -ENOENT; in elv_attr_show()
464 const char *page, size_t length) in elv_attr_store() argument
475 error = e->type ? entry->store(e, page, length) : -ENOENT; in elv_attr_store()
Dblk-merge.c163 struct page *start_page, in get_max_segment_size()
448 struct page *page = bvec->bv_page; in blk_bvec_map_sg() local
458 page += (offset >> PAGE_SHIFT); in blk_bvec_map_sg()
462 sg_set_page(*sg, page, len, offset); in blk_bvec_map_sg()
Dkyber-iosched.c863 char *page) \
867 return sprintf(page, "%llu\n", kqd->latency_targets[domain]); \
871 const char *page, size_t count) \
877 ret = kstrtoull(page, 10, &nsec); \
Dgenhd.c657 char *page) in disk_badblocks_show() argument
662 return sprintf(page, "\n"); in disk_badblocks_show()
664 return badblocks_show(disk->bb, page, 0); in disk_badblocks_show()
669 const char *page, size_t len) in disk_badblocks_store() argument
676 return badblocks_store(disk->bb, page, len, 0); in disk_badblocks_store()
Dmq-deadline.c981 static ssize_t __FUNC(struct elevator_queue *e, char *page) \
985 return sysfs_emit(page, "%d\n", __VAR); \
999 static ssize_t __FUNC(struct elevator_queue *e, const char *page, size_t count) \
1004 __ret = kstrtoint(page, 0, &__data); \
Dbounce.c242 struct page *bounce_page; in __blk_queue_bounce()
Dblk-iocost.c871 u64 *page, u64 *seqio, u64 *randio) in calc_lcoefs() argument
875 *page = *seqio = *randio = 0; in calc_lcoefs()
881 *page = DIV64_U64_ROUND_UP(VTIME_PER_SEC, bps_pages); in calc_lcoefs()
883 *page = 1; in calc_lcoefs()
888 if (v > *page) in calc_lcoefs()
889 *seqio = v - *page; in calc_lcoefs()
894 if (v > *page) in calc_lcoefs()
895 *randio = v - *page; in calc_lcoefs()
Dblk-throttle.c2499 ssize_t blk_throtl_sample_time_show(struct request_queue *q, char *page) in blk_throtl_sample_time_show() argument
2503 return sprintf(page, "%u\n", jiffies_to_msecs(q->td->throtl_slice)); in blk_throtl_sample_time_show()
2507 const char *page, size_t count) in blk_throtl_sample_time_store() argument
2514 if (kstrtoul(page, 10, &v)) in blk_throtl_sample_time_store()
/block/partitions/
Dcore.c722 struct page *page; in read_part_sector() local
729 page = read_mapping_page(mapping, in read_part_sector()
731 if (IS_ERR(page)) in read_part_sector()
733 if (PageError(page)) in read_part_sector()
736 p->v = page; in read_part_sector()
737 return (unsigned char *)page_address(page) + in read_part_sector()
740 put_page(page); in read_part_sector()
Dcheck.h28 struct page *v;