Home
last modified time | relevance | path

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

/system/core/libdiskconfig/
Dconfig_mbr.c57 uint64_t lba; in kb_to_lba() local
59 lba = (uint64_t)len_kb * 1024; in kb_to_lba()
61 lba = (lba + (uint64_t)sect_size - 1) & ~((uint64_t)sect_size - 1); in kb_to_lba()
62 lba /= (uint64_t)sect_size; in kb_to_lba()
63 if (lba >= 0xffffffffULL) in kb_to_lba()
65 return (uint32_t)(lba & 0xffffffffULL); in kb_to_lba()
71 uint32_t *lba) in mk_pri_pentry() argument
108 len_lba = dinfo->num_lba - *lba; in mk_pri_pentry()
113 pinfo->type, *lba, (uint32_t)len_lba); in mk_pri_pentry()
115 pinfo->start_lba = *lba; in mk_pri_pentry()
[all …]
/system/core/fs_mgr/liblp/
Dbuilder_test.cpp232 uint64_t lba = extent.target_data * LP_SECTOR_SIZE; in TEST_F() local
233 ASSERT_TRUE(AlignTo(lba, device_info.alignment, &aligned_lba)); in TEST_F()
234 EXPECT_EQ(lba, aligned_lba); in TEST_F()
Dbuilder.cpp990 uint64_t lba = sector * LP_SECTOR_SIZE; in AlignSector() local
991 if (!AlignTo(lba, block_device.alignment, out)) { in AlignSector()