Home
last modified time | relevance | path

Searched refs:Volume (Results 1 – 20 of 20) sorted by relevance

/system/utest/zxcrypt/
A Dvolume.cpp53 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 Dzxcrypt.cpp31 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 Dtest-device.h26 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 Dtest-device.cpp112 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 Dvolume.cpp53 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 Dvolume.h44 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 Dvolume.h30 class Volume {
39 Volume() {} in Volume() function
40 virtual ~Volume() {} in ~Volume()
78 class VolumeImpl : public Volume {
A Dndm-driver.h13 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 Dblock_device.h51 void SetVolumeForTest(std::unique_ptr<ftl::Volume> volume) { in SetVolumeForTest()
64 std::unique_ptr<ftl::Volume> volume_;
A Dnand_driver.cpp29 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 Ddevice.cpp40 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 Dworker.h40 zx_status_t Start(Device* device, const Volume& volume, zx::port&& port);
A Dworker.cpp47 zx_status_t Worker::Start(Device* device, const Volume& volume, zx::port&& port) { in Start()
/system/dev/block/ftl/test/
A Dftl-shell.h21 ftl::Volume* volume() { return &volume_; } in volume()
A Dndm-ram-driver.h25 const char* Attach(const ftl::Volume* ftl_volume) final;
A Dblock_device_test.cpp20 class FakeVolume : public ftl::Volume {
A Dftl-test.cpp170 ftl::Volume::Stats stats; in StatsTest()
210 ftl::Volume* volume_ = nullptr;
A Dndm-ram-driver.cpp42 const char* NdmRamDriver::Attach(const ftl::Volume* ftl_volume) { in Attach()
/system/ulib/ftl/ftln/
A Dndm-driver.cpp103 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 Dpave-lib.cpp482 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()

Completed in 30 milliseconds