Lines Matching refs:ed

97 				   struct usb_ep_descriptor *ed)  in test_udc_ep_try_config()  argument
99 uint16_t mps = sys_le16_to_cpu(ed->wMaxPacketSize); in test_udc_ep_try_config()
102 err = udc_ep_try_config(dev, ed->bEndpointAddress, in test_udc_ep_try_config()
103 ed->bmAttributes, &mps, in test_udc_ep_try_config()
104 ed->bInterval); in test_udc_ep_try_config()
107 if (ed->bmAttributes == USB_EP_TYPE_CONTROL || in test_udc_ep_try_config()
108 ed->bmAttributes == USB_EP_TYPE_ISO) { in test_udc_ep_try_config()
117 err = udc_ep_try_config(dev, ed->bEndpointAddress, in test_udc_ep_try_config()
118 ed->bmAttributes, &mps, in test_udc_ep_try_config()
119 ed->bInterval); in test_udc_ep_try_config()
125 struct usb_ep_descriptor *ed) in test_udc_ep_enable() argument
127 uint8_t ctrl_ep = USB_EP_DIR_IS_IN(ed->bEndpointAddress) ? in test_udc_ep_enable()
132 err1 = udc_ep_enable(dev, ed->bEndpointAddress, ed->bmAttributes, in test_udc_ep_enable()
133 sys_le16_to_cpu(ed->wMaxPacketSize), in test_udc_ep_enable()
134 ed->bInterval); in test_udc_ep_enable()
135 err2 = udc_ep_enable(dev, ed->bEndpointAddress, ed->bmAttributes, in test_udc_ep_enable()
136 sys_le16_to_cpu(ed->wMaxPacketSize), in test_udc_ep_enable()
137 ed->bInterval); in test_udc_ep_enable()
138 err3 = udc_ep_enable(dev, FALSE_EP_ADDR, ed->bmAttributes, in test_udc_ep_enable()
139 sys_le16_to_cpu(ed->wMaxPacketSize), in test_udc_ep_enable()
140 ed->bInterval); in test_udc_ep_enable()
141 err4 = udc_ep_enable(dev, ctrl_ep, ed->bmAttributes, in test_udc_ep_enable()
142 sys_le16_to_cpu(ed->wMaxPacketSize), in test_udc_ep_enable()
143 ed->bInterval); in test_udc_ep_enable()
164 struct usb_ep_descriptor *ed) in test_udc_ep_disable() argument
166 uint8_t ctrl_ep = USB_EP_DIR_IS_IN(ed->bEndpointAddress) ? in test_udc_ep_disable()
171 err1 = udc_ep_disable(dev, ed->bEndpointAddress); in test_udc_ep_disable()
172 err2 = udc_ep_disable(dev, ed->bEndpointAddress); in test_udc_ep_disable()
195 struct usb_ep_descriptor *ed) in test_udc_ep_buf_alloc() argument
199 buf = udc_ep_buf_alloc(dev, ed->bEndpointAddress, in test_udc_ep_buf_alloc()
200 USB_MPS_TO_TPL(sys_le16_to_cpu(ed->wMaxPacketSize))); in test_udc_ep_buf_alloc()
221 struct usb_ep_descriptor *ed) in test_udc_ep_halt() argument
226 err1 = udc_ep_set_halt(dev, ed->bEndpointAddress); in test_udc_ep_halt()
230 if (ed->bmAttributes == USB_EP_TYPE_ISO) { in test_udc_ep_halt()
242 err1 = udc_ep_clear_halt(dev, ed->bEndpointAddress); in test_udc_ep_halt()
246 if (ed->bmAttributes == USB_EP_TYPE_ISO) { in test_udc_ep_halt()
284 struct usb_ep_descriptor *ed) in test_udc_ep_dequeue() argument
289 err1 = udc_ep_dequeue(dev, ed->bEndpointAddress); in test_udc_ep_dequeue()
324 struct usb_ep_descriptor *ed) in test_udc_ep_api() argument
330 last_used_ep = ed->bEndpointAddress; in test_udc_ep_api()
333 err = udc_ep_enable(dev, ed->bEndpointAddress, ed->bmAttributes, in test_udc_ep_api()
334 sys_le16_to_cpu(ed->wMaxPacketSize), in test_udc_ep_api()
335 ed->bInterval); in test_udc_ep_api()
340 buf = udc_ep_buf_alloc(dev, ed->bEndpointAddress, in test_udc_ep_api()
341 USB_MPS_TO_TPL(sys_le16_to_cpu(ed->wMaxPacketSize))); in test_udc_ep_api()
344 n, ed->bEndpointAddress); in test_udc_ep_api()
352 err = udc_ep_disable(dev, ed->bEndpointAddress); in test_udc_ep_api()
355 err = udc_ep_dequeue(dev, ed->bEndpointAddress); in test_udc_ep_api()
366 struct usb_ep_descriptor ed = { in test_udc_ep_mps() local
388 ed.bInterval = 1; in test_udc_ep_mps()
393 ed.bmAttributes, &supported, in test_udc_ep_mps()
394 ed.bInterval); in test_udc_ep_mps()
396 ed.bEndpointAddress = i; in test_udc_ep_mps()
408 ed.wMaxPacketSize = sys_cpu_to_le16(mps[i]); in test_udc_ep_mps()
409 test_udc_ep_api(dev, &ed); in test_udc_ep_mps()
411 ed.bEndpointAddress |= USB_EP_DIR_IN; in test_udc_ep_mps()
412 test_udc_ep_api(dev, &ed); in test_udc_ep_mps()