Lines Matching refs:dev_desc

67 static int xhci_get_descriptor(const int id, const int port_id, struct usb_device_desc *dev_desc);
1379 struct usb_device_desc *dev_desc = xhci_hc[id].ports[port_id].dev_desc; in xhci_get_desc() local
1382 BUG_ON(dev_desc == NULL); in xhci_get_desc()
1384 if (unlikely(dev_desc == NULL)) in xhci_get_desc()
1393 count = xhci_control_in(id, &ctrl_in_packet, target, port_id, dev_desc->max_packet_size); in xhci_get_desc()
1401 struct usb_device_desc *dev_desc = xhci_hc[id].ports[port_id].dev_desc; in xhci_set_configuration() local
1404 BUG_ON(dev_desc == NULL); in xhci_set_configuration()
1406 if (unlikely(dev_desc == NULL)) in xhci_set_configuration()
1410 count = xhci_control_out(id, &ctrl_out_packet, NULL, port_id, dev_desc->max_packet_size); in xhci_set_configuration()
1525 static int xhci_get_descriptor(const int id, const int port_id, struct usb_device_desc *dev_desc) in xhci_get_descriptor() argument
1529 if (unlikely(dev_desc == NULL)) in xhci_get_descriptor()
1584 memset(dev_desc, 0, sizeof(struct usb_device_desc)); in xhci_get_descriptor()
1586 count = xhci_control_in(id, &ctrl_in_packet, dev_desc, port_id, max_packet); in xhci_get_descriptor()
1595 xhci_hc[id].ports[port_id].dev_desc = dev_desc; in xhci_get_descriptor()
1614 … port_id, dev_desc->len, dev_desc->type, dev_desc->usb_version >> 8, dev_desc->usb_version & 0xFF, in xhci_get_descriptor()
1615dev_desc->_class, dev_desc->subclass, dev_desc->protocol, dev_desc->max_packet_size, dev_desc->ven… in xhci_get_descriptor()
1616dev_desc->product_id, (dev_desc->device_rel & 0xF000) >> 12, (dev_desc->device_rel & 0x0F00) >> 8, in xhci_get_descriptor()
1617 …(dev_desc->device_rel & 0x00F0) >> 4, (dev_desc->device_rel & 0x000F) >> 0, dev_desc->manufacturer… in xhci_get_descriptor()
1618 dev_desc->procuct_index, dev_desc->serial_index, dev_desc->config); in xhci_get_descriptor()
1647 struct usb_device_desc dev_desc = {0}; in xhci_hc_start_ports() local
1648 if (xhci_get_descriptor(id, i, &dev_desc) == 0) in xhci_hc_start_ports()
1673 struct usb_device_desc dev_desc = {0}; in xhci_hc_start_ports() local
1674 if (xhci_get_descriptor(id, i, &dev_desc) == 0) in xhci_hc_start_ports()
1697 struct usb_device_desc *dev_desc = xhci_hc[id].ports[port_id].dev_desc; in xhci_hid_set_idle() local
1698 if (unlikely(dev_desc) == NULL) in xhci_hid_set_idle()
1705 xhci_control_out(id, &ctrl_out_packet, NULL, port_id, dev_desc->max_packet_size); in xhci_hid_set_idle()
1727 …xhci_initialize_ep(id, slot_context_vaddr, port_id, ep_num, xhci_hc[id].ports[port_id].dev_desc->m… in xhci_configure_endpoint()