Searched refs:amount (Results 1 - 16 of 16) sorted by relevance

/haiku/src/tools/fs_shell/
H A Dthread.cpp44 fssh_snooze(fssh_bigtime_t amount) argument
46 return snooze(amount);
/haiku/src/build/libroot/
H A Dmisc.cpp48 snooze(bigtime_t amount) argument
50 if (amount <= 0)
53 int64 secs = amount / 1000000LL;
54 int64 usecs = amount % 1000000LL;
/haiku/src/kits/interface/
H A DGraphicsDefs.cpp54 mix_color(rgb_color color1, rgb_color color2, uint8 amount) argument
56 color1.red = (uint8)(((int16(color2.red) - int16(color1.red)) * amount)
59 * amount) / 255 + color1.green);
60 color1.blue = (uint8)(((int16(color2.blue) - int16(color1.blue)) * amount)
63 * amount) / 255 + color1.alpha );
71 blend_color(rgb_color color1, rgb_color color2, uint8 amount) argument
74 - color1.alpha)) * amount) / 255 + (255 - color1.alpha));
83 * amount) / 255 + color1.alpha);
/haiku/src/libs/stdc++/legacy/
H A Deditbuf.cc263 /* Add `amount' to the position of every marker in the current buffer
267 and then adjusted by `amount'. */
271 int amount, buf_char *old_data)
276 amount <<= 1;
284 if (amount > 0)
286 if (mpos > high && mpos < high + amount)
287 mpos = high + amount;
291 if (mpos > low + amount && mpos <= low)
292 mpos = low + amount;
295 mpos += amount;
269 adjust_markers(register mark_pointer low, register mark_pointer high, int amount, buf_char *old_data) argument
[all...]
/haiku/src/tests/system/boot/heap/
H A DheapTest.cpp247 for (size_t amount = 32; amount < 1024; amount *= 2) {
248 int32 count = random_allocations(array, amount);
/haiku/src/kits/interface/textview_support/
H A DTextGapBuffer.h30 int32 amount, int32 atIndex);
/haiku/headers/private/fs_shell/
H A Dfssh_os.h176 extern fssh_status_t fssh_snooze(fssh_bigtime_t amount);
177 extern fssh_status_t fssh_snooze_etc(fssh_bigtime_t amount, int timeBase,
/haiku/src/apps/deskbar/
H A DResourceSet.cpp299 ssize_t amount; local
300 while ((amount = data->Read(fStrings + pos, 1024)) == 1024) {
301 pos += amount;
304 if (amount > 0)
305 pos += amount;
307 fNumEntries = PreIndex(fStrings, amount);
309 MakeIndex(fStrings, amount, fNumEntries, fIndex);
/haiku/src/system/libroot/posix/
H A Dsemaphore.cpp31 atomic_add_if_greater(int32* value, int32 amount, int32 testValue) argument
35 int32 old = atomic_test_and_set(value, current + amount, current);
/haiku/headers/os/interface/
H A DGraphicsDefs.h115 rgb_color mix_color(rgb_color color1, rgb_color color2, uint8 amount);
116 rgb_color blend_color(rgb_color color1, rgb_color color2, uint8 amount);
/haiku/headers/cpp/
H A Deditbuf.h166 int amount, buf_char *old_data);
/haiku/src/add-ons/accelerants/radeon_hd/
H A Dpll.cpp521 uint32 amount = ((pll->feedbackDiv * 10) + pll->feedbackDivFrac); local
522 amount *= pll->ssPercentage;
523 amount /= pll->ssPercentageDiv * 100;
524 pll->ssAmount = (amount / 10) & ATOM_PPLL_SS_AMOUNT_V2_FBDIV_MASK;
525 pll->ssAmount |= ((amount - (amount / 10))
531 pll->ssStep = (centerSpreadMultiplier * amount * pll->referenceDiv
/haiku/src/system/kernel/vm/
H A DVMAnonymousCache.cpp276 // SWAP_SLOT_NONE, this forces Write() adjust allocation amount
348 swap_space_reserve(off_t amount) argument
351 if (sAvailSwapSpace >= amount)
352 sAvailSwapSpace -= amount;
354 amount = sAvailSwapSpace;
359 return amount;
364 swap_space_unreserve(off_t amount) argument
367 sAvailSwapSpace += amount;
H A Dvm.cpp5184 vm_unreserve_memory(size_t amount) argument
5188 sAvailableMemory += amount;
5195 vm_try_reserve_memory(size_t amount, int priority, bigtime_t timeout) argument
5201 //dprintf("try to reserve %lu bytes, %Lu left\n", amount, sAvailableMemory);
5203 if (sAvailableMemory >= (off_t)(amount + reserve)) {
5204 sAvailableMemory -= amount;
5208 if (amount >= (vm_page_num_pages() * B_PAGE_SIZE)) {
5221 sNeededMemory += amount;
5229 sNeededMemory -= amount;
5231 if (sAvailableMemory >= (off_t)(amount
[all...]
/haiku/headers/os/kernel/
H A DOS.h365 extern status_t snooze(bigtime_t amount);
366 extern status_t snooze_etc(bigtime_t amount, int timeBase, uint32 flags);
/haiku/src/system/kernel/
H A Delf.cpp1990 size_t amount = fileUpperBound local
1994 memset((void *)start, 0, amount);
2241 // Check whether the segments have an unreasonable amount of unused space

Completed in 217 milliseconds