/drivers/hdf_core/interfaces/inner_api/utils/ |
H A D | hdf_dlist.h | 25 * This file provides interfaces such as inserting a node from the head or tail of a doubly linked list, 52 * @param head Indicates the pointer to the linked list {@link DListHead}. The parameter cannot be empty. 56 static inline void DListHeadInit(struct DListHead *head) in DListHeadInit() argument 58 head->next = head; in DListHeadInit() 59 head->prev = head; in DListHeadInit() 65 * @param head Indicates the pointer to the linked list {@link DListHead}. The parameter cannot be empty. 69 static inline bool DListIsEmpty(const struct DListHead *head) in DListIsEmpty() argument 71 return (head in DListIsEmpty() 99 DListInsertHead(struct DListHead *entry, struct DListHead *head) DListInsertHead() argument 117 DListInsertTail(struct DListHead *entry, struct DListHead *head) DListInsertTail() argument 135 DListMerge(struct DListHead *list, struct DListHead *head) DListMerge() argument 153 DListGetCount(const struct DListHead *head) DListGetCount() argument [all...] |
/drivers/peripheral/user_auth/hdi_service/utils/src/ |
H A D | linked_list.c | 45 node->next = list->head; in InsertNode() 46 list->head = node; in InsertNode() 62 LinkedListNode *node = list->head; in RemoveNode() 74 list->head = node->next; in RemoveNode() 129 iterator->current = list->head; in CreateIterator() 156 list->head = NULL; in CreateLinkedList() 184 while (list->head != NULL) { in DestroyLinkedList() 185 LinkedListNode *node = list->head; in DestroyLinkedList() 186 list->head = node->next; in DestroyLinkedList()
|
/drivers/hdf_core/framework/support/platform/src/pin/ |
H A D | pin_core.c | 34 static struct DListHead *head = NULL; in PinCntlrListGet() local 36 if (head == NULL) { in PinCntlrListGet() 37 head = &g_pinmanager->cntlrListHead; in PinCntlrListGet() 38 DListHeadInit(head); in PinCntlrListGet() 45 return head; in PinCntlrListGet() 60 struct DListHead *head = NULL; in PinCntlrAdd() local 80 head = PinCntlrListGet(); in PinCntlrAdd() 81 DListInsertTail(&cntlr->node, head); in PinCntlrAdd() 101 struct DListHead *head = NULL; in PinCntlrGetPinDescByName() local 111 head in PinCntlrGetPinDescByName() 132 struct DListHead *head = NULL; PinCntlrGetByNumber() local 152 struct DListHead *head = NULL; PinCntlrGetByPin() local [all...] |
H A D | pin_if_u.c | 35 static struct DListHead *head = NULL;
in AddNode() local 37 if (head == NULL) {
in AddNode() 38 head = &g_listHead;
in AddNode() 39 DListHeadInit(head);
in AddNode() 54 DListInsertTail(&pin->node, head);
in AddNode() 61 struct DListHead *head = &g_listHead;
in RemoveNode() local 66 DLIST_FOR_EACH_ENTRY_SAFE(pos, tmp, head, struct PinInfo, node) {
in RemoveNode() 419 struct DListHead *head = &g_listHead;
in CopyFuncName() local 424 DLIST_FOR_EACH_ENTRY_SAFE(pos, tmp, head, struct PinInfo, node) {
in CopyFuncName()
|
/drivers/liteos/hievent/src/ |
H A D | hiview_hievent.c | 84 static struct HiviewHieventPayload *HiviewHieventGetPayload(struct HiviewHieventPayload *head, 121 static struct HiviewHieventPayload *HiviewHieventGetPayload(struct HiviewHieventPayload *head, in HiviewHieventGetPayload() argument 124 struct HiviewHieventPayload *p = head; in HiviewHieventGetPayload() 141 if (!obj->head) { in HiviewHieventAddPayload() 142 obj->head = payload; in HiviewHieventAddPayload() 144 struct HiviewHieventPayload *p = obj->head; in HiviewHieventAddPayload() 181 payload = HiviewHieventGetPayload(event->head, key); in HiviewHieventPutIntegral() 220 payload = HiviewHieventGetPayload(event->head, key); in HiviewHieventPutString() 387 struct HiviewHieventPayload *p = event->head; in HiviewHieventFillPayload() 531 p = event->head; in HiviewHieventDestroy() [all...] |
/drivers/hdf_core/framework/utils/src/ |
H A D | hdf_task_queue.c | 41 DListHeadInit(&queue->head); in HdfTaskQueueCreate() 138 DListInsertTail(&task->node, &queue->head); in HdfTaskEnqueue() 156 if (!DListIsEmpty(&queue->head)) { in HdfTaskDequeue() 157 task = DLIST_FIRST_ENTRY(&queue->head, struct HdfTaskType, node); in HdfTaskDequeue()
|
/drivers/peripheral/codec/hal/src/ |
H A D | codec_component_manager_service.c | 69 DLIST_FOR_EACH_ENTRY_SAFE(pos, next, &g_service->head, struct ComponentTypeNode, node) in GetNextComponentId() 111 DLIST_FOR_EACH_ENTRY_SAFE(pos, next, &g_service->head, struct ComponentTypeNode, node) in OmxManagerDestroyComponent() 172 DListInsertTail(&node->node, &g_service->head); in OmxManagerCreateComponent() 209 DListHeadInit(&g_service->head); in CodecComponentManagerSerivceGet()
|
H A D | codec_dfx_service.c | 50 DLIST_FOR_EACH_ENTRY_SAFE(pos, next, &managerService->head, struct ComponentTypeNode, node) in DevCodecHostDump()
|
/drivers/hdf_core/framework/support/platform/src/i3c/ |
H A D | i3c_core.c | 84 static struct DListHead *head = NULL; in I3cDeviceListGet() local 86 head = &g_i3cDeviceList; in I3cDeviceListGet() 89 return head; in I3cDeviceListGet() 211 struct DListHead *head = NULL; in I3cGetDeviceByAddr() local 231 head = I3cDeviceListGet(); in I3cGetDeviceByAddr() 232 DLIST_FOR_EACH_ENTRY_SAFE(pos, tmp, head, struct I3cDevice, list) { in I3cGetDeviceByAddr() 273 struct DListHead *head = NULL; in I3cDeviceAdd() local 295 head = I3cDeviceListGet(); in I3cDeviceAdd() 296 DLIST_FOR_EACH_ENTRY_SAFE(pos, tmp, head, struct I3cDevice, list) { in I3cDeviceAdd() 308 DListInsertTail(&device->list, head); in I3cDeviceAdd() [all...] |
/drivers/hdf_core/adapter/khdf/linux/network/src/ |
H A D | netbuf_adapter.c | 227 * @param head Indicates the size of the header buffer segment reserved. 234 int32_t NetBufResizeRoom(NetBuf *nb, uint32_t head, uint32_t tail) in NetBufResizeRoom() argument 236 return pskb_expand_head(nb, head, tail, GFP_ATOMIC); in NetBufResizeRoom() 361 addr = nb->head; in NetBufGetAddress()
|
/drivers/hdf_core/framework/utils/include/ |
H A D | hdf_task_queue.h | 28 struct DListHead head; member
|
/drivers/liteos/hievent/include/ |
H A D | hiview_hievent.h | 44 struct HiviewHieventPayload *head; member
|
/drivers/peripheral/codec/hal/include/ |
H A D | codec_component_manager_service.h | 39 struct DListHead head; member
|
/drivers/peripheral/user_auth/hdi_service/database/src/ |
H A D | idm_database.c | 157 LinkedListNode *temp = user->enrolledInfoList->head; in GetEnrolledInfoAuthType() 230 LinkedListNode *temp = g_userInfoList->head; in QueryUserInfo() 258 LinkedListNode *temp = enrolledInfoList->head; in GetAllEnrolledInfoFromUser() 292 LinkedListNode *temp = userInfoList->head; in IsSecureUidDuplicate() 353 LinkedListNode *temp = enrolledList->head; in IsEnrolledIdDuplicate() 392 LinkedListNode *temp = enrolledList->head; in UpdateEnrolledId() 603 LinkedListNode *temp = user->credentialInfoList->head; in RemoveCachePin() 658 LinkedListNode *temp = user->credentialInfoList->head; in DeletePinCredentialInfo() 749 LinkedListNode *temp = credentialList->head; in QueryCredentialById() 767 LinkedListNode *temp = credentialList->head; in QueryCredentialByAuthType() [all...] |
/drivers/peripheral/user_auth/hdi_service/user_auth/src/ |
H A D | context_manager.c | 261 LinkedListNode *tempNode = g_contextList->head; in GetContext() 369 LinkedListNode *temp = credList->head; in QueryAuthTempletaInfo() 454 LinkedListNode *tempNode = g_contextList->head; in IsContextDuplicate() 492 LinkedListNode *temp = scheduleList->head; in CopySchedules() 569 LinkedListNode *tempNode = schedules->head; in DestroyContextNode() 602 LinkedListNode *tempNode = context->scheduleList->head; in GetCoAuthScheduleFromContext() 684 if (credList->head == NULL || credList->head->data == NULL) { in FillInContext() 688 CredentialInfoHal *credentialNode = (CredentialInfoHal *)credList->head->data; in FillInContext()
|
H A D | auth_level.c | 99 LinkedListNode *temp = executorList->head; in GetExecutorAslAndAcl() 136 LinkedListNode *temp = creds->head; in GetCredMaxAcl()
|
/drivers/peripheral/wlan/hostapd/interfaces/hdi_service/service_common/ |
H A D | hostapd_common_cmd.c | 655 struct DListHead *head = NULL; in HdfHostapdCallbackFun() local 659 head = &HdfHostapdStubDriver()->remoteListHead; in HdfHostapdCallbackFun() 666 DLIST_FOR_EACH_ENTRY(pos, head, struct HdfHostapdRemoteNode, node) { in HdfHostapdCallbackFun() 742 struct DListHead *head = &HdfHostapdStubDriver()->remoteListHead; in HdfHostapdAddRemoteObj() local 748 if (!DListIsEmpty(head)) { in HdfHostapdAddRemoteObj() 749 DLIST_FOR_EACH_ENTRY(pos, head, struct HdfHostapdRemoteNode, node) { in HdfHostapdAddRemoteObj() 764 DListInsertTail(&newRemoteNode->node, head); in HdfHostapdAddRemoteObj() 773 struct DListHead *head = &HdfHostapdStubDriver()->remoteListHead; in HdfHostapdDelRemoteObj() local 775 DLIST_FOR_EACH_ENTRY_SAFE(pos, tmp, head, struct HdfHostapdRemoteNode, node) { in HdfHostapdDelRemoteObj()
|
/drivers/peripheral/usb/gadget/function/ecm/ |
H A D | cdcecm.c | 165 static void UsbEcmFreeRequests(const struct DListHead *head, int32_t *allocated) in UsbEcmFreeRequests() argument 168 while (!DListIsEmpty(head)) { in UsbEcmFreeRequests() 169 req = DLIST_FIRST_ENTRY(head, struct UsbFnRequest, list); in UsbEcmFreeRequests() 211 struct DListHead *head = &port->readPool; in UsbEcmAllocReadRequests() local 218 return DListIsEmpty(head) ? HDF_FAILURE : HDF_SUCCESS; in UsbEcmAllocReadRequests() 223 DListInsertTail(&req->list, head); in UsbEcmAllocReadRequests() 232 struct DListHead *head = &port->writePool; in UsbEcmAllocWriteRequests() local 239 return DListIsEmpty(head) ? HDF_FAILURE : HDF_SUCCESS; in UsbEcmAllocWriteRequests() 244 DListInsertTail(&req->list, head); in UsbEcmAllocWriteRequests() 252 struct DListHead *head in UsbEcmStartIo() local [all...] |
/drivers/hdf_core/adapter/khdf/liteos_m/network/src/ |
H A D | netbuf_adapter.c | 97 * Net buffer is a continuous memory which consists of three parts: head buffer, data buffer and tail buffer. 103 * |<--head buff-->|<----data buff---->|<--tail buff-->| 129 * Enqueue the new net buffer to the head of buffer queue. 346 * Pop head room and add to data buffer 409 * reduce data buffer and push to head room. 539 * head The reserved size at head room 543 int32_t NetBufResizeRoom(NetBuf *nb, uint32_t head, uint32_t tail) in NetBufResizeRoom() argument 553 size = head + nb->len + tail; in NetBufResizeRoom() 565 if (memcpy_s(data + head, siz in NetBufResizeRoom() [all...] |
/drivers/hdf_core/adapter/khdf/liteos/network/src/ |
H A D | netbuf_adapter.c | 95 * Net buffer is a continuous memory which consists of three parts: head buffer, data buffer and tail buffer. 101 * |<--head buff-->|<----data buff---->|<--tail buff-->| 127 * Enqueue the new net buffer to the head of buffer queue. 344 * Pop head room and add to data buffer 407 * reduce data buffer and push to head room. 537 * head The reserved size at head room 541 int32_t NetBufResizeRoom(NetBuf *nb, uint32_t head, uint32_t tail) in NetBufResizeRoom() argument 551 size = head + nb->len + tail; in NetBufResizeRoom() 563 if (memcpy_s(data + head, siz in NetBufResizeRoom() [all...] |
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/ |
H A D | Generator.js | 161 let head = ''; 165 head += 170 return head + body;
|
/drivers/peripheral/user_auth/hdi_service/coauth/src/ |
H A D | pool.c | 101 LinkedListNode *temp = g_poolList->head; in IsExecutorIdDuplicate() 165 if (executors->head == NULL || executors->head->data == NULL) { in RegisterExecutorToPool() 169 executorInfo->executorIndex = ((ExecutorInfoHal *)(executors->head->data))->executorIndex; in RegisterExecutorToPool()
|
/drivers/hdf_core/framework/model/audio/usb/src/ |
H A D | audio_usb_mixer.c | 129 struct UsbMixerElemList head; member 324 if (mixElemInfo == NULL || mixElemInfo->head.mixer == NULL) { in AudioUsbFilterError() 329 return (mixElemInfo->head.mixer->ignoreCtlError != 0) ? 0 : err; in AudioUsbFilterError() 519 struct AudioUsbDriver *audioUsbDriver = mixElemInfo->head.mixer->audioUsbDriver; in AudioUsbGetCtlValueV1() 533 idx = AudioUsbMixerCtrlIntf(mixElemInfo->head.mixer) | (mixElemInfo->head.id << USB_SHIFT_SIZE_8); in AudioUsbGetCtlValueV1() 561 struct AudioUsbDriver *audioUsbDriver = mixElemInfo->head.mixer->audioUsbDriver; in AudioUsbGetCtlValueV2() 578 usbCtlMsgParam.index = AudioUsbMixerCtrlIntf(mixElemInfo->head.mixer) | (mixElemInfo->head.id << USB_SHIFT_SIZE_8); in AudioUsbGetCtlValueV2() 622 if (mixElemInfo->head in AudioUsbGetCtlValue() [all...] |
/drivers/peripheral/user_auth/hdi_service/utils/inc/ |
H A D | linked_list.h | 43 LinkedListNode *head; member
|
/drivers/hdf_core/framework/include/net/ |
H A D | hdf_netbuf.h | 309 * @param head Indicates the size of the header buffer segment reserved. 317 int32_t NetBufResizeRoom(NetBuf *nb, uint32_t head, uint32_t tail);
|