Searched defs:zram (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/block/zram/ |
| H A D | zram_drv.h | 108 struct zram { struct 109 struct zram_table_entry *table; argument 117 * the number of pages zram can consume for storing compressed data argument 121 struct zram_stats stats; argument 130 * zram is claimed so open request will be failed argument 132 bool claim; /* Protected by disk->open_mutex */ 134 struct file *backing_dev; 135 bool wb_limit_enable; 136 bool compressed_wb; 137 u32 wb_batch_size; [all …]
|
| H A D | zram_drv.c | 59 #define slot_dep_map(zram, index) (&(zram)->table[(index)].dep_map) argument 61 static void slot_lock_init(struct zram *zram, u32 index) in slot_lock_init() 81 static __must_check bool slot_trylock(struct zram *zram, u32 index) in slot_trylock() 94 static void slot_lock(struct zram *zram, u32 index) in slot_lock() 103 static void slot_unlock(struct zram *zram, u32 index) in slot_unlock() 111 static inline bool init_done(struct zram *zram) in init_done() 121 static unsigned long get_slot_handle(struct zram *zram, u32 index) in get_slot_handle() 126 static void set_slot_handle(struct zram *zram, u32 index, unsigned long handle) in set_slot_handle() 131 static bool test_slot_flag(struct zram *zram, u32 index, in test_slot_flag() 137 static void set_slot_flag(struct zram *zram, u32 index, in set_slot_flag() [all …]
|