| H A D | zram_drv.c | 60 #define slot_dep_map(zram, index) (&(zram)->table[(index)].dep_map) argument 62 static void slot_lock_init(struct zram *zram, u32 index) in slot_lock_init() argument 82 static __must_check bool slot_trylock(struct zram *zra argument 95 slot_lock(struct zram * zram,u32 index) slot_lock() argument 104 slot_unlock(struct zram * zram,u32 index) slot_unlock() argument 112 init_done(struct zram * zram) init_done() argument 122 get_slot_handle(struct zram * zram,u32 index) get_slot_handle() argument 127 set_slot_handle(struct zram * zram,u32 index,unsigned long handle) set_slot_handle() argument 132 test_slot_flag(struct zram * zram,u32 index,enum zram_pageflags flag) test_slot_flag() argument 138 set_slot_flag(struct zram * zram,u32 index,enum zram_pageflags flag) set_slot_flag() argument 144 clear_slot_flag(struct zram * zram,u32 index,enum zram_pageflags flag) clear_slot_flag() argument 150 get_slot_size(struct zram * zram,u32 index) get_slot_size() argument 155 set_slot_size(struct zram * zram,u32 index,size_t size) set_slot_size() argument 162 slot_allocated(struct zram * zram,u32 index) slot_allocated() argument 169 set_slot_comp_priority(struct zram * zram,u32 index,u32 prio) set_slot_comp_priority() argument 182 get_slot_comp_priority(struct zram * zram,u32 index) get_slot_comp_priority() argument 189 mark_slot_accessed(struct zram * zram,u32 index) mark_slot_accessed() argument 198 update_used_max(struct zram * zram,const unsigned long pages) update_used_max() argument 209 zram_can_store_page(struct zram * zram) zram_can_store_page() argument 263 release_pp_slot(struct zram * zram,struct zram_pp_slot * pps) release_pp_slot() argument 274 release_pp_ctl(struct zram * zram,struct zram_pp_ctl * ctl) release_pp_ctl() argument 295 place_pp_slot(struct zram * zram,struct zram_pp_ctl * ctl,u32 index) place_pp_slot() argument 367 struct zram *zram = dev_to_zram(dev); initstate_show() local 378 struct zram *zram = dev_to_zram(dev); disksize_show() local 389 struct zram *zram = dev_to_zram(dev); mem_limit_store() local 407 struct zram *zram = dev_to_zram(dev); mem_used_max_store() local 426 mark_idle(struct zram * zram,ktime_t cutoff) mark_idle() argument 463 struct zram *zram = dev_to_zram(dev); idle_store() local 523 struct zram *zram; global() member 541 struct zram *zram = dev_to_zram(dev); bd_stat_show() local 558 struct zram *zram = dev_to_zram(dev); compressed_writeback_store() local 579 struct zram *zram = dev_to_zram(dev); compressed_writeback_show() local 591 struct zram *zram = dev_to_zram(dev); writeback_limit_enable_store() local 608 struct zram *zram = dev_to_zram(dev); writeback_limit_enable_show() local 620 struct zram *zram = dev_to_zram(dev); writeback_limit_store() local 646 struct zram *zram = dev_to_zram(dev); writeback_limit_show() local 658 struct zram *zram = dev_to_zram(dev); writeback_batch_size_store() local 678 struct zram *zram = dev_to_zram(dev); writeback_batch_size_show() local 686 reset_bdev(struct zram * zram) reset_bdev() argument 704 struct zram *zram = dev_to_zram(dev); backing_dev_show() local 736 struct zram *zram = dev_to_zram(dev); backing_dev_store() local 806 zram_reserve_bdev_block(struct zram * zram) zram_reserve_bdev_block() argument 819 zram_release_bdev_block(struct zram * zram,unsigned long blk_idx) zram_release_bdev_block() argument 855 init_wb_ctl(struct zram * zram) init_wb_ctl() argument 904 zram_account_writeback_rollback(struct zram * zram) zram_account_writeback_rollback() argument 912 zram_account_writeback_submit(struct zram * zram) zram_account_writeback_submit() argument 920 zram_writeback_complete(struct zram * zram,struct zram_wb_req * req) zram_writeback_complete() argument 978 zram_submit_wb_request(struct zram * zram,struct zram_wb_ctl * wb_ctl,struct zram_wb_req * req) zram_submit_wb_request() argument 992 zram_complete_done_reqs(struct zram * zram,struct zram_wb_ctl * wb_ctl) zram_complete_done_reqs() argument 1036 zram_writeback_slots(struct zram * zram,struct zram_pp_ctl * ctl,struct zram_wb_ctl * wb_ctl) zram_writeback_slots() argument 1203 scan_slots_for_writeback(struct zram * zram,u32 mode,unsigned long lo,unsigned long hi,struct zram_pp_ctl * ctl) scan_slots_for_writeback() argument 1243 struct zram *zram = dev_to_zram(dev); writeback_store() local 1342 decompress_bdev_page(struct zram * zram,struct page * page,u32 index) decompress_bdev_page() argument 1383 struct zram *zram = req->zram; zram_deferred_decompress() local 1400 struct zram *zram = req->zram; zram_async_read_endio() local 1434 read_from_bdev_async(struct zram * zram,struct page * page,u32 index,unsigned long blk_idx,struct bio * parent) read_from_bdev_async() argument 1485 read_from_bdev_sync(struct zram * zram,struct page * page,u32 index,unsigned long blk_idx) read_from_bdev_sync() argument 1505 read_from_bdev(struct zram * zram,struct page * page,u32 index,unsigned long blk_idx,struct bio * parent) read_from_bdev() argument 1517 reset_bdev(struct zram * zram) reset_bdev() argument 1518 read_from_bdev(struct zram * zram,struct page * page,u32 index,unsigned long blk_idx,struct bio * parent) read_from_bdev() argument 1524 zram_release_bdev_block(struct zram * zram,unsigned long blk_idx) zram_release_bdev_block() argument 1548 struct zram *zram = file->private_data; read_block_state() local 1603 zram_debugfs_register(struct zram * zram) zram_debugfs_register() argument 1614 zram_debugfs_unregister(struct zram * zram) zram_debugfs_unregister() argument 1621 zram_debugfs_register(struct zram * zram) zram_debugfs_register() argument 1622 zram_debugfs_unregister(struct zram * zram) zram_debugfs_unregister() argument 1626 lookup_algo_priority(struct zram * zram,const char * algo,u32 min_prio) lookup_algo_priority() argument 1643 validate_algo_priority(struct zram * zram,const char * algo,u32 prio) validate_algo_priority() argument 1656 comp_algorithm_set(struct zram * zram,u32 prio,const char * alg) comp_algorithm_set() argument 1661 __comp_algorithm_store(struct zram * zram,u32 prio,const char * buf) __comp_algorithm_store() argument 1684 comp_params_reset(struct zram * zram,u32 prio) comp_params_reset() argument 1695 comp_params_store(struct zram * zram,u32 prio,s32 level,const char * dict_path,struct deflate_params * deflate_params) comp_params_store() argument 1727 struct zram *zram = dev_to_zram(dev); algorithm_params_store() local 1802 struct zram *zram = dev_to_zram(dev); comp_algorithm_show() local 1815 struct zram *zram = dev_to_zram(dev); comp_algorithm_store() local 1827 struct zram *zram = dev_to_zram(dev); recomp_algorithm_show() local 1847 struct zram *zram = dev_to_zram(dev); recomp_algorithm_store() local 1887 struct zram *zram = dev_to_zram(dev); compact_store() local 1901 struct zram *zram = dev_to_zram(dev); io_stat_show() local 1917 struct zram *zram = dev_to_zram(dev); mm_stat_show() local 1953 struct zram *zram = dev_to_zram(dev); debug_stat_show() local 1965 zram_meta_free(struct zram * zram,u64 disksize) zram_meta_free() argument 1982 zram_meta_alloc(struct zram * zram,u64 disksize) zram_meta_alloc() argument 2007 slot_free(struct zram * zram,u32 index) slot_free() argument 2060 read_same_filled_page(struct zram * zram,struct page * page,u32 index) read_same_filled_page() argument 2071 read_incompressible_page(struct zram * zram,struct page * page,u32 index) read_incompressible_page() argument 2087 read_compressed_page(struct zram * zram,struct page * page,u32 index) read_compressed_page() argument 2112 read_from_zspool_raw(struct zram * zram,struct page * page,u32 index) read_from_zspool_raw() argument 2142 read_from_zspool(struct zram * zram,struct page * page,u32 index) read_from_zspool() argument 2154 zram_read_page(struct zram * zram,struct page * page,u32 index,struct bio * parent) zram_read_page() argument 2186 zram_bvec_read_partial(struct zram * zram,struct bio_vec * bvec,u32 index,int offset) zram_bvec_read_partial() argument 2201 zram_bvec_read(struct zram * zram,struct bio_vec * bvec,u32 index,int offset,struct bio * bio) zram_bvec_read() argument 2209 write_same_filled_page(struct zram * zram,unsigned long fill,u32 index) write_same_filled_page() argument 2224 write_incompressible_page(struct zram * zram,struct page * page,u32 index) write_incompressible_page() argument 2265 zram_write_page(struct zram * zram,struct page * page,u32 index) zram_write_page() argument 2331 zram_bvec_write_partial(struct zram * zram,struct bio_vec * bvec,u32 index,int offset,struct bio * bio) zram_bvec_write_partial() argument 2349 zram_bvec_write(struct zram * zram,struct bio_vec * bvec,u32 index,int offset,struct bio * bio) zram_bvec_write() argument 2361 highest_priority_algorithm(struct zram * zram,u32 prio) highest_priority_algorithm() argument 2373 scan_slots_for_recompress(struct zram * zram,u32 mode,u32 prio,struct zram_pp_ctl * ctl) scan_slots_for_recompress() argument 2418 recompress_slot(struct zram * zram,u32 index,struct page * page,u64 * num_recomp_pages,u32 threshold,u32 prio) recompress_slot() argument 2528 struct zram *zram = dev_to_zram(dev); recompress_store() local 2668 zram_bio_discard(struct zram * zram,struct bio * bio) zram_bio_discard() argument 2706 zram_bio_read(struct zram * zram,struct bio * bio) zram_bio_read() argument 2737 zram_bio_write(struct zram * zram,struct bio * bio) zram_bio_write() argument 2772 struct zram *zram = bio->bi_bdev->bd_disk->private_data; zram_submit_bio() local 2794 struct zram *zram; zram_slot_free_notify() local 2808 zram_comp_params_reset(struct zram * zram) zram_comp_params_reset() argument 2817 zram_destroy_comps(struct zram * zram) zram_destroy_comps() argument 2836 zram_reset_device(struct zram * zram) zram_reset_device() argument 2860 struct zram *zram = dev_to_zram(dev); disksize_store() local 2909 struct zram *zram; reset_store() local 2946 struct zram *zram = disk->private_data; zram_open() local 3050 struct zram *zram; zram_add() local 3106 zram_remove(struct zram * zram) zram_remove() argument 3185 struct zram *zram; hot_remove_store() local [all...] |