Lines Matching refs:pDevice
57 static EHIDAPIType GetAPIForDevice( hid_device *pDevice ) in GetAPIForDevice() argument
59 int iIndex = s_hashDeviceToAPI.Find( (uintptr_t)pDevice ); in GetAPIForDevice()
144 hid_device *pDevice = NULL; in hid_open() local
145 if ( ( pDevice = (hid_device *)HIDRAW::hid_open( vendor_id, product_id, serial_number ) ) != NULL ) in hid_open()
147 s_hashDeviceToAPI.Insert( (uintptr_t)pDevice, k_EHIDAPIRAW ); in hid_open()
148 return pDevice; in hid_open()
150 if ( ( pDevice = (hid_device *)HIDUSB::hid_open( vendor_id, product_id, serial_number ) ) != NULL ) in hid_open()
152 s_hashDeviceToAPI.Insert( (uintptr_t)pDevice, k_EHIDAPIUSB ); in hid_open()
153 return pDevice; in hid_open()
160 hid_device *pDevice = NULL; in hid_open_path() local
161 if ( ( pDevice = (hid_device *)HIDRAW::hid_open_path( path, bExclusive ) ) != NULL ) in hid_open_path()
163 s_hashDeviceToAPI.Insert( (uintptr_t)pDevice, k_EHIDAPIRAW ); in hid_open_path()
164 return pDevice; in hid_open_path()
166 if ( ( pDevice = (hid_device *)HIDUSB::hid_open_path( path, bExclusive ) ) != NULL ) in hid_open_path()
168 s_hashDeviceToAPI.Insert( (uintptr_t)pDevice, k_EHIDAPIUSB ); in hid_open_path()
169 return pDevice; in hid_open_path()