Lines Matching refs:stram_swap_info

199 static struct swap_info_struct *stram_swap_info;  variable
531 stram_swap_info = p; in swap_init()
756 swap_device_lock(stram_swap_info); in unswap_by_read()
758 swap_device_unlock(stram_swap_info); in unswap_by_read()
785 swap_device_lock(stram_swap_info); in unswap_by_read()
787 if (stram_swap_info->lowest_bit == i) in unswap_by_read()
788 stram_swap_info->lowest_bit++; in unswap_by_read()
789 if (stram_swap_info->highest_bit == i) in unswap_by_read()
790 stram_swap_info->highest_bit--; in unswap_by_read()
792 swap_device_unlock(stram_swap_info); in unswap_by_read()
804 unsigned short *map = stram_swap_info->swap_map; in get_stram_region()
805 unsigned long max = stram_swap_info->max; in get_stram_region()
815 stram_swap_info->flags = SWP_USED; in get_stram_region()
831 stram_swap_info->flags = SWP_WRITEOK; in get_stram_region()
843 unsigned short *map = stram_swap_info->swap_map; in free_stram_region()
847 if (offset < 1 || offset + n_pages > stram_swap_info->max) { in free_stram_region()
853 swap_device_lock(stram_swap_info); in free_stram_region()
863 if (offset < stram_swap_info->lowest_bit) in free_stram_region()
864 stram_swap_info->lowest_bit = offset; in free_stram_region()
865 if (offset+n_pages-1 > stram_swap_info->highest_bit) in free_stram_region()
866 stram_swap_info->highest_bit = offset+n_pages-1; in free_stram_region()
867 if (stram_swap_info->prio > swap_info[swap_list.next].prio) in free_stram_region()
870 swap_device_unlock(stram_swap_info); in free_stram_region()
897 unsigned short *map = stram_swap_info->swap_map; in find_free_region()
898 unsigned long max = stram_swap_info->max; in find_free_region()
1199 unsigned short *map = stram_swap_info->swap_map; in get_stram_list()
1200 unsigned long max = stram_swap_info->max; in get_stram_list()