Home
last modified time | relevance | path

Searched refs:SECTOR_SIZE (Results 1 – 21 of 21) sorted by relevance

/titanic_50/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.c604 buf_size = src_stage2->file_size + SECTOR_SIZE; in propagate_bootblock()
606 dest_stage2->buf_size = P2ROUNDUP(buf_size, SECTOR_SIZE); in propagate_bootblock()
667 if (read(device->disk_fd, device->boot_sector, SECTOR_SIZE) in init_device()
668 != SECTOR_SIZE) { in init_device()
993 if (write_out(device->part_fd, stage2->file, SECTOR_SIZE, in write_stage2()
994 stage2->pcfs_first_sectors[0] * SECTOR_SIZE) in write_stage2()
996 write_out(device->part_fd, stage2->file + SECTOR_SIZE, in write_stage2()
997 SECTOR_SIZE, stage2->pcfs_first_sectors[1] * SECTOR_SIZE) in write_stage2()
1020 offset = STAGE2_BLKOFF(device->type) * SECTOR_SIZE; in write_stage2()
1030 (stage2->buf_size / SECTOR_SIZE) + 1, STAGE2_BLKOFF(device->type), in write_stage2()
[all …]
/titanic_50/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) { in main()
107 if (fd == -1 || read(fd, boot_sect, SECTOR_SIZE) != SECTOR_SIZE) { in main()
153 (write(fd, (void *)boot_sect, SECTOR_SIZE) < 0)) { in main()
/titanic_50/usr/src/grub/grub-0.97/stage2/
H A Dbuiltins.c176 && offset == 0 && last_length == SECTOR_SIZE) in blocklist_func()
184 if (last_length == SECTOR_SIZE) in blocklist_func()
460 if (grub_read ((char *) BOOTSEC_LOCATION, SECTOR_SIZE) != SECTOR_SIZE) in chainloader_func()
1416 size = (len + SECTOR_SIZE - 1) / SECTOR_SIZE; in embed_func()
1427 char mbr[SECTOR_SIZE]; in embed_func()
1428 char ezbios_check[2*SECTOR_SIZE]; in embed_func()
1443 if (! rawread (current_drive, PC_MBR_SECTOR, 0, SECTOR_SIZE, mbr)) in embed_func()
1465 if (! rawread (current_drive, 1, 0, 2 * SECTOR_SIZE, ezbios_check)) in embed_func()
1659 char buf[SECTOR_SIZE]; in find_common()
2212 char *stage2_buffer = stage1_buffer + SECTOR_SIZE; in install_func()
[all …]
H A Ddisk_io.c324 byte_offset &= SECTOR_SIZE - 1; in devread()
363 memmove ((char *) SCRATCHADDR, buf, SECTOR_SIZE); in rawwrite()
474 if (! rawread (saved_drive, 0, 0, SECTOR_SIZE, mbr)) in make_saved_active()
628 0, SECTOR_SIZE, buf)) in next_partition()
685 if (! rawread (drive, *start + SOL_LABEL_LOC, 0, SECTOR_SIZE, buf)) in next_partition()
733 if (! rawread (drive, *offset, 0, SECTOR_SIZE, buf)) in next_partition()
749 if (! rawread (drive, 1, 0, SECTOR_SIZE, buf)) in next_partition()
769 if (! rawread (drive, *offset, 0, SECTOR_SIZE, buf)) in next_partition()
918 char buf[SECTOR_SIZE]; in real_open_partition()
1297 0, SECTOR_SIZE, (char *) SCRATCHADDR)) in set_bootdev()
[all …]
H A Dstage1_5.c44 grub_read ((char *) 0x8000, SECTOR_SIZE * 2); in cmain()
54 ret = grub_read ((char *) 0x8000 + SECTOR_SIZE * 2, -1); in cmain()
H A Dgpt.h64 ((((entry) * (size) + 1) & ~(SECTOR_SIZE - 1)) >> SECTOR_BITS)
66 ((((entry) * (size) + 1) & (SECTOR_SIZE - 1)) - 1)
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.c176 geometry->sector_size = SECTOR_SIZE; in get_cdinfo()
308 geometry->sector_size = SECTOR_SIZE; in get_diskinfo()
335 geometry->sector_size = SECTOR_SIZE; in get_diskinfo()
H A Dfsys_fat.c157 || FAT_CVT_U16(bpb.bytes_per_sect) != SECTOR_SIZE in fat_mount()
161 || (FAT_SUPER->fat_size * FAT_SUPER->num_clust / (2 * SECTOR_SIZE) in fat_mount()
240 FAT_SUPER->cached_fat = (fat_entry & ~(2*SECTOR_SIZE - 1)); in fat_read()
243 + FAT_SUPER->cached_fat / (2*SECTOR_SIZE); in fat_read()
H A Dboot.c268 text_len = filemax - data_len - SECTOR_SIZE; in load_image()
378 if (data_len + SECTOR_SIZE <= MULTIBOOT_SEARCH) in load_image()
380 data_len + SECTOR_SIZE); in load_image()
385 data_len + SECTOR_SIZE - MULTIBOOT_SEARCH); in load_image()
444 grub_seek (data_len + SECTOR_SIZE); in load_image()
H A Dfsys_reiserfs.c295 #define FSYSREISER_MIN_BLOCKSIZE SECTOR_SIZE
628 || (SECTOR_SIZE << INFO->blocksize_shift) != super.s_blocksize) in reiserfs_mount()
H A Dshared.h189 #define SECTOR_SIZE 0x200 macro
/titanic_50/usr/src/grub/grub-0.97/grub/
H A Dasmstub.c951 offset = (loff_t) sector * (loff_t) SECTOR_SIZE; in biosdisk()
957 off_t offset = (off_t) sector * (off_t) SECTOR_SIZE; in biosdisk()
976 if (nread (fd, buf, SECTOR_SIZE) != SECTOR_SIZE) in biosdisk()
978 buf += SECTOR_SIZE; in biosdisk()
982 if (nread (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE) in biosdisk()
992 hex_dump (buf, nsec * SECTOR_SIZE); in biosdisk()
995 if (nwrite (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE) in biosdisk()
/titanic_50/usr/src/cmd/boot/installboot/
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); in read_bootblock_from_file()
124 buf_size = P2ROUNDUP(bblock->file_size + SECTOR_SIZE, in read_bootblock_from_file()
125 SECTOR_SIZE); in read_bootblock_from_file()
217 buf_size = P2ROUNDUP(size + SECTOR_SIZE, SECTOR_SIZE); in read_bootblock_from_disk()
232 if (read_in(dev_fd, dest, size, SECTOR_SIZE) != BC_SUCCESS) { in read_bootblock_from_disk()
404 if (write_out(device->fd, bufptr, size, SECTOR_SIZE) != BC_SUCCESS) { in write_zfs_bootblock()
438 SECTOR_SIZE) != BC_SUCCESS) { in write_bootblock()
539 buf_size = src_bblock->file_size + SECTOR_SIZE; in propagate_bootblock()
541 dest_bblock->buf_size = P2ROUNDUP(buf_size, SECTOR_SIZE); in propagate_bootblock()
/titanic_50/usr/src/cmd/boot/common/
H A Dboot_utils.c62 if (size % SECTOR_SIZE != 0) in write_out()
95 if (size % SECTOR_SIZE != 0) in read_in()
H A Dboot_utils.h43 #define SECTOR_SIZE (512) macro
/titanic_50/usr/src/grub/grub-0.97/lib/
H A Ddevice.c153 geom->sector_size = SECTOR_SIZE; in get_drive_geometry()
912 offset = (loff_t) sector * (loff_t) SECTOR_SIZE; in write_to_partition()
921 off_t offset = (off_t) sector * (off_t) SECTOR_SIZE; in write_to_partition()
931 if (write (fd, buf, size * SECTOR_SIZE) != (size * SECTOR_SIZE)) in write_to_partition()
/titanic_50/usr/src/cmd/boot/bootadm/
H A Dbootadm.c5183 #define SECTOR_SIZE 512 macro
5190 char boot_sect[SECTOR_SIZE];
5210 if (fd == -1 || read(fd, boot_sect, SECTOR_SIZE) != SECTOR_SIZE) {
/titanic_50/usr/src/grub/grub-0.97/
H A DChangeLog605 (rawread): Use BUF_GEOM.SECTOR_SIZE instead of SECTOR_SIZE.
625 Set the sector size to SECTOR_SIZE if it is not a CD-ROM.
655 * lib/device.c (get_drive_geometry): Set GEOM->SECTOR_SIZE to
656 SECTOR_SIZE by default.
929 * stage2/boot.c (load_image): Check if DATA_LEN plus SECTOR_SIZE
4788 SECTOR_SIZE to compute BLOCKSIZE.
5092 (1 << SECTOR_SHIFT) == SECTOR_SIZE.
6074 function biosdisk is changed from SECTOR + I * SECTOR_SIZE to
7806 (fat_create_blocklist): Use the macro SECTOR_SIZE instead of a