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…
1465 …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
1467 if (unlikely(if_desc == NULL || in_buf == NULL)) in xhci_get_interface_desc()
1487 *if_desc = ptr; in xhci_get_interface_desc()
1504 static inline int xhci_get_endpoint_desc(const struct usb_interface_desc *if_desc, const uint8_t ep… in xhci_get_endpoint_desc() argument
1507 if (unlikely(if_desc == NULL || ep_desc == NULL)) in xhci_get_endpoint_desc()
1509 BUG_ON(ep_num >= if_desc->num_endpoints); in xhci_get_endpoint_desc()
1511 …*ep_desc = (struct usb_endpoint_desc *)((uint64_t)(if_desc + 1) + ep_num * sizeof(struct usb_endpo… in xhci_get_endpoint_desc()
1695 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
1798 struct usb_interface_desc *if_desc = NULL; in xhci_configure_port() local
1819 retval = xhci_get_interface_desc(full_conf, 0, &if_desc); in xhci_configure_port()
1823 if (if_desc->interface_class == USB_CLASS_HID) in xhci_configure_port()
1828 retval = xhci_get_endpoint_desc(if_desc, 0, &ep_desc); in xhci_configure_port()
1842 retval = xhci_hid_set_idle(id, port_id, if_desc); in xhci_configure_port()
1849 … retval = xhci_get_hid_descriptor(id, port_id, full_conf, if_desc->interface_number, &hid_desc); in xhci_configure_port()
1858 …xhci_get_hid_report(id, port_id, if_desc->interface_number, hid_report_data, hid_desc->report_desc… in xhci_configure_port()