Searched refs:SECTOR_SIZE (Results 1 - 24 of 24) sorted by relevance

/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dstage1_5.c47 grub_read ((char *) 0x8000, SECTOR_SIZE * 2);
57 ret = grub_read ((char *) 0x8000 + SECTOR_SIZE * 2, -1);
H A Dgpt.h64 ((((entry) * (size) + 1) & ~(SECTOR_SIZE - 1)) >> SECTOR_BITS)
66 ((((entry) * (size) + 1) & (SECTOR_SIZE - 1)) - 1)
H A Dbuiltins.c177 && offset == 0 && last_length == SECTOR_SIZE)
185 if (last_length == SECTOR_SIZE)
464 if (grub_read ((char *) BOOTSEC_LOCATION, SECTOR_SIZE) != SECTOR_SIZE)
1433 size = (len + SECTOR_SIZE - 1) / SECTOR_SIZE;
1444 char mbr[SECTOR_SIZE];
1445 char ezbios_check[2*SECTOR_SIZE];
1460 if (! rawread (current_drive, PC_MBR_SECTOR, 0, SECTOR_SIZE, mbr))
1482 if (! rawread (current_drive, 1, 0, 2 * SECTOR_SIZE, ezbios_chec
[all...]
H A Ddisk_io.c324 byte_offset &= SECTOR_SIZE - 1;
363 memmove ((char *) SCRATCHADDR, buf, SECTOR_SIZE);
474 if (! rawread (saved_drive, 0, 0, SECTOR_SIZE, mbr))
628 0, SECTOR_SIZE, buf))
685 if (! rawread (drive, *start + SOL_LABEL_LOC, 0, SECTOR_SIZE, buf))
733 if (! rawread (drive, *offset, 0, SECTOR_SIZE, buf))
749 if (! rawread (drive, 1, 0, SECTOR_SIZE, buf))
769 if (! rawread (drive, *offset, 0, SECTOR_SIZE, buf))
918 char buf[SECTOR_SIZE];
1297 0, SECTOR_SIZE, (cha
[all...]
H A Dfsys_fat.c157 || FAT_CVT_U16(bpb.bytes_per_sect) != SECTOR_SIZE
161 || (FAT_SUPER->fat_size * FAT_SUPER->num_clust / (2 * SECTOR_SIZE)
240 FAT_SUPER->cached_fat = (fat_entry & ~(2*SECTOR_SIZE - 1));
243 + FAT_SUPER->cached_fat / (2*SECTOR_SIZE);
H A Dstart_eltorito.S118 ljmp $0, $(STAGE_ADDR+SECTOR_SIZE) /* jump to main() in asm.S */
309 . = _start + SECTOR_SIZE - BOOTSEC_LISTSIZE
324 .word (STAGE_ADDR + SECTOR_SIZE) >> 4
H A Dbios.c181 geometry->sector_size = SECTOR_SIZE;
348 geometry->sector_size = SECTOR_SIZE;
375 geometry->sector_size = SECTOR_SIZE;
H A Dboot.c268 text_len = filemax - data_len - SECTOR_SIZE;
376 /* It is possible that DATA_LEN + SECTOR_SIZE is greater than
378 if (data_len + SECTOR_SIZE <= MULTIBOOT_SEARCH)
380 data_len + SECTOR_SIZE);
385 data_len + SECTOR_SIZE - MULTIBOOT_SEARCH);
444 grub_seek (data_len + SECTOR_SIZE);
H A Dfsys_reiserfs.c295 #define FSYSREISER_MIN_BLOCKSIZE SECTOR_SIZE
326 /* SECTOR_SIZE << blocksize_shift == blocksize. */
628 || (SECTOR_SIZE << INFO->blocksize_shift) != super.s_blocksize)
H A Dshared.h189 #define SECTOR_SIZE 0x200 macro
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dinstallgrub.h36 #define SECTOR_SIZE (512) macro
47 char boot_sector[SECTOR_SIZE];
64 char stage1_buf[SECTOR_SIZE];
88 #define STAGE2_BLOCKLIST (SECTOR_SIZE - 0x8)
89 #define STAGE2_INSTALLPART (SECTOR_SIZE + 0x8)
90 #define STAGE2_FORCE_LBA (SECTOR_SIZE + 0x11)
H A Dinstallgrub.c602 buf_size = src_stage2->file_size + SECTOR_SIZE;
604 dest_stage2->buf_size = P2ROUNDUP(buf_size, SECTOR_SIZE);
665 if (read(device->disk_fd, device->boot_sector, SECTOR_SIZE)
666 != SECTOR_SIZE) {
994 if (write_out(device->part_fd, stage2->file, SECTOR_SIZE,
995 stage2->pcfs_first_sectors[0] * SECTOR_SIZE)
997 write_out(device->part_fd, stage2->file + SECTOR_SIZE,
998 SECTOR_SIZE, stage2->pcfs_first_sectors[1] * SECTOR_SIZE)
1021 offset = STAGE2_BLKOFF(device->type) * SECTOR_SIZE;
[all...]
/illumos-gate/usr/src/cmd/boot/mbr/
H A Dmbr.c36 #define SECTOR_SIZE 512 macro
37 static char boot_sect[SECTOR_SIZE];
38 static char new_mboot[SECTOR_SIZE];
92 if (fd == -1 || read(fd, new_mboot, SECTOR_SIZE) != SECTOR_SIZE) {
107 if (fd == -1 || read(fd, boot_sect, SECTOR_SIZE) != SECTOR_SIZE) {
154 (write(fd, (void *)boot_sect, SECTOR_SIZE) < 0)) {
/illumos-gate/usr/src/cmd/boot/installboot/sparc/
H A Dinstallboot.h66 #define BBLK_DATA_RSVD_SIZE (15 * SECTOR_SIZE)
67 #define BBLK_ZFS_EXTRA_OFF (SECTOR_SIZE * 1024)
H A Dinstallboot.c118 buf_size = P2ROUNDUP(bblock->file_size, SECTOR_SIZE);
124 buf_size = P2ROUNDUP(bblock->file_size + SECTOR_SIZE,
125 SECTOR_SIZE);
217 buf_size = P2ROUNDUP(size + SECTOR_SIZE, SECTOR_SIZE);
232 if (read_in(dev_fd, dest, size, SECTOR_SIZE) != BC_SUCCESS) {
404 if (write_out(device->fd, bufptr, size, SECTOR_SIZE) != BC_SUCCESS) {
438 SECTOR_SIZE) != BC_SUCCESS) {
539 buf_size = src_bblock->file_size + SECTOR_SIZE;
541 dest_bblock->buf_size = P2ROUNDUP(buf_size, SECTOR_SIZE);
[all...]
/illumos-gate/usr/src/cmd/boot/common/
H A Dboot_utils.h43 #define SECTOR_SIZE (512) macro
H A Dboot_utils.c62 if (size % SECTOR_SIZE != 0)
95 if (size % SECTOR_SIZE != 0)
/illumos-gate/usr/src/cmd/boot/installboot/i386/
H A Dinstallboot.h37 #define SECTOR_SIZE (512) macro
73 char mbr[SECTOR_SIZE];
89 unsigned char stage1[SECTOR_SIZE]; /* partition boot block */
H A Dinstallboot.c149 read(fd, dest->stage1, SECTOR_SIZE) != SECTOR_SIZE) {
252 offset = BBLK_ZFS_BLK_OFF * SECTOR_SIZE;
256 offset = device->stage.offset * SECTOR_SIZE;
288 buf_size = P2ROUNDUP(size + SECTOR_SIZE, SECTOR_SIZE);
430 SECTOR_SIZE - STAGE1_SIG);
434 (uint16_t)(data->bootblock.buf_size / SECTOR_SIZE);
508 offset = BBLK_ZFS_BLK_OFF * SECTOR_SIZE;
513 offset = device->stage.offset * SECTOR_SIZE;
[all...]
/illumos-gate/usr/src/tools/btxld/
H A Dversion.c73 buf_size = P2ROUNDUP(sb.st_size + SECTOR_SIZE, SECTOR_SIZE);
/illumos-gate/usr/src/boot/sys/boot/i386/loader/
H A Dchain.c38 #define SECTOR_SIZE (512) macro
45 int fd, len, size = SECTOR_SIZE;
/illumos-gate/usr/src/grub/grub-0.97/grub/
H A Dasmstub.c954 offset = (loff_t) sector * (loff_t) SECTOR_SIZE;
960 off_t offset = (off_t) sector * (off_t) SECTOR_SIZE;
979 if (nread (fd, buf, SECTOR_SIZE) != SECTOR_SIZE)
981 buf += SECTOR_SIZE;
985 if (nread (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE)
995 hex_dump (buf, nsec * SECTOR_SIZE);
998 if (nwrite (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE)
[all...]
/illumos-gate/usr/src/grub/grub-0.97/lib/
H A Ddevice.c153 geom->sector_size = SECTOR_SIZE;
912 offset = (loff_t) sector * (loff_t) SECTOR_SIZE;
921 off_t offset = (off_t) sector * (off_t) SECTOR_SIZE;
931 if (write (fd, buf, size * SECTOR_SIZE) != (size * SECTOR_SIZE))
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c5405 #define SECTOR_SIZE 512 macro
5412 char boot_sect[SECTOR_SIZE];
5432 if (fd == -1 || read(fd, boot_sect, SECTOR_SIZE) != SECTOR_SIZE) {

Completed in 128 milliseconds