Home
last modified time | relevance | path

Searched defs:zram (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/block/zram/
Dzram_drv.c61 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()
[all …]
Dzram_drv.h105 struct zram { struct
106 struct zram_table_entry *table; argument
114 * the number of pages zram can consume for storing compressed data argument
118 struct zram_stats stats; argument
127 * zram is claimed so open request will be failed argument
129 bool claim; /* Protected by disk->open_mutex */
131 struct file *backing_dev;
132 spinlock_t wb_limit_lock;
133 bool wb_limit_enable;
134 u64 bd_wb_limit;
[all …]