Home
last modified time | relevance | path

Searched refs:sec_size (Results 1 – 6 of 6) sorted by relevance

/external/elfutils/tests/
Daddsections.c73 add_sections (const char *name, size_t nr, int use_mmap, size_t sec_size) in add_sections() argument
75 printf ("add_sections '%s': %zd (sec_size: %zd)\n", name, nr, sec_size); in add_sections()
154 if (sec_size == 0) in add_sections()
161 buf = malloc (sec_size); in add_sections()
164 printf ("cannot allocate buffer data of %zd bytes\n", sec_size); in add_sections()
167 memset (buf, 0xAA, sec_size); in add_sections()
168 bufsz = sec_size; in add_sections()
324 size_t sec_size = 0; in main() local
326 sec_size = atol (argv[argn++]); in main()
328 add_sections (file, nr, use_mmap, sec_size); in main()
DChangeLog546 * addsections.c (add_sections): Add sec_size argument, use it
548 (main): Handle extra sec_size argument. Pass to add_sections.
/external/mtools/
Dmformat.c721 int sec_size; in get_sector_size() local
722 if (ioctl(fd, BLKSSZGET, &sec_size) != 0 || sec_size <= 0) { in get_sector_size()
729 if(sec_size > 4096) in get_sector_size()
730 sec_size = 4096; in get_sector_size()
731 return sec_size; in get_sector_size()
736 int sec_size; in get_block_geom() local
754 sec_size = get_sector_size(fd, errmsg); in get_block_geom()
755 if(sec_size < 0) in get_block_geom()
759 while (dev->ssize < 0x7F && (128 << dev->ssize) < sec_size) in get_block_geom()
800 int sec_size; in get_lba_geom() local
[all …]
Ddevices.c528 #define FD_SECTSIZE(floppy) floppy.dkbuf.sec_size
529 #define FD_SET_SECTSIZE(floppy,v) { floppy.dkbuf.sec_size = v; }
/external/elfutils/libdw/
Ddwarf_ranges.c423 size_t sec_size = cu->dbg->sectiondata[secidx]->d_size; in initial_offset() local
425 if (offset_size > sec_size) in initial_offset()
433 if (range_base_off > (sec_size - offset_size)) in initial_offset()
436 size_t max_idx = (sec_size - offset_size - range_base_off) / offset_size; in initial_offset()
Ddwarf_getlocation.c760 size_t sec_size = cu->dbg->sectiondata[secidx]->d_size; in initial_offset() local
762 if (offset_size > sec_size) in initial_offset()
770 if (loc_base_off > (sec_size - offset_size)) in initial_offset()
773 size_t max_idx = (sec_size - offset_size - loc_base_off) / offset_size; in initial_offset()