Lines Matching defs:zram

62 static int zram_slot_trylock(struct zram *zram, u32 index)  in zram_slot_trylock()
67 static void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock()
72 static void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock()
77 static inline bool init_done(struct zram *zram) in init_done()
87 static unsigned long zram_get_handle(struct zram *zram, u32 index) in zram_get_handle()
92 static void zram_set_handle(struct zram *zram, u32 index, unsigned long handle) in zram_set_handle()
98 static bool zram_test_flag(struct zram *zram, u32 index, in zram_test_flag()
104 static void zram_set_flag(struct zram *zram, u32 index, in zram_set_flag()
110 static void zram_clear_flag(struct zram *zram, u32 index, in zram_clear_flag()
116 static inline void zram_set_element(struct zram *zram, u32 index, in zram_set_element()
122 static unsigned long zram_get_element(struct zram *zram, u32 index) in zram_get_element()
127 static size_t zram_get_obj_size(struct zram *zram, u32 index) in zram_get_obj_size()
132 static void zram_set_obj_size(struct zram *zram, in zram_set_obj_size()
140 static inline bool zram_allocated(struct zram *zram, u32 index) in zram_allocated()
162 static inline bool valid_io_request(struct zram *zram, in valid_io_request()
189 static inline void update_used_max(struct zram *zram, in update_used_max()
237 struct zram *zram = dev_to_zram(dev); in initstate_show() local
249 struct zram *zram = dev_to_zram(dev); in disksize_show() local
259 struct zram *zram = dev_to_zram(dev); in mem_limit_store() local
277 struct zram *zram = dev_to_zram(dev); in mem_used_max_store() local
297 static void mark_idle(struct zram *zram, ktime_t cutoff) in mark_idle()
324 struct zram *zram = dev_to_zram(dev); in idle_store() local
360 struct zram *zram = dev_to_zram(dev); in writeback_limit_enable_store() local
381 struct zram *zram = dev_to_zram(dev); in writeback_limit_enable_show() local
395 struct zram *zram = dev_to_zram(dev); in writeback_limit_store() local
416 struct zram *zram = dev_to_zram(dev); in writeback_limit_show() local
427 static void reset_bdev(struct zram *zram) in reset_bdev()
449 struct zram *zram = dev_to_zram(dev); in backing_dev_show() local
487 struct zram *zram = dev_to_zram(dev); in backing_dev_store() local
577 static unsigned long alloc_block_bdev(struct zram *zram) in alloc_block_bdev()
593 static void free_block_bdev(struct zram *zram, unsigned long blk_idx) in free_block_bdev()
614 static int read_from_bdev_async(struct zram *zram, struct bio_vec *bvec, in read_from_bdev_async()
649 struct zram *zram = dev_to_zram(dev); in writeback_store() local
815 struct zram *zram; member
825 struct zram *zram = zw->zram; in zram_sync_read() local
837 static int read_from_bdev_sync(struct zram *zram, struct bio_vec *bvec, in read_from_bdev_sync()
855 static int read_from_bdev_sync(struct zram *zram, struct bio_vec *bvec, in read_from_bdev_sync()
863 static int read_from_bdev(struct zram *zram, struct bio_vec *bvec, in read_from_bdev()
873 static inline void reset_bdev(struct zram *zram) {}; in reset_bdev()
874 static int read_from_bdev(struct zram *zram, struct bio_vec *bvec, in read_from_bdev()
880 static void free_block_bdev(struct zram *zram, unsigned long blk_idx) {}; in free_block_bdev()
897 static void zram_accessed(struct zram *zram, u32 index) in zram_accessed()
908 struct zram *zram = file->private_data; in read_block_state() local
965 static void zram_debugfs_register(struct zram *zram) in zram_debugfs_register()
976 static void zram_debugfs_unregister(struct zram *zram) in zram_debugfs_unregister()
983 static void zram_accessed(struct zram *zram, u32 index) in zram_accessed()
987 static void zram_debugfs_register(struct zram *zram) {}; in zram_debugfs_register()
988 static void zram_debugfs_unregister(struct zram *zram) {}; in zram_debugfs_unregister()
1016 struct zram *zram = dev_to_zram(dev); in comp_algorithm_show() local
1028 struct zram *zram = dev_to_zram(dev); in comp_algorithm_store() local
1056 struct zram *zram = dev_to_zram(dev); in compact_store() local
1073 struct zram *zram = dev_to_zram(dev); in io_stat_show() local
1091 struct zram *zram = dev_to_zram(dev); in mm_stat_show() local
1129 struct zram *zram = dev_to_zram(dev); in bd_stat_show() local
1148 struct zram *zram = dev_to_zram(dev); in debug_stat_show() local
1169 static void zram_meta_free(struct zram *zram, u64 disksize) in zram_meta_free()
1182 static bool zram_meta_alloc(struct zram *zram, u64 disksize) in zram_meta_alloc()
1207 static void zram_free_page(struct zram *zram, size_t index) in zram_free_page()
1254 static int __zram_bvec_read(struct zram *zram, struct page *page, u32 index, in __zram_bvec_read()
1317 static int zram_bvec_read(struct zram *zram, struct bio_vec *bvec, in zram_bvec_read()
1348 static int __zram_bvec_write(struct zram *zram, struct bio_vec *bvec, in __zram_bvec_write()
1465 static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, in zram_bvec_write()
1508 static void zram_bio_discard(struct zram *zram, u32 index, in zram_bio_discard()
1546 static int zram_bvec_rw(struct zram *zram, struct bio_vec *bvec, u32 index, in zram_bvec_rw()
1574 static void __zram_make_request(struct zram *zram, struct bio *bio) in __zram_make_request()
1625 struct zram *zram = bio->bi_bdev->bd_disk->private_data; in zram_submit_bio() local
1640 struct zram *zram; in zram_slot_free_notify() local
1659 struct zram *zram; in zram_rw_page() local
1709 static void zram_reset_device(struct zram *zram) in zram_reset_device()
1744 struct zram *zram = dev_to_zram(dev); in disksize_store() local
1791 struct zram *zram; in reset_store() local
1829 struct zram *zram; in zram_open() local
1907 struct zram *zram; in zram_add() local
1990 static int zram_remove(struct zram *zram) in zram_remove()
2068 struct zram *zram; in hot_remove_store() local