Home
last modified time | relevance | path

Searched refs:descriptorLength (Results 1 – 6 of 6) sorted by relevance

/haiku/src/bin/hid_decode/
H A Dhid_decode.cpp31 off_t descriptorLength; in main() local
32 file.GetSize(&descriptorLength); in main()
34 uint8 *reportDescriptor = (uint8 *)malloc(descriptorLength); in main()
36 printf("failed to allocate buffer of %lld bytes\n", descriptorLength); in main()
40 ssize_t read = file.Read(reportDescriptor, descriptorLength); in main()
41 if (read != descriptorLength) { in main()
42 printf("failed to read file of %lld bytes: %s\n", descriptorLength, in main()
49 descriptorLength); in main()
/haiku/src/add-ons/kernel/drivers/input/usb_hid/
H A DHIDDevice.cpp42 size_t descriptorLength = 0; in HIDDevice() local
57 descriptorLength = descriptorWriter.BufferLength(); in HIDDevice()
74 descriptorLength in HIDDevice()
84 descriptorLength = sizeof(usb_hid_descriptor); in HIDDevice()
85 hidDescriptor = (usb_hid_descriptor *)malloc(descriptorLength); in HIDDevice()
95 B_USB_HID_DESCRIPTOR_HID << 8, interfaceIndex, descriptorLength, in HIDDevice()
96 hidDescriptor, &descriptorLength); in HIDDevice()
99 "\n", result, descriptorLength); in HIDDevice()
101 descriptorLength in HIDDevice()
104 descriptorLength = 256; /* XXX */ in HIDDevice()
[all …]
/haiku/src/add-ons/kernel/drivers/input/i2c_hid/
H A DHIDDevice.cpp54 uint16 descriptorLength = fDescriptor.wReportDescLength; in HIDDevice() local
55 fReportDescriptor = (uint8 *)malloc(descriptorLength); in HIDDevice()
65 descriptorLength); in HIDDevice()
79 write(fd, fReportDescriptor, descriptorLength); in HIDDevice()
85 descriptorLength); in HIDDevice()
/haiku/src/add-ons/kernel/drivers/input/hid_shared/
H A DHIDParser.h25 size_t descriptorLength);
H A DHIDParser.cpp44 size_t descriptorLength) in ParseReportDescriptor() argument
65 const uint8 *end = pointer + descriptorLength; in ParseReportDescriptor()
/haiku/src/add-ons/kernel/drivers/bus/usb/
H A Dusb_raw.cpp624 uint8 descriptorLength = MIN(firstTwoBytes[0], in usb_raw_ioctl() local
626 uint8 *descriptorBuffer = (uint8 *)malloc(descriptorLength); in usb_raw_ioctl()
637 descriptorLength, &actualLength) < B_OK in usb_raw_ioctl()
638 || actualLength != descriptorLength) { in usb_raw_ioctl()
647 descriptorLength) != B_OK) { in usb_raw_ioctl()
653 command.descriptor.length = descriptorLength; in usb_raw_ioctl()