Lines Matching defs:zram

61 static int zram_slot_trylock(struct zram *zram, u32 index)  in zram_slot_trylock()
66 static void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock()
71 static void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock()
76 static inline bool init_done(struct zram *zram) in init_done()
86 static unsigned long zram_get_handle(struct zram *zram, u32 index) in zram_get_handle()
91 static void zram_set_handle(struct zram *zram, u32 index, unsigned long handle) in zram_set_handle()
97 static bool zram_test_flag(struct zram *zram, u32 index, in zram_test_flag()
103 static void zram_set_flag(struct zram *zram, u32 index, in zram_set_flag()
109 static void zram_clear_flag(struct zram *zram, u32 index, in zram_clear_flag()
115 static inline void zram_set_element(struct zram *zram, u32 index, in zram_set_element()
121 static unsigned long zram_get_element(struct zram *zram, u32 index) in zram_get_element()
126 static size_t zram_get_obj_size(struct zram *zram, u32 index) in zram_get_obj_size()
131 static void zram_set_obj_size(struct zram *zram, in zram_set_obj_size()
139 static inline bool zram_allocated(struct zram *zram, u32 index) in zram_allocated()
159 static inline void zram_set_priority(struct zram *zram, u32 index, u32 prio) in zram_set_priority()
171 static inline u32 zram_get_priority(struct zram *zram, u32 index) in zram_get_priority()
178 static void zram_accessed(struct zram *zram, u32 index) in zram_accessed()
186 static inline void update_used_max(struct zram *zram, in update_used_max()
231 struct zram *zram = dev_to_zram(dev); in initstate_show() local
243 struct zram *zram = dev_to_zram(dev); in disksize_show() local
253 struct zram *zram = dev_to_zram(dev); in mem_limit_store() local
271 struct zram *zram = dev_to_zram(dev); in mem_used_max_store() local
291 static void mark_idle(struct zram *zram, ktime_t cutoff) in mark_idle()
319 struct zram *zram = dev_to_zram(dev); in idle_store() local
358 struct zram *zram = dev_to_zram(dev); in writeback_limit_enable_store() local
379 struct zram *zram = dev_to_zram(dev); in writeback_limit_enable_show() local
393 struct zram *zram = dev_to_zram(dev); in writeback_limit_store() local
414 struct zram *zram = dev_to_zram(dev); in writeback_limit_show() local
425 static void reset_bdev(struct zram *zram) in reset_bdev()
443 struct zram *zram = dev_to_zram(dev); in backing_dev_show() local
479 struct zram *zram = dev_to_zram(dev); in backing_dev_store() local
546 static unsigned long alloc_block_bdev(struct zram *zram) in alloc_block_bdev()
562 static void free_block_bdev(struct zram *zram, unsigned long blk_idx) in free_block_bdev()
571 static void read_from_bdev_async(struct zram *zram, struct page *page, in read_from_bdev_async()
593 struct zram *zram = dev_to_zram(dev); in writeback_store() local
762 struct zram *zram; member
785 static int read_from_bdev_sync(struct zram *zram, struct page *page, in read_from_bdev_sync()
802 static int read_from_bdev(struct zram *zram, struct page *page, in read_from_bdev()
815 static inline void reset_bdev(struct zram *zram) {}; in reset_bdev()
816 static int read_from_bdev(struct zram *zram, struct page *page, in read_from_bdev()
822 static void free_block_bdev(struct zram *zram, unsigned long blk_idx) {}; in free_block_bdev()
844 struct zram *zram = file->private_data; in read_block_state() local
904 static void zram_debugfs_register(struct zram *zram) in zram_debugfs_register()
915 static void zram_debugfs_unregister(struct zram *zram) in zram_debugfs_unregister()
922 static void zram_debugfs_register(struct zram *zram) {}; in zram_debugfs_register()
923 static void zram_debugfs_unregister(struct zram *zram) {}; in zram_debugfs_unregister()
947 static void comp_algorithm_set(struct zram *zram, u32 prio, const char *alg) in comp_algorithm_set()
956 static ssize_t __comp_algorithm_show(struct zram *zram, u32 prio, char *buf) in __comp_algorithm_show()
967 static int __comp_algorithm_store(struct zram *zram, u32 prio, const char *buf) in __comp_algorithm_store()
1002 static void comp_params_reset(struct zram *zram, u32 prio) in comp_params_reset()
1012 static int comp_params_store(struct zram *zram, u32 prio, s32 level, in comp_params_store()
1041 struct zram *zram = dev_to_zram(dev); in algorithm_params_store() local
1103 struct zram *zram = dev_to_zram(dev); in comp_algorithm_show() local
1113 struct zram *zram = dev_to_zram(dev); in comp_algorithm_store() local
1125 struct zram *zram = dev_to_zram(dev); in recomp_algorithm_show() local
1145 struct zram *zram = dev_to_zram(dev); in recomp_algorithm_store() local
1185 struct zram *zram = dev_to_zram(dev); in compact_store() local
1202 struct zram *zram = dev_to_zram(dev); in io_stat_show() local
1219 struct zram *zram = dev_to_zram(dev); in mm_stat_show() local
1257 struct zram *zram = dev_to_zram(dev); in bd_stat_show() local
1276 struct zram *zram = dev_to_zram(dev); in debug_stat_show() local
1297 static void zram_meta_free(struct zram *zram, u64 disksize) in zram_meta_free()
1310 static bool zram_meta_alloc(struct zram *zram, u64 disksize) in zram_meta_alloc()
1338 static void zram_free_page(struct zram *zram, size_t index) in zram_free_page()
1394 static int zram_read_from_zspool(struct zram *zram, struct page *page, in zram_read_from_zspool()
1440 static int zram_read_page(struct zram *zram, struct page *page, u32 index, in zram_read_page()
1472 static int zram_bvec_read_partial(struct zram *zram, struct bio_vec *bvec, in zram_bvec_read_partial()
1487 static int zram_bvec_read(struct zram *zram, struct bio_vec *bvec, in zram_bvec_read()
1495 static int zram_write_page(struct zram *zram, struct page *page, u32 index) in zram_write_page()
1624 static int zram_bvec_write_partial(struct zram *zram, struct bio_vec *bvec, in zram_bvec_write_partial()
1642 static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, in zram_bvec_write()
1658 static int zram_recompress(struct zram *zram, u32 index, struct page *page, in zram_recompress()
1809 struct zram *zram = dev_to_zram(dev); in recompress_store() local
1956 static void zram_bio_discard(struct zram *zram, struct bio *bio) in zram_bio_discard()
1993 static void zram_bio_read(struct zram *zram, struct bio *bio) in zram_bio_read()
2024 static void zram_bio_write(struct zram *zram, struct bio *bio) in zram_bio_write()
2059 struct zram *zram = bio->bi_bdev->bd_disk->private_data; in zram_submit_bio() local
2081 struct zram *zram; in zram_slot_free_notify() local
2095 static void zram_comp_params_reset(struct zram *zram) in zram_comp_params_reset()
2104 static void zram_destroy_comps(struct zram *zram) in zram_destroy_comps()
2128 static void zram_reset_device(struct zram *zram) in zram_reset_device()
2158 struct zram *zram = dev_to_zram(dev); in disksize_store() local
2214 struct zram *zram; in reset_store() local
2251 struct zram *zram = disk->private_data; in zram_open() local
2351 struct zram *zram; in zram_add() local
2407 static int zram_remove(struct zram *zram) in zram_remove()
2486 struct zram *zram; in hot_remove_store() local