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

/osnet-11/usr/src/grub/grub-0.97/stage2/
H A Dstage1_5.c44 grub_read ((char *) 0x8000, SECTOR_SIZE * 2);
54 ret = grub_read ((char *) 0x8000 + SECTOR_SIZE * 2, -1);
H A Ddisk_io.c323 byte_offset &= SECTOR_SIZE - 1;
362 memmove ((char *) SCRATCHADDR, buf, SECTOR_SIZE);
473 if (! rawread (saved_drive, 0, 0, SECTOR_SIZE, mbr))
617 0, SECTOR_SIZE, buf))
674 if (! rawread (drive, *start + SOL_LABEL_LOC, 0, SECTOR_SIZE, buf))
722 if (! rawread (drive, *offset, 0, SECTOR_SIZE, buf))
830 char buf[SECTOR_SIZE];
1208 0, SECTOR_SIZE, (char *) SCRATCHADDR))
1673 filemax += (tmp * SECTOR_SIZE);
1764 if ((filepos - (BLK_CUR_FILEPOS & ~(SECTOR_SIZE
[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 Dbios.c178 geometry->sector_size = SECTOR_SIZE;
310 geometry->sector_size = SECTOR_SIZE;
337 geometry->sector_size = 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 Dbuiltins.c208 && offset == 0 && last_length == SECTOR_SIZE)
216 if (last_length == SECTOR_SIZE)
507 if (grub_read ((char *) BOOTSEC_LOCATION, SECTOR_SIZE) != SECTOR_SIZE)
1558 size = (len + SECTOR_SIZE - 1) / SECTOR_SIZE;
1569 char mbr[SECTOR_SIZE];
1570 char ezbios_check[2*SECTOR_SIZE];
1585 if (! rawread (current_drive, PC_MBR_SECTOR, 0, SECTOR_SIZE, mbr))
1607 if (! rawread (current_drive, 1, 0, 2 * SECTOR_SIZE, ezbios_chec
[all...]
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
/osnet-11/usr/src/grub/grub2/grub-core/lib/
H A Dreed_solomon.c73 #define SECTOR_SIZE 512 macro
74 #define MAX_BLOCK_SIZE (200 * SECTOR_SIZE)
393 for (i = 0; i < SECTOR_SIZE; i++)
395 grub_size_t ds = (s + SECTOR_SIZE - 1 - i) / SECTOR_SIZE;
396 grub_size_t rr = (rs + SECTOR_SIZE - 1 - i) / SECTOR_SIZE;
411 m[j] = ptr[SECTOR_SIZE * j + i];
413 m[j + ds] = rptr[SECTOR_SIZE * j + i];
418 ptr[SECTOR_SIZE *
[all...]
/osnet-11/usr/src/grub/grub-0.97/grub/
H A Dasmstub.c951 offset = (loff_t) sector * (loff_t) SECTOR_SIZE;
957 off_t offset = (off_t) sector * (off_t) SECTOR_SIZE;
976 if (nread (fd, buf, SECTOR_SIZE) != SECTOR_SIZE)
978 buf += SECTOR_SIZE;
982 if (nread (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE)
992 hex_dump (buf, nsec * SECTOR_SIZE);
995 if (nwrite (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE)
[all...]
/osnet-11/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))

Completed in 55 milliseconds