Searched refs:eventBuf (Results 1 – 5 of 5) sorted by relevance
85 struct HdfSBuf *eventBuf = NULL; in PrepareEvent() local89 eventBuf = HdfSbufObtain(EVENT_DEFAULT_SIZE); in PrepareEvent()90 if (eventBuf == NULL) { in PrepareEvent()102 HdfSbufRecycle(eventBuf); in PrepareEvent()109 HdfSbufRecycle(eventBuf); in PrepareEvent()113 if (!HdfSbufWriteString(eventBuf, content)) { in PrepareEvent()114 HdfSbufRecycle(eventBuf); in PrepareEvent()119 return eventBuf; in PrepareEvent()125 struct HdfSBuf *eventBuf = NULL; in SendKevent() local135 if (eventBuf == NULL) { in SendKevent()[all …]
87 if (inputDev->eventBuf == NULL) { in HotPlugNotify()96 if (!HdfSbufWriteBuffer(inputDev->eventBuf, &event, sizeof(HotPlugEvent))) { in HotPlugNotify()98 HdfSbufFlush(inputDev->eventBuf); in HotPlugNotify()101 ret = HdfDeviceSendEvent(g_inputManager->hdfDevObj, 0, inputDev->eventBuf); in HotPlugNotify()105 HdfSbufFlush(inputDev->eventBuf); in HotPlugNotify()248 inputDev->eventBuf = HdfSbufObtain(sizeof(HotPlugEvent)); in AllocPackageBuffer()249 if (inputDev->eventBuf == NULL) { in AllocPackageBuffer()389 HdfSbufRecycle(inputDev->eventBuf); in UnregisterInputDevice()390 inputDev->eventBuf = NULL; in UnregisterInputDevice()
119 struct HdfSBuf *eventBuf; member
136 char eventBuf[BUF_SIZE] = {0}; in AddInotifyEvents() local138 int ret = read(inotifyFd, eventBuf, sizeof(eventBuf) - SIZE_ONE); in AddInotifyEvents()142 struct inotify_event *positionEvent = (struct inotify_event *)eventBuf; in AddInotifyEvents()
1079 char eventBuf[EVENT_BUFFER_MAX] = {0}; in ReadNotifyLocked() local1083 res = static_cast<size_t>(read(iNotifyFd_, eventBuf, sizeof(eventBuf))); in ReadNotifyLocked()1096 event = reinterpret_cast<struct inotify_event *>(eventBuf + eventPos); in ReadNotifyLocked()