/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/libcoap/include/coap2/ |
H A D | utlist.h | 42 * Either way, the pointer to the head of the list must be initialized to NULL. 83 * namely, we always reassign our tmp variable to the list head if we need 84 * to dereference its prev/next pointers, and save/restore the real head.*/ 316 #define LL_PREPEND(head,add) \ 317 LL_PREPEND2(head,add,next) 319 #define LL_PREPEND2(head,add,next) \ 321 (add)->next = (head); \ 322 (head) = (add); \ 340 #define LL_APPEND(head,add) \ 341 LL_APPEND2(head,ad [all...] |
H A D | uthash.h | 123 #define HASH_FIND_BYHASHVALUE(hh,head,keyptr,keylen,hashval,out) \ 126 if (head) { \ 128 HASH_TO_BKT(hashval, (head)->hh.tbl->num_buckets, _hf_bkt); \ 129 if (HASH_BLOOM_TEST((head)->hh.tbl, hashval) != 0) { \ 130 HASH_FIND_IN_BKT((head)->hh.tbl, hh, (head)->hh.tbl->buckets[ _hf_bkt ], keyptr, keylen, hashval, out); \ 135 #define HASH_FIND(hh,head,keyptr,keylen,out) \ 139 HASH_FIND_BYHASHVALUE(hh, head, keyptr, keylen, _hf_hashv, out); \ 178 #define HASH_MAKE_TABLE(hh,head) \ 180 (head) [all...] |
/device/soc/rockchip/rk2206/hardware/include/sys/ |
H A D | queue.h | 46 * added to the list after an existing element or at the head of the list. 47 * Elements being removed from the head of the list should use the explicit 54 * head of the list and the other to the tail of the list. The elements are 57 * to the list after an existing element, at the head of the list, or at the 58 * end of the list. Elements being removed from the head of the tail queue 68 * or after an existing element or at the head of the list. A list 71 * A tail queue is headed by a pair of pointers, one to the head of the 75 * after an existing element, at the head of the list, or at the end of 111 /* Store the last 2 places the queue element or head was altered */ 124 #define QMD_TRACE_HEAD(head) d [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/include/ |
H A D | osal_list.h | 70 * @head: list head to add it after 72 * Insert a new entry after the specified head. 75 static inline void osal_list_add(struct osal_list_head *new, struct osal_list_head *head) in osal_list_add() argument 77 osal___list_add(new, head, head->next); in osal_list_add() 83 * @head: list head to add it before 85 * Insert a new entry before the specified head. 88 static inline void osal_list_add_tail(struct osal_list_head *new, struct osal_list_head *head) in osal_list_add_tail() argument 165 osal_list_move(struct osal_list_head *list, struct osal_list_head *head) osal_list_move() argument 176 osal_list_move_tail(struct osal_list_head *list, struct osal_list_head *head) osal_list_move_tail() argument 188 osal_list_is_last(const struct osal_list_head *list, const struct osal_list_head *head) osal_list_is_last() argument 198 osal_list_empty(const struct osal_list_head *head) osal_list_empty() argument 216 osal_list_empty_careful(const struct osal_list_head *head) osal_list_empty_careful() argument 226 osal_list_rotate_left(struct osal_list_head *head) osal_list_rotate_left() argument 240 osal_list_is_singular(const struct osal_list_head *head) osal_list_is_singular() argument 245 osal___list_cut_position(struct osal_list_head *list, struct osal_list_head *head, struct osal_list_head *entry) osal___list_cut_position() argument 271 osal_list_cut_position(struct osal_list_head *list, struct osal_list_head *head, struct osal_list_head *entry) osal_list_cut_position() argument 307 osal_list_splice(const struct osal_list_head *list, struct osal_list_head *head) osal_list_splice() argument 320 osal_list_splice_tail(struct osal_list_head *list, struct osal_list_head *head) osal_list_splice_tail() argument 335 osal_list_splice_init(struct osal_list_head *list, struct osal_list_head *head) osal_list_splice_init() argument 352 osal_list_splice_tail_init(struct osal_list_head *list, struct osal_list_head *head) osal_list_splice_tail_init() argument [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/ |
H A D | osal_list.h | 67 * @head: list head to add it after 69 * Insert a new entry after the specified head. 72 static inline void osal_list_add(struct osal_list_head *new, struct osal_list_head *head) in osal_list_add() argument 74 osal___list_add(new, head, head->next); in osal_list_add() 80 * @head: list head to add it before 82 * Insert a new entry before the specified head. 85 static inline void osal_list_add_tail(struct osal_list_head *new, struct osal_list_head *head) in osal_list_add_tail() argument 162 osal_list_move(struct osal_list_head *list, struct osal_list_head *head) osal_list_move() argument 173 osal_list_move_tail(struct osal_list_head *list, struct osal_list_head *head) osal_list_move_tail() argument 185 osal_list_is_last(const struct osal_list_head *list, const struct osal_list_head *head) osal_list_is_last() argument 195 osal_list_empty(const struct osal_list_head *head) osal_list_empty() argument 213 osal_list_empty_careful(const struct osal_list_head *head) osal_list_empty_careful() argument 223 osal_list_rotate_left(struct osal_list_head *head) osal_list_rotate_left() argument 237 osal_list_is_singular(const struct osal_list_head *head) osal_list_is_singular() argument 242 osal___list_cut_position(struct osal_list_head *list, struct osal_list_head *head, struct osal_list_head *entry) osal___list_cut_position() argument 268 osal_list_cut_position(struct osal_list_head *list, struct osal_list_head *head, struct osal_list_head *entry) osal_list_cut_position() argument 304 osal_list_splice(const struct osal_list_head *list, struct osal_list_head *head) osal_list_splice() argument 317 osal_list_splice_tail(struct osal_list_head *list, struct osal_list_head *head) osal_list_splice_tail() argument 332 osal_list_splice_init(struct osal_list_head *list, struct osal_list_head *head) osal_list_splice_init() argument 349 osal_list_splice_tail_init(struct osal_list_head *list, struct osal_list_head *head) osal_list_splice_tail_init() argument [all...] |
H A D | list.h | 49 static inline void list_add(struct list_head *_new, struct list_head *head) in list_add() argument 51 __list_add(_new, head, head->next); in list_add() 54 static inline void list_add_tail(struct list_head *_new, struct list_head *head) in list_add_tail() argument 56 __list_add(_new, head->prev, head); in list_add_tail() 76 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 79 list_add(list, head); in list_move() 83 struct list_head *head) in list_move_tail() 86 list_add_tail(list, head); in list_move_tail() 82 list_move_tail(struct list_head *list, struct list_head *head) list_move_tail() argument 89 list_empty(struct list_head *head) list_empty() argument 94 __list_splice(struct list_head *list, struct list_head *head) __list_splice() argument 108 list_splice(struct list_head *list, struct list_head *head) list_splice() argument 115 list_splice_init(struct list_head *list, struct list_head *head) list_splice_init() argument [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/ |
H A D | osal_list.h | 66 * @head: list head to add it after 68 * Insert a new entry after the specified head. 71 static inline void osal_list_add(struct osal_list_head *new, struct osal_list_head *head) in osal_list_add() argument 73 osal___list_add(new, head, head->next); in osal_list_add() 79 * @head: list head to add it before 81 * Insert a new entry before the specified head. 84 static inline void osal_list_add_tail(struct osal_list_head *new, struct osal_list_head *head) in osal_list_add_tail() argument 161 osal_list_move(struct osal_list_head *list, struct osal_list_head *head) osal_list_move() argument 172 osal_list_move_tail(struct osal_list_head *list, struct osal_list_head *head) osal_list_move_tail() argument 184 osal_list_is_last(const struct osal_list_head *list, const struct osal_list_head *head) osal_list_is_last() argument 194 osal_list_empty(const struct osal_list_head *head) osal_list_empty() argument 212 osal_list_empty_careful(const struct osal_list_head *head) osal_list_empty_careful() argument 222 osal_list_rotate_left(struct osal_list_head *head) osal_list_rotate_left() argument 236 osal_list_is_singular(const struct osal_list_head *head) osal_list_is_singular() argument 241 osal___list_cut_position(struct osal_list_head *list, struct osal_list_head *head, struct osal_list_head *entry) osal___list_cut_position() argument 267 osal_list_cut_position(struct osal_list_head *list, struct osal_list_head *head, struct osal_list_head *entry) osal_list_cut_position() argument 303 osal_list_splice(const struct osal_list_head *list, struct osal_list_head *head) osal_list_splice() argument 316 osal_list_splice_tail(struct osal_list_head *list, struct osal_list_head *head) osal_list_splice_tail() argument 331 osal_list_splice_init(struct osal_list_head *list, struct osal_list_head *head) osal_list_splice_init() argument 348 osal_list_splice_tail_init(struct osal_list_head *list, struct osal_list_head *head) osal_list_splice_tail_init() argument [all...] |
H A D | list.h | 49 static inline void list_add(struct list_head *_new, struct list_head *head) in list_add() argument 51 __list_add(_new, head, head->next); in list_add() 54 static inline void list_add_tail(struct list_head *_new, struct list_head *head) in list_add_tail() argument 56 __list_add(_new, head->prev, head); in list_add_tail() 76 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 79 list_add(list, head); in list_move() 83 struct list_head *head) in list_move_tail() 86 list_add_tail(list, head); in list_move_tail() 82 list_move_tail(struct list_head *list, struct list_head *head) list_move_tail() argument 89 list_empty(struct list_head *head) list_empty() argument 94 __list_splice(struct list_head *list, struct list_head *head) __list_splice() argument 108 list_splice(struct list_head *list, struct list_head *head) list_splice() argument 115 list_splice_init(struct list_head *list, struct list_head *head) list_splice_init() argument [all...] |
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/include/ |
H A D | osal_list.h | 69 * @head: list head to add it after 71 * Insert a new entry after the specified head. 74 static inline void osal_list_add(struct osal_list_head *new, struct osal_list_head *head) in osal_list_add() argument 76 osal___list_add(new, head, head->next); in osal_list_add() 82 * @head: list head to add it before 84 * Insert a new entry before the specified head. 87 static inline void osal_list_add_tail(struct osal_list_head *new, struct osal_list_head *head) in osal_list_add_tail() argument 164 osal_list_move(struct osal_list_head *list, struct osal_list_head *head) osal_list_move() argument 175 osal_list_move_tail(struct osal_list_head *list, struct osal_list_head *head) osal_list_move_tail() argument 187 osal_list_is_last(const struct osal_list_head *list, const struct osal_list_head *head) osal_list_is_last() argument 197 osal_list_empty(const struct osal_list_head *head) osal_list_empty() argument 215 osal_list_empty_careful(const struct osal_list_head *head) osal_list_empty_careful() argument 225 osal_list_rotate_left(struct osal_list_head *head) osal_list_rotate_left() argument 239 osal_list_is_singular(const struct osal_list_head *head) osal_list_is_singular() argument 244 osal___list_cut_position(struct osal_list_head *list, struct osal_list_head *head, struct osal_list_head *entry) osal___list_cut_position() argument 270 osal_list_cut_position(struct osal_list_head *list, struct osal_list_head *head, struct osal_list_head *entry) osal_list_cut_position() argument 302 osal_list_splice(const struct osal_list_head *list, struct osal_list_head *head) osal_list_splice() argument 315 osal_list_splice_tail(struct osal_list_head *list, struct osal_list_head *head) osal_list_splice_tail() argument 330 osal_list_splice_init(struct osal_list_head *list, struct osal_list_head *head) osal_list_splice_init() argument 347 osal_list_splice_tail_init(struct osal_list_head *list, struct osal_list_head *head) osal_list_splice_tail_init() argument [all...] |
/test/xts/device_attest/services/core/utils/ |
H A D | attest_utils_list.c | 30 list->head = NULL; in CreateList() 39 ListNode* head = list->head; in AddListNode() local 41 if (head == NULL) { in AddListNode() 45 while (head != NULL && head->next != NULL) { in AddListNode() 46 head = head->next; in AddListNode() 60 if (list->head == NULL) { in AddListNode() 61 list->head in AddListNode() 74 ListNode* head = list->head; GetListSize() local 88 ListNode* head = list->head; ReleaseList() local [all...] |
H A D | attest_utils_memleak.c | 53 list->head = NULL; in InitMemNodeList() 88 ListNode* head = list->head; in DestroyMemNodeList() local 89 while (head != NULL) { in DestroyMemNodeList() 90 ListNode* curr = head; in DestroyMemNodeList() 91 head = head->next; in DestroyMemNodeList() 112 ListNode* head = list->head; in AddMemNode() local 113 if (head in AddMemNode() 240 ListNode* head = list->head; PrintMemNodeList() local [all...] |
/test/xts/device_attest_lite/services/core/utils/ |
H A D | attest_utils_list.c | 30 list->head = NULL; in CreateList() 39 ListNode* head = list->head; in AddListNode() local 41 if (head == NULL) { in AddListNode() 45 while (head != NULL && head->next != NULL) { in AddListNode() 46 head = head->next; in AddListNode() 60 if (list->head == NULL) { in AddListNode() 61 list->head in AddListNode() 74 ListNode* head = list->head; GetListSize() local 88 ListNode* head = list->head; ReleaseList() local [all...] |
H A D | attest_utils_memleak.c | 53 list->head = NULL; in InitMemNodeList() 88 ListNode* head = list->head; in DestroyMemNodeList() local 89 while (head != NULL) { in DestroyMemNodeList() 90 ListNode* curr = head; in DestroyMemNodeList() 91 head = head->next; in DestroyMemNodeList() 112 ListNode* head = list->head; in AddMemNode() local 113 if (head in AddMemNode() 240 ListNode* head = list->head; PrintMemNodeList() local [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface/ |
H A D | nstackx_list.h | 31 static inline void ListInitHead(List *head) in ListInitHead() argument 33 head->next = head; in ListInitHead() 34 head->prev = head; in ListInitHead() 37 static inline void ListInsertHead(List *head, List *node) in ListInsertHead() argument 39 node->next = head->next; in ListInsertHead() 41 node->prev = head; in ListInsertHead() 42 head->next = node; in ListInsertHead() 45 static inline void ListInsertTail(List *head, Lis argument 64 ListIsEmpty(const List *head) ListIsEmpty() argument 69 ListGetFront(List *head) ListGetFront() argument 74 ListPopFront(List *head) ListPopFront() argument [all...] |
/foundation/communication/dsoftbus/tests/core/connection/ble/mock/ |
H A D | connection_ble_client_mock.cpp | 37 ConnPktHead *head = reinterpret_cast<ConnPktHead *>(SoftBusCalloc(sizeof(*head))); in ConnGattTransRecvReturnConnModule() local 38 if (head == nullptr) { in ConnGattTransRecvReturnConnModule() 41 head->flag = 0; in ConnGattTransRecvReturnConnModule() 42 head->module = MODULE_CONNECTION; in ConnGattTransRecvReturnConnModule() 44 head->seq = seq; in ConnGattTransRecvReturnConnModule() 45 *outLen = sizeof((*head)); in ConnGattTransRecvReturnConnModule() 46 return reinterpret_cast<uint8_t *>(head); in ConnGattTransRecvReturnConnModule() 52 ConnPktHead *head = reinterpret_cast<ConnPktHead *>(SoftBusCalloc(sizeof(*head))); in ConnGattTransRecvReturnConnModule1() local 68 ConnPktHead *head = reinterpret_cast<ConnPktHead *>(SoftBusCalloc(sizeof(*head))); ConnGattTransRecvReturnOldNearby() local 83 ConnPktHead *head = reinterpret_cast<ConnPktHead *>(SoftBusCalloc(sizeof(*head))); ConnGattTransRecvReturnDefult() local 98 ConnPktHead *head = reinterpret_cast<ConnPktHead *>(SoftBusCalloc(sizeof(*head))); ActionOfConnGattTransRecv() local [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/include/ |
H A D | list.h | 52 static inline void list_add(struct list_head *_new, struct list_head *head) in list_add() argument 54 __list_add(_new, head, head->next); in list_add() 57 static inline void list_add_tail(struct list_head *_new, struct list_head *head) in list_add_tail() argument 59 __list_add(_new, head->prev, head); in list_add_tail() 79 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 82 list_add(list, head); in list_move() 86 struct list_head *head) in list_move_tail() 89 list_add_tail(list, head); in list_move_tail() 85 list_move_tail(struct list_head *list, struct list_head *head) list_move_tail() argument 92 list_empty(struct list_head *head) list_empty() argument 97 __list_splice(struct list_head *list, struct list_head *head) __list_splice() argument 111 list_splice(struct list_head *list, struct list_head *head) list_splice() argument 118 list_splice_init(struct list_head *list, struct list_head *head) list_splice_init() argument [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/higv/include/ |
H A D | linux_cbb_list.h | 56 static HPT_INLINE void cbb_list_add(struct cbb_list_head *_new, struct cbb_list_head *head) in cbb_list_add() argument 58 if (_new == NULL || head == NULL) { in cbb_list_add() 62 inline_cbb_list_add(_new, head, head->next); in cbb_list_add() 65 static HPT_INLINE void cbb_list_add_tail(struct cbb_list_head *_new, struct cbb_list_head *head) in cbb_list_add_tail() argument 67 if (_new == NULL || head == NULL) { in cbb_list_add_tail() 71 inline_cbb_list_add(_new, head->prev, head); in cbb_list_add_tail() 99 static HPT_INLINE int cbb_list_empty(const struct cbb_list_head *head) in cbb_list_empty() argument 101 return head in cbb_list_empty() 104 inline_cbb_list_splice(struct cbb_list_head *list, struct cbb_list_head *head) inline_cbb_list_splice() argument 118 cbb_list_splice(struct cbb_list_head *list, struct cbb_list_head *head) cbb_list_splice() argument 125 cbb_list_splice_init(struct cbb_list_head *list, struct cbb_list_head *head) cbb_list_splice_init() argument [all...] |
/device/soc/rockchip/rk3588/hardware/mpp/include/ |
H A D | mpp_list.h | 76 struct mpp_list_node *head; member in mpp_list 104 #define list_for_each_safe(pos, n, head) \ 105 for (pos = (head)->next, n = pos->next; pos != (head); \ 129 #define list_for_each_entry(pos, head, type, member) \ 130 for (pos = list_entry((head)->next, type, member); \ 131 &pos->member != (head); \ 134 #define list_for_each_entry_safe(pos, n, head, type, member) \ 135 for (pos = list_first_entry(head, type, member), \ 137 &pos->member != (head); \ 161 list_add(struct list_head *_new, struct list_head *head) list_add() argument 166 list_add_tail(struct list_head *_new, struct list_head *head) list_add_tail() argument 184 list_move(struct list_head *list, struct list_head *head) list_move() argument 190 list_move_tail(struct list_head *list, struct list_head *head) list_move_tail() argument 196 list_is_last(const struct list_head *list, const struct list_head *head) list_is_last() argument 201 list_empty(struct list_head *head) list_empty() argument [all...] |
/device/soc/rockchip/rk2206/hardware/ |
H A D | build.py | 24 def head(self): member in BuildGn 25 head = "# Copyright (c) 2020-2021 Lockzhiner Electronics Co., Ltd.\n" 26 head +="# limitations under the License.\n" 27 head +="# Licensed under the Apache License, Version 2.0 (the \"License\");\n" 28 head +="# you may not use this file except in compliance with the License.\n" 29 head +="# You may obtain a copy of the License at\n" 30 head +="#\n" 31 head +="# http://www.apache.org/licenses/LICENSE-2.0\n" 32 head +="#\n" 33 head [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/ |
H A D | upg_check_boot_bin.c | 21 hi_u32 upg_check_boot_root_pub_key(HI_CONST boot_header *head, HI_CONST hi_u8 *pubk, hi_u32 pubk_len) in upg_check_boot_root_pub_key() argument 26 if ((head == HI_NULL) || (pubk == HI_NULL)) { in upg_check_boot_root_pub_key() 30 if (head->root_pubk_length != pubk_len) { in upg_check_boot_root_pub_key() 189 boot_header *head = (boot_header *)data; in upg_boot_decrypt() local 192 if ((head == HI_NULL) || (data_len != (head->sign_offset + head->sign_length + sizeof(boot_tail)))) { in upg_boot_decrypt() 196 hi_u32 decrypt_addr = (hi_u32)(uintptr_t)data + head->code_section_offset; in upg_boot_decrypt() 197 sub_key_common *sub_key_com = (sub_key_common *)(data + head->sub_key_offset); in upg_boot_decrypt() 230 ret = hi_cipher_aes_crypto(decrypt_addr, decrypt_addr, head in upg_boot_decrypt() 244 boot_header *head = HI_NULL; upg_check_boot_from_mem() local 312 upg_check_unencrpt_boot_code(hi_u32 addr, HI_CONST boot_header *head, hi_u8 *key_part1, hi_u8 *key_part2) upg_check_unencrpt_boot_code() argument 362 upg_verify_flashboot(hi_u32 addr, HI_CONST boot_header *head, hi_u8 *key_part1, hi_u8 *key_part2, const sub_key_common *subk_com) upg_verify_flashboot() argument 383 upg_get_boot_sign_key(HI_CONST boot_header *head, HI_CONST hi_u8 *key, hi_u8 **pubk1, hi_u8 *pubk2, hi_u32 pubk2_len) upg_get_boot_sign_key() argument 445 upg_check_boot_bin_key(HI_CONST boot_header *head, HI_CONST hi_u8 *pubk, hi_u32 pubk_len, HI_CONST hi_u8 *subk) upg_check_boot_bin_key() argument 461 upg_check_boot_get_key_len(HI_CONST boot_header *head, hi_u32 *pubk_len, hi_u32 *subk_len) upg_check_boot_get_key_len() argument 478 upg_check_secure_boot_bin(hi_u32 addr, HI_CONST boot_header *head) upg_check_secure_boot_bin() argument 542 boot_header *head = (boot_header *)hi_malloc(HI_MOD_ID_UPG, sizeof(boot_header)); upg_check_boot_file() local [all...] |
H A D | upg_check_file.c | 203 hi_u32 upg_get_common_head_from_flash(hi_u32 addr, hi_upg_common_head *head) in upg_get_common_head_from_flash() argument 205 hi_u32 ret = hi_flash_read(addr, sizeof(hi_upg_common_head), (hi_u8 *)head); in upg_get_common_head_from_flash() 207 upg_print("[upg get common head]fail,addr-ret:0x%x-0x%x \r\n", addr, ret); in upg_get_common_head_from_flash() 215 hi_upg_common_head head = { 0 }; in upg_get_section_head_from_flash() local 219 upg_print("[upg get section head]is null.\r\n"); in upg_get_section_head_from_flash() 222 ret = hi_flash_read(addr, sizeof(hi_upg_common_head), (hi_u8 *)(&head)); in upg_get_section_head_from_flash() 224 upg_print("[upg get section head]common head read ret:0x%x \r\n", ret); in upg_get_section_head_from_flash() 227 ret = hi_flash_read(addr + head.section_offset, sizeof(hi_upg_section_head), (hi_u8 *)section_head); in upg_get_section_head_from_flash() 229 upg_print("[upg get section head]flas in upg_get_section_head_from_flash() 236 upg_check_alg_param(HI_CONST hi_upg_common_head *head) upg_check_alg_param() argument 265 upg_check_head_common_info(const hi_upg_common_head *head, hi_u32 head_size) upg_check_head_common_info() argument 324 upg_check_common_head(const hi_upg_common_head *head, hi_u32 head_size) upg_check_common_head() argument [all...] |
/device/soc/rockchip/common/hardware/mpp/include/ |
H A D | mpp_list.h | 67 struct mpp_list_node *head; member in mpp_list 98 #define list_for_each_safe(pos, n, head) \ 100 for ((pos) = (head)->next, (n) = (pos)->next; (pos) != (head); (pos) = (n), (n) = (pos)->next) \ 120 #define list_for_each_entry(pos, head, type, member) \ 121 for ((pos) = list_entry((head)->next, type, member); &(pos)->member != (head); \ 124 #define list_for_each_entry_safe(pos, n, head, type, member) \ 125 for ((pos) = list_first_entry(head, type, member), (n) = list_next_entry((pos), type, member); \ 126 &(pos)->member != (head); (po 144 list_add(struct list_head *_new, struct list_head *head) list_add() argument 149 list_add_tail(struct list_head *_new, struct list_head *head) list_add_tail() argument 167 list_is_last(const struct list_head *list, const struct list_head *head) list_is_last() argument 172 list_empty(struct list_head *head) list_empty() argument [all...] |
/device/soc/rockchip/rk3399/hardware/mpp/include/ |
H A D | mpp_list.h | 67 struct mpp_list_node *head; member in mpp_list 96 #define list_for_each_safe(pos, n, head) do { \ 97 for ((pos) = (head)->next, (n) = (pos)->next; (pos) != (head); \ 123 #define list_for_each_entry(pos, head, type, member) \ 124 for ((pos) = list_entry((head)->next, type, member); \ 125 &(pos)->member != (head); \ 128 #define list_for_each_entry_safe(pos, n, head, type, member) \ 129 for ((pos) = list_first_entry(head, type, member), \ 131 &(pos)->member != (head); \ 155 list_add(struct list_head *_new, struct list_head *head) list_add() argument 160 list_add_tail(struct list_head *_new, struct list_head *head) list_add_tail() argument 178 list_is_last(const struct list_head *list, const struct list_head *head) list_is_last() argument 183 list_empty(struct list_head *head) list_empty() argument [all...] |
/device/soc/rockchip/rk3568/hardware/mpp/include/ |
H A D | mpp_list.h | 67 struct mpp_list_node *head; member in mpp_list 96 #define list_for_each_safe(pos, n, head) do { \ 97 for ((pos) = (head)->next, (n) = (pos)->next; (pos) != (head); \ 123 #define list_for_each_entry(pos, head, type, member) \ 124 for ((pos) = list_entry((head)->next, type, member); \ 125 &(pos)->member != (head); \ 128 #define list_for_each_entry_safe(pos, n, head, type, member) \ 129 for ((pos) = list_first_entry(head, type, member), \ 131 &(pos)->member != (head); \ 155 list_add(struct list_head *_new, struct list_head *head) list_add() argument 160 list_add_tail(struct list_head *_new, struct list_head *head) list_add_tail() argument 178 list_is_last(const struct list_head *list, const struct list_head *head) list_is_last() argument 183 list_empty(struct list_head *head) list_empty() argument [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/upg/ |
H A D | boot_upg_check.c | 132 hi_u32 boot_upg_get_common_head(hi_u32 addr, hi_upg_common_head *head) in boot_upg_get_common_head() argument 134 hi_u32 ret = hi_flash_read(addr, sizeof(hi_upg_common_head), (hi_u8 *)head); in boot_upg_get_common_head() 144 hi_upg_common_head head = { 0 }; in boot_upg_get_section_head() local 150 ret = hi_flash_read(addr, sizeof(hi_upg_common_head), (hi_u8 *)(&head)); in boot_upg_get_section_head() 154 ret = hi_flash_read(addr + head.section_offset, sizeof(hi_upg_section_head), (hi_u8 *)section_head); in boot_upg_get_section_head() 162 hi_u32 boot_upg_check_alg_param(const hi_upg_common_head *head) in boot_upg_check_alg_param() argument 166 (uintptr_t)(&(head->param)) ^ sizeof(sign_alg_param); in boot_upg_check_alg_param() 167 if (memcpy_s(&alg_param, sizeof(sign_alg_param), &(head->param), sizeof(sign_alg_param), cs) != EOK) { in boot_upg_check_alg_param() 175 if (head->key_len != sizeof(upg_rsa_key)) { in boot_upg_check_alg_param() 178 if (head in boot_upg_check_alg_param() 192 boot_upg_check_common_head(const hi_upg_common_head *head) boot_upg_check_common_head() argument [all...] |