Lines Matching refs:err2
130 int err1, err2, err3, err4; in test_udc_ep_enable() local
135 err2 = udc_ep_enable(dev, ed->bEndpointAddress, ed->bmAttributes, in test_udc_ep_enable()
147 zassert_equal(err2, -EPERM, "Not failed to enable endpoint"); in test_udc_ep_enable()
152 zassert_equal(err2, -EPERM, "Not failed to enable endpoint"); in test_udc_ep_enable()
157 zassert_equal(err2, -EALREADY, "Not failed to enable endpoint"); in test_udc_ep_enable()
169 int err1, err2, err3, err4; in test_udc_ep_disable() local
172 err2 = udc_ep_disable(dev, ed->bEndpointAddress); in test_udc_ep_disable()
178 zassert_equal(err2, -EPERM, "Not failed to disable endpoint"); in test_udc_ep_disable()
183 zassert_equal(err2, -EALREADY, "Not failed to disable endpoint"); in test_udc_ep_disable()
188 zassert_equal(err2, -EALREADY, "Not failed to disable endpoint"); in test_udc_ep_disable()
224 int err1, err2; in test_udc_ep_halt() local
227 err2 = udc_ep_set_halt(dev, FALSE_EP_ADDR); in test_udc_ep_halt()
236 zassert_equal(err2, -ENODEV, "Not failed to set halt"); in test_udc_ep_halt()
239 zassert_equal(err2, -EPERM, "Not failed to set halt"); in test_udc_ep_halt()
243 err2 = udc_ep_clear_halt(dev, FALSE_EP_ADDR); in test_udc_ep_halt()
252 zassert_equal(err2, -ENODEV, "Not failed to clear halt"); in test_udc_ep_halt()
255 zassert_equal(err2, -EPERM, "Not failed to clear halt"); in test_udc_ep_halt()
263 int err1, err2 = 0; in test_udc_ep_enqueue() local
270 err2 = udc_ep_enqueue(dev, false_buf); in test_udc_ep_enqueue()
275 zassert_equal(err2, -ENODEV, "Not failed to queue request"); in test_udc_ep_enqueue()
287 int err1, err2; in test_udc_ep_dequeue() local
290 err2 = udc_ep_dequeue(dev, FALSE_EP_ADDR); in test_udc_ep_dequeue()
294 zassert_equal(err2, -EPERM, "Not failed to dequeue"); in test_udc_ep_dequeue()
297 zassert_equal(err2, -ENODEV, "Not failed to dequeue"); in test_udc_ep_dequeue()