Searched refs:nr_sec (Results 1 – 5 of 5) sorted by relevance
/system/vold/ |
D | MetadataCrypt.cpp | 175 static bool get_number_of_sectors(const std::string& real_blkdev, uint64_t* nr_sec) { in get_number_of_sectors() argument 176 if (android::vold::GetBlockDev512Sectors(real_blkdev, nr_sec) != android::OK) { in get_number_of_sectors() 185 std::string* crypto_blkdev, uint64_t* nr_sec) { in create_crypto_blk_dev() argument 186 if (!get_number_of_sectors(blk_device, nr_sec)) return false; in create_crypto_blk_dev() 189 *nr_sec &= ~7; in create_crypto_blk_dev() 208 auto target = std::make_unique<DmTargetDefaultKey>(0, *nr_sec, options.cipher.get_kernel_name(), in create_crypto_blk_dev() 317 uint64_t nr_sec; in fscrypt_mount_metadata_encrypted() local 318 if (!create_crypto_blk_dev(kDmNameUserdata, blk_device, key, options, &crypto_blkdev, &nr_sec)) in fscrypt_mount_metadata_encrypted() 323 LOG(INFO) << "Beginning inplace encryption, nr_sec: " << nr_sec; in fscrypt_mount_metadata_encrypted() 325 auto rc = cryptfs_enable_inplace(crypto_blkdev.data(), blk_device.data(), nr_sec, in fscrypt_mount_metadata_encrypted() [all …]
|
D | cryptfs.cpp | 1871 uint64_t nr_sec = 0; in cryptfs_setup_ext_volume() local 1872 if (android::vold::GetBlockDev512Sectors(real_blkdev, &nr_sec) != android::OK) { in cryptfs_setup_ext_volume() 1879 ext_crypt_ftr.fs_size = nr_sec; in cryptfs_setup_ext_volume() 2172 uint64_t nr_sec; in cryptfs_enable_internal() local 2173 if (android::vold::GetBlockDev512Sectors(real_blkdev, &nr_sec) != android::OK) { in cryptfs_enable_internal() 2184 max_fs_size_sec = nr_sec - (CRYPT_FOOTER_OFFSET / CRYPT_SECTOR_SIZE); in cryptfs_enable_internal() 2257 crypt_ftr.fs_size = nr_sec - (CRYPT_FOOTER_OFFSET / CRYPT_SECTOR_SIZE); in cryptfs_enable_internal() 2259 crypt_ftr.fs_size = nr_sec; in cryptfs_enable_internal()
|
D | Utils.h | 89 status_t GetBlockDev512Sectors(const std::string& path, uint64_t* nr_sec);
|
D | Utils.cpp | 545 status_t GetBlockDev512Sectors(const std::string& path, uint64_t* nr_sec) { in GetBlockDev512Sectors() argument 553 *nr_sec = size / 512; in GetBlockDev512Sectors()
|
/system/vold/model/ |
D | ObbVolume.cpp | 60 uint64_t nr_sec = 0; in doCreate() local 61 if (GetBlockDev512Sectors(mLoopPath, &nr_sec) != OK) { in doCreate() 67 if (Devmapper::create(getId().c_str(), mLoopPath.c_str(), mSourceKey.c_str(), nr_sec, tmp, in doCreate()
|