Lines Matching defs:udev

827 		tt_info->slot_id = virt_dev->udev->slot_id;
837 xhci_free_tt_info(xhci, virt_dev, virt_dev->udev->slot_id);
898 if (dev->udev && dev->udev->slot_id)
899 dev->udev->slot_id = 0;
908 * We can't rely on udev at this point to find child-parent relationships.
947 struct usb_device *udev, gfp_t flags)
992 dev->udev = udev;
1018 struct usb_device *udev)
1024 virt_dev = xhci->devs[udev->slot_id];
1050 struct usb_device *udev)
1055 if (udev->speed >= USB_SPEED_SUPER)
1060 for (top_dev = udev; top_dev->parent && top_dev->parent->parent;
1068 int xhci_setup_addressable_virt_dev(struct xhci_hcd *xhci, struct usb_device *udev)
1077 dev = xhci->devs[udev->slot_id];
1079 if (udev->slot_id == 0 || !dev) {
1081 udev->slot_id);
1088 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(1) | udev->route);
1089 switch (udev->speed) {
1116 port_num = xhci_find_real_port_number(xhci, udev);
1121 for (top_dev = udev; top_dev->parent && top_dev->parent->parent;
1135 if (!udev->tt || !udev->tt->hub->parent) {
1144 if (tt_bw->slot_id != udev->tt->hub->slot_id)
1147 if (!dev->udev->tt->multi ||
1148 (udev->tt->multi &&
1149 tt_bw->ttport == dev->udev->ttport)) {
1160 if (udev->tt && udev->tt->hub->parent) {
1161 slot_ctx->tt_info = cpu_to_le32(udev->tt->hub->slot_id |
1162 (udev->ttport << 8));
1163 if (udev->tt->multi)
1166 xhci_dbg(xhci, "udev->tt = %p\n", udev->tt);
1167 xhci_dbg(xhci, "udev->ttport = 0x%x\n", udev->ttport);
1192 static unsigned int xhci_parse_exponent_interval(struct usb_device *udev,
1199 dev_warn(&udev->dev,
1203 udev->speed == USB_SPEED_FULL ? "" : "micro");
1205 if (udev->speed == USB_SPEED_FULL) {
1221 static unsigned int xhci_microframes_to_exponent(struct usb_device *udev,
1230 dev_dbg(&udev->dev,
1239 static unsigned int xhci_parse_microframe_interval(struct usb_device *udev,
1244 return xhci_microframes_to_exponent(udev, ep,
1249 static unsigned int xhci_parse_frame_interval(struct usb_device *udev,
1252 return xhci_microframes_to_exponent(udev, ep,
1264 static unsigned int xhci_get_endpoint_interval(struct usb_device *udev,
1269 switch (udev->speed) {
1274 interval = xhci_parse_microframe_interval(udev, ep);
1283 interval = xhci_parse_exponent_interval(udev, ep);
1289 interval = xhci_parse_exponent_interval(udev, ep);
1303 interval = xhci_parse_frame_interval(udev, ep);
1318 static u32 xhci_get_endpoint_mult(struct usb_device *udev,
1321 if (udev->speed < USB_SPEED_SUPER ||
1327 static u32 xhci_get_endpoint_max_burst(struct usb_device *udev,
1331 if (udev->speed >= USB_SPEED_SUPER)
1334 if (udev->speed == USB_SPEED_HIGH &&
1365 static u32 xhci_get_max_esit_payload(struct usb_device *udev,
1377 if ((udev->speed >= USB_SPEED_SUPER_PLUS) &&
1382 if (udev->speed >= USB_SPEED_SUPER)
1396 struct usb_device *udev,
1428 max_esit_payload = xhci_get_max_esit_payload(udev, ep);
1429 interval = xhci_get_endpoint_interval(udev, ep);
1435 udev->speed >= USB_SPEED_HIGH &&
1441 mult = xhci_get_endpoint_mult(udev, ep);
1443 max_burst = xhci_get_endpoint_max_burst(udev, ep);
1453 if (udev->speed == USB_SPEED_HIGH)
1455 if (udev->speed == USB_SPEED_FULL) {