Lines Matching refs:err
45 int err; in ZTEST() local
48 err = usbh_req_get_cfg(udev, &cfg); in ZTEST()
53 zassert_equal(err, -EPIPE, "Transfer status is not a protocol error"); in ZTEST()
57 zassert_equal(err, 0, "Transfer status is an error"); in ZTEST()
62 zassert_equal(err, 0, "Transfer status is an error"); in ZTEST()
74 int err; in ZTEST() local
77 err = usbh_req_set_alt(udev, TEST_DEFAULT_INTERFACE, in ZTEST()
85 zassert_equal(err, -EPIPE, "Transfer status is not a protocol error"); in ZTEST()
97 int err; in usb_test_enable() local
99 err = usbh_init(&uhs_ctx); in usb_test_enable()
100 zassert_equal(err, 0, "Failed to initialize USB host"); in usb_test_enable()
102 err = usbh_enable(&uhs_ctx); in usb_test_enable()
103 zassert_equal(err, 0, "Failed to enable USB host"); in usb_test_enable()
105 err = uhc_bus_reset(uhs_ctx.dev); in usb_test_enable()
106 zassert_equal(err, 0, "Failed to signal bus reset"); in usb_test_enable()
108 err = uhc_bus_resume(uhs_ctx.dev); in usb_test_enable()
109 zassert_equal(err, 0, "Failed to signal bus resume"); in usb_test_enable()
111 err = uhc_sof_enable(uhs_ctx.dev); in usb_test_enable()
112 zassert_equal(err, 0, "Failed to enable SoF generator"); in usb_test_enable()
116 err = usbd_add_descriptor(&test_usbd, &test_lang); in usb_test_enable()
117 zassert_equal(err, 0, "Failed to initialize descriptor (%d)", err); in usb_test_enable()
119 err = usbd_add_descriptor(&test_usbd, &test_mfg); in usb_test_enable()
120 zassert_equal(err, 0, "Failed to initialize descriptor (%d)", err); in usb_test_enable()
122 err = usbd_add_descriptor(&test_usbd, &test_product); in usb_test_enable()
123 zassert_equal(err, 0, "Failed to initialize descriptor (%d)", err); in usb_test_enable()
125 err = usbd_add_descriptor(&test_usbd, &test_sn); in usb_test_enable()
126 zassert_equal(err, 0, "Failed to initialize descriptor (%d)", err); in usb_test_enable()
129 err = usbd_add_configuration(&test_usbd, USBD_SPEED_HS, &test_hs_config); in usb_test_enable()
130 zassert_equal(err, 0, "Failed to add configuration (%d)"); in usb_test_enable()
133 err = usbd_add_configuration(&test_usbd, USBD_SPEED_FS, &test_fs_config); in usb_test_enable()
134 zassert_equal(err, 0, "Failed to add configuration (%d)"); in usb_test_enable()
137 err = usbd_register_all_classes(&test_usbd, USBD_SPEED_HS, 1); in usb_test_enable()
138 zassert_equal(err, 0, "Failed to unregister all instances(%d)"); in usb_test_enable()
140 err = usbd_unregister_all_classes(&test_usbd, USBD_SPEED_HS, 1); in usb_test_enable()
141 zassert_equal(err, 0, "Failed to unregister all instances(%d)"); in usb_test_enable()
143 err = usbd_register_class(&test_usbd, "loopback_0", USBD_SPEED_HS, 1); in usb_test_enable()
144 zassert_equal(err, 0, "Failed to register loopback_0 class (%d)"); in usb_test_enable()
147 err = usbd_register_all_classes(&test_usbd, USBD_SPEED_FS, 1); in usb_test_enable()
148 zassert_equal(err, 0, "Failed to unregister all instances(%d)"); in usb_test_enable()
150 err = usbd_unregister_all_classes(&test_usbd, USBD_SPEED_FS, 1); in usb_test_enable()
151 zassert_equal(err, 0, "Failed to unregister all instances(%d)"); in usb_test_enable()
153 err = usbd_register_class(&test_usbd, "loopback_0", USBD_SPEED_FS, 1); in usb_test_enable()
154 zassert_equal(err, 0, "Failed to register loopback_0 class (%d)"); in usb_test_enable()
156 err = usbd_init(&test_usbd); in usb_test_enable()
157 zassert_equal(err, 0, "Failed to initialize device support"); in usb_test_enable()
159 err = usbd_enable(&test_usbd); in usb_test_enable()
160 zassert_equal(err, 0, "Failed to enable device support"); in usb_test_enable()
171 int err; in usb_test_shutdown() local
173 err = usbd_disable(&test_usbd); in usb_test_shutdown()
174 zassert_equal(err, 0, "Failed to enable device support"); in usb_test_shutdown()
176 err = usbd_shutdown(&test_usbd); in usb_test_shutdown()
177 zassert_equal(err, 0, "Failed to shutdown device support"); in usb_test_shutdown()
181 err = usbh_disable(&uhs_ctx); in usb_test_shutdown()
182 zassert_equal(err, 0, "Failed to disable USB host"); in usb_test_shutdown()