Home
last modified time | relevance | path

Searched refs:SECTOR_SHIFT (Results 1 – 22 of 22) sorted by relevance

/external/syslinux/libinstaller/
Dsyslxcom.c48 #define SECTOR_SHIFT 9 macro
196 maplen = (uint64_t)nsectors << SECTOR_SHIFT; in sectmap_fie()
235 secp = sectors + (fe->fe_logical >> SECTOR_SHIFT); in sectmap_fie()
236 sec = fe->fe_physical >> SECTOR_SHIFT; in sectmap_fie()
237 nsec = fe->fe_length >> SECTOR_SHIFT; in sectmap_fie()
264 blksize >>= SECTOR_SHIFT; in sectmap_fib()
Dsyslinux.h50 #define SECTOR_SHIFT 9 macro
51 #define SECTOR_SIZE (1 << SECTOR_SHIFT)
Dsyslxmod.c114 int nsect = ((boot_image_len + SECTOR_SIZE - 1) >> SECTOR_SHIFT) + 2; in syslinux_patch()
/external/syslinux/core/fs/xfs/
Dxfs.c127 inode->next_extent.pstart = bno << BLOCK_SHIFT(fs) >> SECTOR_SHIFT(fs); in xfs_next_extent()
129 SECTOR_SIZE(fs) - 1) >> SECTOR_SHIFT(fs); in xfs_next_extent()
162 >> SECTOR_SHIFT(fs); in xfs_next_extent()
166 >> SECTOR_SHIFT(fs); in xfs_next_extent()
376 SECTOR_SHIFT(fs) = disk->sector_shift; in xfs_fs_init()
377 SECTOR_SIZE(fs) = 1 << SECTOR_SHIFT(fs); in xfs_fs_init()
/external/syslinux/core/fs/
Dgetfssec.c97 (bytes_left + SECTOR_SIZE(fs) - 1) >> SECTOR_SHIFT(fs); in generic_getfssec()
106 lsector = file->offset >> SECTOR_SHIFT(fs); in generic_getfssec()
167 len = chunk << SECTOR_SHIFT(fs); in generic_getfssec()
Dfs.c362 filedata->blocklg2 = SECTOR_SHIFT(file->fs); in open_file()
/external/syslinux/mtools/
Dsyslinux.c320 + SECTOR_SIZE - 1) >> SECTOR_SHIFT; in main()
337 patch_sectors = (i + SECTOR_SIZE - 1) >> SECTOR_SHIFT; in main()
343 opt.offset + ((off_t) sectors[i] << SECTOR_SHIFT)); in main()
/external/syslinux/core/fs/ntfs/
Dntfs.c820 SECTOR_SHIFT(fs) >> BLOCK_SHIFT(fs); in ntfs_index_lookup()
921 const uint32_t sec_shift = SECTOR_SHIFT(fs); in ntfs_next_extent()
1128 blk = (lcn + vcn) << NTFS_SB(fs)->clust_shift << SECTOR_SHIFT(fs) >> in ntfs_readdir()
1308 SECTOR_SHIFT(fs) = disk->sector_shift; in ntfs_fs_init()
1316 ilog2(ntfs.sec_per_clust) + SECTOR_SHIFT(fs) + in ntfs_fs_init()
1319 SECTOR_SIZE(fs) = 1 << SECTOR_SHIFT(fs); in ntfs_fs_init()
1328 sbi->clust_byte_shift = sbi->clust_shift + SECTOR_SHIFT(fs); in ntfs_fs_init()
1330 sbi->clust_size = ntfs.sec_per_clust << SECTOR_SHIFT(fs); in ntfs_fs_init()
1338 sbi->mft_blk = ntfs.mft_lclust << sbi->clust_shift << SECTOR_SHIFT(fs) >> in ntfs_fs_init()
1343 sbi->clusters = ntfs.total_sectors << SECTOR_SHIFT(fs) >> sbi->clust_shift; in ntfs_fs_init()
/external/syslinux/core/fs/ufs/
Dbmap.c175 int blktosec = BLOCK_SHIFT(fs) - SECTOR_SHIFT(fs); in ufs_next_extent()
193 ((sector_t) (block << (frag_shift - SECTOR_SHIFT(fs)))) | in ufs_next_extent()
/external/syslinux/linux/
Dsyslinux.c270 int ldlinux_sectors = (boot_image_len + SECTOR_SIZE - 1) >> SECTOR_SHIFT; in main()
504 patch_sectors = (i + SECTOR_SIZE - 1) >> SECTOR_SHIFT; in main()
513 opt.offset + ((off_t) sectors[i] << SECTOR_SHIFT)); in main()
/external/syslinux/core/fs/fat/
Dfat.c43 fat_sector = offset >> SECTOR_SHIFT(fs); in get_next_cluster()
68 fat_sector = offset >> SECTOR_SHIFT(fs); in get_next_cluster()
76 fat_sector = offset >> SECTOR_SHIFT(fs); in get_next_cluster()
188 uint32_t sector_pos = file->offset >> SECTOR_SHIFT(file->fs); in get_the_right_sector()
Dfat_fs.h145 >> (SECTOR_SHIFT(fs) - 5); in root_dir_size()
/external/syslinux/extlinux/
Dmain.c78 #define XFS_BOOTSECT_OFFSET (4 << SECTOR_SHIFT)
200 geo->cylinders = totalbytes / (geo->heads * geo->sectors << SECTOR_SHIFT); in get_geometry()
214 geo->start = li64.lo_offset >> SECTOR_SHIFT; in get_geometry()
216 geo->start = (unsigned int)li.lo_offset >> SECTOR_SHIFT; in get_geometry()
297 totalsectors = totalbytes >> SECTOR_SHIFT; in patch_file_and_bootblock()
313 nsect = (boot_image_len + SECTOR_SIZE - 1) >> SECTOR_SHIFT; in patch_file_and_bootblock()
/external/syslinux/com32/elflink/ldlinux/
Dloadhigh.c84 sectors = (chunk + sector_mask) >> SECTOR_SHIFT(fs); in pm_load_high()
/external/syslinux/core/include/
Dfs.h29 #define SECTOR_SHIFT(fs) ((fs)->sector_shift) macro
/external/syslinux/dos/
Dsyslinux.c700 + SECTOR_SIZE - 1) >> SECTOR_SHIFT; in main()
727 patch_sectors = (i + SECTOR_SIZE - 1) >> SECTOR_SHIFT; in main()
/external/syslinux/core/fs/ext2/
Dbmap.c213 int blktosec = BLOCK_SHIFT(fs) - SECTOR_SHIFT(fs); in ext2_next_extent()
/external/syslinux/core/
Disolinux.asm33 SECTOR_SHIFT equ 11 ; 2048 bytes/sector (El Torito requirement) define
34 SECTOR_SIZE equ (1 << SECTOR_SHIFT)
377 shr eax,SECTOR_SHIFT-2 ; dwords->sectors
Dpxelinux.asm39 SECTOR_SHIFT equ TFTP_BLOCKSIZE_LG2 define
/external/syslinux/core/fs/iso9660/
Diso9660.c168 int blktosec = BLOCK_SHIFT(fs) - SECTOR_SHIFT(fs); in iso_get_inode()
/external/syslinux/win/
Dsyslinux.c440 >> SECTOR_SHIFT; in main()
/external/syslinux/core/fs/btrfs/
Dbtrfs.c528 u32 sec_shift = SECTOR_SHIFT(fs); in btrfs_next_extent()