• Home
  • Raw
  • Download

Lines Matching refs:cpos

102 	int val1, val2, val3, cpos;  in adjust_lpt_heap()  local
132 cpos = hpos * 2 + 1; in adjust_lpt_heap()
133 if (cpos >= heap->cnt) in adjust_lpt_heap()
135 val2 = get_heap_comp_val(heap->arr[cpos], cat); in adjust_lpt_heap()
138 if (cpos + 1 < heap->cnt) { in adjust_lpt_heap()
139 val3 = get_heap_comp_val(heap->arr[cpos + 1], in adjust_lpt_heap()
142 cpos += 1; /* Right child is bigger */ in adjust_lpt_heap()
144 heap->arr[cpos]->hpos = hpos; in adjust_lpt_heap()
145 heap->arr[hpos] = heap->arr[cpos]; in adjust_lpt_heap()
146 heap->arr[cpos] = lprops; in adjust_lpt_heap()
147 lprops->hpos = cpos; in adjust_lpt_heap()
148 hpos = cpos; in adjust_lpt_heap()
152 cpos += 1; in adjust_lpt_heap()
153 if (cpos >= heap->cnt) in adjust_lpt_heap()
155 val3 = get_heap_comp_val(heap->arr[cpos], cat); in adjust_lpt_heap()
158 heap->arr[cpos]->hpos = hpos; in adjust_lpt_heap()
159 heap->arr[hpos] = heap->arr[cpos]; in adjust_lpt_heap()
160 heap->arr[cpos] = lprops; in adjust_lpt_heap()
161 lprops->hpos = cpos; in adjust_lpt_heap()
162 hpos = cpos; in adjust_lpt_heap()
185 int cpos, val1, val2; in add_to_lpt_heap() local
189 cpos = (((size_t)lprops >> 4) & b) + b; in add_to_lpt_heap()
190 ubifs_assert(cpos >= b); in add_to_lpt_heap()
191 ubifs_assert(cpos < LPT_HEAP_SZ); in add_to_lpt_heap()
192 ubifs_assert(cpos < heap->cnt); in add_to_lpt_heap()
195 val2 = get_heap_comp_val(heap->arr[cpos], cat); in add_to_lpt_heap()
199 lp = heap->arr[cpos]; in add_to_lpt_heap()
203 lprops->hpos = cpos; in add_to_lpt_heap()
204 heap->arr[cpos] = lprops; in add_to_lpt_heap()