Home
last modified time | relevance | path

Searched refs:sectors (Results 1 – 25 of 46) sorted by relevance

12

/external/grub/stage2/
Dbios.c34 unsigned long *sectors);
39 unsigned long *sectors);
95 * geometry->sectors); in biosdisk()
108 sector_offset = sector % geometry->sectors + 1; in biosdisk()
109 head = sector / geometry->sectors; in biosdisk()
141 unsigned char sectors; in get_cdinfo() member
158 geometry->sectors = 15; in get_cdinfo()
168 + (((unsigned int) (cdrp.sectors & 0xC0)) << 2)); in get_cdinfo()
170 geometry->sectors = cdrp.sectors & 0x3F; in get_cdinfo()
174 * geometry->sectors); in get_cdinfo()
[all …]
Ddisk_io.c180 if ((buf_geom.sectors << sector_size_bits) > BUFFERLEN) in rawread()
183 sectors_per_vtrack = buf_geom.sectors; in rawread()
358 if (sector - sector % buf_geom.sectors == buf_track) in rawwrite()
Dcommon.c285 info->drive_sectors = geom.sectors; in init_bios_info()
Dbuiltins.c1386 disks[current_drive].sectors = num_sector; in geometry_func()
1412 geom.cylinders, geom.heads, geom.sectors, in geometry_func()
2763 sector = lba % buf_geom.sectors + 1; in partnew_func()
2764 head = (lba / buf_geom.sectors) % buf_geom.heads; in partnew_func()
2765 cylinder = lba / (buf_geom.sectors * buf_geom.heads); in partnew_func()
Dshared.h647 unsigned long sectors; member
Dboot.c955 + (geom.sectors & 0xff)); in bsd_boot()
/external/dosfstools/debian/patches/
D14-bootcode.dpatch17 + generally 512 bytes, but can be up to reserved sectors*512 bytes.
19 + hard drive, and sets the number of hidden sectors to be the
20 + number of sectors in one track. These were required so that DOS
48 +primary and backup boot sectors. Also writes all other reserved sectors
49 +excluding the sectors following boot sectors (usually sector 2 and 7).
52 +13 sectors (6656 bytes). You can also specify a partition as the argument
71 + - Set number of hidden sectors before boot code to be one track
94 __u16 fat_length; /* sectors/FAT */
95 __u16 secs_track; /* sectors per track */
97 - __u32 hidden; /* hidden sectors (unused) */
[all …]
/external/grub/util/
Dmkbimage42 sectors=
294 sectors=63;
302 sectors=15;
307 sectors=18;
312 sectors=20;
318 sectors=21;
323 sectors=21;
328 sectors=36;
346 sfdisk -C $cylinders -H $heads -S $sectors -D $image<<EOT
351 offset="$(($sectors * $block_size))"
[all …]
/external/qemu/block/
Ddmg.c45 uint64_t* sectors; member
89 s->offsets = s->lengths = s->sectors = s->sectorcounts = NULL; in dmg_open()
132 s->sectors = qemu_realloc(s->sectors, new_size); in dmg_open()
140 last_out_offset = s->sectors[i-1]+s->sectorcounts[i-1]; in dmg_open()
149 s->sectors[i] = last_out_offset+read_off(s->fd); in dmg_open()
176 if(chunk_num>=s->n_chunks || s->sectors[chunk_num]>sector_num || in is_sector_in_chunk()
177 s->sectors[chunk_num]+s->sectorcounts[chunk_num]<=sector_num) in is_sector_in_chunk()
189 if(s->sectors[chunk3]>sector_num) in search_chunk()
191 else if(s->sectors[chunk3]+s->sectorcounts[chunk3]>sector_num) in search_chunk()
265 sector_offset_in_chunk = sector_num+i-s->sectors[s->current_chunk]; in dmg_read()
[all …]
Dqcow2.c783 uint64_t sectors = 0; in qcow_create() local
790 sectors = options->value.n / 512; in qcow_create()
805 return qcow_create2(filename, sectors, backing_file, backing_fmt, flags, in qcow_create()
/external/blktrace/btt/
Dseek.c26 long long sectors; member
62 static void __insert(struct rb_root *root, long long sectors) in __insert() argument
71 if (sectors < sbp->sectors) in __insert()
73 else if (sectors > sbp->sectors) in __insert()
83 sbp->sectors = sectors; in __insert()
145 *rvp = sbp->sectors; in __median()
181 mp->modes[mp->nmds++] = sbp->sectors; in __mode()
/external/dosfstools/src/
Dboot.c98 unsigned short sectors; in dump_boot() local
147 sectors = GET_UNALIGNED_W( b->sectors ); in dump_boot()
148 printf("%10u sectors total\n", sectors ? sectors : CF_LE_L(b->total_sect)); in dump_boot()
308 unsigned short logical_sector_size, sectors; in read_boot() local
320 sectors = GET_UNALIGNED_W(b.sectors); in read_boot()
321 total_sectors = sectors ? sectors : CF_LE_L(b.total_sect); in read_boot()
Ddosfsck.h76 __u8 sectors[2]; /* number of sectors */ member
114 __u8 sectors[2]; /* number of sectors */ member
Dmkdosfs.c192 __u8 sectors[2]; /* number of sectors */ member
747 if (ioctl (dev, HDIO_GETGEO, &geometry) || geometry.sectors == 0 || geometry.heads == 0) { in establish_params()
753 bs.secs_track = CT_LE_W(geometry.sectors); /* Set up the geometry information */ in establish_params()
1162 bs.sectors[0] = (char) 0; in setup_tables()
1163 bs.sectors[1] = (char) 0; in setup_tables()
1168 bs.sectors[0] = (char) (num_sectors & 0x00ff); in setup_tables()
1169 bs.sectors[1] = (char) ((num_sectors & 0xff00) >> 8); in setup_tables()
/external/grub/lib/
Ddevice.c53 unsigned char sectors; member
166 geom->sectors = hdg.sectors; in get_drive_geometry()
190 geom->sectors = tmp; in get_drive_geometry()
192 geom->sectors = 63; in get_drive_geometry()
204 / geom->sectors); in get_drive_geometry()
219 geom->sectors = hdg.d_nsectors; in get_drive_geometry()
241 geom->sectors = DEFAULT_HD_SECTORS; in get_drive_geometry()
247 geom->sectors = DEFAULT_FD_SECTORS; in get_drive_geometry()
254 geom->total_sectors = geom->cylinders * geom->heads * geom->sectors; in get_drive_geometry()
/external/dosfstools/doc/
DREADME.mkdosfs22 to an invalid (for MS-DOS, not Linux's dos fs) number of sectors used in the
37 number of reserved sectors (usually 32), and -b to select the location
45 more sectors, so the total number of clusters drop below the border
DANNOUNCE.mkdosfs4 borderline cases would still allocate too many sectors for the FAT.
10 Fixed a bug which would cause too many sectors to be reserved for the
DTODO.dosfstools-2.x6 template for generating boot sectors. This way, you can, e.g., make
DREADME.dosfstools-2.x24 sectors per cluster (also with the floppy standard configurations),
/external/grub/docs/
Dinternals.texi132 sectors to be read in the next block list is zero.
202 The current partition starting address, in sectors.
205 The current partition length, in sectors.
221 The current position in the file, in sectors.
242 Only read sectors from within a partition. Sector 0 is the first sector
309 and in the sectors right after a MBR, because Stage 1.5 is enough small
310 and the sectors right after a MBR is normally an unused region. The size
311 of this region is the number of sectors per head minus 1.
/external/grub/stage1/
Dstage1.S71 sectors: label
250 movw $ABS(sectors), %si
/external/e2fsprogs/misc/
Dpartinfo.c74 loc.heads, (int)loc.sectors, loc.cylinders, in main()
/external/qemu/
Dblock.c769 int ret, i, heads, sectors, cylinders; in guess_disk_lchs() local
789 sectors = p->end_sector & 63; in guess_disk_lchs()
790 if (sectors == 0) in guess_disk_lchs()
792 cylinders = nb_sectors / (heads * sectors); in guess_disk_lchs()
796 *psectors = sectors; in guess_disk_lchs()
800 cylinders, heads, sectors); in guess_disk_lchs()
/external/dosfstools/
DChangeLog179 <lnussel@suse.de> to fix handling of zero heads and sectors:
182 zero heads and sectors. Therefore let's a) assume dummy values in
/external/blktrace/
DREADME99 %n - Number of sectors

12