Searched refs:hashVal (Results 1 – 2 of 2) sorted by relevance
28 int32_t UsbDdkHash(const InterfaceInfo &info, uint64_t &hashVal) in UsbDdkHash() argument36 hashVal = static_cast<uint64_t>(std::hash<uint64_t> {}(info.addr)); in UsbDdkHash()37 g_hashMap.emplace(hashVal, info); in UsbDdkHash()41 int32_t UsbDdkUnHash(uint64_t hashVal, uint64_t &addr) in UsbDdkUnHash() argument44 if (auto ret = g_hashMap.find(hashVal); ret == g_hashMap.end()) { in UsbDdkUnHash()47 auto mappedVal = g_hashMap[hashVal]; in UsbDdkUnHash()52 void UsbDdkDelHashRecord(uint64_t hashVal) in UsbDdkDelHashRecord() argument55 g_hashMap.erase(hashVal); in UsbDdkDelHashRecord()
25 int32_t UsbDdkHash(const InterfaceInfo &info, uint64_t &hashVal);26 int32_t UsbDdkUnHash(uint64_t hashVal, uint64_t &addr);27 void UsbDdkDelHashRecord(uint64_t hashVal);