/haiku/src/libs/zydis/Zycore/ |
H A D | List.c | 60 static ZyanStatus ZyanListAllocateNode(ZyanList* list, ZyanListNode** node) in ZyanListAllocateNode() argument 62 ZYAN_ASSERT(list); in ZyanListAllocateNode() 65 const ZyanBool is_dynamic = (list->allocator != ZYAN_NULL); in ZyanListAllocateNode() 68 ZYAN_ASSERT(list->allocator->allocate); in ZyanListAllocateNode() 69 ZYAN_CHECK(list->allocator->allocate(list->allocator, (void**)node, in ZyanListAllocateNode() 70 sizeof(ZyanListNode) + list->element_size, 1)); in ZyanListAllocateNode() 73 if (list->first_unused) in ZyanListAllocateNode() 75 *node = list->first_unused; in ZyanListAllocateNode() 76 list->first_unused = (*node)->next; in ZyanListAllocateNode() 79 const ZyanUSize size = list->size * (sizeof(ZyanListNode) + list->element_size); in ZyanListAllocateNode() [all …]
|
/haiku/src/tools/fs_shell/ |
H A D | list.cpp | 10 #define GET_ITEM(list, item) ((void *)((uint8_t *)item - list->offset)) argument 11 #define GET_LINK(list, item) ((list_link *)((uint8_t *)item + list->offset)) argument 22 list_init_etc(struct list *list, int32_t offset) in list_init_etc() argument 24 list->link.next = list->link.prev = &list->link; in list_init_etc() 25 list->offset = offset; in list_init_etc() 30 list_init(struct list *list) in list_init() argument 32 list_init_etc(list, 0); in list_init() 40 list_add_link_to_head(struct list *list, void *_link) in list_add_link_to_head() argument 44 link->next = list->link.next; in list_add_link_to_head() 45 link->prev = &list->link; in list_add_link_to_head() [all …]
|
H A D | list.h | 38 struct list { struct 44 extern void list_init(struct list *list); argument 45 extern void list_init_etc(struct list *list, int32_t offset); 46 extern void list_add_link_to_head(struct list *list, void *_link); 47 extern void list_add_link_to_tail(struct list *list, void *_link); 49 extern void *list_get_next_item(struct list *list, void *item); 50 extern void *list_get_prev_item(struct list *list, void *item); 51 extern void *list_get_last_item(struct list *list); 52 extern void list_add_item(struct list *list, void *item); 53 extern void list_remove_item(struct list *list, void *item); [all …]
|
/haiku/src/system/kernel/util/ |
H A D | list.cpp | 12 #define GET_ITEM(list, item) ({ BytePointer<void> pointer((uint8*)item \ argument 13 - list->offset); &pointer; }) 14 #define GET_LINK(list, item) ({ BytePointer<list_link> pointer((uint8*)item \ argument 15 + list->offset); &pointer; }) 25 list_init_etc(struct list *list, int32 offset) in list_init_etc() argument 27 list->link.next = list->link.prev = &list->link; in list_init_etc() 28 list->offset = offset; in list_init_etc() 33 list_init(struct list *list) in list_init() argument 35 list_init_etc(list, 0); in list_init() 43 list_add_link_to_head(struct list *list, void *_link) in list_add_link_to_head() argument [all …]
|
/haiku/headers/private/kernel/util/ |
H A D | list.h | 43 struct list { struct 53 extern void list_init(struct list *list); argument 54 extern void list_init_etc(struct list *list, int32 offset); 55 extern void list_add_link_to_head(struct list *list, void *_link); 56 extern void list_add_link_to_tail(struct list *list, void *_link); 58 extern void *list_get_next_item(struct list *list, void *item); 59 extern void *list_get_prev_item(struct list *list, void *item); 60 extern void *list_get_last_item(struct list *list); 61 extern void list_add_item(struct list *list, void *item); 62 extern void list_remove_item(struct list *list, void *item); [all …]
|
/haiku/src/add-ons/accelerants/nvidia/ |
H A D | Acceleration.c | 26 void SCREEN_TO_SCREEN_BLIT_PIO(engine_token *et, blit_params *list, uint32 count) in SCREEN_TO_SCREEN_BLIT_PIO() argument 39 list[i].src_left, in SCREEN_TO_SCREEN_BLIT_PIO() 40 list[i].src_top, in SCREEN_TO_SCREEN_BLIT_PIO() 41 list[i].dest_left, in SCREEN_TO_SCREEN_BLIT_PIO() 42 list[i].dest_top, in SCREEN_TO_SCREEN_BLIT_PIO() 43 list[i].width, in SCREEN_TO_SCREEN_BLIT_PIO() 44 list[i].height in SCREEN_TO_SCREEN_BLIT_PIO() 50 void SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT_PIO(engine_token *et, scaled_blit_params *list, uint32 c… in SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT_PIO() argument 60 list[i].src_left, in SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT_PIO() 61 list[i].src_top, in SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT_PIO() [all …]
|
/haiku/src/add-ons/accelerants/skeleton/ |
H A D | Acceleration.c | 13 void SCREEN_TO_SCREEN_BLIT(engine_token *et, blit_params *list, uint32 count) { in SCREEN_TO_SCREEN_BLIT() argument 25 list[i].src_left, in SCREEN_TO_SCREEN_BLIT() 26 list[i].src_top, in SCREEN_TO_SCREEN_BLIT() 27 list[i].dest_left, in SCREEN_TO_SCREEN_BLIT() 28 list[i].dest_top, in SCREEN_TO_SCREEN_BLIT() 29 list[i].width, in SCREEN_TO_SCREEN_BLIT() 30 list[i].height in SCREEN_TO_SCREEN_BLIT() 36 void SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT(engine_token *et, scaled_blit_params *list, uint32 count… in SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT() argument 45 list[i].src_left, in SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT() 46 list[i].src_top, in SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT() [all …]
|
/haiku/src/add-ons/accelerants/neomagic/ |
H A D | Acceleration.c | 13 void SCREEN_TO_SCREEN_BLIT(engine_token *et, blit_params *list, uint32 count) { in SCREEN_TO_SCREEN_BLIT() argument 22 list[i].src_left, in SCREEN_TO_SCREEN_BLIT() 23 list[i].src_top, in SCREEN_TO_SCREEN_BLIT() 24 list[i].dest_left, in SCREEN_TO_SCREEN_BLIT() 25 list[i].dest_top, in SCREEN_TO_SCREEN_BLIT() 26 list[i].width, in SCREEN_TO_SCREEN_BLIT() 27 list[i].height in SCREEN_TO_SCREEN_BLIT() 33 void SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT(engine_token *et, scaled_blit_params *list, uint32 count… in SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT() argument 42 list[i].src_left, in SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT() 43 list[i].src_top, in SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT() [all …]
|
/haiku/src/add-ons/accelerants/via/ |
H A D | Acceleration.c | 13 void SCREEN_TO_SCREEN_BLIT(engine_token *et, blit_params *list, uint32 count) { in SCREEN_TO_SCREEN_BLIT() argument 25 list[i].src_left, in SCREEN_TO_SCREEN_BLIT() 26 list[i].src_top, in SCREEN_TO_SCREEN_BLIT() 27 list[i].dest_left, in SCREEN_TO_SCREEN_BLIT() 28 list[i].dest_top, in SCREEN_TO_SCREEN_BLIT() 29 list[i].width, in SCREEN_TO_SCREEN_BLIT() 30 list[i].height in SCREEN_TO_SCREEN_BLIT() 36 void SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT(engine_token *et, scaled_blit_params *list, uint32 count… in SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT() argument 45 list[i].src_left, in SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT() 46 list[i].src_top, in SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT() [all …]
|
/haiku/src/tests/kits/support/pointerlist/ |
H A D | PointerListTest.cpp | 67 void Initialize(_PointerList_& list, int size); 68 void Print(const _PointerList_& list); 69 void MakeEmpty(_PointerList_& list); 71 bool IsSorted(const _PointerList_& list, int32 n); 72 bool IsSorted(const _PointerList_& list) { return IsSorted(list, list.CountItems()); } in IsSorted() argument 73 bool IsHSorted(const _PointerList_& list) { return IsSorted(list, list.CountItems()-1); } in IsHSorted() argument 74 int IndexOf(const _PointerList_& list, int value); 75 Item* ItemFor(const _PointerList_& list, int value); 99 void PointerListTest::Initialize(_PointerList_& list, int size) in Initialize() argument 102 list.AddItem(CreateItem()); in Initialize() [all …]
|
/haiku/src/add-ons/accelerants/radeon/ |
H A D | Acceleration.c | 25 void SCREEN_TO_SCREEN_BLIT_DMA(engine_token *et, blit_params *list, uint32 count) in SCREEN_TO_SCREEN_BLIT_DMA() argument 47 for( ; sub_count > 0; --sub_count, ++list ) { in SCREEN_TO_SCREEN_BLIT_DMA() 48 *buffer++ = (list->src_left << 16) | list->src_top; in SCREEN_TO_SCREEN_BLIT_DMA() 49 *buffer++ = (list->dest_left << 16) | list->dest_top; in SCREEN_TO_SCREEN_BLIT_DMA() 50 *buffer++ = ((list->width + 1) << 16) | (list->height + 1); in SCREEN_TO_SCREEN_BLIT_DMA() 62 void SCREEN_TO_SCREEN_BLIT_PIO(engine_token *et, blit_params *list, uint32 count) in SCREEN_TO_SCREEN_BLIT_PIO() argument 81 for( ; count > 0; --count, ++list ) { in SCREEN_TO_SCREEN_BLIT_PIO() 86 xdir = ((list->src_left < list->dest_left) && (list->src_top == list->dest_top)) ? -1 : 1; in SCREEN_TO_SCREEN_BLIT_PIO() 87 ydir = (list->src_top < list->dest_top) ? -1 : 1; in SCREEN_TO_SCREEN_BLIT_PIO() 89 if (xdir < 0) list->src_left += list->width , list->dest_left += list->width ; in SCREEN_TO_SCREEN_BLIT_PIO() [all …]
|
/haiku/src/system/libnetwork/netresolv/include/isc/ |
H A D | list.h | 25 #define INIT_LIST(list) \ argument 26 do { (list).head = NULL; (list).tail = NULL; } while (/*CONSTCOND*/0) 39 #define HEAD(list) ((list).head) argument 40 #define TAIL(list) ((list).tail) argument 41 #define EMPTY(list) ((list).head == NULL) argument 43 #define PREPEND(list, elt, link) \ argument 46 if ((list).head != NULL) \ 47 (list).head->link.prev = (elt); \ 49 (list).tail = (elt); \ 51 (elt)->link.next = (list).head; \ [all …]
|
/haiku/src/add-ons/accelerants/matrox/engine/ |
H A D | mga_acc.c | 214 void SCREEN_TO_SCREEN_BLIT(engine_token *et, blit_params *list, uint32 count) in SCREEN_TO_SCREEN_BLIT() argument 227 list[i].src_left + (offset * list[i].src_top) + si->engine.src_dst; in SCREEN_TO_SCREEN_BLIT() 228 t_end += list[i].width; in SCREEN_TO_SCREEN_BLIT() 231 list[i].src_left + (offset * (list[i].src_top + list[i].height)) + si->engine.src_dst; in SCREEN_TO_SCREEN_BLIT() 232 b_end += list[i].width; in SCREEN_TO_SCREEN_BLIT() 238 switch((list[i].dest_top > list[i].src_top) | ((list[i].dest_left > list[i].src_left) << 1)) in SCREEN_TO_SCREEN_BLIT() 245 ACCW_YDSTLEN(list[i].dest_top, list[i].height + 1); in SCREEN_TO_SCREEN_BLIT() 252 ACCW_YDSTLEN(list[i].dest_top + list[i].height, list[i].height + 1); in SCREEN_TO_SCREEN_BLIT() 259 ACCW_YDSTLEN(list[i].dest_top, list[i].height + 1); in SCREEN_TO_SCREEN_BLIT() 266 ACCW_YDSTLEN(list[i].dest_top + list[i].height, list[i].height + 1); in SCREEN_TO_SCREEN_BLIT() [all …]
|
/haiku/src/tests/kits/app/broster/ |
H A D | GetAppListTester.cpp | 64 BList list(extendedBase); in check_list() local 65 list.AddList((BList*)&expected); in check_list() 66 CHK(contains_list(toCheck, list)); in check_list() 67 CHK(contains_list(list, toCheck)); in check_list() 111 BList list; in GetAppListTestA2() local 112 list.AddItem((void*)-7); in GetAppListTestA2() 113 list.AddItem((void*)-42); in GetAppListTestA2() 116 BList list1(list); in GetAppListTestA2() 130 BList list2(list); in GetAppListTestA2() 132 check_list(list2, list, list1, expectedApps); in GetAppListTestA2() [all …]
|
/haiku/src/add-ons/accelerants/3dfx/ |
H A D | 3dfx_draw.cpp | 25 TDFX_FillRectangle(engine_token* et, uint32 color, fill_rect_params* list, in TDFX_FillRectangle() argument 39 int x = list->left; in TDFX_FillRectangle() 40 int y = list->top; in TDFX_FillRectangle() 41 int w = list->right - x + 1; in TDFX_FillRectangle() 42 int h = list->bottom - y + 1; in TDFX_FillRectangle() 49 list++; in TDFX_FillRectangle() 55 TDFX_FillSpan(engine_token* et, uint32 color, uint16* list, uint32 count) in TDFX_FillSpan() argument 68 int y = *list++; in TDFX_FillSpan() 69 int x = *list++; in TDFX_FillSpan() 70 int w = *list++ - x + 1; in TDFX_FillSpan() [all …]
|
/haiku/src/system/libroot/posix/unistd/ |
H A D | exec.cpp | 24 count_arguments(va_list list, const char* arg, char*** _env) in count_arguments() argument 30 arg = va_arg(list, const char*); in count_arguments() 34 *_env = va_arg(list, char**); in count_arguments() 41 copy_arguments(va_list list, const char** args, const char* arg) in copy_arguments() argument 47 arg = va_arg(list, const char*); in copy_arguments() 175 va_list list; in execl() local 180 va_start(list, arg); in execl() 181 count = count_arguments(list, arg, NULL); in execl() 182 va_end(list); in execl() 187 va_start(list, arg); in execl() [all …]
|
/haiku/src/kits/tracker/ |
H A D | PoseList.h | 62 PoseList(const PoseList &list) in PoseList() argument 64 BObjectList<BPose>(list) in PoseList() 85 EachPoseAndModel(PoseList* list, in EachPoseAndModel() argument 89 for (int32 index = list->CountItems() - 1; index >= 0; index--) { in EachPoseAndModel() 90 BPose* pose = list->ItemAt(index); in EachPoseAndModel() 100 EachPoseAndModel(PoseList* list, in EachPoseAndModel() argument 104 for (int32 index = list->CountItems() - 1; index >= 0; index--) { in EachPoseAndModel() 105 BPose* pose = list->ItemAt(index); in EachPoseAndModel() 115 EachPoseAndModel(PoseList* list, in EachPoseAndModel() argument 119 for (int32 index = list->CountItems() - 1; index >= 0; index--) { in EachPoseAndModel() [all …]
|
/haiku/headers/libs/zydis/Zycore/ |
H A D | List.h | 199 ZYCORE_EXPORT ZYAN_REQUIRES_LIBC ZyanStatus ZyanListInit(ZyanList* list, ZyanUSize element_size, 217 ZYCORE_EXPORT ZyanStatus ZyanListInitEx(ZyanList* list, ZyanUSize element_size, 239 ZYCORE_EXPORT ZyanStatus ZyanListInitCustomBuffer(ZyanList* list, ZyanUSize element_size, 249 ZYCORE_EXPORT ZyanStatus ZyanListDestroy(ZyanList* list); 324 ZYCORE_EXPORT ZyanStatus ZyanListGetHeadNode(const ZyanList* list, const ZyanListNode** node); 334 ZYCORE_EXPORT ZyanStatus ZyanListGetTailNode(const ZyanList* list, const ZyanListNode** node); 414 ZYCORE_EXPORT ZyanStatus ZyanListSetNodeData(const ZyanList* list, const ZyanListNode* node, 429 ZYCORE_EXPORT ZyanStatus ZyanListPushBack(ZyanList* list, const void* item); 439 ZYCORE_EXPORT ZyanStatus ZyanListPushFront(ZyanList* list, const void* item); 451 ZYCORE_EXPORT ZyanStatus ZyanListEmplaceBack(ZyanList* list, void** item, [all …]
|
/haiku/src/libs/compat/freebsd_network/compat/sys/ |
H A D | eventhandler.h | 62 #define _EVENTHANDLER_INVOKE(name, list, ...) do { \ argument 66 KASSERT((list)->el_flags & EHL_INITTED, \ 68 EHL_LOCK_ASSERT((list), MA_OWNED); \ 69 (list)->el_runcount++; \ 70 KASSERT((list)->el_runcount > 0, \ 73 TAILQ_FOREACH(_ep, &((list)->el_entries), ee_link) { \ 75 EHL_UNLOCK((list)); \ 80 EHL_LOCK((list)); \ 83 KASSERT((list)->el_runcount > 0, \ 85 (list)->el_runcount--; \ [all …]
|
/haiku/src/tests/servers/input/inputdevice/ |
H A D | main.cpp | 16 BList list; in main() local 18 if ((err = get_input_devices(&list))!=B_OK) in main() 21 for (uint32 i=0; i<(unsigned)list.CountItems(); i++) { in main() 22 BInputDevice *device = (BInputDevice*)list.ItemAt(i); in main() 73 for (uint32 i=0; i<(unsigned)list.CountItems(); i++) { in main() 74 BInputDevice *device = (BInputDevice*)list.ItemAt(i); in main() 78 for (uint32 i=0; i<(unsigned)list.CountItems(); i++) { in main() 79 BInputDevice *device = (BInputDevice*)list.ItemAt(i); in main() 83 for (uint32 i=0; i<(unsigned)list.CountItems(); i++) { in main() 84 BInputDevice *device = (BInputDevice*)list.ItemAt(i); in main() [all …]
|
/haiku/docs/user/interface/ |
H A D | ListItem.dox | 26 \brief A list item, a member of a BListView or BOutlineListView. 34 \brief Create a new list item with the specified \a level. 39 \param level The level to create the list item on, default level is 0. 50 \brief Create a new list item from archived message. 52 \param data The message to create the list item from. 60 \brief Destroy the list item freeing any memory used. 78 \brief Archive the list item to a message. 80 \param archive The message to archive the list item to. 91 \param owner The view that the list item is a child of. 105 \brief Return the height of the list item. [all …]
|
/haiku/src/apps/aboutsystem/ |
H A D | Utilities.cpp | 93 va_list list; in StringVector() local 94 va_start(list, string); in StringVector() 95 SetTo(string, list); in StringVector() 96 va_end(list); in StringVector() 134 va_list list; in SetTo() local 135 va_start(list, string); in SetTo() 136 SetTo(string, list); in SetTo() 137 va_end(list); in SetTo() 151 va_list list; in SetTo() local 152 va_copy(list, _list); in SetTo() [all …]
|
/haiku/src/system/boot/platform/atari_m68k/ |
H A D | debug.cpp | 24 va_list list; in panic() local 33 va_start(list, format); in panic() 34 vsnprintf(buffer, sizeof(buffer), format, list); in panic() 35 va_end(list); in panic() 54 va_list list; in dprintf() local 56 va_start(list, format); in dprintf() 57 vsnprintf(buffer, sizeof(buffer), format, list); in dprintf() 58 va_end(list); in dprintf()
|
/haiku/src/system/boot/platform/next_m68k/ |
H A D | debug.cpp | 36 va_list list; in panic() local 42 va_start(list, format); in panic() 43 vsnprintf(buffer, sizeof(buffer), format, list); in panic() 44 va_end(list); in panic() 60 va_list list; in dprintf() local 62 va_start(list, format); in dprintf() 63 vsnprintf(buffer, sizeof(buffer), format, list); in dprintf() 64 va_end(list); in dprintf()
|
/haiku/src/system/boot/platform/amiga_m68k/ |
H A D | debug.cpp | 47 va_list list; in panic() local 53 va_start(list, format); in panic() 54 vsnprintf(buffer, 512, format, list); in panic() 55 va_end(list); in panic() 69 va_list list; in dprintf() local 73 va_start(list, format); in dprintf() 75 vfprintf(dbgerr, format, list); in dprintf() 77 va_end(list); in dprintf()
|