Lines Matching refs:devName
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()
370 part->devName = partName; in NewPartition()
372 part->devName = strdevname; in NewPartition()
374 std::string strpartname = ReadPartitionFromSys(devName, partName, "uevent", "PARTNAME="); in NewPartition()