Searched defs:zram (Results 1 – 6 of 6) sorted by relevance
| /kernel/linux/linux-5.10/drivers/block/zram/ |
| D | zram_drv.h | 108 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 …]
|
| D | zram_drv.c | 66 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-6.6/drivers/block/zram/ |
| D | zram_drv.c | 60 static int zram_slot_trylock(struct zram *zram, u32 index) in zram_slot_trylock() 65 static void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock() 70 static void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock() 75 static inline bool init_done(struct zram *zram) in init_done() 85 static unsigned long zram_get_handle(struct zram *zram, u32 index) in zram_get_handle() 90 static void zram_set_handle(struct zram *zram, u32 index, unsigned long handle) in zram_set_handle() 96 static bool zram_test_flag(struct zram *zram, u32 index, in zram_test_flag() 102 static void zram_set_flag(struct zram *zram, u32 index, in zram_set_flag() 108 static void zram_clear_flag(struct zram *zram, u32 index, in zram_clear_flag() 114 static inline void zram_set_element(struct zram *zram, u32 index, in zram_set_element() [all …]
|
| D | zram_drv.h | 106 struct zram { struct 107 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 …]
|
| /kernel/linux/linux-5.10/drivers/block/zram/zram_group/ |
| D | group_writeback.c | 26 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/ |
| D | zswapd_control.c | 687 unsigned long zram; in memcg_eswap_info_show() local
|