Lines Matching refs:endpt_desc

280 	struct usb_endpoint_descriptor *endpt_desc)  in xhci_parse_microframe_interval()  argument
282 if (endpt_desc->bInterval == 0) in xhci_parse_microframe_interval()
285 return xhci_microframes_to_exponent(endpt_desc->bInterval, 0, 15); in xhci_parse_microframe_interval()
289 struct usb_endpoint_descriptor *endpt_desc) in xhci_parse_frame_interval() argument
291 return xhci_microframes_to_exponent(endpt_desc->bInterval * 8, 3, 10); in xhci_parse_frame_interval()
299 struct usb_endpoint_descriptor *endpt_desc) in xhci_parse_exponent_interval() argument
303 interval = clamp_val(endpt_desc->bInterval, 1, 16) - 1; in xhci_parse_exponent_interval()
304 if (interval != endpt_desc->bInterval - 1) in xhci_parse_exponent_interval()
306 endpt_desc->bEndpointAddress, 1 << interval, in xhci_parse_exponent_interval()
331 struct usb_endpoint_descriptor *endpt_desc) in xhci_get_endpoint_interval() argument
338 if (usb_endpoint_xfer_control(endpt_desc) || in xhci_get_endpoint_interval()
339 usb_endpoint_xfer_bulk(endpt_desc)) { in xhci_get_endpoint_interval()
341 endpt_desc); in xhci_get_endpoint_interval()
347 if (usb_endpoint_xfer_int(endpt_desc) || in xhci_get_endpoint_interval()
348 usb_endpoint_xfer_isoc(endpt_desc)) { in xhci_get_endpoint_interval()
350 endpt_desc); in xhci_get_endpoint_interval()
355 if (usb_endpoint_xfer_isoc(endpt_desc)) { in xhci_get_endpoint_interval()
357 endpt_desc); in xhci_get_endpoint_interval()
367 if (usb_endpoint_xfer_int(endpt_desc) || in xhci_get_endpoint_interval()
368 usb_endpoint_xfer_isoc(endpt_desc)) { in xhci_get_endpoint_interval()
369 interval = xhci_parse_frame_interval(udev, endpt_desc); in xhci_get_endpoint_interval()
387 struct usb_endpoint_descriptor *endpt_desc, in xhci_get_endpoint_mult() argument
391 !usb_endpoint_xfer_isoc(endpt_desc)) in xhci_get_endpoint_mult()
398 struct usb_endpoint_descriptor *endpt_desc, in xhci_get_endpoint_max_burst() argument
406 (usb_endpoint_xfer_isoc(endpt_desc) || in xhci_get_endpoint_max_burst()
407 usb_endpoint_xfer_int(endpt_desc))) in xhci_get_endpoint_max_burst()
408 return usb_endpoint_maxp_mult(endpt_desc) - 1; in xhci_get_endpoint_max_burst()
419 struct usb_endpoint_descriptor *endpt_desc, in xhci_get_max_esit_payload() argument
426 if (usb_endpoint_xfer_control(endpt_desc) || in xhci_get_max_esit_payload()
427 usb_endpoint_xfer_bulk(endpt_desc)) in xhci_get_max_esit_payload()
434 max_packet = usb_endpoint_maxp(endpt_desc); in xhci_get_max_esit_payload()
435 max_burst = usb_endpoint_maxp_mult(endpt_desc); in xhci_get_max_esit_payload()
546 struct usb_endpoint_descriptor *endpt_desc = NULL; in xhci_set_configuration() local
549 endpt_desc = &ifdesc->ep_desc[cur_ep]; in xhci_set_configuration()
560 max_esit_payload = xhci_get_max_esit_payload(udev, endpt_desc, in xhci_set_configuration()
562 interval = xhci_get_endpoint_interval(udev, endpt_desc); in xhci_set_configuration()
563 mult = xhci_get_endpoint_mult(udev, endpt_desc, in xhci_set_configuration()
565 max_burst = xhci_get_endpoint_max_burst(udev, endpt_desc, in xhci_set_configuration()
569 ep_index = xhci_get_ep_index(endpt_desc); in xhci_set_configuration()
578 dir = (((endpt_desc->bEndpointAddress) & (0x80)) >> 7); in xhci_set_configuration()
579 ep_type = (((endpt_desc->bmAttributes) & (0x3)) | (dir << 2)); in xhci_set_configuration()
589 (get_unaligned(&endpt_desc->wMaxPacketSize))); in xhci_set_configuration()
592 if (!usb_endpoint_xfer_isoc(endpt_desc)) in xhci_set_configuration()
607 if (usb_endpoint_xfer_control(endpt_desc)) in xhci_set_configuration()