Home
last modified time | relevance | path

Searched refs:swap_header (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/kernel/mm/
H A Dswapfile.c3020 union swap_header *swap_header, in read_swap_header() argument
3028 if (memcmp("SWAPSPACE2", swap_header->magic.magic, 10)) { in read_swap_header()
3034 if (swab32(swap_header->info.version) == 1) { in read_swap_header()
3035 swab32s(&swap_header->info.version); in read_swap_header()
3036 swab32s(&swap_header->info.last_page); in read_swap_header()
3037 swab32s(&swap_header->info.nr_badpages); in read_swap_header()
3038 if (swap_header->info.nr_badpages > MAX_SWAP_BADPAGES) in read_swap_header()
3040 for (i = 0; i < swap_header->info.nr_badpages; i++) in read_swap_header()
3041 swab32s(&swap_header->info.badpages[i]); in read_swap_header()
3044 if (swap_header->info.version != 1) { in read_swap_header()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dswap.h110 union swap_header { union
161 ((offsetof(union swap_header, magic.magic) - \
162 offsetof(union swap_header, info.badpages)) / sizeof(int))
/OK3568_Linux_fs/u-boot/fs/cbfs/
H A Dcbfs.c42 static void swap_header(struct cbfs_header *dest, struct cbfs_header *src) in swap_header() function
174 swap_header(header, header_in_rom); in file_cbfs_load_header()
/OK3568_Linux_fs/kernel/drivers/mtd/
H A Dmtdswap.c1065 union swap_header *hd = (union swap_header *)(buf); in mtdswap_auto_header()