Lines Matching defs:ms
517 struct msdos_super_block *ms = (struct msdos_super_block *) buf;
528 tmp = (unsigned char *)&ms->ms_sector_size;
534 tmp = (unsigned char *)&ms->ms_dir_entries;
536 reserved = blkid_le16(ms->ms_reserved);
537 tmp = (unsigned char *)&ms->ms_sectors;
540 sect_count = blkid_le32(ms->ms_total_sect);
542 fat_length = blkid_le16(ms->ms_fat_length);
546 fat_size = fat_length * ms->ms_fats;
551 if (ms->ms_cluster_size == 0)
553 cluster_count /= ms->ms_cluster_size;
558 if (ms->ms_fat_length) {
571 vol_label = ms->ms_label;
572 vol_serno = ms->ms_serno;
643 struct msdos_super_block *ms;
645 ms = (struct msdos_super_block *)buf;
648 if (ms->ms_heads == 0)
652 if (ms->ms_cluster_size == 0 ||
653 (ms->ms_cluster_size & (ms->ms_cluster_size-1)))
657 if (ms->ms_media < 0xf8 && ms->ms_media != 0xf0)
661 if (!ms->ms_fats)
673 if ((memcmp(ms->ms_magic, "JFS ", 8) == 0) ||
674 (memcmp(ms->ms_magic, "HPFS ", 8) == 0))