Home
last modified time | relevance | path

Searched refs:hashVal (Results 1 – 2 of 2) sorted by relevance

/drivers/peripheral/usb/ddk_service/src/
Dusb_ddk_hash.cpp28 int32_t UsbDdkHash(const InterfaceInfo &info, uint64_t &hashVal) in UsbDdkHash() argument
36 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() argument
44 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() argument
55 g_hashMap.erase(hashVal); in UsbDdkDelHashRecord()
/drivers/peripheral/usb/ddk_service/include/
Dusb_ddk_hash.h25 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);