Lines Matching defs:device
22 * \brief goes through the endpoints of a device and returns the one that
25 * \param device the device we want to consider for the lookup
35 struct usb_endpoint *usb_endpoint_lookup(struct usb_device *device,
41 struct usb_endpoint *ep = device->endpoints;
49 for (uint8_t ep_current = 0; ep_current < device->ep_max; ep_current++) {
101 if (device->ctrl_ep.descriptor && any && !ep_index) {
103 return (&device->ctrl_ep);
113 * \param device the usb device this endpoint belongs to
118 void usb_endpoint_init(struct usb_device *device, uint8_t iface_index,
127 struct usb_hcdi_bus_fn *bus_fn = device->controller->hcdi_bus_fn;
130 (bus_fn->endpoint_init)(device, desc, ep);
150 (bus_fn->clear_stall)(device, ep);