Lines Matching defs:hashVal
29 int32_t UsbDdkHash(const InterfaceInfo &info, uint64_t &hashVal)
37 hashVal = static_cast<uint64_t>(std::hash<uint64_t> {}(info.addr));
38 g_hashMap.emplace(hashVal, info);
42 int32_t UsbDdkUnHash(uint64_t hashVal, uint64_t &addr)
45 if (auto ret = g_hashMap.find(hashVal); ret == g_hashMap.end()) {
48 auto mappedVal = g_hashMap[hashVal];
53 void UsbDdkDelHashRecord(uint64_t hashVal)
56 g_hashMap.erase(hashVal);
59 bool UsbDdkGetRecordByVal(const InterfaceInfo &info, uint64_t &hashVal)
64 hashVal = it->first;