Lines Matching refs:descriptor

318 			if (!IS_USER_ADDRESS(command.device.descriptor)
319 || user_memcpy(command.device.descriptor, deviceDescriptor,
351 if (!IS_USER_ADDRESS(command.config.descriptor)
352 || user_memcpy(command.config.descriptor,
427 if (!IS_USER_ADDRESS(command.interface.descriptor)
428 || user_memcpy(command.interface.descriptor, interfaceInfo->descr,
473 if (!IS_USER_ADDRESS(command.endpoint.descriptor)
474 || user_memcpy(command.endpoint.descriptor,
523 usb_descriptor *descriptor = interfaceInfo->generic[genericIndex];
524 if (descriptor == NULL)
527 if (!IS_USER_ADDRESS(command.generic.descriptor)
528 || user_memcpy(command.generic.descriptor, descriptor,
529 min_c(genericLength, descriptor->generic.length)) != B_OK) {
533 if (descriptor->generic.length > genericLength)
591 if (!IS_USER_ADDRESS(command.string.descriptor)
592 || user_memcpy(command.string.descriptor, string,
606 if (length < sizeof(command.descriptor))
614 command.descriptor.type, command.descriptor.index,
615 command.descriptor.language_id, firstTwoBytes, 2,
618 || firstTwoBytes[1] != command.descriptor.type) {
619 command.descriptor.status = B_USB_RAW_STATUS_ABORTED;
620 command.descriptor.length = 0;
625 command.descriptor.length);
628 command.descriptor.status = B_USB_RAW_STATUS_ABORTED;
629 command.descriptor.length = 0;
635 command.descriptor.type, command.descriptor.index,
636 command.descriptor.language_id, descriptorBuffer,
639 command.descriptor.status = B_USB_RAW_STATUS_ABORTED;
640 command.descriptor.length = 0;
645 if (!IS_USER_ADDRESS(command.descriptor.data)
646 || user_memcpy(command.descriptor.data, descriptorBuffer,
652 command.descriptor.status = B_USB_RAW_STATUS_SUCCESS;
653 command.descriptor.length = descriptorLength;