Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/block/zram/
Dzram_drv.h108 struct zram { struct
109 struct zram_table_entry *table; argument
111 struct zram_group *zgrp; argument
120 * the number of pages zram can consume for storing compressed data argument
124 struct zram_stats stats; argument
132 * zram is claimed so open request will be failed argument
150 static inline int zram_slot_trylock(struct zram *zram, u32 index) in zram_slot_trylock()
155 static inline void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock()
160 static inline void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock()
165 static inline unsigned long zram_get_handle(struct zram *zram, u32 index) in zram_get_handle()
[all …]
Dzram_drv.c66 static inline bool init_done(struct zram *zram) in init_done()
76 static inline void zram_set_element(struct zram *zram, u32 index, in zram_set_element()
82 static unsigned long zram_get_element(struct zram *zram, u32 index) in zram_get_element()
87 static inline bool zram_allocated(struct zram *zram, u32 index) in zram_allocated()
109 static inline bool valid_io_request(struct zram *zram, in valid_io_request()
136 static inline void update_used_max(struct zram *zram, in update_used_max()
184 struct zram *zram = dev_to_zram(dev); in initstate_show() local
196 struct zram *zram = dev_to_zram(dev); in disksize_show() local
206 struct zram *zram = dev_to_zram(dev); in mem_limit_store() local
224 struct zram *zram = dev_to_zram(dev); in mem_used_max_store() local
[all …]
/kernel/linux/linux-5.10/drivers/block/zram/zram_group/
Dgroup_writeback.c26 static u16 zram_get_memcg_id(struct zram *zram, u32 index) in zram_get_memcg_id()
31 static void zram_set_memcg_id(struct zram *zram, u32 index, u16 gid) in zram_set_memcg_id()
39 static bool obj_can_wb(struct zram *zram, u32 index, u16 gid) in obj_can_wb()
107 static u32 move_obj_to_hpio(struct zram *zram, u32 index, u16 gid, in move_obj_to_hpio()
149 static void move_obj_from_hpio(struct zram *zram, int index, struct hpio *hpio) in move_obj_from_hpio()
198 static bool move_extent_from_hpio(struct zram *zram, struct hpio *hpio) in move_extent_from_hpio()
220 struct zram *zram; member
227 struct zram *zram = priv->zram; in write_endio() local
243 static u32 collect_objs(struct zram *zram, u16 gid, struct hpio *hpio, u32 ext_size) in collect_objs()
263 static u64 write_one_extent(struct zram *zram, u16 gid) in write_one_extent()
[all …]
/kernel/linux/linux-5.10/mm/
Dzswapd_control.c687 unsigned long zram; in memcg_eswap_info_show() local