Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/
Dbuddy.cc325 rel_addr_t ask_addr = 0; in AllocBuddySeg() local
335 ask_addr = hint_[i]; in AllocBuddySeg()
336 while (ask_addr < max_addr && !found) { in AllocBuddySeg()
337 GetBuddySegState(ask_addr, &sz, &st); in AllocBuddySeg()
342 ask_addr += ((sz > blk_sz) ? sz : blk_sz); in AllocBuddySeg()
348 TrimBuddySeg(ask_addr, sz, req_size); in AllocBuddySeg()
350 SetBuddySegState(ask_addr, sz, STATE::kAlloc); in AllocBuddySeg()
351 hint_[start_inx] = ask_addr; in AllocBuddySeg()
353 return ask_addr; in AllocBuddySeg()