Lines Matching refs:if_desc

64 …_get_interface_desc(const void *in_buf, const uint8_t if_num, struct usb_interface_desc **if_desc);
65 static inline int xhci_get_endpoint_desc(const struct usb_interface_desc *if_desc, const uint8_t ep…
1467 …i_get_interface_desc(const void *in_buf, const uint8_t if_num, struct usb_interface_desc **if_desc) in xhci_get_interface_desc() argument
1469 if (unlikely(if_desc == NULL || in_buf == NULL)) in xhci_get_interface_desc()
1489 *if_desc = ptr; in xhci_get_interface_desc()
1506 static inline int xhci_get_endpoint_desc(const struct usb_interface_desc *if_desc, const uint8_t ep… in xhci_get_endpoint_desc() argument
1509 if (unlikely(if_desc == NULL || ep_desc == NULL)) in xhci_get_endpoint_desc()
1511 BUG_ON(ep_num >= if_desc->num_endpoints); in xhci_get_endpoint_desc()
1513 …*ep_desc = (struct usb_endpoint_desc *)((uint64_t)(if_desc + 1) + ep_num * sizeof(struct usb_endpo… in xhci_get_endpoint_desc()
1697 static int xhci_hid_set_idle(const int id, const int port_id, struct usb_interface_desc *if_desc) in xhci_hid_set_idle() argument
1800 struct usb_interface_desc *if_desc = NULL; in xhci_configure_port() local
1821 retval = xhci_get_interface_desc(full_conf, 0, &if_desc); in xhci_configure_port()
1825 if (if_desc->interface_class == USB_CLASS_HID) in xhci_configure_port()
1830 retval = xhci_get_endpoint_desc(if_desc, 0, &ep_desc); in xhci_configure_port()
1844 retval = xhci_hid_set_idle(id, port_id, if_desc); in xhci_configure_port()
1851 … retval = xhci_get_hid_descriptor(id, port_id, full_conf, if_desc->interface_number, &hid_desc); in xhci_configure_port()
1860 …xhci_get_hid_report(id, port_id, if_desc->interface_number, hid_report_data, hid_desc->report_desc… in xhci_configure_port()