Home
last modified time | relevance | path

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

/drivers/peripheral/usb/ddk_service/src/
H A Dusb_ddk_hash.cpp29 int32_t UsbDdkHash(const InterfaceInfo &info, uint64_t &hashVal) in UsbDdkHash() argument
37 hashVal = static_cast<uint64_t>(std::hash<uint64_t> {}(info.addr)); in UsbDdkHash()
38 g_hashMap.emplace(hashVal, info); in UsbDdkHash()
42 int32_t UsbDdkUnHash(uint64_t hashVal, uint64_t &addr) in UsbDdkUnHash() argument
45 if (auto ret = g_hashMap.find(hashVal); ret == g_hashMap.end()) { in UsbDdkUnHash()
48 auto mappedVal = g_hashMap[hashVal]; in UsbDdkUnHash()
53 void UsbDdkDelHashRecord(uint64_t hashVal) in UsbDdkDelHashRecord() argument
56 g_hashMap.erase(hashVal); in UsbDdkDelHashRecord()
59 bool UsbDdkGetRecordByVal(const InterfaceInfo &info, uint64_t &hashVal) in UsbDdkGetRecordByVal() argument
64 hashVal in UsbDdkGetRecordByVal()
[all...]
/drivers/peripheral/usb/ddk_service/include/
H A 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);
28 bool UsbDdkGetRecordByVal(const InterfaceInfo &info, uint64_t &hashVal);

Completed in 1 milliseconds