Lines Matching defs:udev
871 tt_info->slot_id = virt_dev->udev->slot_id;
881 xhci_free_tt_info(xhci, virt_dev, virt_dev->udev->slot_id);
942 if (dev->udev && dev->udev->slot_id)
943 dev->udev->slot_id = 0;
952 * We can't rely on udev at this point to find child-parent relationships.
991 struct usb_device *udev, gfp_t flags)
1038 dev->udev = udev;
1064 struct usb_device *udev)
1070 virt_dev = xhci->devs[udev->slot_id];
1096 struct usb_device *udev)
1101 if (udev->speed >= USB_SPEED_SUPER)
1106 for (top_dev = udev; top_dev->parent && top_dev->parent->parent;
1114 int xhci_setup_addressable_virt_dev(struct xhci_hcd *xhci, struct usb_device *udev)
1123 dev = xhci->devs[udev->slot_id];
1125 if (udev->slot_id == 0 || !dev) {
1127 udev->slot_id);
1134 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(1) | udev->route);
1135 switch (udev->speed) {
1166 port_num = xhci_find_real_port_number(xhci, udev);
1171 for (top_dev = udev; top_dev->parent && top_dev->parent->parent;
1185 if (!udev->tt || !udev->tt->hub->parent) {
1194 if (tt_bw->slot_id != udev->tt->hub->slot_id)
1197 if (!dev->udev->tt->multi ||
1198 (udev->tt->multi &&
1199 tt_bw->ttport == dev->udev->ttport)) {
1210 if (udev->tt && udev->tt->hub->parent) {
1211 slot_ctx->tt_info = cpu_to_le32(udev->tt->hub->slot_id |
1212 (udev->ttport << 8));
1213 if (udev->tt->multi)
1216 xhci_dbg(xhci, "udev->tt = %p\n", udev->tt);
1217 xhci_dbg(xhci, "udev->ttport = 0x%x\n", udev->ttport);
1242 static unsigned int xhci_parse_exponent_interval(struct usb_device *udev,
1249 dev_warn(&udev->dev,
1253 udev->speed == USB_SPEED_FULL ? "" : "micro");
1255 if (udev->speed == USB_SPEED_FULL) {
1271 static unsigned int xhci_microframes_to_exponent(struct usb_device *udev,
1280 dev_dbg(&udev->dev,
1289 static unsigned int xhci_parse_microframe_interval(struct usb_device *udev,
1294 return xhci_microframes_to_exponent(udev, ep,
1299 static unsigned int xhci_parse_frame_interval(struct usb_device *udev,
1302 return xhci_microframes_to_exponent(udev, ep,
1314 static unsigned int xhci_get_endpoint_interval(struct usb_device *udev,
1319 switch (udev->speed) {
1324 interval = xhci_parse_microframe_interval(udev, ep);
1333 interval = xhci_parse_exponent_interval(udev, ep);
1339 interval = xhci_parse_exponent_interval(udev, ep);
1353 interval = xhci_parse_frame_interval(udev, ep);
1368 static u32 xhci_get_endpoint_mult(struct usb_device *udev,
1371 if (udev->speed < USB_SPEED_SUPER ||
1377 static u32 xhci_get_endpoint_max_burst(struct usb_device *udev,
1381 if (udev->speed >= USB_SPEED_SUPER)
1384 if (udev->speed == USB_SPEED_HIGH &&
1415 static u32 xhci_get_max_esit_payload(struct usb_device *udev,
1427 if ((udev->speed >= USB_SPEED_SUPER_PLUS) &&
1431 else if (udev->speed >= USB_SPEED_SUPER)
1445 struct usb_device *udev,
1477 max_esit_payload = xhci_get_max_esit_payload(udev, ep);
1478 interval = xhci_get_endpoint_interval(udev, ep);
1484 udev->speed >= USB_SPEED_HIGH &&
1490 mult = xhci_get_endpoint_mult(udev, ep);
1492 max_burst = xhci_get_endpoint_max_burst(udev, ep);
1502 if (udev->speed == USB_SPEED_HIGH)
1504 if (udev->speed == USB_SPEED_FULL) {