/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/ |
D | fs_dm.c | 52 static int InitDmIo(struct dm_ioctl *io, const char *devName) in InitDmIo() argument 68 if (devName == NULL) { in InitDmIo() 72 err = strcpy_s(io->name, sizeof(io->name), devName); in InitDmIo() 81 static int CreateDmDevice(int fd, const char *devName) in CreateDmDevice() argument 86 rc = InitDmIo(&io, devName); in CreateDmDevice() 93 BEGET_LOGE("error, DM_DEV_CREATE failed for %s, ret=%d", devName, rc); in CreateDmDevice() 100 static int LoadDmDeviceTable(int fd, const char *devName, in LoadDmDeviceTable() argument 126 rc = InitDmIo(io, devName); in LoadDmDeviceTable() 159 BEGET_LOGE("error 0x%x, DM_TABLE_LOAD failed for %s", rc, devName); in LoadDmDeviceTable() 169 static int ActiveDmDevice(int fd, const char *devName) in ActiveDmDevice() argument [all …]
|
/base/update/updater/services/flashd/ |
D | partition.h | 26 explicit Partition(const std::string &devName) : devName_(devName) {} in Partition() argument 27 Partition(const std::string &devName, std::unique_ptr<FlashdWriter> writer) : devName_(devName), in Partition() argument
|
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/ |
D | fs_hvb.c | 206 static int FsHvbGetCert(struct hvb_cert *cert, char *devName, struct hvb_verified_data *vd) in FsHvbGetCert() argument 209 size_t devNameLen = strlen(devName); in FsHvbGetCert() 218 if (memcmp(p->partition_name, devName, devNameLen) == 0) { in FsHvbGetCert() 224 BEGET_LOGE("error, can't found %s partition", devName); in FsHvbGetCert() 366 static int FsHvbConstructVerityTarget(DmVerityTarget *target, char *devName, struct hvb_cert *cert) in FsHvbConstructVerityTarget() argument 381 …evPath[0], sizeof(devPath), sizeof(devPath) - 1, "%s%s", FS_HVB_PARTITION_PREFIX, devName) == -1) { in FsHvbConstructVerityTarget() 427 static int FsHvbCreateVerityTarget(DmVerityTarget *target, char *devName, struct hvb_verified_data … in FsHvbCreateVerityTarget() argument 432 rc = FsHvbGetCert(&cert, devName, vd); in FsHvbCreateVerityTarget() 437 rc = FsHvbConstructVerityTarget(target, devName, &cert); in FsHvbCreateVerityTarget() 459 char *devName = NULL; in FsHvbSetupHashtree() local [all …]
|
/base/startup/init/ueventd/ |
D | ueventd_device_handler.c | 368 const char *devName = NULL; in GetDeviceName() local 376 devName = basename((char *)deviceName); in GetDeviceName() 383 devName = basename(sysPath); in GetDeviceName() 385 devName = p; in GetDeviceName() 390 devName = basename(sysPath); in GetDeviceName() 392 return devName; in GetDeviceName() 452 const char *devName = GetDeviceName(sysPath, uevent->deviceName); in HandleBlockDeviceEvent() local 454 if (devPath == NULL || devName == NULL) { in HandleBlockDeviceEvent() 458 …if (snprintf_s(deviceNode, DEVICE_FILE_SIZE, DEVICE_FILE_SIZE - 1, "%s/%s", devPath, devName) == -… in HandleBlockDeviceEvent() 482 const char *devName = GetDeviceName(sysPath, uevent->deviceName); in HandleOtherDeviceEvent() local [all …]
|
/base/update/updater/services/fs_manager/ |
D | partitions.cpp | 218 const std::string devName = LastComponent(dev.devPath); in InitGeneric() local 219 std::string partSize = ReadPartitionFromSys(devName, "", "size", ""); in InitGeneric() 341 const std::string devName = LastComponent(dev.devPath); in NewPartition() local 343 if (devName == MMC_DEV) { in NewPartition() 344 …if (snprintf_s(partName, sizeof(partName), sizeof(partName) - 1, "%sp%d", devName.c_str(), partn) … in NewPartition() 349 if (devName != MMC_DEV && ((devName == SDA_DEV) || (devName == SDB_DEV)) && in NewPartition() 350 …snprintf_s(partName, sizeof(partName), sizeof(partName) - 1, "%s%d", devName.c_str(), partn) == -1… in NewPartition() 355 std::string strstart = ReadPartitionFromSys(devName, partName, "start", ""); in NewPartition() 362 std::string strsize = ReadPartitionFromSys(devName, partName, "size", ""); in NewPartition() 369 std::string strdevname = ReadPartitionFromSys(devName, partName, "uevent", "DEVNAME="); in NewPartition() [all …]
|
D | do_partition.cpp | 152 …if (strncpy_s(blkPart.devname, BLKPG_DEVNAMELTH, part.devName.c_str(), part.devName.size()) != EOK… in BlkpgAddPartition() 270 p2->devName.clear(); in AddPartitions() 271 p2->devName = pdevname; in AddPartitions()
|
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/include/ |
D | fs_dm.h | 38 int FsDmCreateDevice(char **dmDevPath, const char *devName, DmVerityTarget *target);
|
/base/update/updater/test/fuzztest/dopartitions_fuzzer/ |
D | dopartitions_fuzzer.cpp | 38 part.devName = "mmcblk0px"; in InitEmmcPartition()
|
/base/update/updater/services/ui/driver/ |
D | drm_driver.cpp | 216 std::string devName = std::string("/dev/dri/card") + std::to_string(devIndex); in GetOneResources() local 217 int tmpFd = open(devName.c_str(), O_RDWR | O_CLOEXEC); in GetOneResources() 219 LOG(ERROR) << "open failed " << devName; in GetOneResources() 244 LOG(INFO) << "drm dev:" << devName; in GetOneResources()
|
/base/update/updater/services/updater_binary/ |
D | update_partitions.cpp | 62 myPartition->devName = "mmcblk0px"; in ParsePartitionInfo() 73 …(INFO) << myPartition->start << " " << myPartition->length << " " << myPartition->devName << " " << in ParsePartitionInfo()
|
/base/update/updater/services/include/fs_manager/ |
D | partitions.h | 87 std::string devName; member
|
/base/update/updater/test/unittest/fs_manager/ |
D | do_partition_unittest.cpp | 74 part.devName = "mmcblk0px"; in InitEmmcPartition()
|
/base/update/updater/test/unittest/test_data/applypatch/ |
D | TestGZipModeImagePatch.old.gz |
|