Lines Matching defs:pKeyboardEntry
359 static void darwinBruteForcePropertySearch(CFDictionaryRef DictRef, struct KeyboardCacheData *pKeyboardEntry);
556 struct KeyboardCacheData *pKeyboardEntry = (struct KeyboardCacheData *)pvRefcon;
557 if (!pKeyboardEntry->ppHidQueueInterface)
574 IOReturn rc = (*pKeyboardEntry->ppHidQueueInterface)->getNextEvent(pKeyboardEntry->ppHidQueueInterface,
581 unsigned i = pKeyboardEntry->cCookies;
584 if (pKeyboardEntry->aCookies[i].Cookie == Event.elementCookie)
586 fMask = pKeyboardEntry->aCookies[i].fMask;
628 static void darwinBruteForcePropertySearch(CFDictionaryRef DictRef, struct KeyboardCacheData *pKeyboardEntry)
660 if (pKeyboardEntry->cCookies >= RT_ELEMENTS(pKeyboardEntry->aCookies))
693 if (pKeyboardEntry->ppHidQueueInterface)
695 IOReturn rc = (*pKeyboardEntry->ppHidQueueInterface)->addElement(pKeyboardEntry->ppHidQueueInterface, (IOHIDElementCookie)lCookie, 0);
705 pKeyboardEntry->aCookies[pKeyboardEntry->cCookies].Cookie = (IOHIDElementCookie)lCookie;
706 pKeyboardEntry->aCookies[pKeyboardEntry->cCookies].fMask = fMask;
707 ++pKeyboardEntry->cCookies;
724 CFArrayApplyFunction(ArrayObjRef, Range, darwinBruteForcePropertySearchApplier, pKeyboardEntry);
733 * @param pKeyboardEntry Pointer to the entry.
737 static bool darwinHIDKeyboardCacheCreateEntry(struct KeyboardCacheData *pKeyboardEntry, io_object_t KeyboardDevice)
740 memset(pKeyboardEntry, 0, sizeof(*pKeyboardEntry));
784 pKeyboardEntry->ppHidQueueInterface = ppHidQueueInterface;
794 darwinBruteForcePropertySearch(PropertiesRef, pKeyboardEntry);
816 rc = (*ppHidQueueInterface)->setEventCallout(ppHidQueueInterface, darwinQueueCallback, ppHidQueueInterface, pKeyboardEntry);
824 pKeyboardEntry->ppHidDeviceInterface = ppHidDeviceInterface;
825 pKeyboardEntry->ppHidQueueInterface = ppHidQueueInterface;
845 * @param pKeyboardEntry The entry.
847 static void darwinHIDKeyboardCacheDestroyEntry(struct KeyboardCacheData *pKeyboardEntry)
854 if (pKeyboardEntry->ppHidQueueInterface)
856 IOHIDQueueInterface **ppHidQueueInterface = pKeyboardEntry->ppHidQueueInterface;
857 pKeyboardEntry->ppHidQueueInterface = NULL;
885 if (pKeyboardEntry->ppHidDeviceInterface)
887 IOHIDDeviceInterface **ppHidDeviceInterface = pKeyboardEntry->ppHidDeviceInterface;
888 pKeyboardEntry->ppHidDeviceInterface = NULL;