Lines Matching refs:conf_desc

61 static int xhci_get_config_desc(const int id, const int port_id, struct usb_config_desc *conf_desc);
62 …xhci_get_config_desc_full(const int id, const int port_id, const struct usb_config_desc *conf_desc,
1423 static int xhci_get_config_desc(const int id, const int port_id, struct usb_config_desc *conf_desc) in xhci_get_config_desc() argument
1425 if (unlikely(conf_desc == NULL)) in xhci_get_config_desc()
1429 int retval = xhci_get_desc(id, port_id, conf_desc, USB_DT_CONFIG, 0, 0, 9); in xhci_get_config_desc()
1433 conf_desc->type, conf_desc->len, conf_desc->total_len, conf_desc->num_interfaces, in xhci_get_config_desc()
1434 (xhci_get_port_speed(id, port_id) == XHCI_PORT_SPEED_SUPER) ? (conf_desc->max_power * 8) in xhci_get_config_desc()
1435 … : (conf_desc->max_power * 2)); in xhci_get_config_desc()
1448 …xhci_get_config_desc_full(const int id, const int port_id, const struct usb_config_desc *conf_desc, in xhci_get_config_desc_full() argument
1451 if (unlikely(conf_desc == NULL || target == NULL)) in xhci_get_config_desc_full()
1454 return xhci_get_desc(id, port_id, target, USB_DT_CONFIG, 0, 0, conf_desc->total_len); in xhci_get_config_desc_full()
1805 struct usb_config_desc conf_desc = {0}; in xhci_configure_port() local
1806 retval = xhci_get_config_desc(id, port_id, &conf_desc); in xhci_configure_port()
1810 full_conf = kzalloc(conf_desc.total_len, 0); in xhci_configure_port()
1814 retval = xhci_get_config_desc_full(id, port_id, &conf_desc, full_conf); in xhci_configure_port()