Home
last modified time | relevance | path

Searched refs:tot_sectors (Results 1 – 9 of 9) sorted by relevance

/external/mtools/
Dmformat.c60 unsigned long *tot_sectors, int keepBoot) in init_geometry_boot() argument
70 assert(*tot_sectors != 0); in init_geometry_boot()
73 if (*tot_sectors <= UINT16_MAX){ in init_geometry_boot()
74 set_word(boot->boot.psect, (uint16_t) *tot_sectors); in init_geometry_boot()
76 } else if(*tot_sectors <= UINT32_MAX){ in init_geometry_boot()
78 set_dword(boot->boot.bigsect, (uint32_t) *tot_sectors); in init_geometry_boot()
80 fprintf(stderr, "Too many sectors %ld\n", *tot_sectors); in init_geometry_boot()
163 unsigned long tot_sectors, int fat32) in comp_fat_bits() argument
173 if(tot_sectors > MAX_DISK_SIZE(12, FAT12-1)) in comp_fat_bits()
175 if(fat32 || tot_sectors > MAX_DISK_SIZE(16, FAT16-1)) in comp_fat_bits()
[all …]
Dmpartition.c338 unsigned int tot_sectors=0; in mpartition() local
445 tot_sectors = strtoui(optarg, &endptr, 0); in mpartition()
516 tot_sectors = 0; in mpartition()
526 tot_sectors = 1 + in mpartition()
532 printf("%d sectors in total\n", tot_sectors); in mpartition()
536 if (tot_sectors == 0) { in mpartition()
537 ioctl(get_fd(Stream), BLKGETSIZE, &tot_sectors); in mpartition()
658 if(tot_sectors) in mpartition()
659 setsize0(tot_sectors,&dummy2,&used_dev.heads, in mpartition()
669 used_dev.sectors, used_dev.heads, tot_sectors); in mpartition()
[all …]
Dminfo.c188 unsigned long tot_sectors; in minfo() local
194 tot_sectors = DWORD_S(bigsect); in minfo()
195 SET_INT(tot_sectors, WORD_S(psect)); in minfo()
209 tot_sectors = dev.tracks * sect_per_track; in minfo()
214 if(tot_sectors == in minfo()
219 printf("-T %ld ", tot_sectors); in minfo()
Dinit.c256 size_t tot_sectors; in fs_init() local
297 tot_sectors = cylinder_size * params->tracks; in fs_init()
331 tot_sectors = WORD_S(psect); in fs_init()
332 if(!tot_sectors) in fs_init()
333 tot_sectors = DWORD_S(bigsect); in fs_init()
353 if (tot_sectors >= (maxSize >> This->sectorShift)) { in fs_init()
404 if(fat_read(This, &boot, tot_sectors, dev.use_2m&0x7f)){ in fs_init()
Dfat.c626 unsigned int tot_sectors) in check_media_type() argument
630 This->num_clus = (tot_sectors - This->clus_start) / This->cluster_size; in check_media_type()
672 unsigned int tot_sectors) in fat_32_read() argument
701 return(check_media_type(This, boot, tot_sectors) || in fat_32_read()
707 size_t tot_sectors, int nodups) in old_fat_read() argument
718 if(check_media_type(This,boot, tot_sectors)) in old_fat_read()
737 size_t tot_sectors, int nodups) in fat_read() argument
747 return old_fat_read(This, boot, tot_sectors, nodups); in fat_read()
749 return fat_32_read(This, boot, tot_sectors); in fat_read()
Dfloppyd_io.c408 size_t tot_sectors; in floppyd_geom() local
418 tot_sectors = DWORD(bigsect); in floppyd_geom()
419 SET_INT(tot_sectors, WORD(psect)); in floppyd_geom()
421 tot_sectors += sect_per_track - 1; /* round size up */ in floppyd_geom()
422 dev->tracks = tot_sectors / sect_per_track; in floppyd_geom()
Dplain_io.c179 size_t tot_sectors; in file_geom() local
192 tot_sectors = DWORD(bigsect); in file_geom()
193 SET_INT(tot_sectors, WORD(psect)); in file_geom()
211 tot_sectors += sect_per_track - 1; /* round size up */ in file_geom()
212 dev->tracks = tot_sectors / sect_per_track; in file_geom()
DfsP.h95 size_t tot_sectors, int nodups);
Dmtools.texi1743 @code{mformat} [@code{-t} @var{cylinders}|@code{-T} @var{tot_sectors}] [@code{-h} @var{heads}] [@co…