Lines Matching refs:PAGE_SIZE
62 return scnprintf(b, PAGE_SIZE, "%llu\n", \
111 return bvec->bv_len != PAGE_SIZE; in is_partial_io()
140 if (*offset + bvec->bv_len >= PAGE_SIZE) in update_position()
142 *offset = (*offset + bvec->bv_len) % PAGE_SIZE; in update_position()
167 for (pos = 0; pos != PAGE_SIZE / sizeof(*page); pos++) { in page_zero_filled()
200 return scnprintf(buf, PAGE_SIZE, "%u\n", val); in initstate_show()
208 return scnprintf(buf, PAGE_SIZE, "%llu\n", zram->disksize); in disksize_show()
217 return scnprintf(buf, PAGE_SIZE, "%llu\n", in orig_data_size_show()
235 return scnprintf(buf, PAGE_SIZE, "%llu\n", val << PAGE_SHIFT); in mem_used_total_show()
249 return scnprintf(buf, PAGE_SIZE, "%llu\n", val << PAGE_SHIFT); in mem_limit_show()
282 return scnprintf(buf, PAGE_SIZE, "%llu\n", val << PAGE_SHIFT); in mem_used_max_show()
317 return scnprintf(buf, PAGE_SIZE, "%d\n", val); in max_comp_streams_show()
414 ret = scnprintf(buf, PAGE_SIZE, in io_stat_show()
445 ret = scnprintf(buf, PAGE_SIZE, in mm_stat_show()
582 if (size == PAGE_SIZE) in zram_decompress_page()
618 uncmem = kmalloc(PAGE_SIZE, GFP_NOIO); in zram_bvec_read()
666 uncmem = kmalloc(PAGE_SIZE, GFP_NOIO); in zram_bvec_write()
715 clen = PAGE_SIZE; in zram_bvec_write()
739 if ((clen == PAGE_SIZE) && !is_partial_io(bvec)) { in zram_bvec_write()
795 if (n <= (PAGE_SIZE - offset)) in zram_bio_discard()
798 n -= (PAGE_SIZE - offset); in zram_bio_discard()
802 while (n >= PAGE_SIZE) { in zram_bio_discard()
808 n -= PAGE_SIZE; in zram_bio_discard()
860 int max_transfer_size = PAGE_SIZE - offset; in __zram_make_request()
949 if (!valid_io_request(zram, sector, PAGE_SIZE)) { in zram_rw_page()
959 bv.bv_len = PAGE_SIZE; in zram_rw_page()
1244 blk_queue_physical_block_size(zram->disk->queue, PAGE_SIZE); in zram_add()
1247 blk_queue_io_min(zram->disk->queue, PAGE_SIZE); in zram_add()
1248 blk_queue_io_opt(zram->disk->queue, PAGE_SIZE); in zram_add()
1249 zram->disk->queue->limits.discard_granularity = PAGE_SIZE; in zram_add()
1259 if (ZRAM_LOGICAL_BLOCK_SIZE == PAGE_SIZE) in zram_add()
1348 return scnprintf(buf, PAGE_SIZE, "%d\n", ret); in hot_add_show()