Home
last modified time | relevance | path

Searched refs:sector_shift (Results 1 – 20 of 20) sorted by relevance

/external/syslinux/core/fs/
Ddiskio_bios.c51 int sector_shift = disk->sector_shift; in chs_rdwr_sectors() local
74 freeseg = (0x10000 - ((size_t)ptr & 0xffff)) >> sector_shift; in chs_rdwr_sectors()
82 freeseg = (0x10000 - ((size_t)tptr & 0xffff)) >> sector_shift; in chs_rdwr_sectors()
95 bytes = chunk << sector_shift; in chs_rdwr_sectors()
146 bytes = chunk << sector_shift; in chs_rdwr_sectors()
170 int sector_shift = disk->sector_shift; in edd_rdwr_sectors() local
192 freeseg = (0x10000 - ((size_t)ptr & 0xffff)) >> sector_shift; in edd_rdwr_sectors()
200 freeseg = (0x10000 - ((size_t)tptr & 0xffff)) >> sector_shift; in edd_rdwr_sectors()
205 bytes = chunk << sector_shift; in edd_rdwr_sectors()
260 if (done == (count << sector_shift)) { in edd_rdwr_sectors()
[all …]
Dfs.c450 SectorShift = fs.sector_shift; in fs_init()
/external/syslinux/utils/
Dmemdiskfind.c63 int sector_shift = mbft->mdi.sector_shift; in output_params() local
65 if (!sector_shift) in output_params()
66 sector_shift = 9; in output_params()
69 mbft->mdi.diskbuf, mbft->mdi.disksize << sector_shift); in output_params()
/external/syslinux/core/fs/fat/
Dfat.c470 entries = 1 << (fs->sector_shift - 5); in vfat_find_entry()
557 inode->size = root_size ? root_size << fs->sector_shift : ~0; in vfat_find_entry()
577 inode->size = root_size ? root_size << fs->sector_shift : ~0; in vfat_iget_root()
606 int sec_off = file->offset & ((1 << fs->sector_shift) - 1); in vfat_readdir()
610 entries_left = ((1 << fs->sector_shift) - sec_off) >> 5; in vfat_readdir()
706 entries_left = 1 << (fs->sector_shift - 5); in vfat_readdir()
732 fs->sector_shift = fs->block_shift = disk->sector_shift; in vfat_fs_init()
733 fs->sector_size = 1 << fs->sector_shift; in vfat_fs_init()
755 sbi->clust_byte_shift = sbi->clust_shift + fs->sector_shift; in vfat_fs_init()
757 sbi->clust_size = fat.bxSecPerClust << fs->sector_shift; in vfat_fs_init()
/external/syslinux/efi/
Ddiskio.c41 return count << disk->sector_shift; in efi_rdwr_sectors()
70 disk.sector_shift = ilog2(disk.sector_size); in efi_disk_init()
87 media_id, cdrom, ebios, sector_size, disk.sector_shift, in efi_disk_init()
/external/syslinux/core/fs/iso9660/
Diso9660.c296 fs->sector_shift = fs->fs_dev->disk->sector_shift; in iso_fs_init()
298 fs->sector_size = 1 << fs->sector_shift; in iso_fs_init()
300 blktosec = fs->block_shift - fs->sector_shift; in iso_fs_init()
/external/syslinux/memdisk/
Dsetup.c247 uint8_t sector_shift; /* Sector size as a power of 2 */ member
327 hd_geometry.sector_shift = 9; /* Assume floppy/HDD at first */ in get_disk_image_geometry()
333 sectors = xsectors = (size - offset) >> hd_geometry.sector_shift; in get_disk_image_geometry()
377 hd_geometry.sector_shift = 11; in get_disk_image_geometry()
399 sectors = (size - hd_geometry.offset) >> hd_geometry.sector_shift; in get_disk_image_geometry()
418 sectors = (size - hd_geometry.offset) >> hd_geometry.sector_shift; in get_disk_image_geometry()
471 if ((sectors < 4096 * 2) && (hd_geometry.sector_shift == 9)) { in get_disk_image_geometry()
824 if (geometry->sector_shift == 11) { in setup()
863 pptr->mdi.sector_shift = geometry->sector_shift; in setup()
959 if (geometry->sector_shift != 11) in setup()
Dmstructs.h96 uint8_t sector_shift; member
/external/syslinux/core/fs/ext2/
Dext2.c224 int sec_per_block = 1 << (fs->block_shift - fs->sector_shift); in ext2_readlink()
298 fs->sector_shift = disk->sector_shift; in ext2_fs_init()
300 fs->sector_size = 1 << fs->sector_shift; in ext2_fs_init()
/external/syslinux/com32/include/syslinux/
Dconfig.h108 uint8_t sector_shift, ch; member
135 uint8_t sector_shift, cd_mode; member
/external/syslinux/com32/gfxboot/
Dgfxboot.c76 uint8_t sector_shift; // 1: sector shift member
198 gfx_config.sector_shift = sdi->disk.sector_shift; in main()
202 gfx_config.sector_shift = 11; in main()
717 r.eax.l = kernel_size >> gfx_config.sector_shift; // in sectors in gfx_progress_init()
733 r.eax.l = advance >> gfx_config.sector_shift; // in sectors in gfx_progress_update()
/external/syslinux/core/fs/ufs/
Dufs.c44 count = sizeof *sb >> disk->sector_shift; in do_checksb()
46 lba = sblock_off >> (disk->sector_shift); in do_checksb()
454 fs->sector_shift = disk->sector_shift; in ufs_fs_init()
/external/syslinux/core/include/
Dfs.h29 #define SECTOR_SHIFT(fs) ((fs)->sector_shift)
35 int sector_shift, sector_size; member
Ddisk.h24 unsigned int sector_shift; member
/external/syslinux/core/
Dldlinux-c.c13 di->disk.sector_shift = SectorShift; in get_derivative_info()
Disolinux-c.c15 di->iso.sector_shift = SectorShift; in get_derivative_info()
/external/syslinux/core/fs/btrfs/
Dbtrfs.c658 fs->sector_shift = disk->sector_shift; in btrfs_fs_init()
659 fs->sector_size = 1 << fs->sector_shift; in btrfs_fs_init()
/external/syslinux/core/fs/pxe/
Dpxe.c574 fs->sector_shift = fs->block_shift = TFTP_BLOCKSIZE_LG2; in pxe_fs_init()
/external/syslinux/core/fs/xfs/
Dxfs.c376 SECTOR_SHIFT(fs) = disk->sector_shift; in xfs_fs_init()
/external/syslinux/core/fs/ntfs/
Dntfs.c1308 SECTOR_SHIFT(fs) = disk->sector_shift; in ntfs_fs_init()