Searched refs:nr_sec (Results 1 - 6 of 6) sorted by relevance
/system/vold/ |
H A D | VoldUtil.cpp | 22 void get_blkdev_size(int fd, unsigned long* nr_sec) { argument 23 if ((ioctl(fd, BLKGETSIZE, nr_sec)) == -1) { 24 *nr_sec = 0;
|
H A D | VoldUtil.h | 27 void get_blkdev_size(int fd, unsigned long* nr_sec);
|
H A D | MetadataCrypt.cpp | 102 static bool get_number_of_sectors(const std::string& real_blkdev, uint64_t *nr_sec) { argument 116 *nr_sec = res; 139 static bool create_crypto_blk_dev(const std::string& dm_name, uint64_t nr_sec, argument 178 tgt->length = nr_sec; 220 uint64_t nr_sec; 221 if (!get_number_of_sectors(data_rec->blk_device, &nr_sec)) return false; 223 if (!create_crypto_blk_dev(kDmNameUserdata, nr_sec, DEFAULT_KEY_TARGET_TYPE, 228 LOG(INFO) << "Beginning inplace encryption, nr_sec: " << nr_sec; 232 nr_sec, [all...] |
H A D | cryptfs.cpp | 462 unsigned long nr_sec = 0; local 463 get_blkdev_size(fd, &nr_sec); 464 if (nr_sec != 0) { 470 cached_off = ((off64_t)nr_sec * 512) - CRYPT_FOOTER_OFFSET; 1888 unsigned long nr_sec = 0; local 1889 get_blkdev_size(fd, &nr_sec); 1892 if (nr_sec == 0) { 1899 ext_crypt_ftr.fs_size = nr_sec; 2212 unsigned long nr_sec; local 2213 get_blkdev_size(fd, &nr_sec); [all...] |
H A D | Utils.cpp | 566 unsigned long nr_sec = 0; local 575 if ((ioctl(fd, BLKGETSIZE, &nr_sec)) == -1) { 581 range[1] = (unsigned long long) nr_sec * 512;
|
/system/vold/model/ |
H A D | ObbVolume.cpp | 62 unsigned long nr_sec = 0; local 70 get_blkdev_size(loop_fd.get(), &nr_sec); 71 if (nr_sec == 0) { 78 if (Devmapper::create(getId().c_str(), mLoopPath.c_str(), mSourceKey.c_str(), nr_sec,
|
Completed in 75 milliseconds