| /system/utest/zxcrypt/ |
| A D | volume.cpp | 53 bool TestInit(Volume::Version version, bool fvm) { in TestInit() 61 fbl::unique_ptr<Volume> volume; in TestInit() 75 bool TestCreate(Volume::Version version, bool fvm) { in TestCreate() 97 bool TestUnlock(Volume::Version version, bool fvm) { in TestUnlock() 104 fbl::unique_ptr<Volume> volume; in TestUnlock() 164 bool TestEnroll(Volume::Version version, bool fvm) { in TestEnroll() 169 fbl::unique_ptr<Volume> volume; in TestEnroll() 191 bool TestRevoke(Volume::Version version, bool fvm) { in TestRevoke() 197 fbl::unique_ptr<Volume> volume; in TestRevoke() 215 bool TestShred(Volume::Version version, bool fvm) { in TestShred() [all …]
|
| A D | zxcrypt.cpp | 31 bool TestBind(Volume::Version version, bool fvm) { in TestBind() 44 bool TestDdkGetSize(Volume::Version version, bool fvm) { in TestDdkGetSize() 65 bool TestBlockGetInfo(Volume::Version version, bool fvm) { in TestBlockGetInfo() 86 bool TestBlockFvmQuery(Volume::Version version, bool fvm) { in TestBlockFvmQuery() 178 bool TestFdZeroLength(Volume::Version version, bool fvm) { in TestFdZeroLength() 205 bool TestFdLastBlock(Volume::Version version, bool fvm) { in TestFdLastBlock() 220 bool TestFdAllBlocks(Volume::Version version, bool fvm) { in TestFdAllBlocks() 234 bool TestFdUnaligned(Volume::Version version, bool fvm) { in TestFdUnaligned() 311 bool TestFdOneToMany(Volume::Version version, bool fvm) { in TestFdOneToMany() 465 bool TestVmoStall(Volume::Version version, bool fvm) { in TestVmoStall() [all …]
|
| A D | test-device.h | 26 bool Test##Raw(Volume::Version version) { return Test(version, false /* not FVM */); } \ 28 bool Test##Fvm(Volume::Version version) { return Test(version, true /* FVM */); } \ 130 bool Bind(Volume::Version version, bool fvm); 194 fbl::unique_ptr<Volume> volume_;
|
| A D | test-device.cpp | 112 case Volume::kAES256_XTS_SHA256: in Create() 135 bool TestDevice::Bind(Volume::Version version, bool fvm) { in Bind() 138 ASSERT_OK(Volume::Create(parent(), key_)); in Bind() 276 fbl::unique_ptr<Volume> volume; in Corrupt() 277 ASSERT_OK(Volume::Unlock(parent(), key_, 0, &volume)); in Corrupt() 369 ASSERT_OK(Volume::Unlock(parent(), key_, 0, &volume_)); in Connect()
|
| /system/ulib/zxcrypt/ |
| A D | volume.cpp | 53 const Volume::Version Volume::kDefaultVersion = Volume::kAES256_XTS_SHA256; 153 Volume::Volume(fbl::unique_fd&& fd) { in Volume() function in zxcrypt::Volume 159 Volume::Volume(zx_device_t* dev) { in Volume() function in zxcrypt::Volume 164 Volume::~Volume() {} in ~Volume() 166 void Volume::Reset() { in Reset() 184 zx_status_t Volume::Init(fbl::unique_fd fd, fbl::unique_ptr<Volume>* out) { in Init() 193 fbl::unique_ptr<Volume> volume(new (&ac) Volume(std::move(fd))); in Init() 247 fbl::unique_ptr<Volume> volume(new (&ac) Volume(dev)); in Unlock() 404 zx_status_t Volume::Init() { in Init() 473 zx_status_t Volume::Configure(Volume::Version version) { in Configure() [all …]
|
| /system/ulib/zxcrypt/include/zxcrypt/ |
| A D | volume.h | 44 class Volume final { 60 explicit Volume(fbl::unique_fd&& fd); 61 explicit Volume(zx_device_t* dev); 62 ~Volume(); 63 DISALLOW_COPY_ASSIGN_AND_MOVE(Volume); 72 static zx_status_t Init(fbl::unique_fd fd, fbl::unique_ptr<Volume>* out = nullptr); 78 fbl::unique_ptr<Volume>* out = nullptr); 84 fbl::unique_ptr<Volume>* out); 89 fbl::unique_ptr<Volume>* out);
|
| /system/ulib/ftl/include/lib/ftl/ |
| A D | volume.h | 30 class Volume { 39 Volume() {} in Volume() function 40 virtual ~Volume() {} in ~Volume() 78 class VolumeImpl : public Volume {
|
| A D | ndm-driver.h | 13 class Volume; variable 47 virtual const char* Attach(const Volume* ftl_volume) = 0; 86 const char* CreateNdmVolume(const Volume* ftl_volume, const VolumeOptions& options);
|
| /system/dev/block/ftl/ |
| A D | block_device.h | 51 void SetVolumeForTest(std::unique_ptr<ftl::Volume> volume) { in SetVolumeForTest() 64 std::unique_ptr<ftl::Volume> volume_;
|
| A D | nand_driver.cpp | 29 const char* Attach(const ftl::Volume* ftl_volume) final; 64 const char* NandDriverImpl::Attach(const ftl::Volume* ftl_volume) { in Attach()
|
| /system/dev/block/zxcrypt/ |
| A D | device.cpp | 40 const uint32_t kMaxTransferSize = Volume::kBufferSize / 4; 123 fbl::unique_ptr<Volume> volume; in Init() 124 if ((rc = Volume::Unlock(parent(), root_key, 0, &volume)) != ZX_OK) { in Init() 144 if ((rc = zx::vmo::create(Volume::kBufferSize, 0, &info->vmo)) != ZX_OK) { in Init() 150 if ((rc = zx::vmar::root_self()->map(0, info->vmo, 0, Volume::kBufferSize, flags, &address)) != in Init() 158 if ((rc = map_.Reset(Volume::kBufferSize / info->block_size)) != ZX_OK) { in Init() 319 (rc = zx::vmar::root_self()->unmap(address, Volume::kBufferSize)) != ZX_OK) { in DdkRelease() 320 zxlogf(WARN, "failed to unmap %" PRIu32 " bytes at %" PRIuPTR ": %s\n", Volume::kBufferSize, in DdkRelease()
|
| A D | worker.h | 40 zx_status_t Start(Device* device, const Volume& volume, zx::port&& port);
|
| A D | worker.cpp | 47 zx_status_t Worker::Start(Device* device, const Volume& volume, zx::port&& port) { in Start()
|
| /system/dev/block/ftl/test/ |
| A D | ftl-shell.h | 21 ftl::Volume* volume() { return &volume_; } in volume()
|
| A D | ndm-ram-driver.h | 25 const char* Attach(const ftl::Volume* ftl_volume) final;
|
| A D | block_device_test.cpp | 20 class FakeVolume : public ftl::Volume {
|
| A D | ftl-test.cpp | 170 ftl::Volume::Stats stats; in StatsTest() 210 ftl::Volume* volume_ = nullptr;
|
| A D | ndm-ram-driver.cpp | 42 const char* NdmRamDriver::Attach(const ftl::Volume* ftl_volume) { in Attach()
|
| /system/ulib/ftl/ftln/ |
| A D | ndm-driver.cpp | 103 const char* NdmBaseDriver::CreateNdmVolume(const Volume* ftl_volume, const VolumeOptions& options) { in CreateNdmVolume() 147 xfs.ftl_volume = const_cast<Volume*>(ftl_volume); in CreateNdmVolume()
|
| /system/uapp/disk-pave/ |
| A D | pave-lib.cpp | 482 fbl::unique_ptr<zxcrypt::Volume> volume; in ZxcryptCreate() 483 if ((status = zxcrypt::Volume::Create(std::move(part->new_part), key, &volume)) != ZX_OK || in ZxcryptCreate()
|