Lines Matching refs:udev
893 tt_info->slot_id = virt_dev->udev->slot_id; in xhci_alloc_tt_info()
903 xhci_free_tt_info(xhci, virt_dev, virt_dev->udev->slot_id); in xhci_alloc_tt_info()
968 struct usb_device *udev, gfp_t flags) in xhci_alloc_virt_device() argument
1021 dev->udev = udev; in xhci_alloc_virt_device()
1037 struct usb_device *udev) in xhci_copy_ep0_dequeue_into_input_ctx() argument
1043 virt_dev = xhci->devs[udev->slot_id]; in xhci_copy_ep0_dequeue_into_input_ctx()
1070 struct usb_device *udev) in xhci_find_real_port_number() argument
1075 if (udev->speed == USB_SPEED_SUPER) in xhci_find_real_port_number()
1080 for (top_dev = udev; top_dev->parent && top_dev->parent->parent; in xhci_find_real_port_number()
1088 int xhci_setup_addressable_virt_dev(struct xhci_hcd *xhci, struct usb_device *udev) in xhci_setup_addressable_virt_dev() argument
1097 dev = xhci->devs[udev->slot_id]; in xhci_setup_addressable_virt_dev()
1099 if (udev->slot_id == 0 || !dev) { in xhci_setup_addressable_virt_dev()
1101 udev->slot_id); in xhci_setup_addressable_virt_dev()
1108 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(1) | udev->route); in xhci_setup_addressable_virt_dev()
1109 switch (udev->speed) { in xhci_setup_addressable_virt_dev()
1136 port_num = xhci_find_real_port_number(xhci, udev); in xhci_setup_addressable_virt_dev()
1141 for (top_dev = udev; top_dev->parent && top_dev->parent->parent; in xhci_setup_addressable_virt_dev()
1155 if (!udev->tt || !udev->tt->hub->parent) { in xhci_setup_addressable_virt_dev()
1164 if (tt_bw->slot_id != udev->tt->hub->slot_id) in xhci_setup_addressable_virt_dev()
1167 if (!dev->udev->tt->multi || in xhci_setup_addressable_virt_dev()
1168 (udev->tt->multi && in xhci_setup_addressable_virt_dev()
1169 tt_bw->ttport == dev->udev->ttport)) { in xhci_setup_addressable_virt_dev()
1180 if (udev->tt && udev->tt->hub->parent) { in xhci_setup_addressable_virt_dev()
1181 slot_ctx->tt_info = cpu_to_le32(udev->tt->hub->slot_id | in xhci_setup_addressable_virt_dev()
1182 (udev->ttport << 8)); in xhci_setup_addressable_virt_dev()
1183 if (udev->tt->multi) in xhci_setup_addressable_virt_dev()
1186 xhci_dbg(xhci, "udev->tt = %p\n", udev->tt); in xhci_setup_addressable_virt_dev()
1187 xhci_dbg(xhci, "udev->ttport = 0x%x\n", udev->ttport); in xhci_setup_addressable_virt_dev()
1210 static unsigned int xhci_parse_exponent_interval(struct usb_device *udev, in xhci_parse_exponent_interval() argument
1217 dev_warn(&udev->dev, in xhci_parse_exponent_interval()
1221 udev->speed == USB_SPEED_FULL ? "" : "micro"); in xhci_parse_exponent_interval()
1223 if (udev->speed == USB_SPEED_FULL) { in xhci_parse_exponent_interval()
1239 static unsigned int xhci_microframes_to_exponent(struct usb_device *udev, in xhci_microframes_to_exponent() argument
1248 dev_warn(&udev->dev, in xhci_microframes_to_exponent()
1257 static unsigned int xhci_parse_microframe_interval(struct usb_device *udev, in xhci_parse_microframe_interval() argument
1262 return xhci_microframes_to_exponent(udev, ep, in xhci_parse_microframe_interval()
1267 static unsigned int xhci_parse_frame_interval(struct usb_device *udev, in xhci_parse_frame_interval() argument
1270 return xhci_microframes_to_exponent(udev, ep, in xhci_parse_frame_interval()
1282 static unsigned int xhci_get_endpoint_interval(struct usb_device *udev, in xhci_get_endpoint_interval() argument
1287 switch (udev->speed) { in xhci_get_endpoint_interval()
1292 interval = xhci_parse_microframe_interval(udev, ep); in xhci_get_endpoint_interval()
1300 interval = xhci_parse_exponent_interval(udev, ep); in xhci_get_endpoint_interval()
1306 interval = xhci_parse_exponent_interval(udev, ep); in xhci_get_endpoint_interval()
1319 interval = xhci_parse_frame_interval(udev, ep); in xhci_get_endpoint_interval()
1334 static u32 xhci_get_endpoint_mult(struct usb_device *udev, in xhci_get_endpoint_mult() argument
1337 if (udev->speed != USB_SPEED_SUPER || in xhci_get_endpoint_mult()
1376 static u32 xhci_get_max_esit_payload(struct usb_device *udev, in xhci_get_max_esit_payload() argument
1387 if (udev->speed == USB_SPEED_SUPER) in xhci_get_max_esit_payload()
1401 struct usb_device *udev, in xhci_endpoint_init() argument
1441 ep_ctx->ep_info = cpu_to_le32(xhci_get_endpoint_interval(udev, ep) in xhci_endpoint_init()
1442 | EP_MULT(xhci_get_endpoint_mult(udev, ep))); in xhci_endpoint_init()
1457 switch (udev->speed) { in xhci_endpoint_init()
1483 max_esit_payload = xhci_get_max_esit_payload(udev, ep); in xhci_endpoint_init()