Lines Matching defs:si

119 	struct swap_info_struct *si[SWAP_NR_ORDERS];  member
158 static long swap_usage_in_pages(struct swap_info_struct *si) in swap_usage_in_pages()
173 static bool swap_only_has_cache(struct swap_info_struct *si, in swap_only_has_cache()
188 static bool swap_is_last_map(struct swap_info_struct *si, in swap_is_last_map()
212 static int __try_to_reclaim_swap(struct swap_info_struct *si, in __try_to_reclaim_swap()
295 static int discard_swap(struct swap_info_struct *si) in discard_swap()
365 static void discard_swap_cluster(struct swap_info_struct *si, in discard_swap_cluster()
424 static inline unsigned int cluster_index(struct swap_info_struct *si, in cluster_index()
430 static inline struct swap_cluster_info *offset_to_cluster(struct swap_info_struct *si, in offset_to_cluster()
436 static inline unsigned int cluster_offset(struct swap_info_struct *si, in cluster_offset()
442 static inline struct swap_cluster_info *lock_cluster(struct swap_info_struct *si, in lock_cluster()
458 static void move_cluster(struct swap_info_struct *si, in move_cluster()
482 static void swap_cluster_schedule_discard(struct swap_info_struct *si, in swap_cluster_schedule_discard()
490 static void __free_cluster(struct swap_info_struct *si, struct swap_cluster_info *ci) in __free_cluster()
507 struct swap_info_struct *si, struct list_head *list) in isolate_lock_cluster()
542 static bool swap_do_scheduled_discard(struct swap_info_struct *si) in swap_do_scheduled_discard()
579 struct swap_info_struct *si; in swap_discard_work() local
588 struct swap_info_struct *si; in swap_users_ref_free() local
598 static void free_cluster(struct swap_info_struct *si, struct swap_cluster_info *ci) in free_cluster()
622 static void partial_free_cluster(struct swap_info_struct *si, in partial_free_cluster()
638 static void relocate_cluster(struct swap_info_struct *si, in relocate_cluster()
666 static void inc_cluster_info_page(struct swap_info_struct *si, in inc_cluster_info_page()
679 static bool cluster_reclaim_range(struct swap_info_struct *si, in cluster_reclaim_range()
717 static bool cluster_scan_range(struct swap_info_struct *si, in cluster_scan_range()
745 static bool cluster_alloc_range(struct swap_info_struct *si, struct swap_cluster_info *ci, in cluster_alloc_range()
771 static unsigned int alloc_swap_scan_cluster(struct swap_info_struct *si, in alloc_swap_scan_cluster()
828 static void swap_reclaim_full_clusters(struct swap_info_struct *si, bool force) in swap_reclaim_full_clusters()
870 struct swap_info_struct *si; in swap_reclaim_work() local
881 static unsigned long cluster_alloc_swap_entry(struct swap_info_struct *si, int order, in cluster_alloc_swap_entry()
997 static void del_from_avail_list(struct swap_info_struct *si, bool swapoff) in del_from_avail_list()
1036 static void add_to_avail_list(struct swap_info_struct *si, bool swapon) in add_to_avail_list()
1083 static bool swap_usage_add(struct swap_info_struct *si, unsigned int nr_entries) in swap_usage_add()
1099 static void swap_usage_sub(struct swap_info_struct *si, unsigned int nr_entries) in swap_usage_sub()
1111 static void swap_range_alloc(struct swap_info_struct *si, in swap_range_alloc()
1120 static void swap_range_free(struct swap_info_struct *si, unsigned long offset, in swap_range_free()
1159 static bool get_swap_device_info(struct swap_info_struct *si) in get_swap_device_info()
1183 struct swap_info_struct *si; in swap_alloc_fast() local
1216 struct swap_info_struct *si, *next; in swap_alloc_slow() local
1326 struct swap_info_struct *si; in _swap_info_get() local
1358 static unsigned char __swap_entry_free_locked(struct swap_info_struct *si, in __swap_entry_free_locked()
1439 struct swap_info_struct *si; in get_swap_device() local
1464 static unsigned char __swap_entry_free(struct swap_info_struct *si, in __swap_entry_free()
1480 static bool __swap_entries_free(struct swap_info_struct *si, in __swap_entries_free()
1526 static void swap_entry_range_free(struct swap_info_struct *si, in swap_entry_range_free()
1554 static void cluster_swap_free_nr(struct swap_info_struct *si, in cluster_swap_free_nr()
1598 struct swap_info_struct *si; in put_swap_folio() local
1619 struct swap_info_struct *si = swp_swap_info(entry); in __swap_count() local
1630 bool swap_entry_swapped(struct swap_info_struct *si, swp_entry_t entry) in swap_entry_swapped()
1649 struct swap_info_struct *si; in swp_swapcount() local
1688 static bool swap_page_trans_huge_swapped(struct swap_info_struct *si, in swap_page_trans_huge_swapped()
1719 struct swap_info_struct *si = _swap_info_get(entry); in folio_swapped() local
1795 struct swap_info_struct *si; in free_swap_and_cache_nr() local
1856 struct swap_info_struct *si = swap_type_to_swap_info(type); in get_swap_page_of_type() local
1937 struct swap_info_struct *si = swap_type_to_swap_info(type); in swapdev_block() local
2089 struct swap_info_struct *si; in unuse_pte_range() local
2262 static unsigned int find_next_to_unuse(struct swap_info_struct *si, in find_next_to_unuse()
2294 struct swap_info_struct *si = swap_info[type]; in try_to_unuse() local
2536 static int swap_node(struct swap_info_struct *si) in swap_node()
2548 static void setup_swap_info(struct swap_info_struct *si, int prio, in setup_swap_info()
2579 static void _enable_swap_info(struct swap_info_struct *si) in _enable_swap_info()
2601 static void enable_swap_info(struct swap_info_struct *si, int prio, in enable_swap_info()
2622 static void reinsert_swap_info(struct swap_info_struct *si) in reinsert_swap_info()
2636 static void wait_for_allocation(struct swap_info_struct *si) in wait_for_allocation()
2654 static void flush_percpu_swap_cluster(struct swap_info_struct *si) in flush_percpu_swap_cluster()
2723 struct swap_info_struct *si = p; in SYSCALL_DEFINE1() local
2850 struct swap_info_struct *si; in swap_start() local
2871 struct swap_info_struct *si = v; in swap_next() local
2896 struct swap_info_struct *si = v; in swap_show() local
3030 static int claim_swapfile(struct swap_info_struct *si, struct inode *inode) in claim_swapfile()
3078 static unsigned long read_swap_header(struct swap_info_struct *si, in read_swap_header()
3141 static int setup_swap_map_and_extents(struct swap_info_struct *si, in setup_swap_map_and_extents()
3187 static struct swap_cluster_info *setup_clusters(struct swap_info_struct *si, in setup_clusters()
3268 struct swap_info_struct *si; in SYSCALL_DEFINE2() local
3522 struct swap_info_struct *si = swap_info[type]; in si_swapinfo() local
3544 struct swap_info_struct *si; in __swap_duplicate() local
3657 void swapcache_clear(struct swap_info_struct *si, swp_entry_t entry, int nr) in swapcache_clear()
3701 struct swap_info_struct *si; in add_swap_count_continuation() local
3804 static bool swap_count_continued(struct swap_info_struct *si, in swap_count_continued()
3888 static void free_swap_count_continuations(struct swap_info_struct *si) in free_swap_count_continuations()
3914 struct swap_info_struct *si, *next; in __folio_throttle_swaprate() local