Lines Matching defs:sector
20 -b size sector size (512, 1024, 2048 or 4096)
46 #define sector(s) ((s) & 0x3f)
52 unsigned char boot_ind, head, sector, cyl, sys_ind, end_head,
106 p->sector = (start % g_sectors) + 1;
111 p->sector |= (start >> 2) & 0xc0;
156 help_exit("bad sector size");
264 error_exit("Couldn't read sector zero\n");
339 /* Read the Master Boot sector of the device for the
363 perror_exit("Couldn't read sector zero\n");
376 sector_fac = g_sect_size/SECTOR_SIZE; //512 is hardware sector size.
415 physbc = cylinder(p->sector,p->cyl);
417 physbs = sector(p->sector);
421 physes = sector(p->end_sector);
811 //get the start sector/cylinder of a new partition
847 sprintf(mesg, "First %s (%lld - %lld, default %lld): ", disp_unit_cyl? "cylinder" : "sector",
856 // point to the cylinder start sector
866 //get the end sector/cylinder of a new partition
895 disp_unit_cyl? "cylinder" : "sector",
902 if (disp_unit_cyl) { // point to the cylinder start sector
1068 real_s = sector(s) - 1;
1071 if (!total) xprintf("Partition %u contains sector 0\n", n);
1075 xprintf("Partition %u: sector %u greater than maximum %lu\n", n, s, g_sectors);
1206 sector(p->sector), cylinder(p->sector, p->cyl),
1208 sector(p->end_sector), cylinder(p->end_sector, p->end_cyl),
1376 case 's': //change sector/track