Searched defs:zram (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/drivers/block/zram/ |
D | zram_drv.h | 84 struct zram { struct 85 struct zram_table_entry *table; argument 92 * the number of pages zram can consume for storing compressed data argument 96 struct zram_stats stats; argument 104 * zram is claimed so open request will be failed argument 106 bool claim; /* Protected by bdev->bd_mutex */ 108 struct file *backing_dev; 109 struct block_device *bdev; 110 unsigned int old_block_size; 111 unsigned long *bitmap; [all …]
|
D | zram_drv.c | 56 static void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock() 61 static void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock() 66 static inline bool init_done(struct zram *zram) in init_done() 71 static inline bool zram_allocated(struct zram *zram, u32 index) in zram_allocated() 83 static unsigned long zram_get_handle(struct zram *zram, u32 index) in zram_get_handle() 88 static void zram_set_handle(struct zram *zram, u32 index, unsigned long handle) in zram_set_handle() 94 static bool zram_test_flag(struct zram *zram, u32 index, in zram_test_flag() 100 static void zram_set_flag(struct zram *zram, u32 index, in zram_set_flag() 106 static void zram_clear_flag(struct zram *zram, u32 index, in zram_clear_flag() 112 static inline void zram_set_element(struct zram *zram, u32 index, in zram_set_element() [all …]
|