Searched refs:rel_addr_t (Results 1 – 2 of 2) sorted by relevance
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/ |
D | buddy.h | 28 using rel_addr_t = int32_t; variable 39 rel_addr_t addr; 90 rel_addr_t *hint_; 110 void GetBuddySegState(const rel_addr_t rel_addr, size_t *rel_sz, STATE *st) const; 112 void SetBuddySegState(rel_addr_t rel_addr, size_t rel_sz, STATE st); 114 void JoinBuddySeg(rel_addr_t addr, size_t blk_sz); 116 void TrimBuddySeg(rel_addr_t addr, size_t blk_sz, size_t ask_sz); 118 void UnTrimBuddySeg(rel_addr_t addr, size_t blk_sz, size_t ask_sz); 120 rel_addr_t AllocBuddySeg(uint32_t req_size) noexcept; 122 void FreeBuddySeg(rel_addr_t addr, size_t blk_size, size_t req_size);
|
D | buddy.cc | 49 size_t offset_1 = sizeof(rel_addr_t) * num_lvl_; in Init() 59 hint_ = reinterpret_cast<rel_addr_t *>(ptr); in Init() 83 rel_addr_t rel_addr = AllocBuddySeg(reqSize); in AllocNoLock() 84 if (rel_addr != static_cast<rel_addr_t>(NOSPACE)) { in AllocNoLock() 98 rel_addr_t rel_addr = desc->addr; in FreeNoLock() 130 auto max_addr = static_cast<rel_addr_t>(BitLeftShift(1, s.num_lvl_ - 1)); in operator <<() 131 rel_addr_t addr = 0; in operator <<() 156 void BuddySpace::GetBuddySegState(const rel_addr_t rel_addr, size_t *rel_sz, STATE *st) const { in GetBuddySegState() 200 void BuddySpace::SetBuddySegState(rel_addr_t rel_addr, size_t rel_sz, STATE st) { in SetBuddySegState() 245 void BuddySpace::JoinBuddySeg(rel_addr_t addr, size_t blk_sz) { in JoinBuddySeg() [all …]
|