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
298 static void mark_idle(struct zram *zram, ktime_t cutoff) in mark_idle()
325 struct zram *zram = dev_to_zram(dev); in idle_store() local
361 struct zram *zram = dev_to_zram(dev); in writeback_limit_enable_store() local
382 struct zram *zram = dev_to_zram(dev); in writeback_limit_enable_show() local
396 struct zram *zram = dev_to_zram(dev); in writeback_limit_store() local
417 struct zram *zram = dev_to_zram(dev); in writeback_limit_show() local
428 static void reset_bdev(struct zram *zram) in reset_bdev()
450 struct zram *zram = dev_to_zram(dev); in backing_dev_show() local
488 struct zram *zram = dev_to_zram(dev); in backing_dev_store() local
578 static unsigned long alloc_block_bdev(struct zram *zram) in alloc_block_bdev()
594 static void free_block_bdev(struct zram *zram, unsigned long blk_idx) in free_block_bdev()
615 static int read_from_bdev_async(struct zram *zram, struct bio_vec *bvec, in read_from_bdev_async()
653 struct zram *zram = dev_to_zram(dev); in writeback_store() local
818 struct zram *zram; member
828 struct zram *zram = zw->zram; in zram_sync_read() local
840 static int read_from_bdev_sync(struct zram *zram, struct bio_vec *bvec, in read_from_bdev_sync()
858 static int read_from_bdev_sync(struct zram *zram, struct bio_vec *bvec, in read_from_bdev_sync()
866 static int read_from_bdev(struct zram *zram, struct bio_vec *bvec, in read_from_bdev()
876 static inline void reset_bdev(struct zram *zram) {}; in reset_bdev()
877 static int read_from_bdev(struct zram *zram, struct bio_vec *bvec, in read_from_bdev()
883 static void free_block_bdev(struct zram *zram, unsigned long blk_idx) {}; in free_block_bdev()
900 static void zram_accessed(struct zram *zram, u32 index) in zram_accessed()
911 struct zram *zram = file->private_data; in read_block_state() local
968 static void zram_debugfs_register(struct zram *zram) in zram_debugfs_register()
979 static void zram_debugfs_unregister(struct zram *zram) in zram_debugfs_unregister()
986 static void zram_accessed(struct zram *zram, u32 index) in zram_accessed()
990 static void zram_debugfs_register(struct zram *zram) {}; in zram_debugfs_register()
991 static void zram_debugfs_unregister(struct zram *zram) {}; in zram_debugfs_unregister()
1019 struct zram *zram = dev_to_zram(dev); in comp_algorithm_show() local
1031 struct zram *zram = dev_to_zram(dev); in comp_algorithm_store() local
1059 struct zram *zram = dev_to_zram(dev); in compact_store() local
1076 struct zram *zram = dev_to_zram(dev); in io_stat_show() local
1094 struct zram *zram = dev_to_zram(dev); in mm_stat_show() local
1132 struct zram *zram = dev_to_zram(dev); in bd_stat_show() local
1151 struct zram *zram = dev_to_zram(dev); in debug_stat_show() local
1172 static void zram_meta_free(struct zram *zram, u64 disksize) in zram_meta_free()
1185 static bool zram_meta_alloc(struct zram *zram, u64 disksize) in zram_meta_alloc()
1210 static void zram_free_page(struct zram *zram, size_t index) in zram_free_page()
1257 static int __zram_bvec_read(struct zram *zram, struct page *page, u32 index, in __zram_bvec_read()
1320 static int zram_bvec_read(struct zram *zram, struct bio_vec *bvec, in zram_bvec_read()
1353 static int __zram_bvec_write(struct zram *zram, struct bio_vec *bvec, in __zram_bvec_write()
1470 static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, in zram_bvec_write()
1516 static void zram_bio_discard(struct zram *zram, u32 index, in zram_bio_discard()
1554 static int zram_bvec_rw(struct zram *zram, struct bio_vec *bvec, u32 index, in zram_bvec_rw()
1582 static void __zram_make_request(struct zram *zram, struct bio *bio) in __zram_make_request()
1633 struct zram *zram = bio->bi_bdev->bd_disk->private_data; in zram_submit_bio() local
1648 struct zram *zram; in zram_slot_free_notify() local
1667 struct zram *zram; in zram_rw_page() local
1716 static void zram_reset_device(struct zram *zram) in zram_reset_device()
1751 struct zram *zram = dev_to_zram(dev); in disksize_store() local
1798 struct zram *zram; in reset_store() local
1836 struct zram *zram; in zram_open() local
1921 struct zram *zram; in zram_add() local
2004 static int zram_remove(struct zram *zram) in zram_remove()
2083 struct zram *zram; in hot_remove_store() local