Home
last modified time | relevance | path

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

/external/grub/stage2/
Dbuiltins.c155 && offset == 0 && last_length == SECTOR_SIZE) in blocklist_func()
163 if (last_length == SECTOR_SIZE) in blocklist_func()
425 if (grub_read ((char *) BOOTSEC_LOCATION, SECTOR_SIZE) != SECTOR_SIZE) in chainloader_func()
1042 size = (len + SECTOR_SIZE - 1) / SECTOR_SIZE; in embed_func()
1053 char mbr[SECTOR_SIZE]; in embed_func()
1054 char ezbios_check[2*SECTOR_SIZE]; in embed_func()
1069 if (! rawread (current_drive, PC_MBR_SECTOR, 0, SECTOR_SIZE, mbr)) in embed_func()
1091 if (! rawread (current_drive, 1, 0, 2 * SECTOR_SIZE, ezbios_check)) in embed_func()
1240 char buf[SECTOR_SIZE]; in find_func()
1750 char *stage2_buffer = stage1_buffer + SECTOR_SIZE; in install_func()
[all …]
Dstage1_5.c44 grub_read ((char *) 0x8000, SECTOR_SIZE * 2); in cmain()
54 ret = grub_read ((char *) 0x8000 + SECTOR_SIZE * 2, -1); in cmain()
Ddisk_io.c311 byte_offset &= SECTOR_SIZE - 1; in devread()
350 memmove ((char *) SCRATCHADDR, buf, SECTOR_SIZE); in rawwrite()
461 if (! rawread (saved_drive, 0, 0, SECTOR_SIZE, mbr)) in make_saved_active()
604 0, SECTOR_SIZE, buf)) in next_partition()
659 if (! rawread (drive, *offset, 0, SECTOR_SIZE, buf)) in next_partition()
759 char buf[SECTOR_SIZE]; in real_open_partition()
1134 0, SECTOR_SIZE, (char *) SCRATCHADDR)) in set_bootdev()
1599 filemax += (tmp * SECTOR_SIZE); in grub_open()
1690 if ((filepos - (BLK_CUR_FILEPOS & ~(SECTOR_SIZE - 1))) in grub_read()
1691 >= SECTOR_SIZE) in grub_read()
[all …]
Dbios.c171 geometry->sector_size = SECTOR_SIZE; in get_cdinfo()
286 geometry->sector_size = SECTOR_SIZE; in get_diskinfo()
313 geometry->sector_size = SECTOR_SIZE; in get_diskinfo()
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
Dfsys_fat.c156 || FAT_CVT_U16(bpb.bytes_per_sect) != SECTOR_SIZE in fat_mount()
160 || (FAT_SUPER->fat_size * FAT_SUPER->num_clust / (2 * SECTOR_SIZE) in fat_mount()
239 FAT_SUPER->cached_fat = (fat_entry & ~(2*SECTOR_SIZE - 1)); in fat_read()
242 + FAT_SUPER->cached_fat / (2*SECTOR_SIZE); in fat_read()
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()
Dfsys_reiserfs.c295 #define FSYSREISER_MIN_BLOCKSIZE SECTOR_SIZE
627 || (SECTOR_SIZE << INFO->blocksize_shift) != super.s_blocksize) in reiserfs_mount()
Dshared.h171 #define SECTOR_SIZE 0x200 macro
/external/grub/grub/
Dasmstub.c949 offset = (loff_t) sector * (loff_t) SECTOR_SIZE; in biosdisk()
955 off_t offset = (off_t) sector * (off_t) SECTOR_SIZE; in biosdisk()
974 if (nread (fd, buf, SECTOR_SIZE) != SECTOR_SIZE) in biosdisk()
976 buf += SECTOR_SIZE; in biosdisk()
980 if (nread (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE) in biosdisk()
990 hex_dump (buf, nsec * SECTOR_SIZE); in biosdisk()
993 if (nwrite (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE) in biosdisk()
/external/grub/lib/
Ddevice.c149 geom->sector_size = SECTOR_SIZE; in get_drive_geometry()
884 offset = (loff_t) sector * (loff_t) SECTOR_SIZE; in write_to_partition()
893 off_t offset = (off_t) sector * (off_t) SECTOR_SIZE; in write_to_partition()
903 if (write (fd, buf, size * SECTOR_SIZE) != (size * SECTOR_SIZE)) in write_to_partition()
/external/qemu/block/
Dvmdk.c105 #define SECTOR_SIZE 512 macro
106 #define DESC_SIZE 20*SECTOR_SIZE // 20 sectors of 512 bytes each
274 gd_offset = header.gd_offset * SECTOR_SIZE; // offset of GD table in vmdk_snapshot_create()
275 rgd_offset = header.rgd_offset * SECTOR_SIZE; // offset of RGD table in vmdk_snapshot_create()
276 capacity = header.capacity * SECTOR_SIZE; // Extent size in vmdk_snapshot_create()
281 gt_size = (int64_t)header.num_gtes_per_gte * header.granularity * SECTOR_SIZE; in vmdk_snapshot_create()
/external/kernel-headers/original/linux/
Dmsdos_fs.h11 #define SECTOR_SIZE 512 /* sector size (bytes) */ macro
15 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
/external/grub/
DChangeLog446 (rawread): Use BUF_GEOM.SECTOR_SIZE instead of SECTOR_SIZE.
466 Set the sector size to SECTOR_SIZE if it is not a CD-ROM.
496 * lib/device.c (get_drive_geometry): Set GEOM->SECTOR_SIZE to
497 SECTOR_SIZE by default.
770 * stage2/boot.c (load_image): Check if DATA_LEN plus SECTOR_SIZE
4629 SECTOR_SIZE to compute BLOCKSIZE.
4933 (1 << SECTOR_SHIFT) == SECTOR_SIZE.
5915 function biosdisk is changed from SECTOR + I * SECTOR_SIZE to
7647 (fat_create_blocklist): Use the macro SECTOR_SIZE instead of a