Lines Matching refs:nr_sec
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()
326 &size_already_done, nr_sec, 0, false); in fscrypt_mount_metadata_encrypted()
331 if (static_cast<uint64_t>(size_already_done) != nr_sec) { in fscrypt_mount_metadata_encrypted()
366 uint64_t nr_sec; in defaultkey_setup_ext_volume() local
367 return create_crypto_blk_dev(label, blk_device, key, options, out_crypto_blkdev, &nr_sec); in defaultkey_setup_ext_volume()