Lines Matching refs:zassert_equal
302 zassert_equal(iad->bLength, sizeof(struct usb_association_descriptor)); in test_uac2_descriptors()
303 zassert_equal(iad->bDescriptorType, USB_DESC_INTERFACE_ASSOC); in test_uac2_descriptors()
304 zassert_equal(iad->bFirstInterface, FIRST_INTERFACE_NUMBER); in test_uac2_descriptors()
305 zassert_equal(iad->bInterfaceCount, 3); in test_uac2_descriptors()
306 zassert_equal(iad->bFunctionClass, AUDIO_FUNCTION); in test_uac2_descriptors()
307 zassert_equal(iad->bFunctionSubClass, FUNCTION_SUBCLASS_UNDEFINED); in test_uac2_descriptors()
308 zassert_equal(iad->bFunctionProtocol, AF_VERSION_02_00); in test_uac2_descriptors()
309 zassert_equal(iad->iFunction, 0); in test_uac2_descriptors()
315 zassert_equal(iface->bLength, sizeof(struct usb_if_descriptor)); in test_uac2_descriptors()
316 zassert_equal(iface->bDescriptorType, USB_DESC_INTERFACE); in test_uac2_descriptors()
317 zassert_equal(iface->bInterfaceNumber, FIRST_INTERFACE_NUMBER); in test_uac2_descriptors()
318 zassert_equal(iface->bAlternateSetting, 0); in test_uac2_descriptors()
319 zassert_equal(iface->bNumEndpoints, 0); in test_uac2_descriptors()
320 zassert_equal(iface->bInterfaceClass, AUDIO); in test_uac2_descriptors()
321 zassert_equal(iface->bInterfaceSubClass, AUDIOCONTROL); in test_uac2_descriptors()
322 zassert_equal(iface->bInterfaceProtocol, IP_VERSION_02_00); in test_uac2_descriptors()
323 zassert_equal(iface->iInterface, 0); in test_uac2_descriptors()
355 zassert_equal(iface->bLength, sizeof(struct usb_if_descriptor)); in test_uac2_descriptors()
356 zassert_equal(iface->bDescriptorType, USB_DESC_INTERFACE); in test_uac2_descriptors()
357 zassert_equal(iface->bInterfaceNumber, FIRST_INTERFACE_NUMBER + 1); in test_uac2_descriptors()
358 zassert_equal(iface->bAlternateSetting, 0); in test_uac2_descriptors()
359 zassert_equal(iface->bNumEndpoints, 0); in test_uac2_descriptors()
360 zassert_equal(iface->bInterfaceClass, AUDIO); in test_uac2_descriptors()
361 zassert_equal(iface->bInterfaceSubClass, AUDIOSTREAMING); in test_uac2_descriptors()
362 zassert_equal(iface->bInterfaceProtocol, IP_VERSION_02_00); in test_uac2_descriptors()
363 zassert_equal(iface->iInterface, 0); in test_uac2_descriptors()
369 zassert_equal(iface->bLength, sizeof(struct usb_if_descriptor)); in test_uac2_descriptors()
370 zassert_equal(iface->bDescriptorType, USB_DESC_INTERFACE); in test_uac2_descriptors()
371 zassert_equal(iface->bInterfaceNumber, FIRST_INTERFACE_NUMBER + 1); in test_uac2_descriptors()
372 zassert_equal(iface->bAlternateSetting, 1); in test_uac2_descriptors()
373 zassert_equal(iface->bNumEndpoints, 1); in test_uac2_descriptors()
374 zassert_equal(iface->bInterfaceClass, AUDIO); in test_uac2_descriptors()
375 zassert_equal(iface->bInterfaceSubClass, AUDIOSTREAMING); in test_uac2_descriptors()
376 zassert_equal(iface->bInterfaceProtocol, IP_VERSION_02_00); in test_uac2_descriptors()
377 zassert_equal(iface->iInterface, 0); in test_uac2_descriptors()
391 zassert_equal(ep->bLength, sizeof(struct usb_ep_descriptor)); in test_uac2_descriptors()
392 zassert_equal(ep->bDescriptorType, USB_DESC_ENDPOINT); in test_uac2_descriptors()
393 zassert_equal(ep->bEndpointAddress, FIRST_OUT_EP_ADDR); in test_uac2_descriptors()
394 zassert_equal(ptr - descriptors, in test_uac2_descriptors()
396 zassert_equal(ep->Attributes.transfer, USB_EP_TYPE_ISO); in test_uac2_descriptors()
397 zassert_equal(ep->Attributes.synch, 1 /* Asynchronous */); in test_uac2_descriptors()
398 zassert_equal(ep->Attributes.usage, 0 /* Data Endpoint */); in test_uac2_descriptors()
400 zassert_equal(sys_le16_to_cpu(ep->wMaxPacketSize), 196); in test_uac2_descriptors()
402 zassert_equal(speed, USBD_SPEED_HS); in test_uac2_descriptors()
403 zassert_equal(sys_le16_to_cpu(ep->wMaxPacketSize), 28); in test_uac2_descriptors()
405 zassert_equal(ep->bInterval, 1); in test_uac2_descriptors()
416 zassert_equal(iface->bLength, sizeof(struct usb_if_descriptor)); in test_uac2_descriptors()
417 zassert_equal(iface->bDescriptorType, USB_DESC_INTERFACE); in test_uac2_descriptors()
418 zassert_equal(iface->bInterfaceNumber, FIRST_INTERFACE_NUMBER + 2); in test_uac2_descriptors()
419 zassert_equal(iface->bAlternateSetting, 0); in test_uac2_descriptors()
420 zassert_equal(iface->bNumEndpoints, 0); in test_uac2_descriptors()
421 zassert_equal(iface->bInterfaceClass, AUDIO); in test_uac2_descriptors()
422 zassert_equal(iface->bInterfaceSubClass, AUDIOSTREAMING); in test_uac2_descriptors()
423 zassert_equal(iface->bInterfaceProtocol, IP_VERSION_02_00); in test_uac2_descriptors()
424 zassert_equal(iface->iInterface, 0); in test_uac2_descriptors()
430 zassert_equal(iface->bLength, sizeof(struct usb_if_descriptor)); in test_uac2_descriptors()
431 zassert_equal(iface->bDescriptorType, USB_DESC_INTERFACE); in test_uac2_descriptors()
432 zassert_equal(iface->bInterfaceNumber, FIRST_INTERFACE_NUMBER + 2); in test_uac2_descriptors()
433 zassert_equal(iface->bAlternateSetting, 1); in test_uac2_descriptors()
434 zassert_equal(iface->bNumEndpoints, 1); in test_uac2_descriptors()
435 zassert_equal(iface->bInterfaceClass, AUDIO); in test_uac2_descriptors()
436 zassert_equal(iface->bInterfaceSubClass, AUDIOSTREAMING); in test_uac2_descriptors()
437 zassert_equal(iface->bInterfaceProtocol, IP_VERSION_02_00); in test_uac2_descriptors()
438 zassert_equal(iface->iInterface, 0); in test_uac2_descriptors()
452 zassert_equal(ep->bLength, sizeof(struct usb_ep_descriptor)); in test_uac2_descriptors()
453 zassert_equal(ep->bDescriptorType, USB_DESC_ENDPOINT); in test_uac2_descriptors()
454 zassert_equal(ep->bEndpointAddress, FIRST_IN_EP_ADDR); in test_uac2_descriptors()
455 zassert_equal(ptr - descriptors, in test_uac2_descriptors()
457 zassert_equal(ep->Attributes.transfer, USB_EP_TYPE_ISO); in test_uac2_descriptors()
458 zassert_equal(ep->Attributes.synch, 1 /* Asynchronous */); in test_uac2_descriptors()
459 zassert_equal(ep->Attributes.usage, 2 /* Implicit Feedback Data */); in test_uac2_descriptors()
461 zassert_equal(sys_le16_to_cpu(ep->wMaxPacketSize), 98); in test_uac2_descriptors()
463 zassert_equal(speed, USBD_SPEED_HS); in test_uac2_descriptors()
464 zassert_equal(sys_le16_to_cpu(ep->wMaxPacketSize), 14); in test_uac2_descriptors()
466 zassert_equal(ep->bInterval, 1); in test_uac2_descriptors()
475 zassert_equal(*ptr, NULL); in test_uac2_descriptors()
497 zassert_equal(fs->bDescriptorType, hs->bDescriptorType); in ZTEST()
511 zassert_equal(fs, hs); in ZTEST()
528 zassert_equal(*fs_headphones_descriptor_set, NULL); in ZTEST()
533 zassert_equal(iad->bLength, sizeof(struct usb_association_descriptor)); in ZTEST()
534 zassert_equal(iad->bDescriptorType, USB_DESC_INTERFACE_ASSOC); in ZTEST()
535 zassert_equal(iad->bFirstInterface, FIRST_INTERFACE_NUMBER); in ZTEST()
536 zassert_equal(iad->bInterfaceCount, 2); in ZTEST()
537 zassert_equal(iad->bFunctionClass, AUDIO_FUNCTION); in ZTEST()
538 zassert_equal(iad->bFunctionSubClass, FUNCTION_SUBCLASS_UNDEFINED); in ZTEST()
539 zassert_equal(iad->bFunctionProtocol, AF_VERSION_02_00); in ZTEST()
540 zassert_equal(iad->iFunction, 0); in ZTEST()
546 zassert_equal(iface->bLength, sizeof(struct usb_if_descriptor)); in ZTEST()
547 zassert_equal(iface->bDescriptorType, USB_DESC_INTERFACE); in ZTEST()
548 zassert_equal(iface->bInterfaceNumber, FIRST_INTERFACE_NUMBER); in ZTEST()
549 zassert_equal(iface->bAlternateSetting, 0); in ZTEST()
550 zassert_equal(iface->bNumEndpoints, 0); in ZTEST()
551 zassert_equal(iface->bInterfaceClass, AUDIO); in ZTEST()
552 zassert_equal(iface->bInterfaceSubClass, AUDIOCONTROL); in ZTEST()
553 zassert_equal(iface->bInterfaceProtocol, IP_VERSION_02_00); in ZTEST()
554 zassert_equal(iface->iInterface, 0); in ZTEST()
574 zassert_equal(iface->bLength, sizeof(struct usb_if_descriptor)); in ZTEST()
575 zassert_equal(iface->bDescriptorType, USB_DESC_INTERFACE); in ZTEST()
576 zassert_equal(iface->bInterfaceNumber, FIRST_INTERFACE_NUMBER + 1); in ZTEST()
577 zassert_equal(iface->bAlternateSetting, 0); in ZTEST()
578 zassert_equal(iface->bNumEndpoints, 0); in ZTEST()
579 zassert_equal(iface->bInterfaceClass, AUDIO); in ZTEST()
580 zassert_equal(iface->bInterfaceSubClass, AUDIOSTREAMING); in ZTEST()
581 zassert_equal(iface->bInterfaceProtocol, IP_VERSION_02_00); in ZTEST()
582 zassert_equal(iface->iInterface, 0); in ZTEST()
588 zassert_equal(iface->bLength, sizeof(struct usb_if_descriptor)); in ZTEST()
589 zassert_equal(iface->bDescriptorType, USB_DESC_INTERFACE); in ZTEST()
590 zassert_equal(iface->bInterfaceNumber, FIRST_INTERFACE_NUMBER + 1); in ZTEST()
591 zassert_equal(iface->bAlternateSetting, 1); in ZTEST()
592 zassert_equal(iface->bNumEndpoints, 2); in ZTEST()
593 zassert_equal(iface->bInterfaceClass, AUDIO); in ZTEST()
594 zassert_equal(iface->bInterfaceSubClass, AUDIOSTREAMING); in ZTEST()
595 zassert_equal(iface->bInterfaceProtocol, IP_VERSION_02_00); in ZTEST()
596 zassert_equal(iface->iInterface, 0); in ZTEST()
610 zassert_equal(ep->bLength, sizeof(struct usb_ep_descriptor)); in ZTEST()
611 zassert_equal(ep->bDescriptorType, USB_DESC_ENDPOINT); in ZTEST()
612 zassert_equal(ep->bEndpointAddress, FIRST_OUT_EP_ADDR); in ZTEST()
613 zassert_equal(ptr - hs_headphones_descriptor_set, in ZTEST()
615 zassert_equal(ep->Attributes.transfer, USB_EP_TYPE_ISO); in ZTEST()
616 zassert_equal(ep->Attributes.synch, 1 /* Asynchronous */); in ZTEST()
617 zassert_equal(ep->Attributes.usage, 0 /* Data Endpoint */); in ZTEST()
618 zassert_equal(sys_le16_to_cpu(ep->wMaxPacketSize), 150); in ZTEST()
619 zassert_equal(ep->bInterval, 1); in ZTEST()
630 zassert_equal(ep->bLength, sizeof(struct usb_ep_descriptor)); in ZTEST()
631 zassert_equal(ep->bDescriptorType, USB_DESC_ENDPOINT); in ZTEST()
632 zassert_equal(ep->bEndpointAddress, FIRST_IN_EP_ADDR); in ZTEST()
633 zassert_equal(ptr - hs_headphones_descriptor_set, in ZTEST()
635 zassert_equal(ep->Attributes.transfer, USB_EP_TYPE_ISO); in ZTEST()
636 zassert_equal(ep->Attributes.synch, 0 /* No Synchronization */); in ZTEST()
637 zassert_equal(ep->Attributes.usage, 1 /* Explicit Feedback-Endpoint */); in ZTEST()
638 zassert_equal(sys_le16_to_cpu(ep->wMaxPacketSize), 4); in ZTEST()
639 zassert_equal(ep->bInterval, 1); in ZTEST()
643 zassert_equal(*ptr, NULL); in ZTEST()