Lines Matching refs:dev_desc
67 static int xhci_get_descriptor(const int id, const int port_id, struct usb_device_desc *dev_desc);
1381 struct usb_device_desc *dev_desc = xhci_hc[id].ports[port_id].dev_desc; in xhci_get_desc() local
1384 BUG_ON(dev_desc == NULL); in xhci_get_desc()
1386 if (unlikely(dev_desc == NULL)) in xhci_get_desc()
1395 count = xhci_control_in(id, &ctrl_in_packet, target, port_id, dev_desc->max_packet_size); in xhci_get_desc()
1403 struct usb_device_desc *dev_desc = xhci_hc[id].ports[port_id].dev_desc; in xhci_set_configuration() local
1406 BUG_ON(dev_desc == NULL); in xhci_set_configuration()
1408 if (unlikely(dev_desc == NULL)) in xhci_set_configuration()
1412 count = xhci_control_out(id, &ctrl_out_packet, NULL, port_id, dev_desc->max_packet_size); in xhci_set_configuration()
1527 static int xhci_get_descriptor(const int id, const int port_id, struct usb_device_desc *dev_desc) in xhci_get_descriptor() argument
1531 if (unlikely(dev_desc == NULL)) in xhci_get_descriptor()
1586 memset(dev_desc, 0, sizeof(struct usb_device_desc)); in xhci_get_descriptor()
1588 count = xhci_control_in(id, &ctrl_in_packet, dev_desc, port_id, max_packet); in xhci_get_descriptor()
1597 xhci_hc[id].ports[port_id].dev_desc = dev_desc; in xhci_get_descriptor()
1616 … port_id, dev_desc->len, dev_desc->type, dev_desc->usb_version >> 8, dev_desc->usb_version & 0xFF, in xhci_get_descriptor()
1617 …dev_desc->_class, dev_desc->subclass, dev_desc->protocol, dev_desc->max_packet_size, dev_desc->ven… in xhci_get_descriptor()
1618 … dev_desc->product_id, (dev_desc->device_rel & 0xF000) >> 12, (dev_desc->device_rel & 0x0F00) >> 8, in xhci_get_descriptor()
1619 …(dev_desc->device_rel & 0x00F0) >> 4, (dev_desc->device_rel & 0x000F) >> 0, dev_desc->manufacturer… in xhci_get_descriptor()
1620 dev_desc->procuct_index, dev_desc->serial_index, dev_desc->config); in xhci_get_descriptor()
1649 struct usb_device_desc dev_desc = {0}; in xhci_hc_start_ports() local
1650 if (xhci_get_descriptor(id, i, &dev_desc) == 0) in xhci_hc_start_ports()
1675 struct usb_device_desc dev_desc = {0}; in xhci_hc_start_ports() local
1676 if (xhci_get_descriptor(id, i, &dev_desc) == 0) in xhci_hc_start_ports()
1699 struct usb_device_desc *dev_desc = xhci_hc[id].ports[port_id].dev_desc; in xhci_hid_set_idle() local
1700 if (unlikely(dev_desc) == NULL) in xhci_hid_set_idle()
1707 xhci_control_out(id, &ctrl_out_packet, NULL, port_id, dev_desc->max_packet_size); in xhci_hid_set_idle()
1729 …xhci_initialize_ep(id, slot_context_vaddr, port_id, ep_num, xhci_hc[id].ports[port_id].dev_desc->m… in xhci_configure_endpoint()