Lines Matching defs:zram
63 static int zram_slot_trylock(struct zram *zram, u32 index) in zram_slot_trylock()
68 static void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock()
73 static void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock()
78 static inline bool init_done(struct zram *zram) in init_done()
88 static unsigned long zram_get_handle(struct zram *zram, u32 index) in zram_get_handle()
93 static void zram_set_handle(struct zram *zram, u32 index, unsigned long handle) in zram_set_handle()
99 static bool zram_test_flag(struct zram *zram, u32 index, in zram_test_flag()
105 static void zram_set_flag(struct zram *zram, u32 index, in zram_set_flag()
111 static void zram_clear_flag(struct zram *zram, u32 index, in zram_clear_flag()
117 static inline void zram_set_element(struct zram *zram, u32 index, in zram_set_element()
123 static unsigned long zram_get_element(struct zram *zram, u32 index) in zram_get_element()
128 static size_t zram_get_obj_size(struct zram *zram, u32 index) in zram_get_obj_size()
133 static void zram_set_obj_size(struct zram *zram, in zram_set_obj_size()
141 static inline bool zram_allocated(struct zram *zram, u32 index) in zram_allocated()
163 static inline bool valid_io_request(struct zram *zram, in valid_io_request()
190 static inline void update_used_max(struct zram *zram, in update_used_max()
238 struct zram *zram = dev_to_zram(dev); in initstate_show() local
250 struct zram *zram = dev_to_zram(dev); in disksize_show() local
260 struct zram *zram = dev_to_zram(dev); in mem_limit_store() local
278 struct zram *zram = dev_to_zram(dev); in mem_used_max_store() local
297 struct zram *zram = dev_to_zram(dev); in idle_store() local
331 struct zram *zram = dev_to_zram(dev); in writeback_limit_enable_store() local
352 struct zram *zram = dev_to_zram(dev); in writeback_limit_enable_show() local
366 struct zram *zram = dev_to_zram(dev); in writeback_limit_store() local
387 struct zram *zram = dev_to_zram(dev); in writeback_limit_show() local
398 static void reset_bdev(struct zram *zram) in reset_bdev()
423 struct zram *zram = dev_to_zram(dev); in backing_dev_show() local
461 struct zram *zram = dev_to_zram(dev); in backing_dev_store() local
558 static unsigned long alloc_block_bdev(struct zram *zram) in alloc_block_bdev()
574 static void free_block_bdev(struct zram *zram, unsigned long blk_idx) in free_block_bdev()
595 static int read_from_bdev_async(struct zram *zram, struct bio_vec *bvec, in read_from_bdev_async()
629 struct zram *zram = dev_to_zram(dev); in writeback_store() local
780 struct zram *zram; member
790 struct zram *zram = zw->zram; in zram_sync_read() local
802 static int read_from_bdev_sync(struct zram *zram, struct bio_vec *bvec, in read_from_bdev_sync()
820 static int read_from_bdev_sync(struct zram *zram, struct bio_vec *bvec, in read_from_bdev_sync()
828 static int read_from_bdev(struct zram *zram, struct bio_vec *bvec, in read_from_bdev()
838 static inline void reset_bdev(struct zram *zram) {}; in reset_bdev()
839 static int read_from_bdev(struct zram *zram, struct bio_vec *bvec, in read_from_bdev()
845 static void free_block_bdev(struct zram *zram, unsigned long blk_idx) {}; in free_block_bdev()
862 static void zram_accessed(struct zram *zram, u32 index) in zram_accessed()
873 struct zram *zram = file->private_data; in read_block_state() local
930 static void zram_debugfs_register(struct zram *zram) in zram_debugfs_register()
941 static void zram_debugfs_unregister(struct zram *zram) in zram_debugfs_unregister()
948 static void zram_accessed(struct zram *zram, u32 index) in zram_accessed()
952 static void zram_debugfs_register(struct zram *zram) {}; in zram_debugfs_register()
953 static void zram_debugfs_unregister(struct zram *zram) {}; in zram_debugfs_unregister()
981 struct zram *zram = dev_to_zram(dev); in comp_algorithm_show() local
993 struct zram *zram = dev_to_zram(dev); in comp_algorithm_store() local
1021 struct zram *zram = dev_to_zram(dev); in compact_store() local
1038 struct zram *zram = dev_to_zram(dev); in io_stat_show() local
1056 struct zram *zram = dev_to_zram(dev); in mm_stat_show() local
1093 struct zram *zram = dev_to_zram(dev); in bd_stat_show() local
1112 struct zram *zram = dev_to_zram(dev); in debug_stat_show() local
1133 static void zram_meta_free(struct zram *zram, u64 disksize) in zram_meta_free()
1146 static bool zram_meta_alloc(struct zram *zram, u64 disksize) in zram_meta_alloc()
1171 static void zram_free_page(struct zram *zram, size_t index) in zram_free_page()
1218 static int __zram_bvec_read(struct zram *zram, struct page *page, u32 index, in __zram_bvec_read()
1281 static int zram_bvec_read(struct zram *zram, struct bio_vec *bvec, in zram_bvec_read()
1314 static int __zram_bvec_write(struct zram *zram, struct bio_vec *bvec, in __zram_bvec_write()
1430 static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, in zram_bvec_write()
1476 static void zram_bio_discard(struct zram *zram, u32 index, in zram_bio_discard()
1514 static int zram_bvec_rw(struct zram *zram, struct bio_vec *bvec, u32 index, in zram_bvec_rw()
1542 static void __zram_make_request(struct zram *zram, struct bio *bio) in __zram_make_request()
1593 struct zram *zram = bio->bi_disk->private_data; in zram_submit_bio() local
1612 struct zram *zram; in zram_slot_free_notify() local
1631 struct zram *zram; in zram_rw_page() local
1680 static void zram_reset_device(struct zram *zram) in zram_reset_device()
1714 struct zram *zram = dev_to_zram(dev); in disksize_store() local
1763 struct zram *zram; in reset_store() local
1806 struct zram *zram; in zram_open() local
1889 struct zram *zram; in zram_add() local
1978 static int zram_remove(struct zram *zram) in zram_remove()
2042 struct zram *zram; in hot_remove_store() local