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

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

Completed in 85 milliseconds