Home
last modified time | relevance | path

Searched refs:nr_sec (Results 1 – 7 of 7) sorted by relevance

/system/vold/
DMetadataCrypt.cpp130 static bool get_number_of_sectors(const std::string& real_blkdev, uint64_t* nr_sec) { in get_number_of_sectors() argument
131 if (android::vold::GetBlockDev512Sectors(real_blkdev, nr_sec) != android::OK) { in get_number_of_sectors()
140 std::string* crypto_blkdev, uint64_t* nr_sec) { in create_crypto_blk_dev() argument
141 if (!get_number_of_sectors(blk_device, nr_sec)) return false; in create_crypto_blk_dev()
144 *nr_sec &= ~7; in create_crypto_blk_dev()
163 auto target = std::make_unique<DmTargetDefaultKey>(0, *nr_sec, options.cipher.get_kernel_name(), in create_crypto_blk_dev()
262 uint64_t nr_sec; in fscrypt_mount_metadata_encrypted() local
263 if (!create_crypto_blk_dev(kDmNameUserdata, blk_device, key, options, &crypto_blkdev, &nr_sec)) in fscrypt_mount_metadata_encrypted()
281 if (!encrypt_inplace(crypto_blkdev, blk_device, nr_sec, false)) return false; in fscrypt_mount_metadata_encrypted()
313 uint64_t nr_sec; in defaultkey_setup_ext_volume() local
[all …]
DEncryptInplace.cpp46 uint64_t nr_sec, bool set_progress_properties);
316 const std::string& real_blkdev, uint64_t nr_sec, in EncryptInPlace() argument
322 nr_sec_ = nr_sec; in EncryptInPlace()
374 uint64_t nr_sec, bool set_progress_properties) { in encrypt_inplace() argument
375 LOG(DEBUG) << "encrypt_inplace(" << crypto_blkdev << ", " << real_blkdev << ", " << nr_sec in encrypt_inplace()
379 return encrypter.EncryptInPlace(crypto_blkdev, real_blkdev, nr_sec, set_progress_properties); in encrypt_inplace()
DEncryptInplace.h24 uint64_t nr_sec, bool set_progress_properties);
Dcryptfs.cpp1964 uint64_t nr_sec = 0; in cryptfs_setup_ext_volume() local
1965 if (android::vold::GetBlockDev512Sectors(real_blkdev, &nr_sec) != android::OK) { in cryptfs_setup_ext_volume()
1972 ext_crypt_ftr.fs_size = nr_sec; in cryptfs_setup_ext_volume()
2192 uint64_t nr_sec; in cryptfs_enable_internal() local
2193 if (android::vold::GetBlockDev512Sectors(real_blkdev, &nr_sec) != android::OK) { in cryptfs_enable_internal()
2204 max_fs_size_sec = nr_sec - (CRYPT_FOOTER_OFFSET / CRYPT_SECTOR_SIZE); in cryptfs_enable_internal()
2270 crypt_ftr.fs_size = nr_sec - (CRYPT_FOOTER_OFFSET / CRYPT_SECTOR_SIZE); in cryptfs_enable_internal()
2272 crypt_ftr.fs_size = nr_sec; in cryptfs_enable_internal()
DUtils.h116 status_t GetBlockDev512Sectors(const std::string& path, uint64_t* nr_sec);
DUtils.cpp905 status_t GetBlockDev512Sectors(const std::string& path, uint64_t* nr_sec) { in GetBlockDev512Sectors() argument
913 *nr_sec = size / 512; in GetBlockDev512Sectors()
/system/vold/model/
DObbVolume.cpp60 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()