Searched refs:swap_header (Results 1 – 4 of 4) sorted by relevance
2834 union swap_header *swap_header, in read_swap_header() argument2842 if (memcmp("SWAPSPACE2", swap_header->magic.magic, 10)) { in read_swap_header()2848 if (swab32(swap_header->info.version) == 1) { in read_swap_header()2849 swab32s(&swap_header->info.version); in read_swap_header()2850 swab32s(&swap_header->info.last_page); in read_swap_header()2851 swab32s(&swap_header->info.nr_badpages); in read_swap_header()2852 if (swap_header->info.nr_badpages > MAX_SWAP_BADPAGES) in read_swap_header()2854 for (i = 0; i < swap_header->info.nr_badpages; i++) in read_swap_header()2855 swab32s(&swap_header->info.badpages[i]); in read_swap_header()2858 if (swap_header->info.version != 1) { in read_swap_header()[all …]
134 union swap_header { union204 ((offsetof(union swap_header, magic.magic) - \205 offsetof(union swap_header, info.badpages)) / sizeof(int))
41 static void swap_header(struct cbfs_header *dest, struct cbfs_header *src) in swap_header() function172 swap_header(header, header_in_rom); in file_cbfs_load_header()
1063 union swap_header *hd = (union swap_header *)(buf); in mtdswap_auto_header()