Home
last modified time | relevance | path

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

/ohos5.0/drivers/hdf_core/interfaces/inner_api/hdi/base/
H A Dhdi_smq.h360 auto memzone = meta_->GetMemZone(zoneType); in MapMemZone() local
361 if (memzone == nullptr) { in MapMemZone()
366 int offset = (static_cast<int>(memzone->offset) / PAGE_SIZE) * PAGE_SIZE; in MapMemZone()
367 int length = static_cast<int>(memzone->offset) - offset + static_cast<int>(memzone->size); in MapMemZone()
376 return (reinterpret_cast<uintptr_t>(ptr) + (static_cast<int>(memzone->offset) - offset)); in MapMemZone()
382 auto memzone = meta_->GetMemZone(zoneType); in UnMapMemZone() local
383 if (memzone == nullptr) { in UnMapMemZone()
386 int offset = (static_cast<int>(memzone->offset) / PAGE_SIZE) * PAGE_SIZE; in UnMapMemZone()
387 int length = static_cast<int>(memzone->offset) - offset + static_cast<int>(memzone->size); in UnMapMemZone()
388 uint8_t *ptr = reinterpret_cast<uint8_t *>(addr) - (static_cast<int>(memzone->offset) - offset); in UnMapMemZone()
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/test/smq_test/
H A Dsmq_test.cpp320 auto memzone = meta_->GetMemZone(zoneType); in MapMemZone() local
321 if (memzone == nullptr) { in MapMemZone()
326 int offset = (static_cast<int>(memzone->offset) / PAGE_SIZE) * PAGE_SIZE; in MapMemZone()
327 int length = static_cast<int>(memzone->offset) - offset + static_cast<int>(memzone->size); in MapMemZone()
338 return (reinterpret_cast<uintptr_t>(ptr) + (static_cast<int>(memzone->offset) - offset)); in MapMemZone()