Home
last modified time | relevance | path

Searched refs:nsect (Results 1 – 3 of 3) sorted by relevance

/external/syslinux/libinstaller/
Dsyslxmod.c36 const sector_t *sectp, int nsect) in generate_extents() argument
48 while (nsect) { in generate_extents()
72 nsect--; in generate_extents()
114 int nsect = ((boot_image_len + SECTOR_SIZE - 1) >> SECTOR_SHIFT) + 2; in syslinux_patch() local
120 if (nsectors < nsect) in syslinux_patch()
144 set_16_sl(&patcharea->data_sectors, nsect - 2); /* Not including ADVs */ in syslinux_patch()
159 if (nsect > nptrs) { in syslinux_patch()
167 generate_extents(ex, nptrs, sectp, nsect-1-2); in syslinux_patch()
171 set_64_sl(&advptrs[0], sectp[nsect-1-2]); in syslinux_patch()
172 set_64_sl(&advptrs[1], sectp[nsect-1-1]); in syslinux_patch()
/external/syslinux/extlinux/
Dmain.c237 int nsect; in patch_file_and_bootblock() local
313 nsect = (boot_image_len + SECTOR_SIZE - 1) >> SECTOR_SHIFT; in patch_file_and_bootblock()
314 nsect += 2; /* Two sectors for the ADV */ in patch_file_and_bootblock()
315 sectp = alloca(sizeof(sector_t) * nsect); in patch_file_and_bootblock()
318 if (sectmap(fd, sectp, nsect)) { in patch_file_and_bootblock()
326 for (i = 0; i < nsect - 2; i++) in patch_file_and_bootblock()
333 rv = syslinux_patch(sectp, nsect, opt.stupid_mode, in patch_file_and_bootblock()
/external/e2fsprogs/misc/
Dmke2fs.c556 static void zap_sector(ext2_filsys fs, int sect, int nsect) in zap_sector() argument
562 buf = calloc(512, nsect); in zap_sector()
565 sect, sect + nsect - 1); in zap_sector()
584 memset(buf, 0, 512*nsect); in zap_sector()
586 retval = io_channel_write_blk64(fs->io, sect, -512*nsect, buf); in zap_sector()