/system/core/libdiskconfig/ |
config_mbr.c | 56 kb_to_lba(uint32_t len_kb, uint32_t sect_size) 62 lba = (lba + (uint64_t)sect_size - 1) & ~((uint64_t)sect_size - 1); 63 lba /= (uint64_t)sect_size; 104 len_lba += ((uint64_t)dinfo->sect_size - 1); 105 len_lba &= ~((uint64_t)dinfo->sect_size - 1); 106 len_lba /= (uint64_t)dinfo->sect_size; 155 item->offset = ((loff_t)(*lba)) * dinfo->sect_size; 163 len = kb_to_lba(pinfo->len_kb, dinfo->sect_size); 174 (uint32_t)(((uint64_t)len * (uint64_t)dinfo->sect_size) / [all...] |
diskconfig.c | 196 dinfo->sect_size = strtol(tmp, NULL, 0); 197 if (!dinfo->sect_size) { 307 if (!sect_sz || sect_sz != dinfo->sect_size) { 319 dinfo->num_lba = (uint32_t)(disk_size / (uint64_t)dinfo->sect_size); 321 disk_size = (uint64_t)dinfo->num_lba * (uint64_t)dinfo->sect_size; 324 if (!dinfo->sect_size) { 329 disk_size = (uint64_t)dinfo->num_lba * (uint64_t)dinfo->sect_size; 331 dinfo->num_lba = (uint32_t)(stat.st_size / dinfo->sect_size); 340 ALOGV("Device/file %s: size=%" PRIu64 " bytes, num_lba=%u, sect_size=%d", 341 dinfo->device, disk_size, dinfo->num_lba, dinfo->sect_size); [all...] |
/system/core/include/diskconfig/ |
diskconfig.h | 92 int sect_size; /* expected sector size in bytes. MUST BE POWER OF 2 */ member in struct:disk_info
|
/toolchain/binutils/binutils-2.25/gold/ |
dwp.cc | 624 uint64_t addr, off_t offset, section_size_type sect_size, 631 uint64_t addr, off_t offset, section_size_type sect_size, [all...] |
/external/llvm/tools/llvm-objdump/ |
MachODump.cpp | 612 uint32_t sect_size, uint64_t sect_addr, 614 for (uint32_t i = 0; i < sect_size; i++) { 621 for (; i < sect_size && sect[i] != '\0'; i++) 623 if (i < sect_size && sect[i] == '\0') 645 uint32_t sect_size, uint64_t sect_addr, 647 for (uint32_t i = 0; i < sect_size; i += sizeof(float)) { 689 uint32_t sect_size, uint64_t sect_addr, 691 for (uint32_t i = 0; i < sect_size; i += sizeof(double)) { 721 uint32_t sect_size, uint64_t sect_addr, 723 for (uint32_t i = 0; i < sect_size; i += 16) 1033 uint32_t sect_size = BytesStr.size(); local [all...] |
/system/vold/ |
Disk.cpp | 408 dinfo.sect_size = 512;
|
/toolchain/binutils/binutils-2.25/gas/config/ |
obj-macho.c | 1765 bfd_vma sect_size = bfd_section_size (abfd, sec); local [all...] |