Lines Matching refs:SGI_SSWAP16
103 #define SGI_SSWAP16(x) (sgi_other_endian ? fdisk_swap16(x) : (uint16_t)(x)) macro
203 return SGI_SSWAP16(sgilabel->devparam.nsect); in sgi_get_nsect()
209 return SGI_SSWAP16(sgilabel->devparam.ntrks); in sgi_get_ntrks()
278 return SGI_SSWAP16(sgilabel->boot_part); in sgi_get_bootpartition()
284 return SGI_SSWAP16(sgilabel->swap_part); in sgi_get_swappartition()
300 SGI_SSWAP16(sgiparam.pcylcount), in sgi_list_table()
301 SGI_SSWAP16(sgiparam.sparecyl), in sgi_list_table()
302 SGI_SSWAP16(sgiparam.ilfact), in sgi_list_table()
357 sgilabel->boot_part = SGI_SSWAP16(((short)i)); in sgi_set_bootpartition()
369 sgilabel->swap_part = SGI_SSWAP16(((short)i)); in sgi_set_swappartition()
818 sgilabel->swap_part = SGI_SSWAP16(1); in create_sgilabel()
827 sgilabel->devparam.pcylcount = SGI_SSWAP16(geometry.cylinders); in create_sgilabel()
830 sgilabel->devparam.ntrks = SGI_SSWAP16(geometry.heads); in create_sgilabel()
835 sgilabel->devparam.nsect = SGI_SSWAP16(geometry.sectors); in create_sgilabel()
836 sgilabel->devparam.bytes = SGI_SSWAP16(512); in create_sgilabel()
837 sgilabel->devparam.ilfact = SGI_SSWAP16(1); in create_sgilabel()
880 info->b2 = SGI_SSWAP16(-1); in fill_sgiinfo()
881 info->b3 = SGI_SSWAP16(1); in fill_sgiinfo()
885 info->check1816 = SGI_SSWAP16(18*256 +16 ); in fill_sgiinfo()